summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/tex4ht/fontspec-4ht.lua
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/generic/tex4ht/fontspec-4ht.lua')
-rw-r--r--Master/texmf-dist/tex/generic/tex4ht/fontspec-4ht.lua16
1 files changed, 12 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/generic/tex4ht/fontspec-4ht.lua b/Master/texmf-dist/tex/generic/tex4ht/fontspec-4ht.lua
index 2f6bb120255..c6965220166 100644
--- a/Master/texmf-dist/tex/generic/tex4ht/fontspec-4ht.lua
+++ b/Master/texmf-dist/tex/generic/tex4ht/fontspec-4ht.lua
@@ -1,5 +1,5 @@
--- fontspec-4ht.lua (2019-05-27-14:22), generated from tex4ht-4ht.tex
--- Copyright 2016-2017 TeX Users Group
+-- fontspec-4ht.lua (2019-06-18-15:43), generated from tex4ht-4ht.tex
+-- Copyright 2016-2019 TeX Users Group
--[[
%
% This work may be distributed and/or modified under the
@@ -17,7 +17,7 @@
%
% If you modify this program, changing the
% version identification would be appreciated.
-\immediate\write-1{version 2019-05-27-14:22}
+\immediate\write-1{version 2019-06-18-15:43}
--]]
local M = {}
@@ -40,6 +40,14 @@ local make_node = function(data)
return n
end
+local function first_node(head)
+ local head = head
+ while head.prev do
+ head = head.prev
+ end
+ return head
+end
+
-- this should be table with patterns for allowed fonts
local allowed_names = {"^cmr", "^cmb","^cmt", "^cmb", "^cmcs", "^rm%-l", "^cmi", "^ec%-lm", "none"}
@@ -95,7 +103,7 @@ function M.char_to_entity(head)
n.dir = "+TLT"
end
end
- return head
+ return first_node(head)
end
M.allowed = allowed_names