Update of bug #63544 (group groff):

                  Status:               Need Info => None
             Assigned to:                    deri => gbranden

    _______________________________________________________

Follow-up Comment #5:

Looks like I can move ahead with this; the _gropdf_ in _groff_ 1.24.0 now
handles whitespace in _grout_ fine.

Illustration:

$ printf -- '.nf\na b\n-\\-\nfoo bar\n' | ~/groff-1.24.1/bin/groff -bww -T ps
-Z | sed -e 's/^w/&\n/' | sed -e 's/^[CcfHhmNnpstuVvwD]/& /;s/^x T ps/x T
pdf/'
x T pdf
x res 72000 1 1
x init
p 1
x font 5 TR
f 5
s 10000
m d
D Fd
V 12000
H 72000
t a
w 
h 2500
t b
n 12000 0
V 24000
H 72000
t -
C \-
h 5640
n 12000 0
V 36000
H 72000
t foo
w 
h 2500
t bar
n 12000 0
x trailer
V 792000
x stop
$ printf -- '.nf\na b\n-\\-\nfoo bar\n' | ~/groff-1.24.1/bin/groff -bww -T ps
-Z | sed -e 's/^w/&\n/' | sed -e 's/^[CcfHhmNnpstuVvwD]/& /;s/^x T ps/x T
pdf/' | ~/groff-1.24.1/bin/gropdf >/dev/null


Note the absence of diagnostic messages as observed in comment #3.

And the output looks as expected too.


$ printf -- '.nf\na b\n-\\-\nfoo bar\n' | ~/groff-1.24.1/bin/groff -bww -T ps
-Z | sed -e 's/^w/&\n/' | sed -e 's/^[CcfHhmNnpstuVvwD]/& /;s/^x T ps/x T
pdf/' | ~/groff-1.24.1/bin/gropdf | okular -


Screenshot attached.

(I apologize to the reader for my lazy use of two _sed_(1) commands in the
pipeline.  That's because I used its 's' command to inject a newline into some
specimens of input line, and _sed_ is designed not to re-scan the input line
in such a way that the subsequent 's' command pattern would apply, due to the
'^' anchor.  There's a right way to do this, I think, involving a multi-line
pattern space--the 'N' command and similar--but I require that heavier
artillery seldom enough that when a situation does call for it, I have to
reëducate myself in its usage.)

(file #58463)

    _______________________________________________________

Additional Item Attachment:

Name: savannah-63544.png             Size: 29KiB
    <https://file.savannah.gnu.org/file/savannah-63544.png?file_id=58463>


    AGPL NOTICE

These attachments are served by Savane. You can download the corresponding
source code of Savane at
https://savannah.gnu.org/source/savane-f290f6b25beb8cb99bbe243a6cd2c5fef79ffcde.tar.gz


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?63544>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature

Reply via email to