Re: [XeTeX] [EXT] solved partially

2022-10-17 Thread Stefan Solbrig
Hi,
In XeTeX, you can also use \XeTeXcharglyph to get the (font dependant) glyph 
number for the character code.

\newcount\buffer
{%
\font\1="[./NotoSansManichaean-Regular.ttf] :script=mani"\1
\global\buffer\XeTeXcharglyph"FE00\relax
\XeTeXglyph\buffer\relax % prints the glyph
}

\number\buffer % prints the glpyh number

{% short
\font\1="[./NotoSansManichaean-Regular.ttf] :script=mani"\1
\XeTeXglyph\XeTeXcharglyph"FE00\relax
}

> Am 17.10.2022 um 07:39 schrieb Janusz S. Bień :
> 
> On Sun, Oct 16 2022 at 21:25 +02, Ulrike Fischer wrote:
> 
> Thank you very much for your comments!
> 
>> Am Sun, 16 Oct 2022 18:47:30 +0200 schrieb Janusz S. Bień:
>> 
>>> On Sun, Oct 16 2022 at 17:56 +02, Janusz S. Bień wrote:
>>> 
>>> Frank Mittelbach was kind enough to provide me with the relevant 
>>> information:
>>> 
>>> On Sun, Oct 16 2022 at  9:21 -07, Frank Mittelbach wrote:
 I checked. In Unicode this slot is default-ignorable and both XeTeX
 and LuaTeX do not print glyphs with that attribute (probably because
 the aren't not meant for printing).
 
 In luaTeX (but not in XeTeX I think) you can change this behavior.
>>> 
>>> So the questions left are:
>>> 
>>> Is it really impossible to do it in XeTeX?
>> 
>> With lualatex you can force the glyph with Renderer=base:
>> 
>> \documentclass{article}
>> \usepackage{fontspec}
>> \setmainfont{Noto Sans Manichaean}[Renderer=Base]
> 
> Or
> 
> \setmainfont[RawFeature={-invisible}]{Noto Sans Manichaean}
> 
> (pointed to me by Frank Mittelbach)
> 
> which refers directly to the Unicode character property discussed in
> L2/02-368 (http://www.unicode.org/L2/L2002/02368-default-ignorable.pdf)
> and https://github.com/latex3/luaotfload/issues/63.
> 
>> \begin{document}
>> \thispagestyle{empty}
>> 
>> \char"FE00
>> 
>> \end{document}
>> 
>> With xelatex you can use the glyph slot:
>> 
>> \documentclass{article}
>> \usepackage{fontspec}
>> \setmainfont{Noto Sans Manichaean}\begin{document}
>> \thispagestyle{empty}
>> 
>> \XeTeXglyph58
> 
> That's the command I need! Either I haven't noticed it at all or forgot
> about it :-(
> 
>> 
>> \end{document}
>> 
>> The number 58 is font dependant (I found this one by looking in the
>> font cache file created by  lualatex) 
> 
> Looks like it can be found in the ttx output in *.GlyphOrder.ttx,
> e.g. .
> 
> Thanks once again!
> 
> Best regards
> 
> Janusz
> 
> -- 
> ,   
> Janusz S. Bien
> emeryt (emeritus)
> https://sites.google.com/view/jsbien
> 




Re: [XeTeX] [EXT] solved partially

2022-10-17 Thread Stefan Solbrig
> Am 16.10.2022 um 21:25 schrieb Ulrike Fischer :
> 
> Am Sun, 16 Oct 2022 18:47:30 +0200 schrieb Janusz S. Bień:
> 
>> On Sun, Oct 16 2022 at 17:56 +02, Janusz S. Bień wrote:
>> 
>> Frank Mittelbach was kind enough to provide me with the relevant information:
>> 
>> On Sun, Oct 16 2022 at  9:21 -07, Frank Mittelbach wrote:
>>> I checked. In Unicode this slot is default-ignorable and both XeTeX
>>> and LuaTeX do not print glyphs with that attribute (probably because
>>> the aren't not meant for printing).
>>> 
>>> In luaTeX (but not in XeTeX I think) you can change this behavior.
>> 
>> So the questions left are:
>> 
>> Is it really impossible to do it in XeTeX?
> 
> With lualatex you can force the glyph with Renderer=base:
> 
> \documentclass{article}
> \usepackage{fontspec}
> \setmainfont{Noto Sans Manichaean}[Renderer=Base]
> \begin{document}
> \thispagestyle{empty}
> 
> \char"FE00
> 
> \end{document}
> 
> With xelatex you can use the glyph slot:
> 
> \documentclass{article}
> \usepackage{fontspec}
> \setmainfont{Noto Sans Manichaean}\begin{document}
> \thispagestyle{empty}
> 
> \XeTeXglyph58
> 
> \end{document}
> 
> The number 58 is font dependant (I found this one by looking in the
> font cache file created by  lualatex) 
> 
> -- 
> Ulrike Fischer 
> http://www.troubleshooting-tex.de/

Hi,
In XeTeX, you can also use \XeTeXcharglyph to get the (font dependant) glyph 
number for the character code.

\newcount\buffer
{%
\font\1="[./NotoSansManichaean-Regular.ttf] :script=mani"\1
\global\buffer\XeTeXcharglyph"FE00\relax
\XeTeXglyph\buffer\relax % prints the glyph
}

\number\buffer % prints the glpyh number

{% short
\font\1="[./NotoSansManichaean-Regular.ttf] :script=mani"\1
\XeTeXglyph\XeTeXcharglyph"FE00\relax
}




Re: [XeTeX] [EXT] solved partially

2022-10-17 Thread Janusz S . Bień
On Mon, Oct 17 2022 at 10:54 +02, Stefan Solbrig wrote:
> Hi,
> In XeTeX, you can also use \XeTeXcharglyph to get the (font dependant) glyph 
> number for the character code.

Thanks!

Best regards

Janusz

-- 
 ,   
Janusz S. Bien
emeryt (emeritus)
https://sites.google.com/view/jsbien