Basically, the situation then is, the language is called ua but the patterns 
are called uk?

> On 5 Aug 2023, at 15:23, Gerben Wierda <gerben.wie...@rna.nl> wrote:
> 
> 
> 
>> On 19 Jul 2023, at 09:17, Hans Hagen via ntg-context <ntg-context@ntg.nl> 
>> wrote:
>> 
>> On 7/19/2023 8:58 AM, Gerben Wierda wrote:
>>>> On 19 Jul 2023, at 08:52, Hans Hagen <j.ha...@xs4all.nl> wrote:
>>>> 
>>>> so best not mess with setting up languages that already have been set up.
>>> I had no idea I was messing. What am I doing wrong, then. Because in my 
>>> actual document with ua language setting it is not hyphenated. This was 
>>> just a minimal example
>> 
>> do you get something similar?
>> 
>>> mtxrun lang-uk.lua
>> c:/data/develop/tex-context/tex/texmf-context/tex/context/patterns/mkiv/lang-uk.lua
>> 
>> uk is the offical tag but for historic reasone we use ua as language; given 
>> the uk's exit and ua's entry in the european union we could now consider 
>> adapting it; and i'd wonder is anyone would notice - or bother - is we'd use 
>> ukrain hyphenation for russian, which could save some bytes in the 
>> distribution
> 
> Yes, that solved the hyphenation issue. But  now I am having trouble with 
> \phrasetext. When using uk as language code, \phrasetext does not work.
> 
> So, use 'ua', \phrasetext works, but hyphenation does not
> And use 'uk', hyphenation works, but \phrasetext does not
> 
> %==========================================
> \definefallbackfamily
>  [archimate]
>  [ss]
>  [Helvetica]
>  [preset=range:cyrillic,
>   tf=style:light,
>   it=style:lightoblique,
>   bf=style:regular,
>   bi=style:oblique,
>   force=yes,
>   rscale=1.0]
> \definefontfamily [archimate] [ss] [Helvetica]
> \setupbodyfont[archimate]
> 
> \definelabelclass[phrase]
> \setupphrasetext[en][sheettitle={ArchiMate® 3.2 Metamodel -- Core}]
> \setupphrasetext[ru][sheettitle={Ядро метамодели ArchiMate® 3.2}]
> \setupphrasetext[uk][sheettitle={Основні елементи метамоделі ArchiMate® 3.2}]
> \setupphrasetext[ua][sheettitle={Основні елементи метамоделі ArchiMate® 3.2}]
> 
> \starttext
> \setuplanguage[uk][patterns={uk}]\mainlanguage[uk]
> \phrasetext{sheettitle}
> 
> \setuplanguage[ru][patterns={ru}]\mainlanguage[ru]
> \phrasetext{sheettitle}
> 
> \setuplanguage[uk][patterns={uk}]\mainlanguage[uk]
> \phrasetext{sheettitle}
> 
> \setuplanguage[ua][patterns={ua}]\mainlanguage[ua]
> \phrasetext{sheettitle}
> \stoptext
> %==========================================
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : https://contextgarden.net
> ___________________________________________________________________________________

Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>, Mastodon 
<https://newsie.social/@gctwnl>)
R&A IT Strategy <https://ea.rna.nl/> (main site)
Book: Chess and the Art of Enterprise Architecture <https://ea.rna.nl/the-book/>
Book: Mastering ArchiMate <https://ea.rna.nl/the-book-edition-iii/>

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

Reply via email to