Hi Werner,

Here is a patch... I worked out that all the Thai strings in the babel file  
should be in their their cjk-encoded forms, since it is inserted after 
cjk-encode. So here is a patch with a corresponding changelog.

That probably means nobody had tried to use \today with thaicjk ever? :-)

This change make it somewhat difficult to edit the file afterwards, and keeping 
it in sync with thailatex - but since this is git, I suppose it is not 
unthinkable to do the revert+edit+encode+commit+rebase-collapse sequence when 
one needs to edit it? That unfortunately means anybody who needs to edit it 
needs to have the git history.

BTW, is it possible to programmatically revert cjk-encode ? I don't see the 
reverse in cjk-enc.el.

Hin-Tak.


--- On Mon, 2/1/12, Hin-Tak Leung <[email protected]> wrote:

> Hi Werner,
> 
> Sorry I encountered another bug - :-). It seems that
> thaicjk babel overrides \today without CJK being able to
> typeset it - since it is never emitted in TIS620 to be
> processed by cjk-enc.el ?
> 
> So *after* cjk-enc.el, \today emits some stuff, which is 2
> something 2533 . You can check this just by putting \today
> in your thai.tex anywhere in the body.
> 
> ThaiLatex overrides \today also, but it work correctly
> under ThaiLatex . 
> 
> Hin-Tak
>
From b5377ffa1a11c7a66ab68c803011c4c93f70de98 Mon Sep 17 00:00:00 2001
From: Hin-Tak Leung <[email protected]>
Date: Wed, 4 Jan 2012 12:55:28 +0000
Subject: [PATCH] [thaicjk.ldf] Replace Thai strings with their cjk-encoded
 forms.

\today, \chaptername, \month in thaicjk.ldf should
be in their cjk-encoded form, since their insertion
is after the cjk-enc processing of the user's document.
---
 ChangeLog                 |    7 +++++
 texinput/thai/thaicjk.ldf |   66 ++++++++++++++++++++++----------------------
 2 files changed, 40 insertions(+), 33 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 6edace8..15bb883 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2012-01-04 Hin-Tak Leung <[email protected]>
+	[thaicjk.ldf] Replace Thai strings with their cjk-encoded forms.
+
+	\today, \chaptername, \month in thaicjk.ldf should
+	be in their cjk-encoded form, since their insertion
+	is after the cjk-enc processing of the user's document.
+
 2011-12-30 Hin-Tak Leung <[email protected]>
 	[cjk-enc.el] Correct minor issue with last commit.
 
diff --git a/texinput/thai/thaicjk.ldf b/texinput/thai/thaicjk.ldf
index b5262b5..1c46e32 100644
--- a/texinput/thai/thaicjk.ldf
+++ b/texinput/thai/thaicjk.ldf
@@ -20,47 +20,47 @@
 \fi
 
 \addto\captionsthaicjk{%
-  \def\prefacename{º·¹Ó}%
-  \def\refname{˹ѧÊ×ÍÍéÒ§ÍÔ§}%
-  \def\abstractname{º·¤Ñ´ÂèÍ}%
-  \def\bibname{ºÃóҹءÃÁ}%
-  \def\chaptername{º··Õè}%
-  \def\appendixname{ÀÒ¤¼¹Ç¡}%
-  \def\contentsname{ÊÒúѭ}%
-  \def\listfigurename{ÊÒúѭÃÙ»}%
-  \def\listtablename{ÊÒúѭµÒÃÒ§}%
-  \def\indexname{´Ãê¹Õ}%
-  \def\figurename{ÃÙ»·Õè}%
-  \def\tablename{µÒÃÒ§·Õè}%
-  \def\partname{ÀÒ¤}%
-  \def\enclname{ÊÔè§·ÕèṺÁÒ´éÇÂ}%
-  \def\ccname{ÊÓà¹Ò¶Ö§}%
-  \def\headtoname{àÃÕ¹}%
-  \def\pagename{˹éÒ}%
-  \def\seename{´Ù}%
-  \def\alsoname{´Ùà¾ÔèÁàµÔÁ}%
-  \def\proofname{¾ÔÊÙ¨¹ì}%
+  \def\prefacename{57621866218361621856221158}%
+  \def\refname{576220362185602096216762202602156220561622056023362210621676162205602126216758}%
+  \def\abstractname{576218662183616216460209621806162194602326220558}%
+  \def\bibname{576218662195621956217962210621856021662161621956219358}%
+  \def\chaptername{5762186621836162183602136023258}%
+  \def\appendixname{57621926221062164616218862185621996216158}%
+  \def\contentsname{5762202622106219562186602096217358}%
+  \def\listfigurename{576220262210621956218660209621736162195602176218758}%
+  \def\listtablename{576220262210621956218660209621736162181622106162195622106216758}%
+  \def\indexname{5762180621956219562170621856021358}%
+  \def\figurename{576219560217621876162183602136023258}%
+  \def\tablename{576218162210616219562210621676162183602136023258}%
+  \def\partname{5762192622106216458}%
+  \def\enclname{57622026021260232621676162183602136023261622256218562186616219362210616218060233621996219458}%
+  \def\ccname{5762202622116222462185622106162182602146216758}%
+  \def\headtoname{57622246219560213621946218558}%
+  \def\pagename{576220362185602336221058}%
+  \def\seename{57621806021758}%
+  \def\alsoname{576218060217616222462190602126023262193616222462181602126219358}%
+  \def\proofname{576219060212622026021762168621856023658}%
   }
 
 \def\th@month{%
   \ifcase\month\or
-    Á¡ÃÒ¤Á\or
-    ¡ØÁÀҾѹ¸ì\or
-    ÁÕ¹Ò¤Á\or
-    àÁÉÒ¹\or
-    ¾ÄÉÀÒ¤Á\or
-    ÁԶعÒ¹\or
-    ¡Ã¡®Ò¤Á\or
-    ÊÔ§ËÒ¤Á\or
-    ¡Ñ¹ÂÒ¹\or
-    µØÅÒ¤Á\or
-    ¾ÄȨԡÒ¹\or
-    ¸Ñ¹ÇÒ¤Á\fi}
+    5762193621616219562210621646219358\or
+    57621616021662193621926221061621906020962185621846023658\or
+    5762193602136218562210621646219358\or
+    5762224621936220162210621946218558\or
+    576219062196622016219262210621646219358\or
+    57621936021262182602166218562210621946218558\or
+    576216162195621616217462210621646219358\or
+    576220260212621676220362210621646219358\or
+    576216160209621856219462210621946218558\or
+    5762181602166219762210621646219358\or
+    5762190621966220062168602126216162210621946218558\or
+    576218460209621856219962210621646219358\fi}
 \newcount\th@year
 \th@year=\year
 \advance\th@year by 543
 \def\datethaicjk{%
-  \def\today{\number\day \space \th@month\space ¾.È.~\number\th@year}}
+  \def\today{\number\day \space \th@month\space 576219058.576220058.~\number\th@year}}
 
 \addto\extrasthaicjk{\bbl@frenchspacing}
 \addto\noextrasthaicjk{\bbl@nonfrenchspacing}
-- 
1.7.7.4

_______________________________________________
Cjk maillist  -  [email protected]
https://lists.ffii.org/mailman/listinfo/cjk

Reply via email to