[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 09/14: [tests]: Test Spanish & Russian hyphenation modes.
From: |
G. Branden Robinson |
Subject: |
[groff] 09/14: [tests]: Test Spanish & Russian hyphenation modes. |
Date: |
Thu, 31 Aug 2023 22:35:56 -0400 (EDT) |
gbranden pushed a commit to branch master
in repository groff.
commit ef9055e131409354e8b21bc1705c3619a1455433
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Thu Aug 31 19:17:11 2023 -0500
[tests]: Test Spanish & Russian hyphenation modes.
* tmac/tests/localization-works.sh: Test hyphenation modes for Spanish
and Russian.
---
ChangeLog | 5 +++++
tmac/tests/localization-works.sh | 42 +++++++++++++++++++++++++++++++++++++++-
2 files changed, 46 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 009227794..ce34dd04e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2023-08-31 G. Branden Robinson <g.branden.robinson@gmail.com>
+
+ * tmac/tests/localization-works.sh: Test hyphenation modes for
+ Spanish and Russian.
+
2023-08-31 G. Branden Robinson <g.branden.robinson@gmail.com>
* tmac/es.tmac: Correct hyphenation mode used when suppressing
diff --git a/tmac/tests/localization-works.sh b/tmac/tests/localization-works.sh
index d80701804..6e66554d4 100755
--- a/tmac/tests/localization-works.sh
+++ b/tmac/tests/localization-works.sh
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# Copyright (C) 2021 Free Software Foundation, Inc.
+# Copyright (C) 2021-2023 Free Software Foundation, Inc.
#
# This file is part of groff.
#
@@ -41,6 +41,10 @@ output=$(printf "%s\n" "$input" | "$groff" -Tascii -P-cbou
-men 2>&1)
echo 'checking raw troff with -men' >&2
echo "$output" | grep -Fqx '.hy=4' || wail
+output=$(printf "%s\n" "$input" | "$groff" -Tascii -P-cbou -mes 2>&1)
+echo 'checking raw troff with -mes' >&2
+echo "$output" | grep -Fqx '.hy=1' || wail
+
output=$(printf "%s\n" "$input" | "$groff" -Tascii -P-cbou -mfr 2>&1)
echo 'checking raw troff with -mfr' >&2
echo "$output" | grep -Fqx '.hy=4' || wail
@@ -49,6 +53,10 @@ output=$(printf "%s\n" "$input" | "$groff" -Tascii -P-cbou
-mit 2>&1)
echo 'checking raw troff with -mit' >&2
echo "$output" | grep -Fqx '.hy=1' || wail
+output=$(printf "%s\n" "$input" | "$groff" -Tascii -P-cbou -mru 2>&1)
+echo 'checking raw troff with -mru' >&2
+echo "$output" | grep -Fqx '.hy=1' || wail
+
output=$(printf "%s\n" "$input" | "$groff" -Tascii -P-cbou -msv 2>&1)
echo 'checking raw troff with -msv' >&2
echo "$output" | grep -Fqx '.hy=32' || wail
@@ -65,6 +73,10 @@ output=$(printf "%s\n" "$input" | "$groff" -Tascii -P-cbou
-me -men 2>&1)
echo 'checking -me with -men' >&2
echo "$output" | grep -Fqx '.hy=6' || wail
+output=$(printf "%s\n" "$input" | "$groff" -Tascii -P-cbou -me -mes 2>&1)
+echo 'checking -me with -mes' >&2
+echo "$output" | grep -Fqx '.hy=2' || wail
+
output=$(printf "%s\n" "$input" | "$groff" -Tascii -P-cbou -me -mfr 2>&1)
echo 'checking -me with -mfr' >&2
echo "$output" | grep -Fqx '.hy=6' || wail
@@ -73,6 +85,10 @@ output=$(printf "%s\n" "$input" | "$groff" -Tascii -P-cbou
-me -mit 2>&1)
echo 'checking -me with -mit' >&2
echo "$output" | grep -Fqx '.hy=2' || wail
+output=$(printf "%s\n" "$input" | "$groff" -Tascii -P-cbou -me -mru 2>&1)
+echo 'checking -me with -mru' >&2
+echo "$output" | grep -Fqx '.hy=2' || wail
+
output=$(printf "%s\n" "$input" | "$groff" -Tascii -P-cbou -me -msv 2>&1)
echo 'checking -me with -msv' >&2
echo "$output" | grep -Fqx '.hy=34' || wail
@@ -89,6 +105,10 @@ output=$(printf "%s\n" "$input" | "$groff" -Tascii -P-cbou
-ms -men 2>&1)
echo 'checking -ms with -men' >&2
echo "$output" | grep -Fqx '.hy=6' || wail
+output=$(printf "%s\n" "$input" | "$groff" -Tascii -P-cbou -ms -mes 2>&1)
+echo 'checking -ms with -mes' >&2
+echo "$output" | grep -Fqx '.hy=2' || wail
+
output=$(printf "%s\n" "$input" | "$groff" -Tascii -P-cbou -ms -mfr 2>&1)
echo 'checking -ms with -mfr' >&2
echo "$output" | grep -Fqx '.hy=6' || wail
@@ -97,6 +117,10 @@ output=$(printf "%s\n" "$input" | "$groff" -Tascii -P-cbou
-ms -mit 2>&1)
echo 'checking -ms with -mit' >&2
echo "$output" | grep -Fqx '.hy=2' || wail
+output=$(printf "%s\n" "$input" | "$groff" -Tascii -P-cbou -ms -mru 2>&1)
+echo 'checking -ms with -mru' >&2
+echo "$output" | grep -Fqx '.hy=2' || wail
+
output=$(printf "%s\n" "$input" | "$groff" -Tascii -P-cbou -ms -msv 2>&1)
echo 'checking -ms with -msv' >&2
echo "$output" | grep -Fqx '.hy=34' || wail
@@ -116,6 +140,10 @@ output=$(printf "%s\n" "$input" | "$groff" -Tascii -P-cbou
-rcR=0 -man -men 2>&1
echo 'checking -man with -rcR=0 -men' >&2
echo "$output" | grep -Fqx '.hy=6' || wail
+output=$(printf "%s\n" "$input" | "$groff" -Tascii -P-cbou -rcR=0 -man -mes
2>&1)
+echo 'checking -man with -rcR=0 -mes' >&2
+echo "$output" | grep -Fqx '.hy=2' || wail
+
output=$(printf "%s\n" "$input" | "$groff" -Tascii -P-cbou -rcR=0 -man -mfr
2>&1)
echo 'checking -man with -rcR=0 -mfr' >&2
echo "$output" | grep -Fqx '.hy=6' || wail
@@ -124,6 +152,10 @@ output=$(printf "%s\n" "$input" | "$groff" -Tascii -P-cbou
-rcR=0 -man -mit 2>&1
echo 'checking -man with -rcR=0 -mit' >&2
echo "$output" | grep -Fqx '.hy=2' || wail
+output=$(printf "%s\n" "$input" | "$groff" -Tascii -P-cbou -rcR=0 -man -mru
2>&1)
+echo 'checking -man with -rcR=0 -mru' >&2
+echo "$output" | grep -Fqx '.hy=2' || wail
+
output=$(printf "%s\n" "$input" | "$groff" -Tascii -P-cbou -rcR=0 -man -msv
2>&1)
echo 'checking -man with -rcR=0 -msv' >&2
echo "$output" | grep -Fqx '.hy=34' || wail
@@ -140,6 +172,10 @@ output=$(printf "%s\n" "$input" | "$groff" -Tascii -P-cbou
-rcR=1 -man -men 2>&1
echo 'checking -man with -rcR=1 -men' >&2
echo "$output" | grep -Fqx '.hy=4' || wail
+output=$(printf "%s\n" "$input" | "$groff" -Tascii -P-cbou -rcR=1 -man -mes
2>&1)
+echo 'checking -man with -rcR=1 -mes' >&2
+echo "$output" | grep -Fqx '.hy=1' || wail
+
output=$(printf "%s\n" "$input" | "$groff" -Tascii -P-cbou -rcR=1 -man -mfr
2>&1)
echo 'checking -man with -rcR=1 -mfr' >&2
echo "$output" | grep -Fqx '.hy=4' || wail
@@ -148,6 +184,10 @@ output=$(printf "%s\n" "$input" | "$groff" -Tascii -P-cbou
-rcR=1 -man -mit 2>&1
echo 'checking -man with -rcR=1 -mit' >&2
echo "$output" | grep -Fqx '.hy=1' || wail
+output=$(printf "%s\n" "$input" | "$groff" -Tascii -P-cbou -rcR=1 -man -mru
2>&1)
+echo 'checking -man with -rcR=1 -mru' >&2
+echo "$output" | grep -Fqx '.hy=1' || wail
+
output=$(printf "%s\n" "$input" | "$groff" -Tascii -P-cbou -rcR=1 -man -msv
2>&1)
echo 'checking -man with -rcR=1 -msv' >&2
echo "$output" | grep -Fqx '.hy=32' || wail
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 09/14: [tests]: Test Spanish & Russian hyphenation modes.,
G. Branden Robinson <=