navigation map

Chapters:
  1: Introduction
  2: Simple example
  3: Invocation
  4: Finer Control
  5: X-Y Plots
  6: Contour Plots
  7: Image Plots
  8: Examples
  9: Gri Commands
  10: Programming
  11: Environment
  12: Emacs Mode
  13: History
  14: Installation
  15: Gri Bugs
  16: Test Suite
  17: Gri in Press
  18: Acknowledgments
  19: License

Indices:
  Concepts
  Commands
  Variables
index.html#Top Text.html#Text Gri: mathematical text Gri: adjusting character position index.html#Top Gri: adjusting character position

10.10.3: Non-English characters

Gri relies on the ``standard'' PostScript fonts, however, and it suffers all limitations of these fonts.

Gri supports both English and some other European-derived languages, permitting text with accents on letters. (It does not support Oriental or other languages at this time.) The accents are supported by using the so-called ISO-Latin-1 font-encoding scheme (also called the ISO-8859-1 scheme), and so, from what the author can gather from his reading, Gri should support various languages from western European, e.g. English, French, Spanish, Catalan, Basque, Portuguese, Italian, Albanian, Rhaeto-Romanic, Dutch, German, Danish, Swedish, Norwegian, Finnish, Faroese, Icelandic, Irish, Scottish, and as well as Afrikaans and Swahili.

Gri uses the ISO-Latin-1 font encodings by default, although the so-called `standard' font-encoding may also be selected with the `Set Font Encoding' command (see Set Font Encoding). For more on font encodings see any book on PostScript fonts ... although the bottom line is that if you are using accented characters in your work, then you probably already know about encodings, and if you don't use accents then you needn't learn about this topic except for the pleasure of learning about other languages.

The method of handling accented characters is very simple. If you can type it, Gri can draw it! It is up to you to determine how to enter the accents. Most text editors permit this. Since many users will prefer the Emacs editor, a few words about that are in order.

For complete information about entering iso-latin-1 characters in Emacs, consult your Emacs manual in the section `(emacs)Single-Byte Character Support' which describes the available methods suitable for the Emacs version you are using. A few examples are nevertheless provided below.

Consider the task of inserting French text, with the Emacs text-editor. There are several ways of doing tho store the old font size. Note that the use of the `new/delete' statements prevents the assignment to the local version of the variable `.tmp.' from affecting the value known outside the `if' block, if in fact `.tmp.' happened to exist outside the block.


set font size 10
draw label "This is in fontsize 10" at 10 2 cm
if .want_title.
  new .tmp.
  .tmp. = ..fontsize..
  set font size 22
  draw label "This is 22 font" at 10 5 cm
  set font size .tmp.
  delete .tmp.
end if
draw label "This is 10 font" at 10 8 cm

Special case: for local synonyms (e.g. `\.word1.', etc.), the `new' operator checks to see whether the synonym is standing for an "ampersand" argument, signalling a changeable argument that is a variable or a synonym. In such a case, `new' creates a new instance of the item in the calling context. The test suite has examples (see Test Suite).

navigation map ./usr/share/doc/gri/html/NewCommands.html0100644000000000000000000000703010211233211017202 0ustar rootroot Gri: Adding new commands