groff-commit
[Top][All Lists]
Advanced

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

[groff] 05/05: Integrate Italian localization.


From: G. Branden Robinson
Subject: [groff] 05/05: Integrate Italian localization.
Date: Fri, 2 Jul 2021 00:36:10 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit eaca0e7c71db2ba310bcb4f1d5e3d0b51f838900
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Fri Jul 2 14:24:05 2021 +1000

    Integrate Italian localization.
    
    * NEWS: Add item.  Update an existing list of localization macro files.
    * doc/groff.texi (Manipulating Hyphenation):  Update table of
      hyphenation pattern left and right minimums and list of available
      localization files to include Italian.
    * man/groff_tmac.5.man: Update list of available localization files to
      include Italian.
    * src/roff/groff/tests/localization_works.sh: Test it.
    * tmac/tmac.am (TMACNORMALFILES): Add `it.tmac` and `hyphen.it`.
    
    Fixes <https://savannah.gnu.org/bugs/?60828>.
---
 ChangeLog                                  | 16 ++++++++++++++++
 NEWS                                       |  8 ++++++--
 doc/groff.texi                             | 14 ++++++++------
 man/groff_tmac.5.man                       | 11 +++++++++++
 src/roff/groff/tests/localization_works.sh |  6 ++++++
 tmac/tmac.am                               |  2 ++
 6 files changed, 49 insertions(+), 8 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 37dd122..cfbc1a2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,21 @@
 2021-07-02  G. Branden Robinson <g.branden.robinson@gmail.com>
 
+       Integrate Italian localization.
+
+       * NEWS: Add item.  Update an existing list of localization macro
+       files.
+       * doc/groff.texi (Manipulating Hyphenation):  Update table of
+       hyphenation pattern left and right minimums and list of
+       available localization files to include Italian.
+       * man/groff_tmac.5.man: Update list of available localization
+       files to include Italian.
+       * src/roff/groff/tests/localization_works.sh: Test it.
+       * tmac/tmac.am (TMACNORMALFILES): Add `it.tmac` and `hyphen.it`.
+
+       Fixes <https://savannah.gnu.org/bugs/?60828>.
+
+2021-07-02  G. Branden Robinson <g.branden.robinson@gmail.com>
+
        [tmac]: Flesh out Italian localization.
 
        * tmac/hyphen.it: Add hyphenation patterns from TeX hyph-utf8
diff --git a/NEWS b/NEWS
index a933bec..15f402a 100644
--- a/NEWS
+++ b/NEWS
@@ -22,8 +22,8 @@ o The groff locale (the default input language) is now 
determined using
 
   Those who want groff's default locale to differ from LC_ALL/LANG
   should edit the troffrc file to source the appropriate groff locale
-  macro file (cs.tmac, de.tmac, den.tmac, fr.tmac, ja.tmac, sv.tmac,
-  zh.tmac).
+  macro file (cs.tmac, de.tmac, den.tmac, fr.tmac, it.tmac, ja.tmac,
+  sv.tmac, zh.tmac).
 
   The default hyphenation mode (as used by the .hy request) for users of
   English is thus changed from "1", which was inappropriate for the
@@ -200,6 +200,10 @@ o On the Latin-1 output device ("groff -T latin1") the 
output glyph
 Miscellaneous
 -------------
 
+o Italian language input documents are now supported, including
+  hyphenation patterns from the hyph-utf8 project and localized strings
+  for the ms, me, mm, and mom packages.  Thanks to Edmond Orignac.
+
 o The semantics of the environment variable SOURCE_DATE_EPOCH (support
   for which was added in 1.22.4) to groff were not established with
   respect to time zone selection, prompting divergent interpretations;
