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 >>> >>>

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

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

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

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

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,

[bug #64576] [pdf.tmac] pdf*href option handling insufficiently flexible

2023-08-26 Thread Deri James
Follow-up Comment #6, bug #64576 (project groff): I've just lost half a days typing, my fault, closed the wrong firefox window! Not all is lost, phew, found snippets in my clipboard history as I copied text from Dasher to the savannah page, but it has not got everything, because some I typed

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.

[bug #64597] [mom] spurious newline after image label

2023-08-26 Thread G. Branden Robinson
Update of bug #64597 (project groff): Status:None => Fixed Open/Closed:Open => Closed Planned Release:None => 1.24.0

[bug #64597] [mom] spurious newline after image label

2023-08-26 Thread Peter Schaffter
Follow-up Comment #4, bug #64597 (project groff): >> I just took a look at the PDF_IMAGE source code in mom, but I >> think it would take me a week of intense meditation to make heads >> and tails of it. :) > > I haven't even dared to try. :D Can't say I blame you. The bug was introduced in

[groff] 01/01: [mom]: Fixes captions not attaching to PDF_IMAGE labels.

2023-08-26 Thread Peter Schaffter
PTPi pushed a commit to branch master in repository groff. commit 11016d37f1e16fa71407f9802b105c016263128c Author: Peter Schaffter AuthorDate: Sat Aug 26 14:25:38 2023 -0400 [mom]: Fixes captions not attaching to PDF_IMAGE labels. --- contrib/mom/BUGS| 5 + contrib/mom/om.tmac | 5

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:

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

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.

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.

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:

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