Changes

Jump to navigation Jump to search
"Using non-ascii characters" added
Use <texcode>\enableregime[utf]</texcode> in order to be able to typeset in unicode under ConTeXt.
 
==Using non-ascii characters==
 
As a TeX/LaTeX user you were probably told to use the accents in the following way (the example is taken from the TeXBOOK, page 24):
<texcode>
Once upon a time, in a distant
galaxy called \"O\"o\c c
there lived a computer
named R.~J. Drofnats.
</texcode>
The galaxy name will be shown as<context>\"O\"o\c c</context>.
 
In ConTeXt, please <b>try to avoid that</b> backslashed character composition if possible (there are several good reasons for it - hyphenation etc.).
 
You have two alternatives:
===Type the characters as you do in any other text editor===
<texcode>
\enableregime[utf] % or any other supported regime
 
...
 
Once upon a time, in a distant
galaxy called Ööç
</texcode>
Once you figure out what regime you need, you can simply type the characters as you do in any text editor
(See above fot the list of available regimes - some more will probably be added in the near future. If you don't find the one you would like to use, please ask on the mailing list)
 
===Use glyph names===
If you don't have the letter on your keyboard (or if you want some strange letters not supported by the regime you use, for example greek or cyrillic), you can access the glyphs by their names:
<texcode>
Once upon a time, in a distant
galaxy called \Odiaeresis\odiaeresis\ccedilla
</texcode>
 
===How do I know which glyph name to use?===
* use <texcode>\showcharacters</texcode>
* http://partners.adobe.com/public/developer/en/opentype/aglfn13.txt
* browse the ConTeXt source
* ask someone to put the list of the available glyphs on the Wiki -) <b>(or simply volunteer for that!)</b>
==How it works?==

Navigation menu