diff --git a/doc/groff.texi b/doc/groff.texi
index 8cad4ab..04a85fe 100644
--- a/doc/groff.texi
+++ b/doc/groff.texi
@@ -7620,6 +7620,7 @@ the @cite{groff_tmac@r{(5)}} man page for more 
information on GNU
 @item        French             @tab fr           @tab 2        @tab 3
 @item        German traditional @tab det          @tab 2        @tab 2
 @item        German reformed    @tab den          @tab 2        @tab 2
+@item        Italian            @tab it           @tab 2        @tab 2
 @item        Swedish            @tab sv           @tab 1        @tab 2
 @end multitable
 
@@ -7702,6 +7703,7 @@ be used.  By default, every code maps to itself except 
those for letters
 @pindex de.tmac
 @pindex en.tmac
 @pindex fr.tmac
+@pindex it.tmac
 @pindex ja.tmac
 @pindex sv.tmac
 @pindex zh.tmac
@@ -7715,12 +7717,12 @@ environment variables @env{LC_ALL} and @env{LANG} (in 
that order) and
 attempts to load a localization file matching the first two characters
 of the variable's value.@footnote{As of @code{groff} 1.23.0,
 localization files for Czech (@code{cs}), German (@code{de}), English
-(@code{en}), French (@code{fr}), Japanese (@code{ja}), Swedish
-(@code{sv}), and Chinese (@code{zh}) exist.}  For Western languages, the
-localization file sets the hyphenation mode and loads hyphenation
-patterns and exceptions.  If the environment variables are not set or
-set to ``C'', or a localization file for the locale does not exist, the
-English localization file is used.
+(@code{en}), French (@code{fr}), Italian (@code{it}), Japanese
+(@code{ja}), Swedish (@code{sv}), and Chinese (@code{zh}) exist.}  For
+Western languages, the localization file sets the hyphenation mode and
+loads hyphenation patterns and exceptions.  If the environment variables
+are not set or set to ``C'', or a localization file for the locale does
+not exist, the English localization file is used.
 
 A second call to @code{hpf} (for the same language) replaces the
 hyphenation patterns with the new ones.  Invoking @code{hpf} or
diff --git a/man/groff_tmac.5.man b/man/groff_tmac.5.man
index 28767ea..63dfab5 100644
--- a/man/groff_tmac.5.man
+++ b/man/groff_tmac.5.man
@@ -332,6 +332,17 @@ Sets the input encoding to Latin-9 by loading
 .
 .
 .TP
+.I it
+Italian;
+localizes
+.IR me ,
+.IR mm ,
+.IR mom ,
+and
+.IR ms .
+.
+.
+.TP
 .I ja
 Japanese.
 .
diff --git a/src/roff/groff/tests/localization_works.sh 
b/src/roff/groff/tests/localization_works.sh
index 3418c34..7eec9d1 100755
--- a/src/roff/groff/tests/localization_works.sh
+++ b/src/roff/groff/tests/localization_works.sh
@@ -73,6 +73,12 @@ LANG=fr_FR
 OUTPUT=$(echo "$DOC" | "$groff" -Tascii)
 echo "$OUTPUT" | grep -qx french
 
+echo "testing that LC_ALL= LANG=it_IT loads Italian localization" >&2
+LC_ALL=
+LANG=it_IT
+OUTPUT=$(echo "$DOC" | "$groff" -Tascii)
+echo "$OUTPUT" | grep -qx italian
+
 echo "testing that LC_ALL= LANG=ja_JP loads Japanese localization" >&2
 LC_ALL=
 LANG=ja_JP
diff --git a/tmac/tmac.am b/tmac/tmac.am
index 430054c..5fa798c 100644
--- a/tmac/tmac.am
+++ b/tmac/tmac.am
@@ -83,6 +83,8 @@ TMACNORMALFILES = \
   tmac/hyphenex.en \
   tmac/fr.tmac \
   tmac/hyphen.fr \
+  tmac/it.tmac \
+  tmac/hyphen.it \
   tmac/sv.tmac \
   tmac/hyphen.sv \
   tmac/de.tmac \



reply via email to

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