summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/cjk/texinput/ruby.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/cjk/texinput/ruby.sty')
-rw-r--r--Master/texmf-dist/tex/latex/cjk/texinput/ruby.sty17
1 files changed, 10 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/cjk/texinput/ruby.sty b/Master/texmf-dist/tex/latex/cjk/texinput/ruby.sty
index ef67f146ab0..4f1be80bd1a 100644
--- a/Master/texmf-dist/tex/latex/cjk/texinput/ruby.sty
+++ b/Master/texmf-dist/tex/latex/cjk/texinput/ruby.sty
@@ -3,9 +3,9 @@
%
% created by Werner Lemberg <wl@gnu.org>
%
-% Version 4.8.2 (29-Dec-2008)
+% Version 4.8.3 (07-May-2012)
-% Copyright (C) 1994-2008 Werner Lemberg <wl@gnu.org>
+% Copyright (C) 1994-2012 Werner Lemberg <wl@gnu.org>
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
@@ -23,8 +23,8 @@
% MA 02110-1301 USA
\NeedsTeXFormat{LaTeX2e}[1995/06/01]
-\def\fileversion{4.8.2}
-\def\filedate{2008/12/29}
+\def\fileversion{4.8.3}
+\def\filedate{2012/05/07}
\ProvidesPackage{ruby}[\filedate\space\fileversion]
@@ -72,12 +72,13 @@
\sbox\@tempboxa{\fontsize{\@tempdimc}{1.2\@tempdimc}\selectfont
\vrule\@height\z@\@depth.3\baselineskip\@width\z@ #2}
+ % save width value of previous ruby (if applicable)
\@tempdimb\ruby@width
\global\ruby@width \wd\@tempboxa
\global\advance\ruby@width -\wd\z@
- \global\divide\ruby@width \tw@
\ifdim\ruby@width > \z@
+ \global\divide\ruby@width \tw@
\else
\global\ruby@width \z@
\fi
@@ -110,7 +111,7 @@
\fi
\else
- % has previous character a ruby?
+ % has previous character a ruby with \ruby@width > 0?
\ifnum\lastkern = 5% \ruby@kern
\kern\@tempdimb
\ifruby@CJK@
@@ -149,13 +150,15 @@
\box\@tempboxa
- \ruby@kern
\ifdim\ruby@width > \z@
+ \ruby@kern
\ifruby@overlap@
\else
\global\ruby@width\z@
\fi
\else
+ \kern -1sp
+ \kern 1sp
\global\ruby@width\z@
\fi}