ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Jean-Pierre Delange <adeimantos@free.fr>
To: ntg-context@ntg.nl
Subject: [NTG-context] Re: How to Define a New Language
Date: Fri, 24 May 2024 14:27:06 +0200	[thread overview]
Message-ID: <2b127e77-818b-4184-b074-aa69a379c1ae@free.fr> (raw)
In-Reply-To: <171655232585.1997.4889148944499044394@cgl.ntg.nl>

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
> ___________________________________________________________________________________
___________________________________________________________________________________
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
___________________________________________________________________________________

  parent reply	other threads:[~2024-05-24 12:30 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-24 12:05 [NTG-context] " ai2472206007
2024-05-24 12:25 ` [NTG-context] " ai2472206007
2024-05-24 12:27 ` Jean-Pierre Delange [this message]
2024-05-24 14:34   ` ai2472206007
2024-05-24 13:39 ` Wolfgang Schuster
2024-05-24 14:39   ` ai2472206007
2024-05-24 15:22     ` Wolfgang Schuster
2024-05-27 14:43       ` ai2472206007

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=2b127e77-818b-4184-b074-aa69a379c1ae@free.fr \
    --to=adeimantos@free.fr \
    --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).