Re: Minor suggestion to improve groff_ms documentation

2024-11-08 Thread Oliver Corff
Hi Branden, Indeed I found what I needed in the separate ms manual, not in groff_ms. Do you deem it a worthwhile effort to compile something like a feature index or feature table for all groff macro packages? I think I've seen something to this effect before but do not remember how exhaustive

Re: Minor suggestion to improve groff_ms documentation

2024-11-08 Thread G. Branden Robinson
Hi Oliver, At 2024-11-08T16:41:18+0100, Oliver Corff via GNU roff typesetting system discussion wrote: > Dear All, > > I was in search of the macros for writing indented and bulleted lists. > While groff_mm contains the macro BL which is explained as "Begin > bulleted list" and groff_me has "(l

Re: Translation design patterns or approaches

2024-11-08 Thread Oliver Corff via GNU roff typesetting system discussion
Hi, in my humble opinion, a solution to your problem (if I understood it correctly) already exists. Perhaps a good starting point for writing useful macros which output the desired text according to language is the macro repository of groff. Check, e.g. the macro files trans.tmac, de.tmac, sv.tm

Re: Register for text width to be used with \l'..'?

2024-11-08 Thread Oliver Corff via GNU roff typesetting system discussion
Hi Dave, thank you very much for pointing out the usefulness of units! Adding the "u" did the trick. The simple macro .de hline \l'\n[LL]u' .. .hline now does the trick, the line length is exactly the same es the text line length, no problems with truncated divisions anymore. Best, Oliver.

Re: Register for text width to be used with \l'..'?

2024-11-08 Thread Dave Kemper
On Fri, Nov 8, 2024 at 10:20 AM Oliver Corff wrote: > \n[LL] produces 468000. Yes. It's not intuitive that registers defined using any other units are stored in basic units, and that groff must be explicitly told this whenever such values are referenced. $ cat testfile .nr a 4i .tm \n[a] $ grof

Re: Register for text width to be used with \l'..'?

2024-11-08 Thread Oliver Corff
Hi Branden, for table environments, that works, thank you! Again the problem of search terms... OF COURSE line length -> LL is what I searched for, alas! I thought in terms of TeX terminology: \textwidth which would lead nowhere. \n[LL] produces 468000. I tried \l'\n[LL]/1' but get an "erro

Minor suggestion to improve groff_ms documentation

2024-11-08 Thread Oliver Corff via GNU roff typesetting system discussion
Dear All, I was in search of the macros for writing indented and bulleted lists. While groff_mm contains the macro BL which is explained as "Begin bulleted list" and groff_me has "(l begin list" and ")l end list", I was a bit baffled how groff_ms successfully hides its list feature from the user:

Re: Translation design patterns or approaches

2024-11-08 Thread Bento Borges Schirmer
Hey Adam and onf, Thanks for the suggestion about po4a, it is good to know such thing exists. But I didn't find any examples about it and I was not in the mood to understand it, so I tried to be creative! I kludged together the switch case example from groff documentation [1] and now I have this

Register for text width to be used with \l'..'?

2024-11-08 Thread Oliver Corff
Dear All, if I want to draw a line spanning my whole text block using \l'nn', I usually do it the quick and dirty way and use a number which produces a visual fit, e.g. for an A4 page with default margin settings in ms I say \l'46' (which is visibly a tiny bit too short but ok for my current purp

Re: Register for text width to be used with \l'..'?

2024-11-08 Thread G. Branden Robinson
Hi Oliver, At 2024-11-08T16:26:28+0100, Oliver Corff wrote: > if I want to draw a line spanning my whole text block using \l'nn', I > usually do it the quick and dirty way and use a number which produces > a visual fit, e.g. for an A4 page with default margin settings in ms I > say \l'46' (which i

Re: Register for text width to be used with \l'..'?

2024-11-08 Thread G. Branden Robinson
At 2024-11-08T17:20:05+0100, Oliver Corff wrote: > Again the problem of search terms... OF COURSE line length -> LL is > what I searched for, alas! I thought in terms of TeX terminology: > \textwidth which would lead nowhere. It's not exactly wonderful that the most likely mnemonic for the `\w` es

Re: Translation design patterns or approaches

2024-11-08 Thread Adam Sampson
Bento Borges Schirmer writes: > I want to translate my CV to english. [...] Do you know any design > pattern, macro set or preprocessor that could handle this task in a > manageable way? po4a (https://po4a.org/, packaged in most distributions already) is one approach to this -- you write the doc