texlive[70332] branches/branch2023.final/Master/texmf-dist: cjk-ko
commits+karl at tug.org
commits+karl at tug.org
Fri Mar 1 22:49:29 CET 2024
Revision: 70332
https://tug.org/svn/texlive?view=revision&revision=70332
Author: karl
Date: 2024-03-01 22:49:29 +0100 (Fri, 01 Mar 2024)
Log Message:
-----------
cjk-ko (branch) (1mar24)
Modified Paths:
--------------
branches/branch2023.final/Master/texmf-dist/doc/latex/cjk-ko/ChangeLog
branches/branch2023.final/Master/texmf-dist/doc/latex/cjk-ko/README
branches/branch2023.final/Master/texmf-dist/doc/latex/cjk-ko/cjk-ko-doc.pdf
branches/branch2023.final/Master/texmf-dist/doc/latex/cjk-ko/cjk-ko-doc.tex
branches/branch2023.final/Master/texmf-dist/tex/latex/cjk-ko/cjkutf8-josa.sty
branches/branch2023.final/Master/texmf-dist/tex/latex/cjk-ko/cjkutf8-ko.sty
branches/branch2023.final/Master/texmf-dist/tex/latex/cjk-ko/cjkutf8-nanummjhanja.sty
Modified: branches/branch2023.final/Master/texmf-dist/doc/latex/cjk-ko/ChangeLog
===================================================================
--- branches/branch2023.final/Master/texmf-dist/doc/latex/cjk-ko/ChangeLog 2024-03-01 21:49:19 UTC (rev 70331)
+++ branches/branch2023.final/Master/texmf-dist/doc/latex/cjk-ko/ChangeLog 2024-03-01 21:49:29 UTC (rev 70332)
@@ -1,3 +1,9 @@
+2024-03-01 Dohyun Kim <nomos at ktug org>
+
+ Version 2.5
+
+ * cjkutf8-*.sty: use LaTeX's hook mechanism
+
2023-05-31 Dohyun Kim <nomos at ktug org>
Version 2.4
Modified: branches/branch2023.final/Master/texmf-dist/doc/latex/cjk-ko/README
===================================================================
--- branches/branch2023.final/Master/texmf-dist/doc/latex/cjk-ko/README 2024-03-01 21:49:19 UTC (rev 70331)
+++ branches/branch2023.final/Master/texmf-dist/doc/latex/cjk-ko/README 2024-03-01 21:49:29 UTC (rev 70332)
@@ -1,4 +1,4 @@
-CJK-ko package version 2.4 (2023/05/31)
+CJK-ko package version 2.5 (2024/03/01)
=======================================
This package supports typesetting of modern Korean documents with the help
Modified: branches/branch2023.final/Master/texmf-dist/doc/latex/cjk-ko/cjk-ko-doc.pdf
===================================================================
(Binary files differ)
Modified: branches/branch2023.final/Master/texmf-dist/doc/latex/cjk-ko/cjk-ko-doc.tex
===================================================================
--- branches/branch2023.final/Master/texmf-dist/doc/latex/cjk-ko/cjk-ko-doc.tex 2024-03-01 21:49:19 UTC (rev 70331)
+++ branches/branch2023.final/Master/texmf-dist/doc/latex/cjk-ko/cjk-ko-doc.tex 2024-03-01 21:49:29 UTC (rev 70332)
@@ -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.4\quad \today}
+\date{Version 2.5\quad \today}
\begin{document}
\maketitle
@@ -124,7 +124,7 @@
\item \koTeX 과 마찬가지로 \cs{은} \cs{는} \cs{이} \cs{가}
\cs{을} \cs{를} \cs{와} \cs{과} \cs{로} \cs{으로} \cs{라}
\cs{이라}\,를 쓸 수 있다.
- \item \cs{ref} \cs{pageref} \cs{cite} 뒤에서만 정상 동작
+ \item \cs{ref} \cs{pageref} \cs{nameref} \cs{cite} 뒤에서만 정상 동작
\item 아스키문자와 한글 뒤에서만 정상 동작
\item 사용자가 \cs{jong} \cs{jung} \cs{rieul} 명령을
첨가해 조사 선택을 바로잡을 수 있다.\par
Modified: branches/branch2023.final/Master/texmf-dist/tex/latex/cjk-ko/cjkutf8-josa.sty
===================================================================
--- branches/branch2023.final/Master/texmf-dist/tex/latex/cjk-ko/cjkutf8-josa.sty 2024-03-01 21:49:19 UTC (rev 70331)
+++ branches/branch2023.final/Master/texmf-dist/tex/latex/cjk-ko/cjkutf8-josa.sty 2024-03-01 21:49:29 UTC (rev 70332)
@@ -1,6 +1,6 @@
% cjkutf8-josa.sty
%
-% Copyright (c) 2016-2023 Dohyun Kim <nomos at ktug org>
+% Copyright (c) 2016-2024 Dohyun Kim <nomos at ktug org>
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
@@ -17,17 +17,16 @@
% Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
% MA 02110-1301 USA
-\ProvidesPackage{cjkutf8-josa}[2023/05/31 v2.4 Automatic Josa selection for cjk-ko]
+\ProvidesPackage{cjkutf8-josa}[2024/03/01 v2.5 Automatic Josa selection for cjk-ko]
-\AtBeginDocument{
- \ifx\use at josa\undefined\else
- % redefine \@setref
- \let\CJKKO at orig@setref\@setref
- \def\@setref#1#2#3{\CJKKO at orig@setref{#1}{#2}{#3}%
- \ifx#1\relax\else
- \cjkko at prepare@josa at str{\expandafter#2#1}%
- \fi }
- % redefine \@cite at ofmt
+\ifx\use at josa\undefined\else
+ % redefine \@setref
+ \AddToHookWithArguments{cmd/@setref/after}{%
+ \ifx#1\relax\else
+ \cjkko at prepare@josa at str{\expandafter#2#1}%
+ \fi }
+ % redefine \@cite at ofmt
+ \AtBeginDocument{
\let\CJKKO at orig@cite at ofmt\@cite at ofmt
\def\@cite at ofmt#1{\CJKKO at orig@cite at ofmt{#1}%
\bgroup
@@ -36,10 +35,10 @@
\def\beamer at sort##1##2{}%
\def\hyperlink##1##2{##2}% for beamer: not from kotexutf
\cjkko at prepare@josa at str{#1}%
- \egroup}
- % partially support biblatex's \cite
- \@ifpackageloaded{biblatex}{%
- \renewrobustcmd*{\blx at imc@printfield}[2][]{%
+ \egroup}}
+ % partially support biblatex's \cite
+ \AddToHook{package/biblatex/after}{%
+ \renewrobustcmd*{\blx at imc@printfield}[2][]{%
\blx at imc@iffieldundef{#2}
{\blx at nounit}
{\blx at getformat\blx at theformat{ffd}{#1}{#2}%
@@ -52,18 +51,18 @@
\expandafter\expandafter
\expandafter{\csname abx at field@#2\endcsname}%
\cjkko at prepare@josa at str{\csname abx at field@#2\endcsname}%
- \blx at endunit}}}}{}
- \fi
- \@ifpackageloaded{hyperref}{\g at addto@macro\pdfstringdefPreHook{%
- \let\jong\relax
- \let\rieul\relax
- \let\jung\relax
- \def\^^ea{^^ea}%
- \def\^^eb{^^eb}%
- \def\^^ec{^^ec}%
- }}{}
-}
+ \blx at endunit}}}}
+\fi
+\AddToHook{package/hyperref/after}{\g at addto@macro\pdfstringdefPreHook{%
+ \let\jong\relax
+ \let\rieul\relax
+ \let\jung\relax
+ \def\^^ea{^^ea}%
+ \def\^^eb{^^eb}%
+ \def\^^ec{^^ec}%
+}}
+
% 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}}
@@ -99,9 +98,9 @@
}
%%% 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}
-\protected\def\jung {\let\josa at str\empty\chardef\@josa\tw@}
+\protected\def\jong {\global\let\josa at str\empty\global\chardef\@josa\z@ }
+\protected\def\rieul{\global\let\josa at str\empty\global\chardef\@josa\@ne}
+\protected\def\jung {\global\let\josa at str\empty\global\chardef\@josa\tw@}
\jung
\def\cjkko at josa@str at end{cjkko at josa@str at end}
Modified: branches/branch2023.final/Master/texmf-dist/tex/latex/cjk-ko/cjkutf8-ko.sty
===================================================================
--- branches/branch2023.final/Master/texmf-dist/tex/latex/cjk-ko/cjkutf8-ko.sty 2024-03-01 21:49:19 UTC (rev 70331)
+++ branches/branch2023.final/Master/texmf-dist/tex/latex/cjk-ko/cjkutf8-ko.sty 2024-03-01 21:49:29 UTC (rev 70332)
@@ -1,6 +1,6 @@
% cjkutf8-ko.sty
%
-% Copyright (c) 2016-2023 Dohyun Kim <nomos at ktug org>
+% Copyright (c) 2016-2024 Dohyun Kim <nomos at ktug org>
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
@@ -17,8 +17,8 @@
% Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
% MA 02110-1301 USA
-\NeedsTeXFormat{LaTeX2e}[2022/06/01]
-\ProvidesPackage{cjkutf8-ko}[2023/05/31 v2.4 Hangul typesetting on CJKutf8]
+\NeedsTeXFormat{LaTeX2e}[2023/06/01]
+\ProvidesPackage{cjkutf8-ko}[2024/03/01 v2.5 Hangul typesetting on CJKutf8]
\newif\if at hangul
\newif\if at hanja
Modified: branches/branch2023.final/Master/texmf-dist/tex/latex/cjk-ko/cjkutf8-nanummjhanja.sty
===================================================================
--- branches/branch2023.final/Master/texmf-dist/tex/latex/cjk-ko/cjkutf8-nanummjhanja.sty 2024-03-01 21:49:19 UTC (rev 70331)
+++ branches/branch2023.final/Master/texmf-dist/tex/latex/cjk-ko/cjkutf8-nanummjhanja.sty 2024-03-01 21:49:29 UTC (rev 70332)
@@ -1,6 +1,6 @@
% cjkutf8-nanummjhanja.sty
%
-% Copyright (c) 2016-2023 Dohyun Kim <nomos at ktug org>
+% Copyright (c) 2016-2024 Dohyun Kim <nomos at ktug org>
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
@@ -18,15 +18,13 @@
% MA 02110-1301 USA
\ProvidesPackage{cjkutf8-nanummjhanja}
- [2023/05/31 v2.4 UHC hanja for Nanum Myeongjo]
+ [2024/03/01 v2.5 UHC hanja for Nanum Myeongjo]
\def\CJKKO at mjdefault{nanummj}
\def\CJKKO at mjhanjafamily{\def\CJK at family{uhcmj}}
% redefine CJK at numbToHex
-\let\CJKKO at orig@numbToHex\CJK at numbToHex
-\def\CJK at numbToHex#1#2{%
- \CJKKO at orig@numbToHex{#1}{#2}%
+\AddToHookWithArguments{cmd/CJK at numbToHex/after}{%
\ifx\CJK at family\CJKKO at mjdefault
\expandafter\CJKKO at checkhanjaplane#1\fi}
More information about the tex-live-commits
mailing list.