Follow-up Comment #29, bug #64484 (group groff): Branden leans towards rejecting things even though the users intention is clear. For groff there are no spaces, only horizontal movements, so should the bookmark "Chapter 1" be rejected because it does contain a horizontal movement! Elsewhere, in terminal output, space and \0 both result in a one character cell space. I am sure the user would expect the same when outputting text to a bookmark.
Let's look at an example:-
.ds dj "Ph: 01632\0\&444666
\*[dj]
\X'ps:exec [/Dest /pdf:bm1 /Title (\*[dj]) /Level 1 /OUT pdfmark'
.\" .device ps:exec [/Dest /pdf:bm1 /Title (\*[dj]) /Level 1 /OUT pdfmark
.\" .output x X ps:exec [/Dest /pdf:bm1 /Title (\*[dj]) /Level 1 /OUT pdfmark
Using HEAD & .device
tPh:
wh2500
t01632
h5000
t444666
wh2500
x X ps:exec [/Dest /pdf:bm1 /Title (Ph: 016320\&444666) /Level 1 /OUT pdfmark
1.23.0 & .device
tPh:
wh2500
t01632
h5000
t444666
wh2500
V12000
H150340
x X ps:exec [/Dest /pdf:bm1 /Title (Ph: 01632\0\&444666) /Level 1 /OUT
pdfmark
Using HEAD & \X''
troff:0.trf:3: warning: a horizontal motion is not encodable in
device-independent output
tPh:
wh2500
t01632
h5000
t444666
wh2500
x X ps:exec [/Dest /pdf:bm1 /Title (Ph: 01632444666) /Level 1 /OUT pdfmark
Using 1.23.0 & \X''
troff:0.trf:3: warning: a horizontal motion is not encodable in
device-independent output
tPh:
wh2500
t01632
h5000
t444666
wh2500
V12000
H150340
x X ps:exec [/Dest /pdf:bm1 /Title (Ph: 01632444666) /Level 1 /OUT pdfmark
Using HEAD & .output
x X ps:exec [/Dest /pdf:bm1 /Title (Ph: 01632\0\&444666) /Level 1 /OUT
pdfmark
The only one which "works" is the final one, i.e. produces what the author
would reasonably expect - a space within the phone number - for both the text
and the bookmark. Worryingly .device in HEAD manages to convert \0 to just "0"
which does seem wrong. There have always been differences between \X and
.device but after Branden's extensive changes in this area I'm not sure our
documentation has caught up, since it appears to now say there is no
difference, but the above shows there is.
commit 2548c4659c appears to be the culprit, also affects -T html.
(file #56617)
_______________________________________________________
Additional Item Attachment:
File name: 0.pdf Size: 2KiB
<https://file.savannah.gnu.org/file/0.pdf?file_id=56617>
AGPL NOTICE
These attachments are served by Savane. You can download the corresponding
source code of Savane at
https://savannah.gnu.org/source/savane-1244e09a07b90ebd06e62b37af5eb73c3662cbfb.tar.gz
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?64484>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
