bug-groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #62344] Sync recognized names of paper sizes


From: Dave
Subject: [bug #62344] Sync recognized names of paper sizes
Date: Mon, 25 Apr 2022 02:06:36 -0400 (EDT)

Follow-up Comment #2, bug #62344 (project groff):

[comment #1 comment #1:]
> I'm quite happy to add code to gropdf to parse paper.tmac, if
> this considered to be the authoritive source.

I too don't have a clear idea what should be considered the authoritative
source for paper sizes, but this proposal does at least bring the number of
separate lists down from 3 to 2.

The algorithm paper.cpp uses to generate the A-D sizes is clever, but
ultimately merely computes known and unchanging numbers, which could be more
human-readably put in a list as is done in the other two places.  There's no
particular need for these computations to be done at run time (though in C++
code I imagine they incur no measurable performance penalty).

The algorithm could be retooled as a little standalone utility that generates
the canonical data set in a way all the other code could read, but even that
I'm not convinced offers any advantage over just storing the data in a flat
text file.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]