texlive[76134] Master/texmf-dist: luatexko (24aug25)

commits+karl at tug.org commits+karl at tug.org
Sun Aug 24 22:49:57 CEST 2025


Revision: 76134
          https://tug.org/svn/texlive?view=revision&revision=76134
Author:   karl
Date:     2025-08-24 22:49:57 +0200 (Sun, 24 Aug 2025)
Log Message:
-----------
luatexko (24aug25)

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.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	2025-08-24 20:49:47 UTC (rev 76133)
+++ trunk/Master/texmf-dist/doc/luatex/luatexko/ChangeLog	2025-08-24 20:49:57 UTC (rev 76134)
@@ -1,3 +1,14 @@
+2025-08-24	Dohyun Kim <nomosnomos at gmail com>
+
+	Version 4.4
+
+	* luatexko.lua:
+	- ignore non-glyph nodes in hbox_char_font(); so a box is now treated
+	just like a character even if it starts or ends with a glue.
+	- insert 0pt userkern between ruby and base boxes, to prevent possible
+	glue made possible by the above change
+	- insert the same userken between base character and dotemph box
+
 2025-08-23	Dohyun Kim <nomosnomos at gmail com>
 
 	Version 4.3

Modified: trunk/Master/texmf-dist/doc/luatex/luatexko/README
===================================================================
--- trunk/Master/texmf-dist/doc/luatex/luatexko/README	2025-08-24 20:49:47 UTC (rev 76133)
+++ trunk/Master/texmf-dist/doc/luatex/luatexko/README	2025-08-24 20:49:57 UTC (rev 76134)
@@ -1,4 +1,4 @@
-LuaTeX-ko Package version 4.3 (2025/08/23)
+LuaTeX-ko Package version 4.4 (2025/08/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	2025-08-24 20:49:47 UTC (rev 76133)
+++ trunk/Master/texmf-dist/doc/luatex/luatexko/luatexko-doc.tex	2025-08-24 20:49:57 UTC (rev 76134)
@@ -154,7 +154,7 @@
 \author{\normalsize Dohyun Kim |<nomosnomos at gmail com>| \and
         \normalsize Soojin Nam |<jsunam at gmail com>| \and
         \normalsize <\url{http://github.com/dohyunkim/luatexko}>}
-\date{Version 4.3\quad 2025/08/23}
+\date{Version 4.4\quad 2025/08/24}
 \maketitle
 
 \begin{quote}

Modified: trunk/Master/texmf-dist/tex/luatex/luatexko/luatexko.lua
===================================================================
--- trunk/Master/texmf-dist/tex/luatex/luatexko/luatexko.lua	2025-08-24 20:49:47 UTC (rev 76133)
+++ trunk/Master/texmf-dist/tex/luatex/luatexko/luatexko.lua	2025-08-24 20:49:57 UTC (rev 76134)
@@ -13,8 +13,8 @@
 
 luatexbase.provides_module {
   name        = 'luatexko',
-  date        = '2025/08/23',
-  version     = '4.3',
+  date        = '2025/08/24',
+  version     = '4.4',
   description = 'typesetting Korean with LuaTeX',
   author      = 'Dohyun Kim, Soojin Nam',
   license     = 'LPPL v1.3+',
@@ -817,8 +817,7 @@
   return allowbreak_false_nodes[id] or id == kernid and subtype == userkern
 end
 
-local function hbox_char_font (box, init, glyfonly)
-  if has_attribute(box,rubyattr) then glyfonly = true end
+local function hbox_char_font (box, init, glyfonly) -- ignore glyfonly
   local mynext = init and getnext  or getprev
   local curr   = init and box.list or nodeslide(box.list)
   while curr do
@@ -830,8 +829,6 @@
       end
     elseif curr.list then
       return hbox_char_font(curr, init, glyfonly)
-    elseif not glyfonly and is_blocking_node(curr) then
-      return
     end
     curr = mynext(curr)
   end
@@ -1009,6 +1006,10 @@
         local ict = old and intercharclass[pcl][ccl] -- under classic env. only
         if ict then
           dim = fontoptions.intercharacter[f] or 0
+        elseif f == cf then
+          -- in case of Latin + pxrubrica ruby
+          local dim2 = fontoptions.en_size[pf]/fontoptions.en_size[f] * dim
+          if dim2 > dim then dim = dim2 end
         end
         head = insert_glue_before(head, curr, par, true, brb, old, ict, dim, f)
       end
@@ -1441,6 +1442,10 @@
 
             box.width = 0
             head, curr = insert_after(head, curr, box)
+
+            local k = nodenew(kernid)
+            k.subtype, k.kern = userkern, 0
+            head = insert_before(head, curr, k)
           end
         end
       end
@@ -1540,6 +1545,7 @@
       g.attr = curr.attr
       local k = nodenew(kernid)
       k.kern = -len
+      k.subtype = userkern
       head = insert_before(head, start, g)
       head = insert_before(head, start, k)
     end
@@ -1677,6 +1683,10 @@
 
           ruby.shift = shift - ascender - descender - ruby_t[2] -- rubysep
           head = insert_before(head, curr, ruby)
+
+          local k = nodenew(kernid)
+          k.subtype, k.kern = userkern, 0
+          head = insert_before(head, curr, k) -- prevent possible glue insertion (unhbox etc)
         end
         rubybox[rubyid] = nil
       end

Modified: trunk/Master/texmf-dist/tex/luatex/luatexko/luatexko.sty
===================================================================
--- trunk/Master/texmf-dist/tex/luatex/luatexko/luatexko.sty	2025-08-24 20:49:47 UTC (rev 76133)
+++ trunk/Master/texmf-dist/tex/luatex/luatexko/luatexko.sty	2025-08-24 20:49:57 UTC (rev 76134)
@@ -14,7 +14,7 @@
 \ifdefined\luatexkohangulfontattr \endinput\fi
 \ifdefined\ProvidesPackage
   \NeedsTeXFormat{LaTeX2e}[2025/06/01]
-  \ProvidesPackage{luatexko}[2025/08/23 v4.3 typesetting Korean with LuaTeX]
+  \ProvidesPackage{luatexko}[2025/08/24 v4.4 typesetting Korean with LuaTeX]
   \RequirePackage{luatexbase}
   \RequirePackage{fontspec}[2020/02/03]
   \let\luatexkoselectfont\selectfont



More information about the tex-live-commits mailing list.