I am unsure whether this is a bug. After you use .asciify the string register 
may be truncated if passed as a parameter to a macro. Truncation occurs if the 
original string contains either a glyph name '\[...]' or a glyph number 
\N'nn'. This code snippet illustrates it:-

.nf
.de show
Pass \\$*
..
.
.de clean
.show Uncleaned = This is \\$* shown
.ev cln
.nf
.box a
\\$*
.fl
.box
.chop a \" remove newline
.asciify a
.show Cleaned = This is \\*[a] shown
Cleaned = This is \\*[a] shown
.tm This is \\*[a] shown
.ev
..
.
.clean Deri \N'76' James

Which should produce:-

Pass Uncleaned = This is Deri L James shown
Pass Cleaned = This is Deri
Cleaned = This is Deri L James shown

The line 'Pass Cleaned" has been truncated where the \N'76' glyph should be, 
note that it is not just \\*[a] truncated but the following literal 'shown' 
which is missing as well.

The .tm displays "This is Deri  James shown".

So it seems it is the parameter passing mechanism which chokes on the glyph in 
the string register.

Feature or bug?

Cheers

Deri

_______________________________________________
bug-groff mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-groff

Reply via email to