bugGNU roff - Bugs: bug #59284, [afmtodit] add option to specify...

 
 

bug #59284: [afmtodit] add option to specify mapping file, or check $GROFF_FONT_PATH for it

Submitter:  G. Branden Robinson <gbranden>
Submitted:  Fri 16 Oct 2020 11:56:50 PM UTC
   
 
Category:  Utilities Severity:  1 - Wish
Item Group:  Feature change Status:  In Progress
Privacy:  Public Assigned to:  gbranden
Open/Closed:  Open Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 15 Jun 2025 12:28:55 AM UTC, comment #2: 

Proposed interface:


diff --git a/src/utils/afmtodit/afmtodit.1.man b/src/utils/afmtodit/afmtodit.1.man
index f7111e5b1..8c0f45bcc 100644
--- a/src/utils/afmtodit/afmtodit.1.man
+++ b/src/utils/afmtodit/afmtodit.1.man
@@ -9,7 +9,7 @@ .SH Name
 .\" Legal Terms
 .\" ====================================================================
 .\"
-.\" Copyright (C) 1989-2024 Free Software Foundation, Inc.
+.\" Copyright (C) 1989-2025 Free Software Foundation, Inc.
 .\"
 .\" Permission is granted to make and distribute verbatim copies of this
 .\" manual provided the copyright notice and this permission notice are
@@ -75,6 +75,32 @@ .SH Synopsis
 .
 .P
 .SY afmtodit
+.BI \-M\~ map-file
+.RB [ \-M\~\c
+.IR map-file ]
+\&.\|.\|.\&
+.RB [ \-ckmnsx ]
+.RB [ \-a\~\c
+.IR slant ]
+.RB [ \-d\~\c
+.IR device-description-file ]
+.RB [ \-e\~\c
+.IR encoding-file ]
+.RB [ \-f\~\c
+.IR internal-name ]
+.RB [ \-i\~\c
+.IR italic-correction-factor ]
+.RB [ \-o\~\c
+.IR output-file ]
+.RB [ \-w\~\c
+.IR space-width ]
+.I afm-file
+.I font-description-file
+.YS
+.
+.
+.P
+.SY afmtodit
 .B \-\-help
 .YS
 .
@@ -461,6 +487,24 @@ .SH Options
 .
 .
 .TP
+.BI \-M\~ map-file
+Attempt to use
+.I map-file
+to translate PostScript glyph names to
+.I groff
+ordinary or special character names.
+.
+Specifying this option changes the number of operands
+.I \%afmtodit
+expects.
+.
+.B \-M
+may be specified more than once;
+.I \%afmtodit
+uses the first that it successfully opens.
+.
+.
+.TP
 .B \-n
 Don't output a
 .B ligatures


G. Branden Robinson <gbranden>
Group administrator
Sat 14 Jun 2025 10:56:18 PM UTC, comment #1: 

Turns out I need this due to the work required for bug #67207, which in turn is needed for bug #65098.

I reckon we can call the flag `-M` (`-m` is already taken), and if present, only 2 operand argument will be expected.

G. Branden Robinson <gbranden>
Group administrator
Fri 16 Oct 2020 11:56:50 PM UTC, original submission:  

afmtodit needs to grow an option to look on the system for a textmap file.  It's tedious to make the user provide it as an argument when they're unlikely to alter it.

Or, the option could override the search for the textmap file, and the build process could supply the flag.  That would probably be even better.

That would in turn simplify a shippable groff-install-font script.  See bug #58831.

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:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -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 8 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2025-06-20 gbranden DependenciesRemoved dependency from bugs #67207 -
    2025-06-15 gbranden StatusNone In Progress
        Assigned toNone gbranden
    2025-06-14 gbranden Dependencies- bugs #67207 is dependent
    2025-06-14 gbranden Summary[afmtodit] check $GROFF_FONT_PATH for textmap file [afmtodit] add option to specify mapping file, or check $GROFF_FONT_PATH for it
    2025-06-04 gbranden Summaryafmtodit: Check GROFF_FONT_PATH for textmap [afmtodit] check $GROFF_FONT_PATH for textmap file
    2021-06-04 barx Carbon-CopyRemoved 93119 -
    2021-06-04 barx CategoryNone Utilities

    Back to the top

    Powered by Savane 3.15-e6e5.
    Corresponding source code