This is a follow-up to this question about typesetting Bengali.
As explained in both answers there, XeLaTeX can typeset Bengali given a suitable font using polyglossia and fontspec. For example,
\documentclass[a4paper]{article}
\usepackage{geometry,fontspec,polyglossia}
\setmainlanguage[variant=british]{english}
\setotherlanguage{bengali}
\newfontfamily\bengalifont{Noto Sans Bengali}[Script=Bengali]
\begin{document}
x, y, z whatever\dots
\begin{bengali}
আমি
\end{bengali}
\end{document}
produces
[Note that XeTeX is required. LuaTeX does not give correct results.]
As I explain in my answer, the font I used in this example actually offers two different versions of Bengali script, which correspond to two different OpenType scripts for Bengali:
beng Bengali
bng2 Bengali v.2
As shown above, using the first one is straightforward.
What about the second? As Arun Debray explains in discussion following his answer, there are posts elsewhere suggesting this is possible, but the example which would have shown how to realise this possibility is no longer available at the sign-posted location. That is, the trail goes cold at this point.
Hence, Arun Debray and I thought this question worth asking:
How should the second be used?
Disclaimer: I know nothing whatsoever about Bengali. I am told that the sample above is Bengali and that the output is correct. However, if I was not told this, it could as easily be Psyptizamen and I would never know the difference.
Though this question is about Bengali, several other scripts (e.g. Devanagari, Tamil) have two OpenType versions, so whatever difference there is between these is not specific to just Bengali.
\newfontscript{Bengali2}{bng2}
and\newfontfamily\bengalifont[Script=Bengali2]{Noto Sans Bengali}
to switch versions. However, when I tried this on a paragraph of Bengali text, I could see no difference, so maybe this doesn't actually change anything.bng2
and fall back onbeng
if that's not found.beng
rather thanbng2
? Or would nobody ever want that? (I have no idea what these are and know nothing about the languages concerned, so maybe nobody ever would.)