texlive[66502] branches/branch2022.final/Master/texmf-dist:

commits+karl at tug.org commits+karl at tug.org
Thu Mar 9 22:14:52 CET 2023


Revision: 66502
          http://tug.org/svn/texlive?view=revision&revision=66502
Author:   karl
Date:     2023-03-09 22:14:52 +0100 (Thu, 09 Mar 2023)
Log Message:
-----------
kotex-oblivoir (9mar23) (branch)

Modified Paths:
--------------
    branches/branch2022.final/Master/texmf-dist/doc/latex/kotex-oblivoir/ChangeLog
    branches/branch2022.final/Master/texmf-dist/doc/latex/kotex-oblivoir/README
    branches/branch2022.final/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-common/oblivoir-misc.sty
    branches/branch2022.final/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-x/memhangul-x.sty
    branches/branch2022.final/Master/texmf-dist/tex/latex/kotex-oblivoir/oblivoir-xl.cls
    branches/branch2022.final/Master/texmf-dist/tex/latex/kotex-oblivoir/oblivoir.cls

Modified: branches/branch2022.final/Master/texmf-dist/doc/latex/kotex-oblivoir/ChangeLog
===================================================================
--- branches/branch2022.final/Master/texmf-dist/doc/latex/kotex-oblivoir/ChangeLog	2023-03-09 21:14:27 UTC (rev 66501)
+++ branches/branch2022.final/Master/texmf-dist/doc/latex/kotex-oblivoir/ChangeLog	2023-03-09 21:14:52 UTC (rev 66502)
@@ -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

Modified: branches/branch2022.final/Master/texmf-dist/doc/latex/kotex-oblivoir/README
===================================================================
(Binary files differ)

Modified: branches/branch2022.final/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-common/oblivoir-misc.sty
===================================================================
--- branches/branch2022.final/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-common/oblivoir-misc.sty	2023-03-09 21:14:27 UTC (rev 66501)
+++ branches/branch2022.final/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-common/oblivoir-misc.sty	2023-03-09 21:14:52 UTC (rev 66502)
@@ -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
 
 

Modified: branches/branch2022.final/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-x/memhangul-x.sty
===================================================================
--- branches/branch2022.final/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-x/memhangul-x.sty	2023-03-09 21:14:27 UTC (rev 66501)
+++ branches/branch2022.final/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-x/memhangul-x.sty	2023-03-09 21:14:52 UTC (rev 66502)
@@ -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 at pdfbookmark{\@pdfbookmarkfalse}
 \DeclareOption{pdfbookmark}{\@pdfbookmarktrue}
 \newif\if at polyglos\@polyglosfalse
-\DeclareOption{polyglossia}{\@polyglostrue}
+\newif\if at babelhangul\@babelhangulfalse
+\newif\if at 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 at 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 at babelhangul
+	  \if at 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}}

Modified: branches/branch2022.final/Master/texmf-dist/tex/latex/kotex-oblivoir/oblivoir-xl.cls
===================================================================
--- branches/branch2022.final/Master/texmf-dist/tex/latex/kotex-oblivoir/oblivoir-xl.cls	2023-03-09 21:14:27 UTC (rev 66501)
+++ branches/branch2022.final/Master/texmf-dist/tex/latex/kotex-oblivoir/oblivoir-xl.cls	2023-03-09 21:14:52 UTC (rev 66502)
@@ -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 at polyglossia\@polyglossiafalse
 \DeclareOptionX{polyglossia}{\@polyglossiatrue}
+\newif\if at 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 

Modified: branches/branch2022.final/Master/texmf-dist/tex/latex/kotex-oblivoir/oblivoir.cls
===================================================================
--- branches/branch2022.final/Master/texmf-dist/tex/latex/kotex-oblivoir/oblivoir.cls	2023-03-09 21:14:27 UTC (rev 66501)
+++ branches/branch2022.final/Master/texmf-dist/tex/latex/kotex-oblivoir/oblivoir.cls	2023-03-09 21:14:52 UTC (rev 66502)
@@ -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 
 %%%



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