texlive[50570] Master/texmf-dist: luatexko (24mar19)
commits+karl at tug.org
commits+karl at tug.org
Sun Mar 24 22:11:42 CET 2019
Revision: 50570
http://tug.org/svn/texlive?view=revision&revision=50570
Author: karl
Date: 2019-03-24 22:11:42 +0100 (Sun, 24 Mar 2019)
Log Message:
-----------
luatexko (24mar19)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/luatex/luatexko/ChangeLog
trunk/Master/texmf-dist/doc/luatex/luatexko/README
trunk/Master/texmf-dist/doc/luatex/luatexko/luatexko-doc.pdf
trunk/Master/texmf-dist/doc/luatex/luatexko/luatexko-doc.tex
trunk/Master/texmf-dist/tex/luatex/luatexko/luatexko-core.sty
trunk/Master/texmf-dist/tex/luatex/luatexko/luatexko-normalize.lua
trunk/Master/texmf-dist/tex/luatex/luatexko/luatexko-uhc2utf8.lua
trunk/Master/texmf-dist/tex/luatex/luatexko/luatexko.lua
trunk/Master/texmf-dist/tex/luatex/luatexko/luatexko.sty
Modified: trunk/Master/texmf-dist/doc/luatex/luatexko/ChangeLog
===================================================================
--- trunk/Master/texmf-dist/doc/luatex/luatexko/ChangeLog 2019-03-24 21:01:59 UTC (rev 50569)
+++ trunk/Master/texmf-dist/doc/luatex/luatexko/ChangeLog 2019-03-24 21:11:42 UTC (rev 50570)
@@ -1,3 +1,12 @@
+2019-03-24 Dohyun Kim <nomos at ktug org>
+
+ Version 1.23
+
+ * luatexko.lua: change post-linebreak callback from
+ 'post_linebreak_filter' to 'hpack_filter' with groupcode restriction.
+ * luatex-core.sty: remove '\pdffontsize' and replace it with a
+ more suitable equivalent.
+
2018-11-09 Dohyun Kim <nomos at ktug org>
Version 1.22
Modified: trunk/Master/texmf-dist/doc/luatex/luatexko/README
===================================================================
--- trunk/Master/texmf-dist/doc/luatex/luatexko/README 2019-03-24 21:01:59 UTC (rev 50569)
+++ trunk/Master/texmf-dist/doc/luatex/luatexko/README 2019-03-24 21:11:42 UTC (rev 50570)
@@ -1,4 +1,4 @@
-LuaTeX-ko Package version 1.22 (2018/11/09)
+LuaTeX-ko Package version 1.23 (2019/03/24)
===========================================
This is a Lua(La)TeX macro package that supports typesetting Korean
Modified: trunk/Master/texmf-dist/doc/luatex/luatexko/luatexko-doc.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/luatex/luatexko/luatexko-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/luatex/luatexko/luatexko-doc.tex 2019-03-24 21:01:59 UTC (rev 50569)
+++ trunk/Master/texmf-dist/doc/luatex/luatexko/luatexko-doc.tex 2019-03-24 21:11:42 UTC (rev 50570)
@@ -17,6 +17,7 @@
AutoFakeSlant,
Script=Hangul,
Language=Korean,
+ LocalForms=On,
UprightFont=* Light,
BoldFont=* Bold,
InterLatinCJK=.125em,
@@ -55,7 +56,9 @@
\def\hemph#1{\textsf{\bfseries #1}}
\def\cs#1{\texttt{\textbackslash\detokenize{#1}}}
\def\ldots{$\dots$}
+\registerpunctuations{`-}
\widowpenalty10000 \clubpenalty10000
+\automatichyphenmode=1 % for emdash in tl2019 pretest
\begin{document}
\title{\luatexko\ 간단 매뉴얼}
@@ -62,7 +65,7 @@
\author{Dohyun Kim \normalsize |<nomos at ktug org>| \and
Soojin Nam \normalsize |<jsunam at gmail com>| \and
\normalsize <\url{http://github.com/dohyunkim/luatexko}>}
-\date{Version 1.22\quad 2018/11/09}
+\date{Version 1.23\quad 2019/03/24}
\maketitle
\begin{quote}\small
@@ -142,7 +145,7 @@
\end{verbatim}
\cs{adhochangulfont} \cs{adhochanjafont} \cs{addhocfallbackfont}는
마지막 줄 명령들의 다른 이름들이다.
-첫 두 줄의 명령들, 즉 main/sans hangul/hanja/fallback 글꼴에는
+첫 두 줄, 즉 main/sans hangul/hanja/fallback 글꼴에는
|Ligatures=TeX| 옵션이 자동으로 주어진다.
\begin{itemize}\item[]
플레인텍에서 한글 글꼴 설정은 영문 글꼴 지정하는 방식과 거의 같다.
@@ -445,15 +448,15 @@
명령을 따로 제공한다. 플레인텍에서도 쓸 수 있다.
\bigskip
-\halign{\qquad#\hfil&\quad$\Rightarrow$\quad#\hfil\cr
-\cs{uline{밑줄을 그을 수 있다}}&\uline{밑줄을 그을 수 있다}\cr
-\cs{sout{취소선을 그을 수 있다}}&\sout{취소선을 그을 수 있다}\cr
-\cs{uuline{밑줄을 두 줄 긋는다}}&\uuline{밑줄을 두 줄 긋는다}\cr
-\cs{xout{빗금으로 취소할 수 있다}}&\xout{빗금으로 취소할 수 있다}\cr
-\cs{uwave{물결표로 밑줄을 삼는다}}&\uwave{물결표로 밑줄을 삼는다}\cr
-\cs{dashuline{대시로 밑줄을 삼는다}}&\dashuline{대시로 밑줄을 삼는다}\cr
-\cs{dotuline{밑줄을 점선으로 긋는다}}&\dotuline{밑줄을 점선으로 긋는다}\cr
-}
+\begin{tabular}{l@{\quad$\Rightarrow$\quad}l}
+\cs{uline{밑줄을 그을 수 있다}}&\uline{밑줄을 그을 수 있다}\\
+\cs{sout{취소선을 그을 수 있다}}&\sout{취소선을 그을 수 있다}\\
+\cs{uuline{밑줄을 두 줄 긋는다}}&\uuline{밑줄을 두 줄 긋는다}\\
+\cs{xout{빗금으로 취소할 수 있다}}&\xout{빗금으로 취소할 수 있다}\\
+\cs{uwave{물결표로 밑줄을 삼는다}}&\uwave{물결표로 밑줄을 삼는다}\\
+\cs{dashuline{대시로 밑줄을 삼는다}}&\dashuline{대시로 밑줄을 삼는다}\\
+\cs{dotuline{밑줄을 점선으로 긋는다}}&\dotuline{밑줄을 점선으로 긋는다}\\
+\end{tabular}
\bigskip
관련하여 다음 설정을 할 수 있다.
Modified: trunk/Master/texmf-dist/tex/luatex/luatexko/luatexko-core.sty
===================================================================
--- trunk/Master/texmf-dist/tex/luatex/luatexko/luatexko-core.sty 2019-03-24 21:01:59 UTC (rev 50569)
+++ trunk/Master/texmf-dist/tex/luatex/luatexko/luatexko-core.sty 2019-03-24 21:11:42 UTC (rev 50570)
@@ -1,6 +1,6 @@
% luatexko-core.sty
%
-% Copyright (c) 2013-2018 Dohyun Kim <nomos at ktug org>
+% Copyright (c) 2013-2019 Dohyun Kim <nomos at ktug org>
% Soojin Nam <jsunam at gmail com>
%
% This work may be distributed and/or modified under the
@@ -17,7 +17,7 @@
\ifcsname ifpdf\endcsname\else \input ifpdf.sty \fi
\catcode`@ = 11
\else
- \ProvidesPackage{luatexko-core}[2018/11/09 v1.22 Typesetting Korean with LuaTeX]
+ \ProvidesPackage{luatexko-core}[2019/03/24 v1.23 Typesetting Korean with LuaTeX]
\RequirePackage{luaotfload}[2016/04/21]
\RequirePackage{ifpdf}
\fi
@@ -31,12 +31,7 @@
\let\scantextokens\luatexscantextokens
\let\luaescapestring\luatexluaescapestring
\fi
-\ifdefined\pdffontsize\else % luatex 0.87
- \ifpdf
- \def\pdffontsize{\pdffeedback fontsize}
- \else
- \def\pdffontsize{\the\fontdimen6 }
- \fi
+\ifdefined\pdfliteral\else % luatex 0.87
\protected\def\pdfliteral{\pdfextension literal}
\fi
@@ -136,8 +131,7 @@
\setbox\tw@\hbox{% ruby
\ifdefined\rubyfont \rubyfont \fi
\ifcsname selectfont\endcsname % latex
- \expandafter\dimen@\pdffontsize\font
- \dimen@\rubysize\dimen@
+ \dimen@\dimexpr\rubysize em\relax
\fontsize\dimen@\dimen@\selectfont
\else % plain
\luatexko at resize@font\font\resized at font\font\rubysize
@@ -166,7 +160,7 @@
\def\luatexko at resize@font#1#2#3#4{%
\begingroup
\edef\x@{\noexpand\rem at vesizepart\fontname#3\detokenize{ at}\noexpand\end}%
- \edef\y@{\endgroup#1\noexpand#2 \x@\space at#4\dimexpr\pdffontsize#3\relax}%
+ \edef\y@{\endgroup#1\noexpand#2 \x@\space at#4\dimexpr\fontdimen6 #3\relax}%
\y@#2}
\fi
Modified: trunk/Master/texmf-dist/tex/luatex/luatexko/luatexko-normalize.lua
===================================================================
--- trunk/Master/texmf-dist/tex/luatex/luatexko/luatexko-normalize.lua 2019-03-24 21:01:59 UTC (rev 50569)
+++ trunk/Master/texmf-dist/tex/luatex/luatexko/luatexko-normalize.lua 2019-03-24 21:11:42 UTC (rev 50570)
@@ -1,6 +1,6 @@
-- luatexko-normalize.lua
--
--- Copyright (c) 2013-2018 Dohyun Kim <nomos at ktug org>
+-- Copyright (c) 2013-2019 Dohyun Kim <nomos at ktug org>
-- Soojin Nam <jsunam at gmail com>
--
-- This work may be distributed and/or modified under the
@@ -13,8 +13,8 @@
luatexbase.provides_module({
name = "luatexko-normalize",
- version = "1.19",
- date = "2018/04/06",
+ version = "1.23",
+ date = "2019/03/24",
author = "Dohyun Kim, Soojin Nam",
description = "Hangul normalization",
license = "LPPL v1.3+",
Modified: trunk/Master/texmf-dist/tex/luatex/luatexko/luatexko-uhc2utf8.lua
===================================================================
--- trunk/Master/texmf-dist/tex/luatex/luatexko/luatexko-uhc2utf8.lua 2019-03-24 21:01:59 UTC (rev 50569)
+++ trunk/Master/texmf-dist/tex/luatex/luatexko/luatexko-uhc2utf8.lua 2019-03-24 21:11:42 UTC (rev 50570)
@@ -1,6 +1,6 @@
-- luatexko-uhc2utf8.lua
--
--- Copyright (c) 2013-2018 Dohyun Kim <nomos at ktug org>
+-- Copyright (c) 2013-2019 Dohyun Kim <nomos at ktug org>
-- Soojin Nam <jsunam at gmail com>
--
-- This work may be distributed and/or modified under the
@@ -13,8 +13,8 @@
luatexbase.provides_module({
name = "luatexko-uhc2utf8",
- version = "1.19",
- date = "2018/04/06",
+ version = "1.23",
+ date = "2019/03/24",
author = "Dohyun Kim, Soojin Nam",
description = "UHC (CP949) input encoding",
license = "LPPL v1.3+",
Modified: trunk/Master/texmf-dist/tex/luatex/luatexko/luatexko.lua
===================================================================
--- trunk/Master/texmf-dist/tex/luatex/luatexko/luatexko.lua 2019-03-24 21:01:59 UTC (rev 50569)
+++ trunk/Master/texmf-dist/tex/luatex/luatexko/luatexko.lua 2019-03-24 21:11:42 UTC (rev 50570)
@@ -1,6 +1,6 @@
-- luatexko.lua
--
--- Copyright (c) 2013-2018 Dohyun Kim <nomos at ktug org>
+-- Copyright (c) 2013-2019 Dohyun Kim <nomos at ktug org>
-- Soojin Nam <jsunam at gmail com>
--
-- This work may be distributed and/or modified under the
@@ -13,8 +13,8 @@
luatexbase.provides_module {
name = 'luatexko',
- date = '2018/11/09',
- version = '1.22',
+ date = '2019/03/24',
+ version = '1.23',
description = 'Korean linebreaking and font-switching',
author = 'Dohyun Kim, Soojin Nam',
license = 'LPPL v1.3+',
@@ -1866,6 +1866,7 @@
head = draw_underline(head,curr,glueset,gluesign,glueorder,ubox,start)
ulstart[attr] = nil
end
+ d_unset_attribute(curr,luakoulineattr)
end
end
end
@@ -1893,13 +1894,16 @@
return d_tonode(head)
end, 'luatexko.vpack_filter')
-add_to_callback("post_linebreak_filter", function(head)
- head = d_todirect(head)
- if texcount["luakodotemphcnt"]>0 then head = after_linebreak_dotemph(head) end
- if texcount["luakorubyattrcnt"]>0 then after_linebreak_ruby(head) end
- if texcount["luakoulineboxcnt"]>0 then head = after_linebreak_underline(head) end
- return d_tonode(head)
-end, 'luatexko.post_linebreak_filter')
+add_to_callback('hpack_filter', function(head, groupcode)
+ if groupcode == "align_set" then
+ head = d_todirect(head)
+ if texcount["luakodotemphcnt"]>0 then head = after_linebreak_dotemph(head) end
+ if texcount["luakorubyattrcnt"]>0 then after_linebreak_ruby(head) end
+ if texcount["luakoulineboxcnt"]>0 then head = after_linebreak_underline(head) end
+ head = d_tonode(head)
+ end
+ return head
+end, 'luatexko.hpack_filter.postlinebreak')
------------------------------------
Modified: trunk/Master/texmf-dist/tex/luatex/luatexko/luatexko.sty
===================================================================
--- trunk/Master/texmf-dist/tex/luatex/luatexko/luatexko.sty 2019-03-24 21:01:59 UTC (rev 50569)
+++ trunk/Master/texmf-dist/tex/luatex/luatexko/luatexko.sty 2019-03-24 21:11:42 UTC (rev 50570)
@@ -1,6 +1,6 @@
% luatexko.sty
%
-% Copyright (c) 2013-2018 Dohyun Kim <nomos at ktug org>
+% Copyright (c) 2013-2019 Dohyun Kim <nomos at ktug org>
% Soojin Nam <jsunam at gmail com>
%
% This work may be distributed and/or modified under the
@@ -23,7 +23,7 @@
\expandafter\endinput
\fi
-\ProvidesPackage{luatexko}[2018/11/09 v1.22 Typesetting Korean with LuaLaTeX]
+\ProvidesPackage{luatexko}[2019/03/24 v1.23 Typesetting Korean with LuaLaTeX]
\ifdefined\adjustspacing\else % luatex < 0.87
\let\adjustspacing\pdfadjustspacing
More information about the tex-live-commits
mailing list