summaryrefslogtreecommitdiff
path: root/language/korean
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-03-10 03:04:05 +0000
committerNorbert Preining <norbert@preining.info>2023-03-10 03:04:05 +0000
commitf6cb3d263826846efe7b926e6ad2092198db0522 (patch)
tree16abd399e7b120d3c3ac7d75efc4d04cf7bb022f /language/korean
parent716c428e47ad2e893c0f970b9fa866d2a88f00e4 (diff)
CTAN sync 202303100304
Diffstat (limited to 'language/korean')
-rw-r--r--language/korean/kotex-oblivoir/README1
-rw-r--r--language/korean/kotex-oblivoir/doc/ChangeLog7
-rw-r--r--language/korean/kotex-oblivoir/tex/memhangul-common/oblivoir-misc.sty39
-rw-r--r--language/korean/kotex-oblivoir/tex/memhangul-x/memhangul-x.sty93
-rw-r--r--language/korean/kotex-oblivoir/tex/oblivoir-xl.cls9
-rw-r--r--language/korean/kotex-oblivoir/tex/oblivoir.cls3
6 files changed, 127 insertions, 25 deletions
diff --git a/language/korean/kotex-oblivoir/README b/language/korean/kotex-oblivoir/README
index 0b7e92bc49..03e659a1ad 100644
--- a/language/korean/kotex-oblivoir/README
+++ b/language/korean/kotex-oblivoir/README
@@ -1,6 +1,7 @@
kotex-oblivoir
====================
+* 2023/03/08, version 3.2.1, memhangul-x, oblivoir-misc changed. babel package support.
* 2023/02/28, Version 3.2, obchaptertoc, oblivoir-misc, obmathleading, xob-fonts changed.
* 2022/11/04, memhangul-common.sty, a minor bug fixed, reported on KTUG, Version 3.1.5.1
% 2022/04/11, xob-font bug fixed, reported by Progress, Version 3.1.5
diff --git a/language/korean/kotex-oblivoir/doc/ChangeLog b/language/korean/kotex-oblivoir/doc/ChangeLog
index f104c1f23c..27fd908d5c 100644
--- a/language/korean/kotex-oblivoir/doc/ChangeLog
+++ b/language/korean/kotex-oblivoir/doc/ChangeLog
@@ -1,3 +1,10 @@
+2023-03-08 Kangsoo Kim
+
+ Version 3.2.1
+
+ * babel support (memhangul-x)
+ * oblivoir-misc
+
2023-02-28 Kangsoo Kim
Version 3.2
diff --git a/language/korean/kotex-oblivoir/tex/memhangul-common/oblivoir-misc.sty b/language/korean/kotex-oblivoir/tex/memhangul-common/oblivoir-misc.sty
index 9712b947b7..d02172211f 100644
--- a/language/korean/kotex-oblivoir/tex/memhangul-common/oblivoir-misc.sty
+++ b/language/korean/kotex-oblivoir/tex/memhangul-common/oblivoir-misc.sty
@@ -6,6 +6,7 @@
%% 2022-03-01, 03-06
%% 2022-04-07, bugfix
%% 2023-02-14, tikzpagenodes-conflict fixed
+%% 2023-03-08, hverse environment
%%
\ProvidesPackage{oblivoir-misc}[2023/02/14 version0.4]
@@ -130,6 +131,44 @@
% }
}
}
+
+%%%%
+%%%% 2023-03-08, hverse
+%%%% write external file and read in.
+%%%%
+
+\tl_set:Nx \temp_filename_tl { \jobname.hverse }
+\ior_new:N \l_txp_file
+
+\skip_set:Nn \stanzaskip { .63\onelineskip }
+
+\NewDocumentEnvironment {hverse} {o}
+{
+ \exp_args:Nx \verbatimoutput {\temp_filename_tl}
+}
+{
+ \endverbatimoutput
+
+ \begin{verse}
+
+ \exp_args:NNx \ior_open:Nn \l_txp_file {\temp_filename_tl}
+
+ \ior_str_map_inline:Nn \l_txp_file
+ {
+ \tl_if_empty:nTF { ##1 }
+ {
+ \par\vskip\stanzaskip
+ }
+ {
+ ##1 \\
+ }
+ }
+ \ior_close:N \l_txp_file
+
+ \end{verse}
+}
+
+
\ExplSyntaxOff
diff --git a/language/korean/kotex-oblivoir/tex/memhangul-x/memhangul-x.sty b/language/korean/kotex-oblivoir/tex/memhangul-x/memhangul-x.sty
index a94bce08e6..0f3f729e53 100644
--- a/language/korean/kotex-oblivoir/tex/memhangul-x/memhangul-x.sty
+++ b/language/korean/kotex-oblivoir/tex/memhangul-x/memhangul-x.sty
@@ -1,6 +1,6 @@
%% File `memhangul-x.sty`
%%
-%% (C) Copyright 2006-2021 Kangsoo Kim <modviv2k15 at gmail com>
+%% (C) Copyright 2006-2023 Kangsoo Kim <modviv2k15 at gmail com>
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3c
@@ -14,8 +14,8 @@
%% part of oblivoir v2
%%
\NeedsTeXFormat{LaTeX2e}
-\def\filedate{2021/09/21}
-\def\fileversion{11.12}
+\def\filedate{2023/03/08}
+\def\fileversion{23.03}
\ProvidesPackage{memhangul-x}[\filedate Hangul Typography for (x)oblivoir]
%\typeout{Hangul Typography for (x)oblivoir}
@@ -66,7 +66,11 @@
\newif\if@pdfbookmark{\@pdfbookmarkfalse}
\DeclareOption{pdfbookmark}{\@pdfbookmarktrue}
\newif\if@polyglos\@polyglosfalse
-\DeclareOption{polyglossia}{\@polyglostrue}
+\newif\if@babelhangul\@babelhangulfalse
+\newif\if@babelvacant\@babelvacantfalse
+\DeclareOption{polyglossia}{\@polyglostrue\@babelhangulfalse\@babelvacantfalse}
+\DeclareOption{babelhangul}{\@polyglostrue\@babelhangultrue\@babelvacantfalse}
+\DeclareOption{babelvacant}{\@polyglostrue\@babelhangultrue\@babelvacanttrue}
\ifxetex
%%% xetexko options
@@ -125,26 +129,73 @@
\ProcessOptions \relax
+\newif\if@@babelkorfontdeclared\@@babelkorfontdeclaredfalse
+
\if@polyglos
- \RequirePackage{polyglossia}
- \RequirePackage{xparse}
-%%% \sethangulfont{FONTNAME} or \sethangulfont[tt]{FONTNAME}[FEATURES]
- \NewDocumentCommand\sethangulfont{omo}{%
- \IfValueTF{#1}{%
- \IfValueTF{#3}{%
- \expandafter\newfontfamily\csname hangulfont#1\endcsname
- {#2}[#3]}{%
- \expandafter\newfontfamily\csname hangulfont#1\endcsname
- {#2}}%
- }%
- {%
- \IfValueTF{#3}{%
- \newfontfamily\hangulfont{#2}[#3]%
- }{%
- \newfontfamily\hangulfont{#2}%
- }%
+ \if@babelhangul
+ \if@babelvacant \else
+ \ifluatex
+ \RequirePackage{babel}
+ \AtEndPreamble{
+ \babelprovide[import, onchar=ids fonts]{korean}
+ \if@@babelkorfontdeclared\else
+ \babelfont[korean]{rm}{UnBatang}
+ \fi
+ }
+ \ProvideDocumentCommand\setobmainfont{mo}{%
+ \IfValueTF{#2}{%
+ \babelfont{rm}[#2]{#1}}%
+ {\babelfont{rm}{#1}}}
+ \ProvideDocumentCommand\setobsansfont{mo}{%
+ \IfValueTF{#2}{%
+ \babelfont{sf}[#2]{#1}}%
+ {\babelfont{sf}{#1}}}
+ \ProvideDocumentCommand\setobmonofont{mo}{%
+ \IfValueTF{#2}{%
+ \babelfont{tt}[#2]{#1}}%
+ {\babelfont{tt}{#1}}}
+ \ProvideDocumentCommand\setkomainfont{mo}{%
+ \IfValueTF{#2}{%
+ \babelfont[korean]{rm}[#2]{#1}}%
+ {\babelfont[korean]{rm}{#1}}%
+ \@@babelkorfontdeclaredtrue
+ }
+ \ProvideDocumentCommand\setkosansfont{mo}{%
+ \IfValueTF{#2}{%
+ \babelfont[korean]{sf}[#2]{#1}}%
+ {\babelfont[korean]{sf}{#1}}}
+ \ProvideDocumentCommand\setkomonofont{mo}{%
+ \IfValueTF{#2}{%
+ \babelfont[korean]{tt}[#2]{#1}}%
+ {\babelfont[korean]{tt}{#1}}}
+ \else\ifxetex
+ \RequirePackage{fontspec}
+ \setmainfont{UnBatang}
+ \XeTeXlinebreaklocale="ko"
+ \fi
+ \fi
+ \fi
+\else
+ \RequirePackage{polyglossia}
+ \RequirePackage{xparse}
+ %%% \sethangulfont{FONTNAME} or \sethangulfont[tt]{FONTNAME}[FEATURES]
+ \NewDocumentCommand\sethangulfont{omo}{%
+ \IfValueTF{#1}{%
+ \IfValueTF{#3}{%
+ \expandafter\newfontfamily\csname hangulfont#1\endcsname
+ {#2}[#3]}{%
+ \expandafter\newfontfamily\csname hangulfont#1\endcsname
+ {#2}}%
}%
+ {%
+ \IfValueTF{#3}{%
+ \newfontfamily\hangulfont{#2}[#3]%
+ }{%
+ \newfontfamily\hangulfont{#2}%
+ }%
+ }%
}
+ \fi
\else
\ifluatex
\@ifpackageloaded{luatexko}{}{\RequirePackage{luatexko}}
diff --git a/language/korean/kotex-oblivoir/tex/oblivoir-xl.cls b/language/korean/kotex-oblivoir/tex/oblivoir-xl.cls
index 4c87c9d62a..6a884288f6 100644
--- a/language/korean/kotex-oblivoir/tex/oblivoir-xl.cls
+++ b/language/korean/kotex-oblivoir/tex/oblivoir-xl.cls
@@ -1,6 +1,6 @@
%% File `oblivoir-xl.cls`
%%
-%% (C) Copyright 2006-2022 Kangsoo Kim <modviv2k15 at gmail dot com>
+%% (C) Copyright 2006-2023 Kangsoo Kim <modviv2k15 at gmail dot com>
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3c
@@ -14,8 +14,7 @@
%% depends upon Dohyun Kim's xetexko and the author's memhangul-x.
%%
\ProvidesClass{oblivoir-xl}
- [2022/04/07 v0.8.8 article-like class to typeset Korean]
-%\typeout{A variant of oblivoir class for Lua- or XeLaTeX.}
+ [2023/03/08 v3.2.1 memoir-based class to typeset Korean]
\providecommand\@DisabledOption[1]{%
\typeout{[#1] option is deprecated}}
@@ -37,6 +36,9 @@
\DeclareOptionX{nokorean}{\nokoreantrue}
\newif\if@polyglossia\@polyglossiafalse
\DeclareOptionX{polyglossia}{\@polyglossiatrue}
+\newif\if@babelhangul\@babelhangulfalse
+\DeclareOptionX{babelhangul}{\PassOptionsToPackage{\CurrentOption}{memhangul-x}} %%2023-03
+\DeclareOptionX{babelvacant}{\PassOptionsToPackage{\CurrentOption}{memhangul-x}} %%2023-03
\newif\iftwosidedoc\twosidedocfalse
\DeclareOptionX{twoside}{\twosidedoctrue}
\newif\ifopenrightdoc\openrightdocfalse
@@ -514,6 +516,7 @@
\endinput
%%% ChangeLog:
+%%% 2023-03-08 : polyglossia, babel, babelvacant added.
%%% 2015-10-19 : fix conflicts with etextools package.
%%%% 2015-08-01 : drop etex.sty
%%% 2015-07-27 : fix nokorean bug
diff --git a/language/korean/kotex-oblivoir/tex/oblivoir.cls b/language/korean/kotex-oblivoir/tex/oblivoir.cls
index e514073a2e..6ccea1b70c 100644
--- a/language/korean/kotex-oblivoir/tex/oblivoir.cls
+++ b/language/korean/kotex-oblivoir/tex/oblivoir.cls
@@ -10,7 +10,7 @@
%% and version 1.3c or later is part of all distributions of LaTeX
%% version 2006/05/20 or later.
%%
-\ProvidesClass{oblivoir}[2023/02/28 v3.2]
+\ProvidesClass{oblivoir}[2023/03/09 v3.2.1]
\RequirePackage{xkeyval}
\RequirePackage{xparse}
@@ -66,5 +66,6 @@
\endinput
%%% Recent Changes:
+%%% v3.2.1: 2023-03-08, memhangul-x
%%% v3.1.5: 2022-04-11, xob-font \setmainhangulfont problem
%%%