[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #60422] [ms]: FAM applies too broadly
From: |
G. Branden Robinson |
Subject: |
[bug #60422] [ms]: FAM applies too broadly |
Date: |
Tue, 20 Apr 2021 02:09:40 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 |
URL:
<https://savannah.gnu.org/bugs/?60422>
Summary: [ms]: FAM applies too broadly
Project: GNU troff
Submitted by: gbranden
Submitted on: Tue 20 Apr 2021 06:09:38 AM UTC
Category: Macro - ms
Severity: 3 - Normal
Item Group: Incorrect behaviour
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Planned Release: None
_______________________________________________________
Details:
Changing the FAM string applies too broadly after document initializing. I
noticed this in Deri's new document msboxes.ms. He used ".ds FAM C" to change
the font family before a code example long enough that it spanned a page
break. This seems perfectly in keeping with the string's intention and our
advice in ms.ms.
However it also changed the font used in footnotes and titles
(headers/footers).
That seems wrong.
I'm attaching a small reproducer in source and rendered form.
Without having dug into the package internals yet, I would say that:
1. ms should use environments for footnotes and titles.
2. FAM strings for footnotes and titles should be exposed, perhaps FAMFN and
FAMHF, or perhaps, I'm inclined to think, package-internal strings since few
document authors will desire the effect described above.
3. ms initialization should copy FAMFN and FAMHF from FAM.
4. FAMFN and FAMHF should be used to determine the font family in the footnote
and title environments, respectively.
5. A paragraph reset should change _only_ FAM.
Thoughts?
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Tue 20 Apr 2021 06:09:38 AM UTC Name: famfoolery.ms Size: 473B By:
gbranden
<http://savannah.gnu.org/bugs/download.php?file_id=51295>
-------------------------------------------------------
Date: Tue 20 Apr 2021 06:09:38 AM UTC Name: famfoolery.ps Size: 7KiB By:
gbranden
<http://savannah.gnu.org/bugs/download.php?file_id=51296>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?60422>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [bug #60422] [ms]: FAM applies too broadly,
G. Branden Robinson <=