ai2472206...@yeah.net schrieb am 24.05.2024 um 14:05:
Hello, everyone.

As the title describes, I want to define a new language: Chinese Traditional.
Based on what I could find on the Internet, I made these settings.
But I couldn't get the results I wanted.

%%%start example
\usetypescriptfile[osx]
\setupbodyfont   [stfangsong]
\unprotect
\installlanguage[cnt] [default=cn,patterns=cn,factor=yes]
\setuplanguage  [cnt] [spacing=packed,default=cn,patterns=cn,factor=yes]
\setuplabeltext [cnt] [appendix={附錄}]
\protect
\mainlanguage[cnt]
\currentmainlanguage
\labeltext{appendix}
%%% stopexample

I think I'm going to get the two kanji [附錄]. But the truth is, he has nothing.
But when I converted to Chinese Simplified, he magically appeared.

%%%start example
\usetypescriptfile[osx]
\setupbodyfont   [stfangsong]
\unprotect
\setuplabeltext [cn] [appendix={附錄}] %%% here switch to Chinese-Simplified
\protect
\currentmainlanguage
\labeltext{appendix}
%%% stopexample

So, what should I do to get it. Of course, my original assumption was that
when I changed the language, these labels, fonts, indentations, line spacing, 
etc.,
would change. But for now, I'm stuck at defining a new language.

  If anyone can give advice, appreciate it

1. It is better to add new languages to Context itself and not just in your document.

2. Chinese doesn't use hyphenation pattern but has rules where to break which is enabled with the \setscript command.

3. We should use agree upon a name which is used for traditional and simplified chinese (at the moment we have only chinese without distinction). Is it even enough to just separate between both or do we need separate setting china, singapore, taiwan, hong kong and macau?

Wolfgang

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to