summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/make4ht/formats
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-09-07 21:20:51 +0000
committerKarl Berry <karl@freefriends.org>2020-09-07 21:20:51 +0000
commit5c122b3fd45bd3b2708e3fc0927e84243d548709 (patch)
tree8930267a2d57bcd925d66d3f3d240e1c4b7a956b /Master/texmf-dist/scripts/make4ht/formats
parent3581485c7b70a58b3297157f006b3260ce2b11c0 (diff)
make4ht (7sep20)
git-svn-id: svn://tug.org/texlive/trunk@56284 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/scripts/make4ht/formats')
-rw-r--r--Master/texmf-dist/scripts/make4ht/formats/make4ht-jats.lua14
-rw-r--r--Master/texmf-dist/scripts/make4ht/formats/make4ht-tei.lua17
2 files changed, 31 insertions, 0 deletions
diff --git a/Master/texmf-dist/scripts/make4ht/formats/make4ht-jats.lua b/Master/texmf-dist/scripts/make4ht/formats/make4ht-jats.lua
new file mode 100644
index 00000000000..13bcd86d41e
--- /dev/null
+++ b/Master/texmf-dist/scripts/make4ht/formats/make4ht-jats.lua
@@ -0,0 +1,14 @@
+local M = {}
+local xtpipeslib = require "make4ht-xtpipes"
+
+function M.prepare_parameters(settings, extensions)
+ settings.tex4ht_sty_par = settings.tex4ht_sty_par ..",jats"
+ settings = mkutils.extensions_prepare_parameters(extensions, settings)
+ return settings
+end
+
+function M.prepare_extensions(extensions)
+ return extensions
+end
+
+return M
diff --git a/Master/texmf-dist/scripts/make4ht/formats/make4ht-tei.lua b/Master/texmf-dist/scripts/make4ht/formats/make4ht-tei.lua
index f81953a8b31..660f6d49d83 100644
--- a/Master/texmf-dist/scripts/make4ht/formats/make4ht-tei.lua
+++ b/Master/texmf-dist/scripts/make4ht/formats/make4ht-tei.lua
@@ -1,6 +1,8 @@
local M = {}
local xtpipeslib = require "make4ht-xtpipes"
+local domfilter = require "make4ht-domfilter"
+
function M.prepare_parameters(settings, extensions)
settings.tex4ht_sty_par = settings.tex4ht_sty_par ..",tei"
settings = mkutils.extensions_prepare_parameters(extensions, settings)
@@ -11,4 +13,19 @@ function M.prepare_extensions(extensions)
return extensions
end
+function M.modify_build(make)
+ local process = domfilter {
+ "joincharacters"
+ }
+
+ -- we use <hi> elements for characters styled using HTF fonts in TEI
+ -- use the `joincharacters` DOM filter to join them
+ filter_settings "joincharacters" {
+ charclasses = { hi=true, mn = true}
+ }
+
+ make:match("xml$", process)
+ return make
+end
+
return M