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
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 Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------