* Language specific commands
@ 2001-09-12 0:15 Olya Briginets
2001-09-12 6:38 ` Hans Hagen
0 siblings, 1 reply; 2+ messages in thread
From: Olya Briginets @ 2001-09-12 0:15 UTC (permalink / raw)
Hello ConTeXt gurus,
Is there a way to set some assignments in particular language only?
I have the following problem: in ukrainian, apostrophe (') is a letter and
should have lccode 39 to get words with it hyphenated. So I use
\startlanguagespecifics[ua]
\lccode`'=`'
\stoplanguagespecifics
But then, when I switch to another language, \lccode`' doesn't restore to 0,
which can lead to improper hyphenation, as ' is used in quotes.
Should the definitions which are "language specific" be forgotten when switching
to another language? Or maybe there is (or should be) something like
\everylanguage hook: \addtoeverylanguage{\lccode`'=0}?
Olya
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Language specific commands
2001-09-12 0:15 Language specific commands Olya Briginets
@ 2001-09-12 6:38 ` Hans Hagen
0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2001-09-12 6:38 UTC (permalink / raw)
Cc: ConTeXt mailing list
At 03:15 AM 9/12/2001 +0300, Olya Briginets wrote:
>Hello ConTeXt gurus,
>
>Is there a way to set some assignments in particular language only?
>
>I have the following problem: in ukrainian, apostrophe (') is a letter and
>should have lccode 39 to get words with it hyphenated. So I use
> \startlanguagespecifics[ua]
> \lccode`'=`'
> \stoplanguagespecifics
>But then, when I switch to another language, \lccode`' doesn't restore to 0,
>which can lead to improper hyphenation, as ' is used in quotes.
>
>Should the definitions which are "language specific" be forgotten when
>switching
>to another language? Or maybe there is (or should be) something like
>\everylanguage hook: \addtoeverylanguage{\lccode`'=0}?
in lang-ger you can see examples of using language specific sections in
encoding definitions.
concerning lccodes: this is tricky business since they *are* stored with
the language, so they should be set when reading in the hyphenations
Hans
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | pragma@wxs.nl
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-09-12 6:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-12 0:15 Language specific commands Olya Briginets
2001-09-12 6:38 ` Hans Hagen
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).