ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mojca Miklavec <mojca.miklavec.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: new language and hyphenation
Date: Wed, 20 Jan 2010 18:12:49 +0100	[thread overview]
Message-ID: <6faad9f01001200912n66278587n38de75ce9c7192f3@mail.gmail.com> (raw)
In-Reply-To: <4B572E15.1000001@wxs.nl>

On Wed, Jan 20, 2010 at 17:23, Hans Hagen <pragma@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	other threads:[~2010-01-20 17:12 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-20  8:07 Marius
2010-01-20 16:10 ` Mojca Miklavec
2010-01-20 16:23   ` Hans Hagen
2010-01-20 17:12     ` Mojca Miklavec [this message]
2010-01-20 21:24   ` Marius
2010-01-20 22:53     ` Mojca Miklavec
2010-01-21  5:33       ` Wolfgang Schuster
2010-01-22 14:09         ` Marius
2010-01-22 15:45           ` Wolfgang Schuster
2010-01-22 18:02             ` Mojca Miklavec
2010-01-23  9:51             ` Marius
2010-01-21  9:18       ` Marius
2010-01-22 11:16         ` Marius
2010-01-22 12:11           ` Hans Hagen
2010-01-22 13:08             ` Mojca Miklavec
2010-01-22 13:58               ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6faad9f01001200912n66278587n38de75ce9c7192f3@mail.gmail.com \
    --to=mojca.miklavec.lists@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).