Changes

Jump to navigation Jump to search
m
no edit summary
Some users of ConTeXt (mainly in Humanities) are sometimes led to introduce different languages into a text mainly written in a Romance language (English, Spanish, French, Dutch, German, Italian, etc.). In a text in a European Latin language, the best way to switch from one language to another is to use the command :
 
{{cmd|\definefallbackfamily}}
If you want to use several languages, you need to ask ConTeXt which language you want to switch to for each of them. In the preamble, write the main language of the text and the languages you want to switch to. For example, our text is written mainly in English. We want to comment on a text in Ancient Greek, but in the course of the commentary we want to make references to texts in Arabic and Chinese. So, as a basic preamble, we would have something like this:
 
{{cmd|\setuplanguage}}[en][patterns={en,agr}]
Then, after the {{cmd|\setuplanguage}} command, you have to precise which main language you want to use. Here, this is English, which language is setup by this command :
 
{{cmd|\mainlanguage}}[en]
Or, in order to find a particular font, say GFS Didot :   {{cmd|mtxrun}} --script fonts --list --pattern=gfsdidot --all
If you are sure to have previously installed some police, but you can see it, as a reminder, two commands are useful:
48

edits

Navigation menu