Hi Muyik ! The first thing to check, even if it seems stupid, is to make sure that the Traditional Chinese fonts are installed in the /context/context-mf/fonts/ etc. folder and test this installation with the following command: mtxrun --script fonts --list --pattern="Chinese Font" --all (indicate actual font name) Don't forget the following commands to purge the font cache and restore the database: 1. mtxrun --script cache --erase && mtxrun --generate 2. mtxrun --script fonts --reload Then : 3. mtxrun --script fonts --list --pattern="Chinese Font" --all Normally, the system should support the desired font after these checks. For my part, I have no problem with Traditional Chinese or Simplified Chinese fonts, but I haven't checked with OSX ... I hope these few suggestions will help. JP Le 24/05/2024 à 14:05, ai2472206007@yeah.net a écrit :
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
Muyik ___________________________________________________________________________________ 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 ___________________________________________________________________________________