OSDN Git Service

bugfix
authorHironori Kitagawa <h_kitagawa2001@yahoo.co.jp>
Fri, 18 Jan 2019 15:19:06 +0000 (00:19 +0900)
committerHironori Kitagawa <h_kitagawa2001@yahoo.co.jp>
Fri, 18 Jan 2019 15:19:06 +0000 (00:19 +0900)
src/ltj-rmlgbm.lua

index 702761a..f12e1a3 100644 (file)
@@ -351,6 +351,9 @@ local function font_callback(name, size, id, fallback)
            if xname:len()+1==q then p = nil else p = q + 1 end
         end
       end
+      p = basename:find(":")
+      if p then basename=basename:sub(1,p-1) end
+      if basename:sub(1,1)=="{" and basename:sub(-1)=="}" then basename = basename:sub(2,-2) end
       cid_reg, cid_order = string.match(s, "^(.-)%-(.-)%-(%d-)$")
       if not cid_reg then
          cid_reg, cid_order = string.match(s, "^(.-)%-(.-)$")