bugGNU roff - Bugs: bug #63544, [troff] generate "grout"...

 
 

bug #63544: [troff] generate "grout" that is more easily lexically analyzed

Submitter:  G. Branden Robinson <gbranden>
Submitted:  Sat 17 Dec 2022 07:31:53 PM UTC
   
 
Category:  Core Severity:  1 - Wish
Item Group:  Rendering/Cosmetics Status:  Need Info
Privacy:  Public Assigned to:  deri
Open/Closed:  Open Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 15 Aug 2023 10:55:02 AM UTC, comment #4: 


comment #2:

> Yes, See other discussion.


This is a reference to bug #64360.

G. Branden Robinson <gbranden>
Group administrator
Tue 15 Aug 2023 10:53:19 AM UTC, comment #3: 

grops handles my proposed reform fine.  Since all output drivers except gropdf rely on libdriver for their parsing, I believe this demonstrates that Clark anticipated this input.


$ printf -- '.nf\na b\n-\\-\n' | tg -T ps -Z > ps-grout
[edit, creating "ps-grout2"]
$ cat ps-grout2
x T ps
x res 72000 1 1
x init
p 1
x font 5 TR
f 5
s 10000
V 12000
H 72000
m d
D F d
c a
w
h 6940
c b
h 5000
n 12000 0
V 24000
H 72000
c -
h 3330
C \-
h 5640
n 12000 0
x trailer
V 792000
x stop
grops ps-grout2 > 63544.ps


See attachment.

I created PDF "grout" in the obvious way.


sed 's/ps/pdf/' ps-grout2 >| pdf-grout2


...but ran into problems with gropdf.


$ gropdf pdf-grout2 > 63544.pdf
substr outside of string at /home/branden/groff-stable/bin/gropdf line 371, <> line 12.
Use of uninitialized value $lin in substitution (s///) at /home/branden/groff-stable/bin/gropdf line 380, <> line 12.
substr outside of string at /home/branden/groff-stable/bin/gropdf line 376, <> line 13.
Use of uninitialized value $lin in substitution (s///) at /home/branden/groff-stable/bin/gropdf line 380, <> line 13.
substr outside of string at /home/branden/groff-stable/bin/gropdf line 371, <> line 15.
Use of uninitialized value $lin in substitution (s///) at /home/branden/groff-stable/bin/gropdf line 380, <> line 15.
substr outside of string at /home/branden/groff-stable/bin/gropdf line 371, <> line 20.
Use of uninitialized value $lin in substitution (s///) at /home/branden/groff-stable/bin/gropdf line 380, <> line 20.


G. Branden Robinson <gbranden>
Group administrator
Thu 10 Aug 2023 04:15:29 PM UTC, comment #2: 

Yes, See other discussion.

Deri James <deri>
Group Member
Thu 10 Aug 2023 01:18:47 PM UTC, comment #1: 

Hi Deri,

Would this alarm you or cause problems for gropdf?

G. Branden Robinson <gbranden>
Group administrator
Sat 17 Dec 2022 07:31:53 PM UTC, original submission:  

See https://lists.gnu.org/archive/html/groff/2022-12/msg00116.html .

Consider:
1. One command per line.
2. One space after each (single-character) command.

Think about this for groff 1.23++.

G. Branden Robinson <gbranden>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #55037:  63544.ps added by gbranden (7KiB - application/postscript)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by deri (Posted a comment)
  • -email is unavailable- added by gbranden (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-08-15 gbranden Attached File- Added 63544.ps, #55037
    2023-08-10 gbranden StatusPostponed Need Info
        Assigned toNone deri
    2023-04-22 gbranden Summary[troff] generate more parsable &quot;grout&quot; [troff] generate "grout" that is more easily lexically analyzed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code