Re: [Groff] unicode support - where to compose?

2006-03-01 Thread Werner LEMBERG
It would be nice to have access to all the TrueType and PostScript fonts installed on the system without having to build metric files and so forth. This is virtually impossible IMHO. You need a tight integration between groff and the OS, making it highly system-specific. I don't

Re: [Groff] unicode support - where to compose?

2006-02-27 Thread Larry Kollar
Werner LEMBERG wrote: ... how gtroff figures out glyph widths ... gtroff reads the metric files (in the devXXX directories) for the given device and positions the glyphs accordingly. The postprocessor just translates the intermediate output file into device-specific data -- no need to

Re: [Groff] unicode support - where to compose?

2006-02-25 Thread Werner LEMBERG
When an input file contains the character U+1EBF, preconv transforms it to \[u1EBF], and troff transforms it to a single glyph u0065_0302_0301. Fine. But when an input file contains the characters U+0078U+0302U+0301, preconv transforms it to x\[u0302]\[u0301], and troff produces

Re: [Groff] unicode support - where to compose?

2006-02-25 Thread Bruno Haible
Werner Lemberg wrote: Please be careful! Unicode gets extended from time to time, and there are high chances that new non-spacing diacritics are added. Consequently, a solution within groff must be based on user-controllable data. I suggest to (re)use .composite foo (just a single

Re: [Groff] unicode support - where to compose?

2006-02-24 Thread Bruno Haible
Michail Vidiassov wrote: Fine, wrong - may be the answer is it depends (on the availability of the precomposed glyph in the font)? No, it shouldn't depend on that. troff does an early pass where is constructs a precomposed glyph from the base character and the combining characters, and should

Re: [Groff] unicode support - where to compose?

2006-02-24 Thread Bruno Haible
Hello Werner, So I imagine that noone will object if troff combines x\[u0302]\[u0301] into \[u0078_0302_0301] I think this is OK. Currently, there is a single non-spacing glyph used in groff (`slashnot' in devdvi; the other non-spacing glyphs from the

Re: [Groff] unicode support - where to compose?

2006-02-24 Thread Werner LEMBERG
But there are already 418 characters with non-trivial combining classes listed in http://ftp.unicode.org/Public/5.0.0/ucd/extracted/DerivedCombiningClass-5.0.0d10.txt Will the startup time penalty to register all these one by one be acceptable? I think so. Compare this to LaTeX,

Re: [Groff] unicode support - where to compose?

2006-02-22 Thread Michail Vidiassov
Dear Bruno, On Tue, 21 Feb 2006, Bruno Haible wrote: When an input file contains the character U+1EBF, preconv transforms it to \[u1EBF], and troff transforms it to a single glyph u0065_0302_0301. Fine. But when an input file contains the characters U+0078U+0302U+0301, preconv transforms it

Re: [Groff] unicode support - where to compose?

2006-02-22 Thread Werner LEMBERG
When an input file contains the character U+1EBF, preconv transforms it to \[u1EBF], and troff transforms it to a single glyph u0065_0302_0301. Fine. But when an input file contains the characters U+0078U+0302U+0301, preconv transforms it to x\[u0302]\[u0301], and troff produces three