From 925391c2752c5683ad0e3a0ef152bb50b470fb93 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Fri, 20 Dec 2013 22:03:07 +0000
Subject: xetexko (20dec13)

git-svn-id: svn://tug.org/texlive/trunk@32459 c570f23f-e606-0410-a88d-b1316a301751
---
 .../texmf-dist/tex/xetex/xetexko/xetexko-space.sty | 40 ++++++++++------------
 1 file changed, 18 insertions(+), 22 deletions(-)

(limited to 'Master/texmf-dist/tex/xetex/xetexko/xetexko-space.sty')

diff --git a/Master/texmf-dist/tex/xetex/xetexko/xetexko-space.sty b/Master/texmf-dist/tex/xetex/xetexko/xetexko-space.sty
index b4dd7a2558a..2689acfd90f 100644
--- a/Master/texmf-dist/tex/xetex/xetexko/xetexko-space.sty
+++ b/Master/texmf-dist/tex/xetex/xetexko/xetexko-space.sty
@@ -13,7 +13,7 @@
 \begingroup\expandafter\expandafter\expandafter\endgroup
 \expandafter\ifx\csname ProvidesPackage\endcsname\relax\else
   \ProvidesPackage{xetexko-space}
-    [2013/11/28 v2.2 Spacings and fonts for XeTeX-ko]
+    [2013/12/14 v2.3 Spacings and fonts for XeTeX-ko]
 \fi
 
 %%% we need XeTeX > 0.997
@@ -1424,17 +1424,17 @@
 %%% everyhangul/everyhanja
 %%%  request from karnes at 2013.11.18
 \def\everyhanja#1{%
-  \def\XK@every@hanja##1{#1}%
+  \def\XK@every@hanja##1{#1\chardef\XKcurrentfont\z@}%
   \let\XKcjkcharboxstart\empty
   \let\XKcjkcharboxstop\empty % conflict w. everyhanja
 }
-\everyhanja{#1}
+\def\XK@every@hanja#1{#1}
 \def\everyhangul#1{%
-  \def\XK@every@hangul##1{#1}%
+  \def\XK@every@hangul##1{#1\chardef\XKcurrentfont\z@}%
   \let\XKcjkcharboxstart\empty
   \let\XKcjkcharboxstop\empty % conflict w. everyhangul
 }
-\everyhangul{#1}
+\def\XK@every@hangul#1{#1}
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %% for autojosa, get last chars
@@ -1594,7 +1594,7 @@
   \let\XKzeroskip         \relax
   \let\XKnobreak          \relax
   \let\XKafterboundaryskip\relax
-  \let\XKcjklastchar      \relax
+  \def\XKcjklastchar##1{\let\@let@token##1\XK@save@last@char\XK@every@hangul{##1}}%
   \disablehangulspacing
 }
 
@@ -1645,19 +1645,18 @@
 
 %%%%%%%%%%%
 %% for ulem
-\ifcsname selectfont\endcsname
-  \let\xetexkoulemsupport\relax
-\else
-  \def\xetexkoulemsupport{%
-    \UL@hook\expandafter{\the\UL@hook
-      \let\ulem@XK@hangulfont\XK@hangulfont
-      \let\ulem@XK@hanjafont\XK@hanjafont
-      \def\XK@hangulfont{\ulem@XK@hangulfont
-        \aftergroup\aftergroup\aftergroup\ulem@XK@hangulfont}%
-      \def\XK@hanjafont{\ulem@XK@hanjafont
-        \aftergroup\aftergroup\aftergroup\ulem@XK@hanjafont}%
-  }}
-\fi
+\def\xetexkoulemsupport{%
+  \UL@hook\expandafter{\the\UL@hook
+    \let\XK@UL@@@hangulfont\XKhangulfont
+    \let\XK@UL@@@hanjafont \XKhanjafont
+    \def\XKhangulfont{\XK@UL@@@hangulfont
+      \aftergroup\aftergroup\aftergroup\XK@UL@@@hangulfont
+    }%
+    \def\XKhanjafont{\XK@UL@@@hanjafont
+      \aftergroup\aftergroup\aftergroup\XK@UL@@@hanjafont
+    }%
+  }%
+}
 
 %%%%%%%%%%
 %% dotemph
@@ -1690,9 +1689,6 @@
 %%% declare to use interchartoken
 \XeTeXinterchartokenstate\@ne
 
-%%% frenchspacing is default
-\frenchspacing
-
 \def\hellipsis{^^^^2026\kern-.1ex^^^^2026}
 
 \endinput
-- 
cgit v1.2.3

