summaryrefslogtreecommitdiff
path: root/language
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2024-03-02 03:04:21 +0000
committerNorbert Preining <norbert@preining.info>2024-03-02 03:04:21 +0000
commitb7323fe884f378851ee661babaa5bd644271f348 (patch)
tree8891732393826e5c5893d00fa39cf9a5eb0a3a90 /language
parent19a826b6e3a0d2ea6bbd1bf733a8e590463275ed (diff)
CTAN sync 202403020304
Diffstat (limited to 'language')
-rw-r--r--language/korean/cjk-ko/ChangeLog6
-rw-r--r--language/korean/cjk-ko/README2
-rw-r--r--language/korean/cjk-ko/cjk-ko-doc.pdfbin174357 -> 174340 bytes
-rw-r--r--language/korean/cjk-ko/cjk-ko-doc.tex4
-rw-r--r--language/korean/cjk-ko/cjkutf8-josa.sty57
-rw-r--r--language/korean/cjk-ko/cjkutf8-ko.sty6
-rw-r--r--language/korean/cjk-ko/cjkutf8-nanummjhanja.sty8
7 files changed, 43 insertions, 40 deletions
diff --git a/language/korean/cjk-ko/ChangeLog b/language/korean/cjk-ko/ChangeLog
index 108a648a87..8bbc4f13f6 100644
--- a/language/korean/cjk-ko/ChangeLog
+++ b/language/korean/cjk-ko/ChangeLog
@@ -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
diff --git a/language/korean/cjk-ko/README b/language/korean/cjk-ko/README
index c44acf7170..e74d109e65 100644
--- a/language/korean/cjk-ko/README
+++ b/language/korean/cjk-ko/README
@@ -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
diff --git a/language/korean/cjk-ko/cjk-ko-doc.pdf b/language/korean/cjk-ko/cjk-ko-doc.pdf
index ebee2e8018..fbb488ed48 100644
--- a/language/korean/cjk-ko/cjk-ko-doc.pdf
+++ b/language/korean/cjk-ko/cjk-ko-doc.pdf
Binary files differ
diff --git a/language/korean/cjk-ko/cjk-ko-doc.tex b/language/korean/cjk-ko/cjk-ko-doc.tex
index c5a38e4905..6203c09449 100644
--- a/language/korean/cjk-ko/cjk-ko-doc.tex
+++ b/language/korean/cjk-ko/cjk-ko-doc.tex
@@ -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
diff --git a/language/korean/cjk-ko/cjkutf8-josa.sty b/language/korean/cjk-ko/cjkutf8-josa.sty
index f96f1db2a5..e89e9cffe2 100644
--- a/language/korean/cjk-ko/cjkutf8-josa.sty
+++ b/language/korean/cjk-ko/cjkutf8-josa.sty
@@ -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@josa\undefined\else
- % redefine \@setref
- \let\CJKKO@orig@setref\@setref
- \def\@setref#1#2#3{\CJKKO@orig@setref{#1}{#2}{#3}%
- \ifx#1\relax\else
- \cjkko@prepare@josa@str{\expandafter#2#1}%
- \fi }
- % redefine \@cite@ofmt
+\ifx\use@josa\undefined\else
+ % redefine \@setref
+ \AddToHookWithArguments{cmd/@setref/after}{%
+ \ifx#1\relax\else
+ \cjkko@prepare@josa@str{\expandafter#2#1}%
+ \fi }
+ % redefine \@cite@ofmt
+ \AtBeginDocument{
\let\CJKKO@orig@cite@ofmt\@cite@ofmt
\def\@cite@ofmt#1{\CJKKO@orig@cite@ofmt{#1}%
\bgroup
@@ -36,10 +35,10 @@
\def\beamer@sort##1##2{}%
\def\hyperlink##1##2{##2}% for beamer: not from kotexutf
\cjkko@prepare@josa@str{#1}%
- \egroup}
- % partially support biblatex's \cite
- \@ifpackageloaded{biblatex}{%
- \renewrobustcmd*{\blx@imc@printfield}[2][]{%
+ \egroup}}
+ % partially support biblatex's \cite
+ \AddToHook{package/biblatex/after}{%
+ \renewrobustcmd*{\blx@imc@printfield}[2][]{%
\blx@imc@iffieldundef{#2}
{\blx@nounit}
{\blx@getformat\blx@theformat{ffd}{#1}{#2}%
@@ -52,17 +51,17 @@
\expandafter\expandafter
\expandafter{\csname abx@field@#2\endcsname}%
\cjkko@prepare@josa@str{\csname abx@field@#2\endcsname}%
- \blx@endunit}}}}{}
- \fi
- \@ifpackageloaded{hyperref}{\g@addto@macro\pdfstringdefPreHook{%
- \let\jong\relax
- \let\rieul\relax
- \let\jung\relax
- \def\^^ea{^^ea}%
- \def\^^eb{^^eb}%
- \def\^^ec{^^ec}%
- }}{}
-}
+ \blx@endunit}}}}
+\fi
+
+\AddToHook{package/hyperref/after}{\g@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@josa@ea{\cjkko@josa@hangul@syllableS{"EA}}
@@ -99,9 +98,9 @@
}
%%% user commands: \jong \jung \rieul
-\protected\def\jong {\let\josa@str\empty\chardef\@josa\z@ }
-\protected\def\rieul{\let\josa@str\empty\chardef\@josa\@ne}
-\protected\def\jung {\let\josa@str\empty\chardef\@josa\tw@}
+\protected\def\jong {\global\let\josa@str\empty\global\chardef\@josa\z@ }
+\protected\def\rieul{\global\let\josa@str\empty\global\chardef\@josa\@ne}
+\protected\def\jung {\global\let\josa@str\empty\global\chardef\@josa\tw@}
\jung
\def\cjkko@josa@str@end{cjkko@josa@str@end}
diff --git a/language/korean/cjk-ko/cjkutf8-ko.sty b/language/korean/cjk-ko/cjkutf8-ko.sty
index f93d6c7c9c..20476f99c7 100644
--- a/language/korean/cjk-ko/cjkutf8-ko.sty
+++ b/language/korean/cjk-ko/cjkutf8-ko.sty
@@ -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@hangul
\newif\if@hanja
diff --git a/language/korean/cjk-ko/cjkutf8-nanummjhanja.sty b/language/korean/cjk-ko/cjkutf8-nanummjhanja.sty
index ee66406ffb..534484272d 100644
--- a/language/korean/cjk-ko/cjkutf8-nanummjhanja.sty
+++ b/language/korean/cjk-ko/cjkutf8-nanummjhanja.sty
@@ -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@mjdefault{nanummj}
\def\CJKKO@mjhanjafamily{\def\CJK@family{uhcmj}}
% redefine CJK@numbToHex
-\let\CJKKO@orig@numbToHex\CJK@numbToHex
-\def\CJK@numbToHex#1#2{%
- \CJKKO@orig@numbToHex{#1}{#2}%
+\AddToHookWithArguments{cmd/CJK@numbToHex/after}{%
\ifx\CJK@family\CJKKO@mjdefault
\expandafter\CJKKO@checkhanjaplane#1\fi}