[tex4ht-commits] [SCM] tex4ht updated: r578 - trunk/lit
michal_h21 at gnu.org.ua
michal_h21 at gnu.org.ua
Tue Jun 18 18:07:39 CEST 2019
Author: michal_h21
Date: 2019-06-18 19:07:39 +0300 (Tue, 18 Jun 2019)
New Revision: 578
Modified:
trunk/lit/ChangeLog
trunk/lit/tex4ht-4ht.tex
Log:
fix for unicode specials inserted at the beginning of the node list
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2019-06-11 15:44:22 UTC (rev 577)
+++ trunk/lit/ChangeLog 2019-06-18 16:07:39 UTC (rev 578)
@@ -1,3 +1,8 @@
+2019-06-18 Michal Hoftich <michal.h21 at gmail.com>
+
+ * tex4ht-4ht.tex (fontspec-4ht.lua): fix for unicode specials inserted at the
+ beginning of a node list.
+
2019-06-11 Michal Hoftich <michal.h21 at gmail.com>
* tex4ht-html4.tex (html4.4ht): don't pass the PDF name to epstopdf, it can
Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex 2019-06-11 15:44:22 UTC (rev 577)
+++ trunk/lit/tex4ht-4ht.tex 2019-06-18 16:07:39 UTC (rev 578)
@@ -3869,6 +3869,14 @@
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"}
@@ -3924,7 +3932,7 @@
n.dir = "+TLT"
end
end
- return head
+ return first_node(head)
end
M.allowed = allowed_names
More information about the tex4ht-commits
mailing list