summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/xetex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-09-06 21:18:43 +0000
committerKarl Berry <karl@freefriends.org>2021-09-06 21:18:43 +0000
commitd7358771b8e4f22ceefc2e19b1183cfffbf68f17 (patch)
treefcee96902ecafe21c7dfd70add4623cc4f053f86 /Master/texmf-dist/tex/xetex
parent1379bb7d665a2f7ff34dc9dc52926435a70e96f5 (diff)
xetexko (6sep21)
git-svn-id: svn://tug.org/texlive/trunk@60444 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/xetex')
-rw-r--r--Master/texmf-dist/tex/xetex/xetexko/xetexko.sty78
1 files changed, 54 insertions, 24 deletions
diff --git a/Master/texmf-dist/tex/xetex/xetexko/xetexko.sty b/Master/texmf-dist/tex/xetex/xetexko/xetexko.sty
index aff19c67a1c..afd0ee62835 100644
--- a/Master/texmf-dist/tex/xetex/xetexko/xetexko.sty
+++ b/Master/texmf-dist/tex/xetex/xetexko/xetexko.sty
@@ -16,7 +16,7 @@
\ifdefined\ProvidesPackage
\NeedsTeXFormat{LaTeX2e}[2021/06/01]
- \ProvidesPackage{xetexko}[2021/08/09 v3.9 typesetting Korean with XeTeX]
+ \ProvidesPackage{xetexko}[2021/09/06 v4.0 typesetting Korean with XeTeX]
\else
\ifdefined\@tempcnta\else \newcount\@tempcnta \fi
\ifdefined\@sptoken \else
@@ -467,11 +467,9 @@
\expandafter\let\expandafter\XeKo@latin@font\the\font
\fi\fi
\ifdefined\XeKo@hangul@font
- \ifx\f@encoding\UTFencname
\XeKo@reset@options
\XeKo@hangul@font
\expandafter\let\expandafter\XeKo@raw@hangul@font\the\font
- \fi
\fi
}
\def\XeKo@font@CJK{%
@@ -480,11 +478,9 @@
\expandafter\let\expandafter\XeKo@latin@font\the\font
\fi\fi
\ifdefined\XeKo@hanja@font
- \ifx\f@encoding\UTFencname
\XeKo@reset@options
\XeKo@hanja@font
\expandafter\let\expandafter\XeKo@raw@hanja@font\the\font
- \fi
\fi
}
\def\XeKo@font@Latin{%
@@ -993,6 +989,7 @@
}
\XeTeXinterchartoks\XeTeXcharclassBoundary\XeTeXcharclassHG{%
+ \ifx\f@encoding\UTFencname
\ifnum\lastnodetype=12 %
\ifcase\lastkern
\or \XKinterhanjabreak \or \or \or \or % 1: ruby를 한자처럼 취급
@@ -1016,9 +1013,11 @@
\else\ifnum\lastnodetype=10 % mathoff
\XeKo@postmath
\fi\fi
- \XeKo@fontHG\XeKo@startHG
+ \XeKo@fontHG\expandafter\XeKo@startHG
+ \fi
}
\XeTeXinterchartoks\XeTeXcharclassBoundary\XeTeXcharclassID{%
+ \ifx\f@encoding\UTFencname
\ifnum\lastnodetype=12 %
\ifcase\lastkern
\or \XKinterhanjabreak \or \or \or \or
@@ -1042,9 +1041,11 @@
\else\ifnum\lastnodetype=10 % mathoff
\XeKo@postmath
\fi\fi
- \XeKo@fontID\XeKo@startID
+ \XeKo@fontID\expandafter\XeKo@startID
+ \fi
}
\XeTeXinterchartoks\XeTeXcharclassBoundary\XeTeXcharclassCJ{%
+ \ifx\f@encoding\UTFencname
\ifnum\lastnodetype=12 %
\ifcase\lastkern
\or \XKinterhanjabreak \XeKo@suppress@linebreak \or \or \or \or
@@ -1068,9 +1069,11 @@
\else\ifnum\lastnodetype=10 % mathoff
\XeKo@postmath
\fi\fi
- \XeKo@fontCJ\XeKo@startCJ
+ \XeKo@fontCJ\expandafter\XeKo@startCJ
+ \fi
}
\XeTeXinterchartoks\XeTeXcharclassBoundary\XeTeXcharclassSY{%
+ \ifx\f@encoding\UTFencname
\ifnum\lastnodetype=12 %
\ifcase\lastkern
\or \or \or \or \or
@@ -1094,9 +1097,11 @@
\else\ifnum\lastnodetype=10 % mathoff
\XeKo@postmath
\fi\fi
- \XeKo@fontSY\XeKo@startSY
+ \XeKo@fontSY\expandafter\XeKo@startSY
+ \fi
}
\XeTeXinterchartoks\XeTeXcharclassBoundary\XeTeXcharclassAA{%
+ \ifx\f@encoding\UTFencname
\ifnum\lastnodetype=12 %
\ifcase\lastkern
\or \XeKo@latincjk \or \or \or \or
@@ -1118,9 +1123,11 @@
\or \unkern\unkern \XeKo@quarterquarter % VC AA
\fi
\fi
- \XeKo@fontAA\XeKo@startAA
+ \XeKo@fontAA\expandafter\XeKo@startAA
+ \fi
}
\XeTeXinterchartoks\XeTeXcharclassBoundary\XeTeXcharclassAO{%
+ \ifx\f@encoding\UTFencname
\ifnum\lastnodetype=12 %
\ifcase\lastkern
\or \XeKo@latincjk \or \or \or \or
@@ -1142,9 +1149,11 @@
\or \unkern\unkern \XeKo@quarterquarter % VC AO
\fi
\fi
- \XeKo@fontAO\XeKo@startAO
+ \XeKo@fontAO\expandafter\XeKo@startAO
+ \fi
}
\XeTeXinterchartoks\XeTeXcharclassBoundary\XeTeXcharclassAC{%
+ \ifx\f@encoding\UTFencname
\ifnum\lastnodetype=12 %
\ifcase\lastkern
\or \or \or \or \or
@@ -1166,9 +1175,11 @@
\or \unkern\unkern % VC AC
\fi
\fi
- \XeKo@fontAC\XeKo@startAC
+ \XeKo@fontAC\expandafter\XeKo@startAC
+ \fi
}
\XeTeXinterchartoks\XeTeXcharclassBoundary\XeTeXcharclassAP{%
+ \ifx\f@encoding\UTFencname
\ifnum\lastnodetype=12 %
\ifcase\lastkern
\or \or \or \or \or
@@ -1190,9 +1201,11 @@
\or \unkern\unkern % VC AP
\fi
\fi
- \XeKo@fontAP\XeKo@startAP
+ \XeKo@fontAP\expandafter\XeKo@startAP
+ \fi
}
\XeTeXinterchartoks\XeTeXcharclassBoundary\XeTeXcharclassAM{%
+ \ifx\f@encoding\UTFencname
\ifnum\lastnodetype=12 %
\ifcase\lastkern
\or \XeKo@nobreak\XeKo@latincjk \or \or \or \or
@@ -1214,9 +1227,11 @@
\or \unkern\unkern % VC AM
\fi
\fi
- \XeKo@fontAM\XeKo@startAM
+ \XeKo@fontAM\expandafter\XeKo@startAM
+ \fi
}
\XeTeXinterchartoks\XeTeXcharclassBoundary\XeTeXcharclassAH{%
+ \ifx\f@encoding\UTFencname
\ifnum\lastnodetype=12 %
\ifcase\lastkern
\or \XeKo@nobreak \or \or \or \or
@@ -1238,9 +1253,11 @@
\or \unkern\unkern \XeKo@nobreak % VC AH
\fi
\fi
- \XeKo@fontAH\XeKo@startAH
+ \XeKo@fontAH\expandafter\XeKo@startAH
+ \fi
}
\XeTeXinterchartoks\XeTeXcharclassBoundary\XeTeXcharclassOP{%
+ \ifx\f@encoding\UTFencname
\ifnum\lastnodetype=12 %
\ifcase\lastkern
\or \XeKo@halfhalf \or \or \or \or
@@ -1264,9 +1281,11 @@
\else\ifnum\lastnodetype=10 % mathoff
\XeKo@halfhalf
\fi\fi
- \XeKo@fontOP\XeKo@startOP
+ \XeKo@fontOP\expandafter\XeKo@startOP
+ \fi
}
\XeTeXinterchartoks\XeTeXcharclassBoundary\XeTeXcharclassCL{%
+ \ifx\f@encoding\UTFencname
\ifnum\lastnodetype=12 %
\ifcase\lastkern
\or \or \or \or \or
@@ -1288,9 +1307,11 @@
\or \unkern\unkern % VC CL
\fi
\fi
- \XeKo@fontCL\XeKo@startCL
+ \XeKo@fontCL\expandafter\XeKo@startCL
+ \fi
}
\XeTeXinterchartoks\XeTeXcharclassBoundary\XeTeXcharclassMD{%
+ \ifx\f@encoding\UTFencname
\ifnum\lastnodetype=12 %
\ifcase\lastkern
\or \XeKo@nobreak\XeKo@quarterquarter \or \or \or \or
@@ -1314,9 +1335,11 @@
\else\ifnum\lastnodetype=10 % mathoff
\XeKo@nobreak\XeKo@quarterquarter
\fi\fi
- \XeKo@fontMD\XeKo@startMD
+ \XeKo@fontMD\expandafter\XeKo@startMD
+ \fi
}
\XeTeXinterchartoks\XeTeXcharclassBoundary\XeTeXcharclassFS{%
+ \ifx\f@encoding\UTFencname
\ifnum\lastnodetype=12 %
\ifcase\lastkern
\or \or \or \or \or
@@ -1338,9 +1361,11 @@
\or \unkern\unkern % VC FS
\fi
\fi
- \XeKo@fontFS\XeKo@startFS
+ \XeKo@fontFS\expandafter\XeKo@startFS
+ \fi
}
\XeTeXinterchartoks\XeTeXcharclassBoundary\XeTeXcharclassEX{%
+ \ifx\f@encoding\UTFencname
\ifnum\lastnodetype=12 %
\ifcase\lastkern
\or \or \or \or \or
@@ -1362,9 +1387,11 @@
\or \unkern\unkern % VC EX
\fi
\fi
- \XeKo@fontEX\XeKo@startEX
+ \XeKo@fontEX\expandafter\XeKo@startEX
+ \fi
}
\XeTeXinterchartoks\XeTeXcharclassBoundary\XeTeXcharclassLD{%
+ \ifx\f@encoding\UTFencname
\ifnum\lastnodetype=12 %
\ifcase\lastkern
\or \XKinterhanjabreak \XeKo@suppress@linebreak \or \or \or \or
@@ -1386,9 +1413,11 @@
\or \unkern\unkern \XKinterhanjabreak \XeKo@suppress@linebreak % VC LD
\fi
\fi
- \XeKo@fontLD\XeKo@startLD
+ \XeKo@fontLD\expandafter\XeKo@startLD
+ \fi
}
\XeTeXinterchartoks\XeTeXcharclassBoundary\XeTeXcharclassVC{%
+ \ifx\f@encoding\UTFencname
\ifnum\lastnodetype=12 %
\ifcase\lastkern
\or \or \or \or \or
@@ -1410,7 +1439,8 @@
\or \unkern\unkern % VC VC
\fi
\fi
- \XeKo@fontVC\XeKo@startVC
+ \XeKo@fontVC\expandafter\XeKo@startVC
+ \fi
}
\newbox\XeKo@box@
@@ -1504,7 +1534,7 @@
\catcode`A=11\relax \global\let\XeKo@catcode@letter=A
\catcode`0=12\relax \global\let\XeKo@catcode@other =0
\endgroup
-\def\XeKo@striptw@words#1 #2 #3{#3}
+\def\XeKo@striptw@words#1 #2 #3\relax{#3}
\def\XeKo@get@charslot{%
\if\noexpand\XeKo@let@token\relax
\chardef\XeKo@charslot="FFFF
@@ -1515,7 +1545,7 @@
\def\XeKo@get@charslot@{%
\ifnum 0\ifcat\XeKo@let@token\XeKo@catcode@letter 1\else
\ifcat\XeKo@let@token\XeKo@catcode@other 1\fi\fi >\z@
- \edef\@tempa{\expandafter\XeKo@striptw@words\meaning\XeKo@let@token}%
+ \edef\@tempa{\expandafter\XeKo@striptw@words\meaning\XeKo@let@token\relax}%
\expandafter\chardef\expandafter\XeKo@charslot\expandafter`\@tempa\relax
\else
\chardef\XeKo@charslot="FFFF