X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=src%2Fpatches%2Flltjp-xunicode.sty;h=da4d1a7888041beb49f3f50d88a7b75d05422ba3;hb=349262f15b7609ebb3166077bf73562a30eb7327;hp=702137b1d5f29126073e131bef89cd546059fe63;hpb=6abeb05c5b8703d1871f6d4e861b3505ed8100cf;p=luatex-ja%2Fluatexja.git diff --git a/src/patches/lltjp-xunicode.sty b/src/patches/lltjp-xunicode.sty index 702137b..da4d1a7 100644 --- a/src/patches/lltjp-xunicode.sty +++ b/src/patches/lltjp-xunicode.sty @@ -3,7 +3,7 @@ % \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{lltjp-xunicode}[2011/11/22 Patch to xunicode for LuaLaTeX-ja] +\ProvidesPackage{lltjp-xunicode}[2013/05/14 Patch to xunicode for LuaTeX-ja] \def\UTFencname{EU2}\def\XeTeXpicfile{} \RequirePackage{xunicode,luatexja} @@ -67,7 +67,6 @@ \expandafter\expandafter\expandafter {\expandafter\csname#6\endcsname}{\UTFchar}{#8}{#9}\relax \fi} -%\gdef\add@UTF@accent#1#2#3{#2\ltjalchar"#1\relax} \gdef\add@UTF@accent#1#2#3{\ifx\relax#2\relax\ltjalchar"#3\else \ifx\ #2\relax\ltjalchar"#3\else \expandafter\ifx\UTF@space#2\relax\ltjalchar"#3\else @@ -76,28 +75,21 @@ } % If unicode-math is already loaded, the following error occurs: % ! Undefined control sequence. -% \hbar ->\hslash +% \hbar ->\hslash % Therefore temporarily set \hbar=\relax. \let\ltj@tmpa\hbar \let\hbar\relax +\let\ltj@tmpb\iftipaonetoken +\let\iftipaonetoken\relax \ReloadXunicode{EU2} \makeatletter \let\hbar\ltj@tmpa -\endinput +\let\iftipaonetoken\ltj@tmpb +\let\ltj@tmpb\relax % no more an if-token + +%% ticket 30501 +{\catcode`\!0\catcode`\\11!catcode`!2 11!catcode`!?11!catcode`!-11 + !gdef!EU2\nobreakspace{!?-\nobreakspace}% +} -%% the following patch is needed to xunicode.sty: -%% ---- /opt/texlive/2011/texmf-dist/tex/xelatex/xunicode/xunicode.sty 2011-09-12 08:31:47.000000000 +0900 -+++ xunicode.sty 2011-11-16 22:06:17.061413113 +0900 -@@ -1475,7 +1475,11 @@ - - \newtoks\tipasavetokens - \newtoks\tipachecktokens -+ -+\fi - \newif\iftipaonetoken -+\expandafter\ifx\csname ReloadXunicode\endcsname\relax -+ - \def\tipalasttoken{!@! do nothing with this !@!} - \def\tipacatchonechar#1{\begingroup - \def\textipa##1{##1}% prevent recursion +\endinput