diff options
author | Karl Berry <karl@freefriends.org> | 2021-10-11 20:26:10 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-10-11 20:26:10 +0000 |
commit | e4ac240b2aab8cfa7e290e224e2837359ee089ca (patch) | |
tree | ef9fe92b5826efe43c86ccd1a2dc379e4fd9b343 /Master/texmf-dist/scripts/make4ht/formats | |
parent | 5743624ea509ba5a2e1a933dc8e0327cc268ed8c (diff) |
make4ht (11oct21)
git-svn-id: svn://tug.org/texlive/trunk@60738 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/scripts/make4ht/formats')
-rw-r--r-- | Master/texmf-dist/scripts/make4ht/formats/make4ht-odt.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Master/texmf-dist/scripts/make4ht/formats/make4ht-odt.lua b/Master/texmf-dist/scripts/make4ht/formats/make4ht-odt.lua index 257e597bb3a..f3721eba00b 100644 --- a/Master/texmf-dist/scripts/make4ht/formats/make4ht-odt.lua +++ b/Master/texmf-dist/scripts/make4ht/formats/make4ht-odt.lua @@ -127,7 +127,7 @@ local function fix_picture_sizes(tmpdir) end local content = f:read("*all") or "" f:close() - local status, domobject = pcall(function() + local status, dom= pcall(function() return domobject.parse(content) end) if not status then @@ -224,13 +224,13 @@ function M.modify_build(make) -- expanded in tex4ht.env in Miktex or Debian call_xtpipes(make) -- fix the image dimensions wrongly set by xtpipes - local domfilters = domfilter {"t4htlinks", "odtpartable"} + local domfilters = domfilter({"t4htlinks", "odtpartable"}, "odtfilters") make:match("4oo$", domfilters) - -- fixes for mathml - local mathmldomfilters = domfilter {"joincharacters","mathmlfixes"} - make:match("4om$", mathmldomfilters) -- execute it before xtpipes, because we don't want xtpipes to mess with t4htlink elements move_matches(make) + -- fixes for mathml + local mathmldomfilters = domfilter({"joincharacters","mathmlfixes"}, "mathmlfilters") + make:match("4om$", mathmldomfilters) -- convert XML entities for Unicode characters produced by Xtpipes to characters local fixentities = filter {"entities-to-unicode", remove_xtpipes} make:match("4oo", fixentities) |