texlive[42672] Master/texmf-dist/tex/generic/tex4ht: fontspec fixes,

commits+karl at tug.org commits+karl at tug.org
Sun Dec 11 00:38:31 CET 2016


Revision: 42672
          http://tug.org/svn/texlive?view=revision&revision=42672
Author:   karl
Date:     2016-12-11 00:38:30 +0100 (Sun, 11 Dec 2016)
Log Message:
-----------
fontspec fixes, tex4ht r215, http://puszcza.gnu.org.ua/bugs/?123

Revision Links:
--------------
    http://tug.org/svn/texlive?view=revision&revision=215

Modified Paths:
--------------
    trunk/Master/texmf-dist/tex/generic/tex4ht/fontspec-4ht.lua
    trunk/Master/texmf-dist/tex/generic/tex4ht/usepackage.4ht

Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/fontspec-4ht.lua
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/fontspec-4ht.lua	2016-12-10 22:49:12 UTC (rev 42671)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/fontspec-4ht.lua	2016-12-10 23:38:30 UTC (rev 42672)
@@ -1,8 +1,23 @@
--- fontspec-4ht.lua (2016-12-08-16:38), generated from tex4ht-4ht.tex
+-- fontspec-4ht.lua (2016-12-10-15:36), generated from tex4ht-4ht.tex
 -- Copyright 2016       TeX Users Group
 --[[
 % Copyright 2009-2016 TeX Users Group
-
+%
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either
+% version 1.3c of this license or (at your option) any
+% later version. The latest version of this license is in
+%   http://www.latex-project.org/lppl.txt
+% and version 1.3c or later is part of all distributions
+% of LaTeX version 2005/12/01 or later.
+%
+% This work has the LPPL maintenance status "maintained".
+%
+% The Current Maintainer of this work
+% is the TeX4ht Project <http://tug.org/tex4ht>.
+%
+% If you modify this program, changing the
+% version identification would be appreciated.
 --]]
 local M = {}
 
@@ -25,7 +40,7 @@
 end
 
 -- this should be table with patterns for allowed fonts
-local allowed_names = {"^cmr", "^cmb","^cmt", "^cmb", "^cmcs", "^rm%-l"}
+local allowed_names = {"^cmr", "^cmb","^cmt", "^cmb", "^cmcs", "^rm%-l", "^cmi", "none"}
 
 local testfont = function(name)
   -- test font name for all allowed names, when it is found, return true
@@ -41,7 +56,7 @@
 local fonttypes = {}
 local get_font_type = function(id)
   if fonttypes[id]~=nil then return fonttypes[id] end
-  local f = font.getfont(id)
+  local f = font.getfont(id) or {name = "none"} -- font object can be nil sometimes
   local name = f.name
   local type = testfont(string.lower(name))
   if not type then

Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/usepackage.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/usepackage.4ht	2016-12-10 22:49:12 UTC (rev 42671)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/usepackage.4ht	2016-12-10 23:38:30 UTC (rev 42672)
@@ -1,4 +1,4 @@
-% usepackage.4ht (2016-12-09-15:49), generated from tex4ht-4ht.tex
+% usepackage.4ht (2016-12-10-15:36), generated from tex4ht-4ht.tex
 % Copyright 2003-2009 Eitan M. Gurari
 % Copyright 2009-2016 TeX Users Group
 %
@@ -93,6 +93,11 @@
   \global\expandafter\let\csname opt at fontenc.sty\endcsname\relax
 }
 \ExplSyntaxOff
+\edef\TivhTcats{%
+  \catcode`:=12%
+  \catcode`@=\the\catcode`@%
+}
+
 \fi
 
 



More information about the tex-live-commits mailing list