texlive[59996] Master/texmf-dist: cjk-ko (20jul21)

commits+karl at tug.org commits+karl at tug.org
Tue Jul 20 21:43:19 CEST 2021


Revision: 59996
          http://tug.org/svn/texlive?view=revision&revision=59996
Author:   karl
Date:     2021-07-20 21:43:19 +0200 (Tue, 20 Jul 2021)
Log Message:
-----------
cjk-ko (20jul21)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/cjk-ko/ChangeLog
    trunk/Master/texmf-dist/doc/latex/cjk-ko/README
    trunk/Master/texmf-dist/doc/latex/cjk-ko/cjk-ko-doc.pdf
    trunk/Master/texmf-dist/doc/latex/cjk-ko/cjk-ko-doc.tex
    trunk/Master/texmf-dist/tex/latex/cjk-ko/cjkutf8-josa.sty
    trunk/Master/texmf-dist/tex/latex/cjk-ko/cjkutf8-ko.sty
    trunk/Master/texmf-dist/tex/latex/cjk-ko/cjkutf8-nanummjhanja.sty

Modified: trunk/Master/texmf-dist/doc/latex/cjk-ko/ChangeLog
===================================================================
--- trunk/Master/texmf-dist/doc/latex/cjk-ko/ChangeLog	2021-07-19 23:48:20 UTC (rev 59995)
+++ trunk/Master/texmf-dist/doc/latex/cjk-ko/ChangeLog	2021-07-20 19:43:19 UTC (rev 59996)
@@ -1,3 +1,9 @@
+2021-07-20      Dohyun Kim <nomos at ktug org>
+
+	Version 2.1
+
+	* cjkutf8-josa.sty: support josa selection after Hangul syllables
+
 2021-07-17      Dohyun Kim <nomos at ktug org>
 
 	Version 2.0

Modified: trunk/Master/texmf-dist/doc/latex/cjk-ko/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/cjk-ko/README	2021-07-19 23:48:20 UTC (rev 59995)
+++ trunk/Master/texmf-dist/doc/latex/cjk-ko/README	2021-07-20 19:43:19 UTC (rev 59996)
@@ -1,4 +1,4 @@
-CJK-ko package version 2.0 (2021/07/17)
+CJK-ko package version 2.1 (2021/07/20)
 =======================================
 
 This package supports typesetting of modern Korean documents with the help
@@ -148,15 +148,17 @@
 
     \label{fig:aaa} ... \ref{fig:aaa}\을
     \label{fig:aaa} ... \pageref{fig:aaa}\을
-    \cite{hong}\을 ... \bibitem[홍길동\jong]{hong}
+    \cite{hong}\을 ... \bibitem[홍길동]{hong}
+    \cite{king}\을 ... \bibitem[King\jong]{king}
 
 Automatic Josa selection works correctly only after
-\ref \pageref \cite commands and after ascii characters.
+\ref \pageref \cite commands and recognises only the last Ascii
+or Hangul character in the sequence.
 For other cases these commands are available:
 
-    \jung:  keyword is terminated by Jungseong
-    \jong:  keyword is terminated by Jongseong
-    \rieul: keyword is terminated by Jongseong Rieul
+    \jung:  sequence is terminated by Jungseong
+    \jong:  sequence is terminated by Jongseong
+    \rieul: sequence is terminated by Jongseong Rieul
 
 
 Korean counters

Modified: trunk/Master/texmf-dist/doc/latex/cjk-ko/cjk-ko-doc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/cjk-ko/cjk-ko-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/cjk-ko/cjk-ko-doc.tex	2021-07-19 23:48:20 UTC (rev 59995)
+++ trunk/Master/texmf-dist/doc/latex/cjk-ko/cjk-ko-doc.tex	2021-07-20 19:43:19 UTC (rev 59996)
@@ -25,7 +25,7 @@
 \title{\cjkko\ 간단 매뉴얼}
 \author{Dohyun Kim \normalsize $<$\texttt{nomos at ktug org}$>$ \and
   \normalsize $<$\url{http://github.com/dohyunkim/cjk-ko}$>$}
-\date{Version 2.0\quad \today}
+\date{Version 2.1\quad \today}
 \begin{document}
 \maketitle
 
@@ -39,6 +39,8 @@
 
   1.3 버전부터는 나눔글꼴이 아닌 다른 한글 폰트를 패키지 옵션으로 지정해서 쓸
   수 있다.
+
+  2.1 버전부터는 자동조사가 한글 다음에 올 때도 바르게 동작한다.
 \end{abstract}
 
 \tableofcontents
@@ -123,12 +125,12 @@
       \cs{을} \cs{를} \cs{와} \cs{과} \cs{로} \cs{으로} \cs{라}
       \cs{이라}\,를 쓸 수 있다.
     \item \cs{ref} \cs{pageref} \cs{cite} 뒤에서만 정상 동작
-    \item 아스키문자 뒤에서만 정상 동작
-    \item 한글 뒤에는 \cs{jong} \cs{jung} \cs{rieul} 명령을
-      첨가해 바로잡을 수 있다.\par
+    \item 아스키문자와 한글 뒤에서만 정상 동작
+    \item 사용자가 \cs{jong} \cs{jung} \cs{rieul} 명령을
+      첨가해 조사 선택을 바로잡을 수 있다.\par
       \begin{itemize}
-        \item[예:] \cs{cite\{hong\}}\cs{을} \ldots\\
-                   \hskip1.3em\ \cs{bibitem[홍길동}\cs{jong]\{hong\}}
+        \item[예:] \cs{cite\{king\}}\cs{을} \ldots\\
+                   \hskip1.3em\ \cs{bibitem[King}\cs{jong]\{king\}}
       \end{itemize}
   \end{itemize}
 

Modified: trunk/Master/texmf-dist/tex/latex/cjk-ko/cjkutf8-josa.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/cjk-ko/cjkutf8-josa.sty	2021-07-19 23:48:20 UTC (rev 59995)
+++ trunk/Master/texmf-dist/tex/latex/cjk-ko/cjkutf8-josa.sty	2021-07-20 19:43:19 UTC (rev 59996)
@@ -17,7 +17,7 @@
 % Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
 % MA 02110-1301 USA
 
-\ProvidesPackage{cjkutf8-josa}[2021/07/17 v2.0 Automatic Josa selection for cjk-ko]
+\ProvidesPackage{cjkutf8-josa}[2021/07/20 v2.1 Automatic Josa selection for cjk-ko]
 
 \AtBeginDocument{
   \ifx\use at josa\undefined\else
@@ -54,6 +54,27 @@
   }}{}
 }
 
