Why does Groff decompose Unicode glyphs in intermediate output?

2024-11-09 Thread Robin Haberkorn via GNU roff typesetting system discussion
Dear groffers, can anybody explain why in Groff 1.23.0: # echo -n 'й' | preconv -eutf-8 .lf 1 - \[u0439] But: # echo -n 'й' | preconv -eutf-8 | groff -wall -Z -Tutf8 x T utf8 x res 240 24 40 x init x F - p1 x font 1 R f1 s10 V40 H0 md DFd Cu0438_0306 H24 n40 0 x trailer V2640 x stop In other

Re: A list of chemical names

2024-11-09 Thread Norwid Behrnd
Dear Oliver The idea to write `\*[H2O]` to relay the (all/most/much) of the work to manually call subscripts in molecular formulae to an algorithm reminds me a bit to mhchem[1] available both as a package to LaTeX[2] as well as an extension available for posts on chemistry.stackexchange.com[3] to

Re: Translation design patterns or approaches

2024-11-09 Thread Oliver Corff via GNU roff typesetting system discussion
Hi Bento, have a look at groff_mm and search for the section "Localization". There you'll find more information. Usually, if you specify the language on the command line as indicated in man groff_mm, then you will not need any control over conditional loading of macro files. The manual explains

Re: Translation design patterns or approaches

2024-11-09 Thread G. Branden Robinson
Hi Bento, At 2024-11-09T16:34:21-0300, Bento Borges Schirmer wrote: > Hey Oliver, > > Em sex., 8 de nov. de 2024 às 19:05, Oliver Corff via GNU roff > typesetting system discussion escreveu: > > Check, e.g. the macro files trans.tmac, de.tmac, sv.tmac, cs.tmac, > > fr.tmac etc.in /usr/share/grof

Re: Translation design patterns or approaches

2024-11-09 Thread Bento Borges Schirmer
Hey Oliver, Em sex., 8 de nov. de 2024 às 19:05, Oliver Corff via GNU roff typesetting system discussion escreveu: > Check, e.g. the macro files trans.tmac, de.tmac, sv.tmac, cs.tmac, > fr.tmac etc.in /usr/share/groff/1.23.0/tmac > > They demonstrate the mechanism how you can use string macros wi