FrankMittelbach / fmitex-unicodefonttable

A flexible font table generator for Unicode-encoded fonts
3 stars 0 forks source link

Typo(?) in "manual" article. #11

Open daleif opened 8 months ago

daleif commented 8 months ago

In section 2.2 in /macros/latex/contrib/unicodefonttable/unicodefonttable-doc.pdf it says

If you want to quickly display a single font, you can run unicodefont.tex through
LuaTeX (or XeTeX). 

but unicodefont.tex is not a tex file, it is LaTeX (starts with \documentclass), soLuaLaTeXorXeLaTeX` are needed, and works just fine.

BTW: Is there any way to provide an output similar to this from context (we were playing around in chat)

\usemodule[fonts-coverage]
\starttext
\showfontcomparison
[list={file.ttf}]
\stoptext

it has the nice feature of writing the unicode name for each of the characters. As I was testing a highly stylised font seening the unicode number and the char does not tell the user much.

(I must admit that I have not fully checked the features provided)

FrankMittelbach commented 8 months ago

Hi Lars. For me using XeTeX or LuaTeX or pdfTeX always means the engine not the format, otherwise I would use \texttt{xelatex} etc. That is arguably imprecise, but given that all my work is confined to LaTeX it isn't really that surprising. I never heard so far that anybody thought I mean plain or context format when I use this form.

As to your other question, no such a feature is not available, though it has its own charm I agree. For me unicodefonttable was about making tables for fast access via numbers so that's what I focussed on. But it is something to think about at some point. I doubt that we have the Unicode names directly available by default though (am I wrong @JosephWright?)

josephwright commented 8 months ago

@FrankMittelbach Readable from UnicodeData.txt, but that data doesn't compress nicely, so I'd say if we want to load all of it would be best as a LuaTeX-only feature and store in a table.

jsbien commented 8 months ago

@daleif Pehaps one of the tools mentioned in my paper https://tug.org/TUGboat/tb44-1/tb136bien-unichart.html may be useful for you.

FrankMittelbach commented 8 months ago

@FrankMittelbach Readable from UnicodeData.txt, but that data doesn't compress nicely, so I'd say if we want to load all of it would be best as a LuaTeX-only feature and store in a table.

don't think it should be done in core LaTeX but if that data is around I could load it in the package if that feature is requested.

daleif commented 8 months ago

@daleif Pehaps one of the tools mentioned in my paper https://tug.org/TUGboat/tb44-1/tb136bien-unichart.html may be useful for you.

From the images it seems to do much the same as Franks solution.

From chat:

And here from the context solution mentioned

here we kinda need the char names.

Though figure 6 seems to do something similar. For now I'll just include the PDF made via context, it was just a suggesting for "strange" fonts.

FrankMittelbach commented 8 months ago

I have altered the documentation. The rest has to wait until I find the time (or decide that I'm not going to provide this feature).