Skip to content

Commit

Permalink
experiment with bdc nodes, see issue #27
Browse files Browse the repository at this point in the history
  • Loading branch information
u-fischer committed Nov 3, 2019
1 parent 103b825 commit 264dbf7
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions experiments/exp-bdc-problem-harfmode.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
\documentclass[12pt]{article}
\usepackage{tagpdf}
\tagpdfsetup{activate-all,uncompress,tagunmarked=false}
\directlua{
local cbs = luatexbase.callback_descriptions'glyph_info'
local desc = cbs[1]
assert(desc == "Harf glyph_info callback" and nil == next(cbs, 1))
local cb = luatexbase.remove_from_callback('glyph_info', desc)
luatexbase.add_to_callback('glyph_info', function(n)
return string.format('"\csstring\%s" \csstring\%04X \csstring\%+i:\csstring\%+i', cb(n), n.char, n.xoffset, n.yoffset)
end, 'Harf glyph_info callback -- testing variant')
}
\usepackage{l3pdf}
\ExplSyntaxOn
\pdf_uncompress:
\ExplSyntaxOff
\usepackage{fontspec}

\begin{document}
\tagstructbegin{tag=Document}
\tagmcbegin{tag=P}
\fontspec{NotoSerifMyanmar-Regular.ttf}[RawFeature={mode=harf;script=mymr;}]
မ္မတီခေါင်းလောင်းကြီ
\par\tagmcend\tagstructend\newpage

\end{document}

0 comments on commit 264dbf7

Please sign in to comment.