bug-groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FAMILY-dependent apostrophe behaviour with -mom


From: Deri
Subject: Re: FAMILY-dependent apostrophe behaviour with -mom
Date: Tue, 03 Dec 2019 00:06:24 +0000

On Monday, 2 December 2019 19:26:02 GMT Marc Simpson wrote:
> Hi Deri,
> 
> On Mon, Dec 2, 2019 at 10:50 AM Deri <address@hidden> wrote:
> > If you can provide some examples, I would like to look into this
> > difference.
> Sure: I've just put a Fossil repo up at
> 
>   http://fossil.0branch.com/apostrophe-bug
> 
> You can download trunk here:
> 
>  
> http://fossil.0branch.com/apostrophe-bug/tarball/trunk/apostrophe-bug.tar.g
> z
> 
> or clone, browse online as you see fit.
> 
> I've also included the fonts in original TTF, and as converted by
> Peter's Schaffter's script. Hopefully this is considered fair use for
> debugging purposes.
> 
> Once you have a copy and have the fonts installed, just type 'make' to
> produce four PDFs. You should be able to observe that two of them
> (those produced with `groff -Tpdf' and `pdfmom') exhibit the
> apostrophe issue, while the other two don't.
> 
> Thanks for taking a look;
> Best,
> Marc

Hi Marc,

Hmmph! This is a bug in gropdf, it came to my notice recently, when dealing 
with a huge chinese font (>12000 glyphs), that my original design decision for 
gropdf to access the font using the ascii character number was a mistake, 
although it works fine with all the standard fonts. I was misled by assuming 
that the "t" command documented in groff_out was always an ascii string, and 
the "c" command was used to access the named glyphs in the font. However, the 
individual characters in the "t" string should be treated as individual glyph 
names, which is what grops does correctly.

I am intending to fix this in gropdf at some point.

There is a workaround which should work for pdfmom which seems to work with 
CODE as well. I changed the following lines in the GeorgiaR font file in 
devpdf. The change is the number in the fourth column.

Line 23:-

aq      215,747 2       363     quotesingle

Line 326:-

'       226,747 2       39      quoteright

What this does is move the "quoteright" glyph to the 39th position in the 
font, which is the position it occupies in the standard fonts.

Attached are files I have changed, some changes are just cosmetic, the 
important change is to the GeorgiaR file, and of course a similar change to 
the other devpdf fonts.

Cheers 

Deri

Attachment: makefile
Description: Text Data

Attachment: minimal.mom
Description: Text document

Attachment: GeorgiaR
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]