Re: Baffling accented glyphs issue

2023-08-26 Thread Peter Schaffter
On Sat, Aug 26, 2023, Bjarni Ingi Gislason wrote: > Lesson to learn: always use the information you have and give it to > the program, for example "groff" with option "-K. > > groff -Kutf8 -V file > > preconv -eutf8 file | troff -Tps | grops Thanks, Bjarni. Odd to be discovering this for the

Re: [PATCH v1 1/2] [troff]: Add lengthof() macro.

2023-08-26 Thread Alejandro Colomar
Hi Lennart, On 2023-08-27 02:00, Alejandro Colomar wrote: > Hi Lennart, Branden, > > On 2023-08-26 21:36, Lennart Jablonka wrote: >> Quoth Alejandro Colomar: >>> The good news is that I like the implementation. I just don't like the >>> name. I have a sizeof_array() macro that does >>> >>> #def

Re: [PATCH v1 1/2] [troff]: Add lengthof() macro.

2023-08-26 Thread Alejandro Colomar
Hi Lennart, Branden, On 2023-08-26 21:36, Lennart Jablonka wrote: > Quoth Alejandro Colomar: >> The good news is that I like the implementation. I just don't like the >> name. I have a sizeof_array() macro that does >> >> #define sizeof_array(a) (sizeof(a) + must_be_array(a)) >> >> That is, it

Re: Baffling accented glyphs issue

2023-08-26 Thread Bjarni Ingi Gislason
preconv -d shows fallback encoding: 'ISO-8859-1' processing 'txtFS_cF9dOUO.txt' no coding tag len: 95 uchardet read: 95 bytes charset: ISO-8859-13 encoding used: 'ISO-8859-13' .lf 1 txtFS_cF9dOUO.txt .sp |1i-1v Ce qui me pla\[u0106]\[u00AE]t le plus, c'est quand je suis assis confortabl

Re: Baffling accented glyphs issue

2023-08-26 Thread Steve Izma
On Sat, Aug 26, 2023 at 04:47:02PM -0400, Peter Schaffter wrote: > Subject: Baffling accented glyphs issue > > chats_1 contains a single accented glyph (î). The glyph is mangled > in the ps output. chats_2 contains the same glyph plus an additional > one (é). Here, neither glyph is mangled in th

Re: Baffling accented glyphs issue

2023-08-26 Thread Deri
On Saturday, 26 August 2023 21:47:02 BST Peter Schaffter wrote: > Here's something I haven't encountered before. Have a look at the > attached files. ps output was produced with > > groff -k file > file.ps > > chats_1 contains a single accented glyph (î). The glyph is mangled > in the ps out

Re: Baffling accented glyphs issue

2023-08-26 Thread Bjarni Ingi Gislason
1) Look at the output of preconv The option '-k' for "groff" can't find the encoding with just one example of a character different from ascii or latin1. groff -k -V file preconv file | troff -Tps | grops 2) Add the same character to the file. preconv Lesson to learn: always use the i

Baffling accented glyphs issue

2023-08-26 Thread Peter Schaffter
Here's something I haven't encountered before. Have a look at the attached files. ps output was produced with groff -k file > file.ps chats_1 contains a single accented glyph (î). The glyph is mangled in the ps output. chats_2 contains the same glyph plus an additional one (é). Here, neithe

Re: [PATCH v1 1/2] [troff]: Add lengthof() macro.

2023-08-26 Thread Lennart Jablonka
Quoth Alejandro Colomar: The good news is that I like the implementation. I just don't like the name. I have a sizeof_array() macro that does #define sizeof_array(a) (sizeof(a) + must_be_array(a)) That is, it calculates the size in bytes that the array takes up in memory.

Re: [Savannah-hackers-public] stale directory in CVS-managed WWW pages for groff project

2023-08-26 Thread Alfred M. Szmidt
>https://web.cvs.savannah.gnu.org/viewvc/groff/groff/manual/ If you open that URL you will find a directory: https://web.cvs.savannah.gnu.org/viewvc/groff/groff/manual/html_node/ Yes, that directory exists. alongside this one: https://web.cvs.savannah.gnu.org/viewvc/groff/gr

Re: Footer trap in a A4 PDF

2023-08-26 Thread Bjarni Ingi Gislason
The groff software is tuned to the imperial measurement system (inch etc.). Using another measurement system: A text line normally never touches exactly a trap but goes beyond it. Therefore a footer starts nearer the bottom edge than the measurement in metric (SI) units indicates.

Re: [PATCH v1 1/2] [troff]: Add lengthof() macro.

2023-08-26 Thread G. Branden Robinson
Hi Alex, At 2023-08-26T00:55:16+0200, Alejandro Colomar wrote: > The good news is that I like the implementation. I just don't like the > name. I have a sizeof_array() macro that does > > #define sizeof_array(a) (sizeof(a) + must_be_array(a)) > > That is, it calculates the size in bytes that

Re: [Savannah-hackers-public] stale directory in CVS-managed WWW pages for groff project

2023-08-26 Thread G. Branden Robinson
Hi Alfred, At 2023-08-26T09:43:09-0400, Alfred M. Szmidt wrote: >There is a stale directory in the GNU groff project's website. > >https://www.gnu.org/software/groff/manual/html_node/ > >This corresponds to the groff 1.22.4 release, which is nearly 5 years >old. > >The direc

Re: [Savannah-hackers-public] stale directory in CVS-managed WWW pages for groff project

2023-08-26 Thread Alfred M. Szmidt
There is a stale directory in the GNU groff project's website. https://www.gnu.org/software/groff/manual/html_node/ This corresponds to the groff 1.22.4 release, which is nearly 5 years old. The directory also shows up in ViewVC. https://web.cvs.savannah.gnu.org/viewvc/groff/g

stale directory in CVS-managed WWW pages for groff project

2023-08-26 Thread G. Branden Robinson
Hi folks, There is a stale directory in the GNU groff project's website. https://www.gnu.org/software/groff/manual/html_node/ This corresponds to the groff 1.22.4 release, which is nearly 5 years old. The directory also shows up in ViewVC. https://web.cvs.savannah.gnu.org/viewvc/groff/groff/ma

introduction to groff en español (was: About hyphenation)

2023-08-26 Thread G. Branden Robinson
Hi Walter, At 2023-08-26T12:42:06+0200, Walter Alejandro Iglesias wrote: > Recently I found some groff manual written in Spanish (standalone, not > a translation of the groff manual in English) I followed your link and found it here: https://cartaslinux.files.wordpress.com/2016/12/manual_groff.p

About hyphenation

2023-08-26 Thread Walter Alejandro Iglesias
Hi everyone, Recently I found some groff manual written in Spanish (standalone, not a translation of the groff manual in English) the author had the idea of generating a list of words with the .hw request with a script. I tried this method and I got a better hyphenation than reading the patterns