+% support hangul syllables (0xAC00..0xD7A3)
+\def\cjkko at josa@ea{\cjkko at josa@hangul at syllableS{"EA}}
+\def\cjkko at josa@eb{\cjkko at josa@hangul at syllableS{"EB}}
+\def\cjkko at josa@ec{\cjkko at josa@hangul at syllableS{"EC}}
+\def\cjkko at josa@ed{\cjkko at josa@hangul at syllableS{"ED}}
+\def\cjkko at josa@hangul at syllableS#1#2#3{%
+  \expandafter\cjkko at josa@hangul at syllable\expandafter{%
+    \number\numexpr (#1 - 224) * 4096 + (`#2 - 128) * 64 + (`#3 - 128) - "AC00\relax }}
+\def\cjkko at josa@hangul at syllable#1{%
+  \ifnum#1<\z@ \else \ifnum#1>11171 \else
+    \expandafter\cjkko at josa@hangul at syllable@\expandafter{%
+      \number\numexpr #1 - (((#1 + 14) / 28 - 1) * 28)\relax }% we need floor, not round
+  \fi\fi
+}
+\def\cjkko at josa@hangul at syllable@#1{%
+  \ifnum#1=\z@
+    2\else \ifnum#1=8 %
+    1\else
+    0\fi\fi
+}
+
 %%% user commands: \jong \jung \rieul
 \protected\def\jong {\let\josa at str\empty\chardef\@josa\z@ }
 \protected\def\rieul{\let\josa at str\empty\chardef\@josa\@ne}
@@ -62,6 +83,13 @@
 
 \def\makejosa#1#2{%
   \bgroup
+  \begingroup
+    \let^^ea\cjkko at josa@ea
+    \let^^eb\cjkko at josa@eb
+    \let^^ec\cjkko at josa@ec
+    \let^^ed\cjkko at josa@ed
+    \let\protect\noexpand
+    \edef\x{\endgroup \def\noexpand\josa at str{\josa at str}}\x
   \expandafter\make at josa\josa at str\@nil{#1}{#2}%
   \egroup}
 

Modified: trunk/Master/texmf-dist/tex/latex/cjk-ko/cjkutf8-ko.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/cjk-ko/cjkutf8-ko.sty	2021-07-19 23:48:20 UTC (rev 59995)
+++ trunk/Master/texmf-dist/tex/latex/cjk-ko/cjkutf8-ko.sty	2021-07-20 19:43:19 UTC (rev 59996)
@@ -18,7 +18,7 @@
 % MA 02110-1301 USA
 
 \NeedsTeXFormat{LaTeX2e}[2021/06/01]
-\ProvidesPackage{cjkutf8-ko}[2021/07/17 v2.0 Hangul typesetting on CJKutf8]
+\ProvidesPackage{cjkutf8-ko}[2021/07/20 v2.1 Hangul typesetting on CJKutf8]
 
 \begingroup\expandafter\expandafter\expandafter\endgroup
 \expandafter\ifx\csname eTeXversion\endcsname\relax

Modified: trunk/Master/texmf-dist/tex/latex/cjk-ko/cjkutf8-nanummjhanja.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/cjk-ko/cjkutf8-nanummjhanja.sty	2021-07-19 23:48:20 UTC (rev 59995)
+++ trunk/Master/texmf-dist/tex/latex/cjk-ko/cjkutf8-nanummjhanja.sty	2021-07-20 19:43:19 UTC (rev 59996)
@@ -18,7 +18,7 @@
 % MA 02110-1301 USA
 
 \ProvidesPackage{cjkutf8-nanummjhanja}
-  [2021/07/17 v2.0 UHC hanja for Nanum Myeongjo]
+  [2021/07/20 v2.1 UHC hanja for Nanum Myeongjo]
 
 \def\CJKKO at mjdefault{nanummj}
 \def\CJKKO at mjhanjafamily{\def\CJK at family{uhcmj}}



More information about the tex-live-commits mailing list.