Closed u-fischer closed 6 years ago
This was fast. Thank you very much Ulrike.
With the new development version this latex examples looks like the context output:
\documentclass[12pt]{article}
\usepackage{fontspec}
\usepackage[english]{babel}
\newfontscript{Devanagari}{deva,dev2} %need to force deva!
\newfontfamily\deva[Script=Devanagari,
]{NotoSansDevanagari-Regular.ttf}
\begin{document}
\begin{quotation}\deva
कर्मण्येवाधिकारस्ते मा फलेषु कदाचन।\\
मा कर्मफलहेतुर्भूर्मा ते सङ्गोऽस्त्वकर्मणि॥ २-४७
\end{quotation}
\end{document}
Lualatex-output with siddhanta (above example with \newfontfamily\deva[Script=Devanagari]{siddhanta.ttf}
) looks identical than the xelatex-output:
So the slight glitch above is font dependant. Perhaps Noto is missing a ligature or a variant has the wrong name ...
Well...I used Siddhanta for my PhD thesis submission on Oct 3, 2018. LuaLaTeX output looked very different then.
Ok....Commented too early.....sorry. You have updated the font-loader. Yes, looks like the issues with the engine are fixed. It is only the issue with the noto
fonts. That Siddhanta is superior is not surprising, since it is an open-type Unicode font with advanced features.
@krishnakumarg1984 Yes. The change is currently only in the development branch. You should have asked a week earlier ;-). We can't know that a script is broken if nobody mentions it.
Hehe...understood. It is only a manuscript for viva examination. The final upload will certainly benefit from this. Thank you for the amazing support.
With the newest context version there is a small glitch in the siddhanta output:
\definefont [Deva][file:siddhanta.ttf*devanagari-one]
\starttext
\Deva कर्मण्येवाधिकारस्ते मा फलेषु कदाचन।\crlf
मा कर्मफलहेतुर्भूर्मा ते सङ्गोऽस्त्वकर्मणि॥ २-४७
\stoptext
By removing the psts feature the output is correct again:
\setmainfont{siddhanta.ttf}[Script=Devanagari,RawFeature=-psts;]
v 2.92 just uploaded to ctan improves deva and gives the state described here. Closing the issue. New problems should be put in new issues.
@u-fischer Thank you for the keen interest in this issue. Much appreciate your efforts.
The output of devanagari is not good and should be improved. As can be seen in the examples below the problem is not with the generic fontloader -- its output is like the one in context (which is not completly identical to xetex but looks quite good). I suspect that the problem is in luaotfload-features, which duplicates parts of font-ott but hasn't been updated/synched for quite some time. Another possibility is missing character data due to the stripped down luaotfload-characters.lua.
LaTeX example
xelatex output
lualatex output
plain with all the features context uses:
context example
example with the generic / plain fontloader (format plainfontloader in the dev branch)