groff-commit
[Top][All Lists]
Advanced

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

[groff] 05/47: groff_mmse(7): Stop sourcing localization package.


From: G. Branden Robinson
Subject: [groff] 05/47: groff_mmse(7): Stop sourcing localization package.
Date: Tue, 11 Jan 2022 06:33:14 -0500 (EST)

gbranden pushed a commit to branch master
in repository groff.

commit 906a37dcd91ae7930bec98990f4029cfa01a06e5
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Thu Jan 6 01:27:18 2022 +1100

    groff_mmse(7): Stop sourcing localization package.
    
    Man pages should not do this.  It will mess up any subsequent man pages
    rendered in the same formatter run that use a different language.  This
    has always been discouraged (except by this dubious example), but was
    only noticeable if you paid attention to the hyphenation breaks being
    wrong in subsequent pages.  Now that we have localizations for the
    manual section titles, it's more obvious.
    
    There isn't a way to batch-render man pages in multiple languages while
    being agnostic about this fact on the command line[1] unless we were to
    prescribe adding an ".mso" request for the man page's intended
    localization file to _every_ page, including English ones, and that
    seems like a non-starter due to the breadth of the impact, the status of
    the `mso` request as a groff extension, and the groff-specific names for
    the localization packages.
    
    Possibly, few people apart from me care about reliable batch-rendering.
    
    [1] It can be done, with gnosis, by interleaving the localization macro
        files among a set of man page operands.  Assuming a default language
        of English, consider the following hypothetical arrangement.
          $ groff -man od.1 tmac/fr.tmac fr/ls.1 fr/cat.1 tmac/en.tmac tar.1
---
 contrib/mm/groff_mmse.7.man | 1 -
 1 file changed, 1 deletion(-)

diff --git a/contrib/mm/groff_mmse.7.man b/contrib/mm/groff_mmse.7.man
index e36ea2ef..75eeeab5 100644
--- a/contrib/mm/groff_mmse.7.man
+++ b/contrib/mm/groff_mmse.7.man
@@ -30,7 +30,6 @@ groff_mmse \- svenska \(rqmemorandum\(rq makro f\(:or GNU roff
 .\" Save and disable compatibility mode (for, e.g., Solaris 10/11).
 .do nr *groff_groff_mmse_7_man_C \n[.cp]
 .cp 0
-.mso sv.tmac
 .
 .
 .\" ====================================================================



reply via email to

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