On Thursday, 26 June 2025 06:44:06 BST G. Branden Robinson wrote:
> Follow-up Comment #4, bug #67244 (group groff):
> 
> [comment #2 comment #2:]
> 
> > When preconv finds greek UTF-8 characters it should output the unicode
> > representation \[uXXXX],
> 
> This seems to work already in released _groff_.
> 
> 
> $ cat ATTIC/hi-deri-in-greek.groff
> Ηι Δερι
> $ od -c ATTIC/hi-deri-in-greek.groff
> 0000000 316 227 316 271     316 224 316 265 317 201 316 271  \n
> 0000016
> $ od -t x1 ATTIC/hi-deri-in-greek.groff
> 0000000 ce 97 ce b9 20 ce 94 ce b5 cf 81 ce b9 0a
> 0000016
> $ ~/groff-1.23.0/bin/preconv ATTIC/hi-deri-in-greek.groff
> .lf 1 ATTIC/hi-deri-in-greek.groff
> \[u0397]\[u03B9] \[u0394]\[u03B5]\[u03C1]\[u03B9]

My mistake its not preconv it is groff itself:-
+verbatim+
[derij@pip build (master)]$ echo "Ηι Δερι"|test-groff -Tpdf -Z -k -F /usr/
share/groff/site-font/ -f TINO
x T pdf
x res 72000 1 1
x init
p1
x font 5 TINOR
f5
s10000
md
DFd
V12000
H72000
C*Y
h7220
C*i
wh5190
C*D
h6430
C*e
h4190
C*r
h4990
C*i
h2690
n12000 0
x trailer
V792000
x stop
-verbetim-
If text.map is altered so that it no longer includes greek maths symbols, the 
greek letters in TINOR would all have uXXXX names when afmtodit is run. But 
groff changes preconv's \[uXXXX] input to greek symbol names. All the "C*?" 
calls should be "Cu03XX" calls, groff should only output C*? if the input  was 
\[*?], i.e. either eqn wants the maths symbol or the user has specifically 
typed \[*?] because he wants it. 

For the benefit of our greek users, who this change will affect, it would be 
nice to include a sed script (in NEWS?) which patches any font they have 
installed themselves, or perhaps a recommendation they re-run afmtodit on any 
self installed fonts.

{savane: user = 90212; tracker = bugs; item = 67244}

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to