[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 03/07: tmac/troffrc: Load English localization file.
From: |
G. Branden Robinson |
Subject: |
[groff] 03/07: tmac/troffrc: Load English localization file. |
Date: |
Sat, 10 Jul 2021 04:04:03 -0400 (EDT) |
gbranden pushed a commit to branch master
in repository groff.
commit 7eb25c45b5ec67f1037abcc670793b734584987c
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Fri Jul 9 03:51:38 2021 +1000
tmac/troffrc: Load English localization file.
* tmac/troffrc: Load the English localization file `en.tmac` by default,
instead of dealing with hyphenation language and patterns directly in
this file. (This also replaces a localization-determination mechanism
that was never part of a groff release.)
---
ChangeLog | 6 ++++++
src/roff/groff/tests/localization_works.sh | 6 +++---
tmac/troffrc | 8 ++------
3 files changed, 11 insertions(+), 9 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 97859e9..e14acc2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2021-07-09 G. Branden Robinson <g.branden.robinson@gmail.com>
+ * tmac/troffrc: Load the English localization file `en.tmac` by
+ default, instead of dealing with hyphenation language and
+ patterns directly in this file. (This also replaces a
+ localization-determination mechanism that was never part of a
+ groff release.)
+
* src/roff/groff/tests/initialization_is_quiet.sh:
* src/roff/groff/tests/localization_works.sh: Rewrite to use
explicit macro file loading localization mechanism.
diff --git a/src/roff/groff/tests/localization_works.sh
b/src/roff/groff/tests/localization_works.sh
index 66eba55..0585259 100755
--- a/src/roff/groff/tests/localization_works.sh
+++ b/src/roff/groff/tests/localization_works.sh
@@ -24,9 +24,9 @@ set -e
DOC='\*[locale]'
-#echo "testing default localization (English)" >&2
-#OUTPUT=$(echo "$DOC" | "$groff" -Tascii)
-#echo "$OUTPUT" | grep -qx english
+echo "testing default localization (English)" >&2
+OUTPUT=$(echo "$DOC" | "$groff" -Tascii)
+echo "$OUTPUT" | grep -qx english
echo "testing Czech localization" >&2
OUTPUT=$(echo "$DOC" | "$groff" -Tascii -m cs)
diff --git a/tmac/troffrc b/tmac/troffrc
index d2dae37..59ee9c0 100644
--- a/tmac/troffrc
+++ b/tmac/troffrc
@@ -54,12 +54,8 @@ troffrc!html
.el \
. do tr \[char65]\~
.
-.\" Set the hyphenation language to English.
-.do hla en
-.
-.\" Load hyphenation patterns and exceptions.
-.do hpf hyphen.en
-.do hpfa hyphenex.en
+.\" Set the input localization to English.
+.do mso en.tmac
.
.\" Handle paper formats.
.do mso papersize.tmac
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 03/07: tmac/troffrc: Load English localization file.,
G. Branden Robinson <=