bug-groff
[Top][All Lists]
Advanced

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

Incorrectly displayed hyphen/line break character


From: Matthew Burgess
Subject: Incorrectly displayed hyphen/line break character
Date: Sun, 1 Feb 2009 14:19:49 -0700
User-agent: RoundCube Webmail/0.1b

Hi,

`LANG=en_GB.UTF-8 man preconv` produces the output shown at
http://www.linuxfromscratch.org/~matthew/test-results/preconv.en_utf8.jpg.
This is on a Linux text console with the lat1-16 screen font.

As you can see, the line-break character that is automatically generated by
man/groff/troff isn't displayed correctly.  We used to work around this in
LFS by applying the following sed to fonts/devutf8/R.proto from Groff-1.18.1.4:

sed -i -e 's/2010/002D/' -e 's/2212/002D/' \
    -e 's/2018/0060/' -e 's/2019/0027/' font/devutf8/R.proto

This had the affect of swapping UTF-8 single quote and hyphen characters with
their ASCII equivalents.

fonts/devutf8/R.proto in Groff-1.20.1 appears to be completely different now,
and I can't figure out how to apply the same type of substitution, or if
there's a better way of achieving the same thing (aside from updating all the
affected screen fonts, of course!).

So, in short, how should I go about getting the line-break/hyphen character
displayed correctly under a UTF-8 environment?

Thanks,

Matt.





reply via email to

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