Debian Codegraph @

texmf-dist/tex/generic/tex4ht/tuenc-luatex.4ht

raw
1 % tuenc-luatex.4ht, generated from tex4ht-4ht.tex
2 % Copyright 2017-2018 TeX Users Group
3 %
4 % This work may be distributed and/or modified under the
5 % conditions of the LaTeX Project Public License, either
6 % version 1.3c of this license or (at your option) any
7 % later version. The latest version of this license is in
8 % http://www.latex-project.org/lppl.txt
9 % and version 1.3c or later is part of all distributions
10 % of LaTeX version 2005/12/01 or later.
11 %
12 % This work has the LPPL maintenance status "maintained".
13 %
14 % The Current Maintainer of this work
15 % is the TeX4ht Project <http://tug.org/tex4ht>.
16 %
17 % If you modify this program, changing the
18 % version identification would be appreciated.
19 \immediate\write-1{version 2018-08-30-15:28}
20
21 \RequirePackage{luatexbase}
22 \RequirePackage{luacode}
23
24 \begin{luacode*}
25 local fontspec = require "fontspec-4ht"
26 luatexbase.add_to_callback("pre_linebreak_filter", fontspec.char_to_entity, "Char to entity")
27 luatexbase.add_to_callback("hpack_filter", fontspec.char_to_entity, "hpack-char-to-entity")
28 luatexbase.add_to_callback("vpack_filter", fontspec.char_to_entity, "hpack-char-to-entity")
29 \end{luacode*}
30 \Hinput{tuenc-luatex}
31 \endinput
32