summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/make4ht/extensions/odttemplate.lua
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-01-10 22:21:14 +0000
committerKarl Berry <karl@freefriends.org>2019-01-10 22:21:14 +0000
commit8368bb1a1e80c128b441a121a8fda08f0e32d5ae (patch)
treefb96d623f66cd3bd555c48c0874af9c5ec85fc07 /Master/texmf-dist/scripts/make4ht/extensions/odttemplate.lua
parent59da7b9e7d480f0bc7e89000998103cd707436e7 (diff)
make4ht (10jan19)
git-svn-id: svn://tug.org/texlive/trunk@49664 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/scripts/make4ht/extensions/odttemplate.lua')
-rw-r--r--Master/texmf-dist/scripts/make4ht/extensions/odttemplate.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/Master/texmf-dist/scripts/make4ht/extensions/odttemplate.lua b/Master/texmf-dist/scripts/make4ht/extensions/odttemplate.lua
new file mode 100644
index 00000000000..3b0af2a6999
--- /dev/null
+++ b/Master/texmf-dist/scripts/make4ht/extensions/odttemplate.lua
@@ -0,0 +1,16 @@
+local M = {}
+
+local filter = require "make4ht-filter"
+
+-- this extension only works for the ODT format
+M.test = function(format)
+ return format=="odt"
+end
+
+M.modify_build = function(make)
+ local process = filter {"odttemplate"}
+ make:match("4oy$", process)
+ return make
+end
+
+return M