Re: [Groff] groff data structures

2010-01-04 Thread Werner LEMBERG
>> For example, TeX's hyphenation works on glyphs instead of >> characters. > > Seems to me like a good idea: two different glyphs for the > same character might have widely differing metrics. It's a very bad idea since hyphenation is completely independent from the used glyphs and fonts! Perhap

Re: [Groff] groff data structures

2010-01-04 Thread Tadziu Hoffmann
> For example, TeX's hyphenation works on glyphs instead of > characters. Seems to me like a good idea: two different glyphs for the same character might have widely differing metrics.

Re: [Groff] groff data structures

2010-01-02 Thread Werner LEMBERG
>> Recently, TeX has been extended with a lua interpreter: luaTeX; >> this seems to be the future, since complete support for OpenType >> has been already implemented. > > Interesting. But I wonder: apart from backwards compatibility, > wouldn't it make more sense to reimplement the basic routine

Re: [Groff] groff data structures

2010-01-01 Thread Tadziu Hoffmann
> Mhmm, in TeX you have basically the same limitations. > Both groff and TeX languages are not well suited to such > operations. Recently, TeX has been extended with a lua > interpreter: luaTeX; this seems to be the future, since > complete support for OpenType has been already implemented. Inte

Re: [Groff] groff data structures

2009-12-31 Thread Chuck Robey
Werner LEMBERG wrote: >> I got a reply from Tadziu Hoffman who gave me an idea of making a >> real stack, > > As I mentioned in a previous mail, this works fine for arguments > without spaces only. Well, my requirements actually allow me to fit inside that limitation. > >> OK, off to your 2nd

Re: [Groff] groff data structures

2009-12-30 Thread Werner LEMBERG
> I want to reply to both of your mails here in one mail. First, > constructing the variable names piece by piece and maintaining > multiple variables to simulate arrays does seem to me to be kludgy. Mhmm, in TeX you have basically the same limitations. Both groff and TeX languages are not well

Re: [Groff] groff data structures

2009-12-30 Thread Peter Schaffter
On December 30, 2009 01:09:07 pm Chuck Robey wrote: > In a language like groff, anything that works is beautiful. ROTFL Elegantly said, Chuck, and true. It ought to be the official motto of the list. -- Peter Schaffter

Re: [Groff] groff data structures

2009-12-30 Thread Chuck Robey
Werner LEMBERG wrote: >> I need to have (for an html project of mine, which you all know >> about by now) a stack data structure. I know one *really* klugy way >> to do it, by having a number register which counts the depth of my >> stack, and then having a variable which is concatenated to form a

Re: [Groff] groff data structures

2009-12-29 Thread Werner LEMBERG
> I need to have (for an html project of mine, which you all know > about by now) a stack data structure. I know one *really* klugy way > to do it, by having a number register which counts the depth of my > stack, and then having a variable which is concatenated to form a > name like "name0", "nam

Re: [Groff] groff data structures

2009-12-29 Thread Chuck Robey
Tadziu Hoffmann wrote: >> I need to have [snip] a stack data structure. > > Here's a very rudimentary implementation using strings -- items > on the stack cannot contain spaces, and no error checking is > performed, but you get the idea. If necessary, the macros > can be generalized to accept the

Re: [Groff] groff data structures

2009-12-29 Thread Tadziu Hoffmann
> I need to have [snip] a stack data structure. Here's a very rudimentary implementation using strings -- items on the stack cannot contain spaces, and no error checking is performed, but you get the idea. If necessary, the macros can be generalized to accept the name of the stack string as argu

[Groff] groff data structures

2009-12-29 Thread Chuck Robey
I need to have (for an html project of mine, which you all know about by now) a stack data structure. I know one *really* klugy way to do it, by having a number register which counts the depth of my stack, and then having a variable which is concatenated to form a name like "name0", "name1", etc,