URL: <https://savannah.gnu.org/bugs/?67857>
Summary: [PATCH] [mmse] Fix layout of mmse and LT.se example
Group: GNU roff
Submitter: afh
Submitted: Tue 23 Dec 2025 11:45:08 AM UTC
Category: Macro package mm
Severity: 3 - Normal
Item Group: Rendering/Cosmetics
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Unlocked
Planned Release: None
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Tue 23 Dec 2025 11:45:08 AM UTC By: Alexis <afh>
Reading through mse.tmac and LT.se as a preparation to take on bug #65861 I
noticed that the layout does not seem right (see attachment LT.se-before.pdf).
The main issues I notice are:
1. The main body text is offset very far to the right and overflows the right
paper edge
2. The lines of the main body text are not filled, i.e. line-breaks in the
source are present in the rendered output
3. Once 1. is fixed the `SVH` letter type main body line length also overflows
the right paper edge
Please find attached a patch that addresses the issues above, and introduces a
`lT` variable to LT.se to allow switching the letter type using a command-line
option, e.g. `-dlT=SVH` or `-dlT=SVV` (similar to mT in memorandum.mm).
The patch includes additions/changes regarding editor settings, e.g. vim
modeline.
In addition to the patch please find attached two PDF documents showing the
mse.tmac and LT.se output for the SVV and SVH letter type with the patch
applied.
Please note that I have no knowledge about swedish letter layout and this
should be seen as a layman's best attempt to improve on something that appears
rather broken.
The .in and .ll lines deleted from `let@init_SVH` only make sense to me if the
document is rendered in landscape using -dpaper=a4l and -P-l. Due to my
personal lack of understanding I deleted them, which may not be the right
fix.
Feedback from more knowledgable folks and mmse users is very much welcome.
----
P.S.
The issue and mwe were prepared and tested on macOS Tahoe 26.1 using groff
1.23.0 as well as groff built from the latest changeset; at time
5fd3ccc46b982cccbe7675f70eef74bde05f202a from Sun Dec 21 12:03:13 2025 +0000.
Additionally the following environment variables were set:
GROFF_ENCODING=utf-8
GROFF_TYPESETTER=pdf
_______________________________________________________
File Attachments:
Name: fix-mmse-LT-layout.patch Size: 987B
<https://file.savannah.gnu.org/file/fix-mmse-LT-layout.patch?file_id=58017>
Name: LT-SVV.se-after.pdf Size: 8.0KiB
<https://file.savannah.gnu.org/file/LT-SVV.se-after.pdf?file_id=58018>
Name: LT.se-before.pdf Size: 18KiB
<https://file.savannah.gnu.org/file/LT.se-before.pdf?file_id=58019>
Name: LT-SVH.se-after.pdf Size: 8.0KiB
<https://file.savannah.gnu.org/file/LT-SVH.se-after.pdf?file_id=58020>
AGPL NOTICE
These attachments are served by Savane. You can download the corresponding
source code of Savane at
https://savannah.gnu.org/source/savane-1e6fd23c41fc02d9904e289de521b5c19703a648.tar.gz
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?67857>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
