![](https://secure.gravatar.com/avatar/9c54554cf31b1a1894f2a3420f0ebbc1.jpg?s=120&d=mm&r=g)
Hi all, recently, in the ConTeXt list someone asked how to install Esperanto. I wanted to advise him, so I tried to do it on my computer and I came across the following problem: According to the wiki documentation (https://wiki.contextgarden.net/Command/setuplanguage), I should use "pattern=file" but neither file with full pathname, nor without works in the testing code below (TL2020). The only one way how to setup it is to use a language code. Did I anything wrong, or is it only misdocumented on wiki? Or a feature not implemented yet? Best wishes, Tomáš \starttext\hsize1dd \installlanguage[eo][space=packed,state=start] %\setuplanguage[eo][patterns=/usr/local/texlive/2020/texmf-dist/tex/context/patterns/mkiv/lang-cs.lua] % NO %\setuplanguage[eo][patterns=lang-cs.lua] % NO %\setuplanguage[eo][patterns=lang-cs] % NO \setuplanguage[eo][patterns=cs] % YES \mainlanguage[eo] \input capek-cz \stoptext
![](https://secure.gravatar.com/avatar/d4db251f6da966f841fc5b1a9822eb56.jpg?s=120&d=mm&r=g)
Hi,
On 3 Nov 2020, at 18:21, Tomas Hala
wrote: Hi all,
recently, in the ConTeXt list someone asked how to install Esperanto.
I wanted to advise him, so I tried to do it on my computer and I came across the following problem:
According to the wiki documentation (https://wiki.contextgarden.net/Command/setuplanguage), I should use "pattern=file" but neither file with full pathname, nor without works in the testing code below (TL2020). The only one way how to setup it is to use a language code.
Did I anything wrong, or is it only misdocumented on wiki? Or a feature not implemented yet?
Looking at the ConTeXt source, I guess “file” is misleading here. It seems context always searches for lang-XX.lua, where the XX part is what you specify as value to the “patterns” argument. I’ll make a note in the wiki page. Taco
![](https://secure.gravatar.com/avatar/9c54554cf31b1a1894f2a3420f0ebbc1.jpg?s=120&d=mm&r=g)
Thank you for this confirmation.
Should not be better to replace on the wiki "file" by "language code" in this case?
Tomáš
Wed, Nov 04, 2020 ve 09:19:36AM +0100 Taco Hoekwater napsal(a):
# Hi,
#
# > On 3 Nov 2020, at 18:21, Tomas Hala
![](https://secure.gravatar.com/avatar/74d41c3215dcdd377343cdc47311757c.jpg?s=120&d=mm&r=g)
Tomas Hala schrieb am 04.11.2020 um 21:14:
Thank you for this confirmation.
Should not be better to replace on the wiki "file" by "language code" in this case?
No because you don't have to use a language code for the name of the pattern file. Wolfgang
![](https://secure.gravatar.com/avatar/9c54554cf31b1a1894f2a3420f0ebbc1.jpg?s=120&d=mm&r=g)
And what else can I use instead of language codes? It does not work with filenames and synonyms of language names are not permitted, too. Tomáš Wed, Nov 04, 2020 ve 09:19:41PM +0100 Wolfgang Schuster napsal(a): # Tomas Hala schrieb am 04.11.2020 um 21:14: # >Thank you for this confirmation. # > # >Should not be better to replace on the wiki "file" by "language code" in this case? # # No because you don't have to use a language code for the name of the # pattern file. # # Wolfgang
![](https://secure.gravatar.com/avatar/74d41c3215dcdd377343cdc47311757c.jpg?s=120&d=mm&r=g)
Tomas Hala schrieb am 04.11.2020 um 22:28:
And what else can I use instead of language codes?
It does not work with filenames and synonyms of language names are not permitted, too.
The source for the wiki pages are the command definitions but there is only a limited number of arguments for each key. In a case like this a decision has to be made which argument is used for the pattern key and since the key loads a file with contains the argument as part of its name the entry is "patterns=FILE". The same is the case for \usetypescriptfile and \usesymbol which also use FILE for the argument. The reason why one uses "en", "agr" etc. as arguments for the pattern key is that the files use the language codes as part of the file name. Wolfgang
![](https://secure.gravatar.com/avatar/9c54554cf31b1a1894f2a3420f0ebbc1.jpg?s=120&d=mm&r=g)
I have not hear about these limitations. Now I guess I get it. Thank you for the explanation. I wanted to read the documentation for commands \usetypescriptfile and \usesymbol but it is not available via "Search Wiki" field in our garden. Is it all right? Tomáš Wed, Nov 04, 2020 ve 10:36:21PM +0100 Wolfgang Schuster napsal(a): # Tomas Hala schrieb am 04.11.2020 um 22:28: # >And what else can I use instead of language codes? # > # >It does not work with filenames and synonyms of language names are not permitted, too. # # The source for the wiki pages are the command definitions but there # is only a limited number of arguments for each key. In a case like # this a decision has to be made which argument is used for the # pattern key and since the key loads a file with contains the # argument as part of its name the entry is "patterns=FILE". # # The same is the case for \usetypescriptfile and \usesymbol which # also use FILE for the argument. # # The reason why one uses "en", "agr" etc. as arguments for the # pattern key is that the files use the language codes as part of the # file name. # # Wolfgang
participants (3)
-
Taco Hoekwater
-
Tomas Hala
-
Wolfgang Schuster