Aleph
Norbert Preining
norbert at preining.info
Wed Oct 16 11:15:13 CEST 2019
Hi Ulrike, hi Marcel,
(@Petra: please see attached PDFs, it shows that LuaTeX with Noto
Tibetan Serif actually displays all your examples correctly!)
thanks for your hints, that helped a lot to improve a bit.
> `Script=Tibetan` to `\newfontface`.
That helped indeed with Noto Tibetan Serif.
Thanks also to both of you for the explanations concerning testing
luaotfload dev versions, I will look into it the next days.
@Ulrike
> To use harf you must declare the mode when loading the font. And as I
> saw yesterday it is also necessary to correctly declare the script:
> \setmainfont{Noto Sans Tibetan}[RawFeature={mode=harf;script=tibt;}]
Is this necessary for harf(la)tex only I guess? I tried it with luahbtex
and it made everything worse.
For both of you - is there a way to distinguish between
luatex/luahbtex/harftex?
I use
\newfontface{\tibNoto}[Script=Tibetan]{Noto Serif Tibetan}
\newfontface{\tibDDC}[Script=Tibetan]{DDC-Uchen.ttf}
\newfontface{\tibJom}[Script=Tibetan]{Jomolhari.ttf}
\ifXeTeX
\def\prog{Xe\LaTeX}
\else
\ifLuaTeX
% check for harftex
\if1\directlua{if luaharfbuzz == nil then tex.print("1") else tex.print("2") end}
\def\prog{Lua\TeX}
\message{USING LUATEX CODE}
\else
\def\prog{LuaHB\LaTeX\ or Harf\LaTeX}
\message{USING LUAHBTEX OR HARFTEX CODE}
\renewfontface{\tibNoto}[RawFeature={mode=harf;script=tibt;}]{Noto Serif Tibetan}
\renewfontface{\tibDDC}[RawFeature={mode=harf;script=tibt;}]{DDC-Uchen.ttf}
\renewfontface{\tibJom}[RawFeature={mode=harf;script=tibt;}]{Jomolhari.ttf}
\fi
\fi
\fi
Is there a better way, and can we distinguish between harftex and
luahbtex?
I attach a new source code with a few more examples. It shows that
luatex with Noto Tibetan Serif actually works best for the given cases.
Interestingly, xetex stumbles over the Om compound at the end, while
even in my terminal it is properly displayed (although a bit small and
unreadable), and LibreOffice works, too.
Best
Norbert
--
PREINING Norbert http://www.preining.info
Accelia Inc. + IFMGA ProGuide + TU Wien + JAIST + TeX Live + Debian Dev
GPG: 0x860CDC13 fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tibetan-test.luatex.pdf
Type: application/pdf
Size: 69465 bytes
Desc: not available
URL: <https://tug.org/pipermail/tex-live/attachments/20191016/7811cadb/attachment-0002.pdf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tibetan-test.tex
Type: text/x-tex
Size: 2428 bytes
Desc: not available
URL: <https://tug.org/pipermail/tex-live/attachments/20191016/7811cadb/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tibetan-test.xetex.pdf
Type: application/pdf
Size: 45527 bytes
Desc: not available
URL: <https://tug.org/pipermail/tex-live/attachments/20191016/7811cadb/attachment-0003.pdf>
More information about the tex-live
mailing list