groff-commit
[Top][All Lists]
Advanced

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

[groff] 03/05: tmac/LOCALIZATION: Add hyphenation mode advice.


From: G. Branden Robinson
Subject: [groff] 03/05: tmac/LOCALIZATION: Add hyphenation mode advice.
Date: Fri, 2 Jul 2021 00:36:09 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit ae7aafd0938b671413744a3c6a62834a0b8d5729
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Fri Jul 2 13:49:06 2021 +1000

    tmac/LOCALIZATION: Add hyphenation mode advice.
    
    Offer the reader a mapping from TeX hyphenation minimums to groff
    hyphenation modes.
    
    Fix typos.
---
 tmac/LOCALIZATION | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/tmac/LOCALIZATION b/tmac/LOCALIZATION
index 04fe00d..df7ad87 100644
--- a/tmac/LOCALIZATION
+++ b/tmac/LOCALIZATION
@@ -9,18 +9,23 @@ hyphenation pattern files.
 
     A.  A string identifying the groff locale (e.g., "english") is set.
     B.  Locale-specific strings used by macro packages are (re)defined.
-    C.  Other tweaks to macro package configuration are peformed, such
+    C.  Other tweaks to macro package configuration are performed, such
         as altering the ordering of the components of a date string.
     D.  Additional inter-sentence space is set to a language-appropriate
         amount with the .ss request.
     E.  A hyphenation mode appropriate to the hyphenation pattern files
-        for the locale is set with the .hy request.
+        for the locale is set with the .hy request.  Here's a mapping
+        from TeX hyphenation pattern minimums to groff hyphenation
+        modes.
+            \lefthyphenmin=2, \righthyphenmin=2 => 1
+            \lefthyphenmin=2, \righthyphenmin=3 => 4
+            \lefthyphenmin=1, \righthyphenmin=2 => 32
     F.  Hyphenation codes appropriate to the hyphenation pattern files
         for the locale are set with the .hcode request.
     G.  The hyphenation language is set with the .hla request.
     H.  Hyphenation pattern and exception files are loaded with the .hpf
         and .hpfa requests.
-    I.  Support for a character encoding approriate to the locale is
+    I.  Support for a character encoding appropriate to the locale is
         loaded with the .mso request.
 
 2.  A locale-independent file (trans.tmac) activates the localized



reply via email to

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