On Wed, Jan 20, 2010 at 17:23, Hans Hagen <pra...@wxs.nl> wrote:
> On 20-1-2010 17:10, Mojca Miklavec wrote:
>>
>> On Wed, Jan 20, 2010 at 09:07, Marius wrote:
>>>
>>> The hyphenation patterns for lithuanian language are missing. So, how
>>> does one add a new language and hyphenation patterns for ConTeXt?
>>
>> In scripts/context/lua/mtx-patterns.lua Hans needs to add
>>
>>     { "la",  "hyph-la.tex",            "latin" },
>> [after this line]
>>     { "lt",  "hyph-lt.tex",            "lithuanian" },
>>     { "lv",  "hyph-lv.tex",            "latvian" },
>>
>> and regenerate the patterns (and double-checking that nothing broke in
>> the meantime). [You can also take hyph-lt.tex and copy it to
>> tex/context/patterns/lang-lt.pat as a temporary solution.]
>
> ok, generated, will be next beta, untested and unchecked of course

Thanks a lot.

>> Apart from that you need to submit translation for your language (see
>> lang-ger.tex and lang-bal.tex), or at least that would be very nice.
>> Some settings there are necessary if you want to enable the extra
>> patterns. There are some more things to be done, but you may start by
>> translating the strings and filling other holes in lang-bal.tex.
>
> patterns indeed won't work until we have an entry in lang0-.tex for
> lithuanian

But this needs to be done by Marius (or someone else). Before anyone
asks: l7x that needs to be used by Lithuanian in MKII is not supported
in ConTeXt yet, so maybe the sensible setting in lang-bal.tex would
be:

\installlanguage
  [\s!lt]
  [...
   \s!mapping=, % the correct setting is l7x for both
   \s!encoding=]

if that means that the patterns will be loaded in xetex/luatex and not
in pdftex at all. Alternatively we could add support. Latin Modern and
TeX Gyre both support it (added in 2007 to LM and fixed in 2009 for
TG; I thought that l7x was missing in most fonts).

Mojca
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to