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.] 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. The main question is: do you need them only for MKIV/XeTeX or do you also want them for MKII? In the latter case you'll have quite some problems with encoding (that is: missing support for it in fonts). In MKIV & XeTeX it should be no problem. Mojca