bug-groff
[Top][All Lists]
Advanced

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

[bug #61661] [me] pull "Chapter" and "Appendix" into localizable strings


From: G. Branden Robinson
Subject: [bug #61661] [me] pull "Chapter" and "Appendix" into localizable strings
Date: Sun, 12 Dec 2021 02:46:29 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0

URL:
  <https://savannah.gnu.org/bugs/?61661>

                 Summary: [me] pull "Chapter" and "Appendix" into localizable
strings
                 Project: GNU troff
            Submitted by: gbranden
            Submitted on: Sun 12 Dec 2021 07:46:27 AM UTC
                Category: Macro - me
                Severity: 1 - Wish
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None

    _______________________________________________________

Details:

We have the following distressingly, and uniquely, complex code in our
localization macro files for me(7) support.

For instance, in it.tmac...


.       \" Redefinition for the chapter system
.       de $c
.       sz 12
.       ft 3
.       ce 1000
.       if \\n(_M<3 \
.       nr ch +1
.       ie \\n(_M=1 CAPITOLO\ \ \\n(ch
.       el .if \\n(_M=2 APPENDICE\ \ \\n(ch
.       if \w"\\$1" .sp 3-\\n(.L
.       if \w"\\$1" \\$1
.       if (\\n(_M<3):(\w"\\$1") \
.       sp 4-\\n(.L
.       ce 0
.       ft
.       sz
.       ie \\n(_M=1 \
.       $C Capitolo \\n(ch "\\$1"
.       el .if \\n(_M=2 \
.       $C Appendice \\n(ch "\\$1"


We could simplify the hell out of this by having strings for "CHAPTER" and
"APPENDIX".

Another benefit of such a move is that, if we pick two-character names for
them, we can expose them along with the rest of the me(7) interface, which is
compatibility-mode friendly.

That in turn would mean that people could choose their own capitalization and
spacing convention before the number in the `ch` register.

I suspect this is easy enough to do but I have literally dozens of other
commits pending, mostly to do with me(7).  So it's not immediately in
progress.  Meaning, a volunteer is welcome.  :)






    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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