[NTG-context] Chinese labels in lang-txt.lua

2023-04-02 Thread 李延瑞
Hi Hans,

There are some inaccurate labels for Chinese in  lang-txt.lua. Could you
please apply the following patches to it?

-
--- lang-txt.lua 2023-04-03 11:10:00.267720005 +0800
+++ new-lang-txt.lua 2023-04-03 11:03:24.645426080 +0800
@@ -1192,7 +1192,7 @@
 ["ar"]="ملحق ",
 ["be"]="Апендыцыт",
 ["ca"]="Apèndix ",
-["cn"]="附录",
+["cn"]="附录 ",
 ["cs"]="Příloha ",
 ["da"]="Bilag ",
 ["de"]="Anhang ",
@@ -1473,7 +1473,7 @@
 ["be"]="Глава ",
 ["bg"]="Eпизод ",
 ["ca"]="Capítol ",
-["cn"]={ "第", "章" },
+["cn"]={ "第 ", " 章" },
 ["cs"]="Kapitola ",
 ["da"]="",
 ["de"]="Kapitel ",
@@ -1774,7 +1774,7 @@
 ["be"]="Малюнак",
 ["bg"]="Фигура",
 ["ca"]="Figura ",
-["cn"]="图",
+["cn"]="图 ",
 ["cs"]="Obrázek ",
 ["da"]="Figur ",
 ["de"]="Abbildung ",
@@ -1925,7 +1925,7 @@
 ["be"]="Графіка ",
 ["bg"]="Графичен ",
 ["ca"]="Gràfica ",
-["cn"]="插图",
+["cn"]="插图 ",
 ["cs"]="Graf ",
 ["da"]="Grafik ",
 ["de"]="Grafik ",
@@ -2058,7 +2058,7 @@
 ["be"]="Інтэрмецца ",
 ["bg"]="Интермецо ",
 ["ca"]="Intermedi ",
-["cn"]="퉣",
+["cn"]="间奏 ",
 ["cs"]="Intermezzo ",
 ["da"]="Intermezzo ",
 ["de"]="Intermezzo ",
@@ -2395,7 +2395,7 @@
 ["be"]="радок ",
 ["bg"]="ред ",
 ["ca"]="línia ",
-["cn"]="行",
+["cn"]="行 ",
 ["cs"]="řádek ",
 ["da"]="linie ",
 ["de"]="Zeile ",
@@ -2441,7 +2441,7 @@
 ["be"]="радкi ",
 ["bg"]="редове ",
 ["ca"]="línies ",
-["cn"]="行",
+["cn"]="行 ",
 ["cs"]="řádky ",
 ["da"]="linier ",
 ["de"]="Zeilen ",
@@ -3002,7 +3002,7 @@
 ["be"]="Частка ",
 ["bg"]="Частка ",
 ["ca"]="Part ",
-["cn"]={ "第", "部分" },
+["cn"]={ "第 ", " 部分" },
 ["cs"]="Část ",
 ["da"]="Del ",
 ["de"]="Teil ",
@@ -3130,7 +3130,7 @@
 ["ar"]="فصل ",
 ["bg"]="Cекция ",
 ["ca"]="Secció ",
-["cn"]={ "第", "节" },
+["cn"]={ "第 ", " 节" },
 ["cs"]="Sekce ",
 ["da"]="",
 ["de"]="Abschnitt ",
@@ -3513,7 +3513,7 @@
 ["be"]="Табліца ",
 ["bg"]="Таблица ",
 ["ca"]="Taula ",
-["cn"]="表",
+["cn"]="表 ",
 ["cs"]="Tabulka ",
 ["da"]="Tabel ",
 ["de"]="Tabelle ",
@@ -3863,7 +3863,7 @@
 ["ar"]="الأشكال",
 ["be"]="Спіс ілюстрацый",
 ["ca"]="Figures",
-["cn"]="图形",
+["cn"]="图",
 ["cs"]="Seznam obrázků",
 ["da"]="Figurer",
 ["de"]="Abbildungen",
@@ -4046,7 +4046,7 @@
 ["be"]="Лагатыпы",
 ["bg"]="Логотипи",
 ["ca"]="Logotips",
-["cn"]="徽贬",
+["cn"]="徽标",
 ["cs"]="Loga",
 ["da"]="Logoer",
 ["de"]="Logos",
---
-- 
Best regards,

Li Yanrui
___
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
___


Re: [NTG-context] chinese labels

2006-03-17 Thread Hans Hagen
Lutz Haseloff wrote:
 Hi Hans, Hi all,

 I would like to typeset chinese labels with metapost.
 My code is:

 -
 \starttext
 \startMPpage
 verbatimtex
 \enableregime[utf]
 \usemodule[chi-00]
 etex;
 label(btex ? etex,(0,0));
 \stopMPpage
 \stoptext
   

try:

\starttext 

\startMPenvironment
  \enableregime[utf]
  \usemodule[chi-00]
\stopMPenvironment
\startMPpage
label(btex ÆÇæà etex,(0,0));
\stopMPpage

\stoptext

instead. 

Hans 

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] chinese labels

2006-03-17 Thread Lutz Haseloff
 try:
 
 \starttext 
 
 \startMPenvironment
   \enableregime[utf]
   \usemodule[chi-00]
 \stopMPenvironment
 \startMPpage
 label(btex ÆÇæà etex,(0,0));
 \stopMPpage
 
 \stoptext
 
 instead. 
 
 Hans 

This works fine, thanks

Greetings Lutz


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] chinese labels

2006-03-16 Thread Lutz Haseloff
Hi Hans, Hi all,

I would like to typeset chinese labels with metapost.
My code is:

-
\starttext
\startMPpage
verbatimtex
\enableregime[utf]
\usemodule[chi-00]
etex;
label(btex ? etex,(0,0));
\stopMPpage
\stoptext
-

It results in the errormessage:

! Argument of \dodoubletestempty has an extra }.
inserted text
\par
to be read again
   }
\doifnextcharelse ...token =#1\def \!!stringa {#2}
  \def \!!stringb
{#3}\futur...
argument ...mtex \enableregime [utf] \usemodule
  [chi-00] etex; label(btex
...

\writecheckedMPgraphic ...icfalse \edef \ascii {#1
  }\convertcommand \ascii
\t...

\startMPgraphic ...hic \writecheckedMPgraphic {#1}
  \stopwritingMPgraphic
...
l.8 \stopMPpage

?

Thanks for any help

Lutz


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context