diff options
author | Karl Berry <karl@freefriends.org> | 2014-01-20 23:18:34 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2014-01-20 23:18:34 +0000 |
commit | 72cab7bce1d68c5d53ee82a50de80e3aa10950fb (patch) | |
tree | c89406b3242fc2d891c83a37bac1c3664bff67aa /Master/texmf-dist/tex/luatex/luatexko/luatexko.sty | |
parent | 70a9a637489e651f4aee19179e792b79d7ab79f6 (diff) |
luatexko (20jan14)
git-svn-id: svn://tug.org/texlive/trunk@32740 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/luatex/luatexko/luatexko.sty')
-rw-r--r-- | Master/texmf-dist/tex/luatex/luatexko/luatexko.sty | 33 |
1 files changed, 18 insertions, 15 deletions
diff --git a/Master/texmf-dist/tex/luatex/luatexko/luatexko.sty b/Master/texmf-dist/tex/luatex/luatexko/luatexko.sty index 454fd857e1c..5d6d6d69fa8 100644 --- a/Master/texmf-dist/tex/luatex/luatexko/luatexko.sty +++ b/Master/texmf-dist/tex/luatex/luatexko/luatexko.sty @@ -22,7 +22,7 @@ \expandafter\endinput \fi -\ProvidesPackage{luatexko}[2013/11/22 v1.3 Typesetting Korean with LuaLaTeX] +\ProvidesPackage{luatexko}[2014/01/15 v1.4 Typesetting Korean with LuaLaTeX] \RequirePackage{fontspec} \RequirePackage{luatexko-core} @@ -131,29 +131,29 @@ \protected\def\addhangulfontfeature#1{% \begingroup \check@hangul@family - \ifdefined\hangul@font\hangul@font\fi\addfontfeature{#1}\global - \let\luatexko@fontspec@temp\f@family + \ifdefined\hangul@font\hangul@font\fi\addfontfeature{#1}% + \global\let\luatexko@fontspec@temp\f@family \endgroup - \def\hangul@font{\fontfamily\luatexko@fontspec@temp - \luatexko@orig@selectfont}\luatexko@hangul@selectfont \ignorespaces} + \def\hangul@font{\fontfamily\luatexko@fontspec@temp\selectfont}% + \luatexko@hangul@selectfont \ignorespaces} \let\addhangulfontfeatures\addhangulfontfeature \protected\def\addhanjafontfeature#1{% \begingroup \check@hanja@family - \ifdefined\hanja@font\hanja@font\fi\addfontfeature{#1}\global - \let\luatexko@fontspec@temp\f@family + \ifdefined\hanja@font\hanja@font\fi\addfontfeature{#1}% + \global\let\luatexko@fontspec@temp\f@family \endgroup - \def\hanja@font{\fontfamily\luatexko@fontspec@temp - \luatexko@orig@selectfont}\luatexko@hanja@selectfont \ignorespaces} + \def\hanja@font{\fontfamily\luatexko@fontspec@temp\selectfont}% + \luatexko@hanja@selectfont \ignorespaces} \let\addhanjafontfeatures\addhanjafontfeature \protected\def\addfallbackfontfeature#1{% \begingroup \check@fallback@family - \ifdefined\fallback@font\fallback@font\fi\addfontfeature{#1}\global - \let\luatexko@fontspec@temp\f@family + \ifdefined\fallback@font\fallback@font\fi\addfontfeature{#1}% + \global\let\luatexko@fontspec@temp\f@family \endgroup - \def\fallback@font{\fontfamily\luatexko@fontspec@temp - \luatexko@orig@selectfont}\luatexko@fallback@selectfont \ignorespaces} + \def\fallback@font{\fontfamily\luatexko@fontspec@temp\selectfont}% + \luatexko@fallback@selectfont \ignorespaces} \let\addfallbackfontfeatures\addfallbackfontfeature % check hangul/hanja family @@ -179,8 +179,8 @@ \fi\fi\fi } -\let\luatexko@orig@selectfont\selectfont -\protected\def\selectfont{\luatexko@orig@selectfont +\RequirePackage{everysel} +\EverySelectfont{% \luatexko@hangul@selectfont \luatexko@hanja@selectfont \luatexko@fallback@selectfont @@ -245,6 +245,8 @@ \unless\ifdefined\sanshangul@font \let\sanshangul@font\serifhangul@font\fi \unless\ifdefined\monohangul@font \let\monohangul@font\sanshangul@font \fi \luatexko@hangul@selectfont +\luatexko@hanja@selectfont +\luatexko@fallback@selectfont % for hyperref \@ifpackageloaded{hyperref}{\pdfstringdefDisableCommands{% \let\dotemph\@firstofone @@ -297,6 +299,7 @@ \footnotesep=1.3888\footnotesep \skip\footins=1.3888\skip\footins plus6pt minus3pt \hangulpunctuations=1 + \frenchspacing \fi \endinput |