Update of bug#65232 (group groff):

                  Status:                    None => Need Info              

    _______________________________________________________

Follow-up Comment #1:

Hi Robin,

[comment #0 original submission:]
> I cannot get Russian hyphenation to work on a HEAD build of Groff. As far as
I understand, it should be enough to -mru.

It should.

> It should even enable hyphenation mode 8 by default.

That is _not_ my understanding.  The automated test assumes that loading the
"ru" package will set the hyphenation mode to 1 or 2.


$ grep -A2 mru tmac/tests/localization-works.sh 
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 -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 -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 -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=1 -man -mru
2>&1)
echo 'checking -man with -rcR=1 -mru' >&2
echo "$output" | grep -Fqx '.hy=1' || wail


And indeed that's what "ru.tmac" sets up.


.\" Set up hyphenation.
.
.\" Russian hyphenation (\lefthyphenmin=2, \righthyphenmin=2)
.nr \*[locale]*hyphenation-mode-base 1
.nr \*[locale]*hyphenation-mode-trap 2


But we don't have in this automated test any Russian language text that we
check for correct hyphenation.  None was available.  If you can supply some,
that would be helpful.

> Still, I try to set HY and .hy manually without any success.
> 
> My source file UTF-8, converted to KOI8 using iconv, but I also included the
preconverted KOI8 file in case you don't have a working iconv. btw. that's a
very useful hack, as it preserves misc. codepoints as unicode character
escapes.
> 
> You have to install LiberationSerif, for instance using install-fonts.sh.
> 
> The command line to build the example used is:
> 

> iconv -f UTF-8 -t KOI8-R --unicode-subst='\[u%04X]' hyphen-utf8.ms | groff
-Tpdf -ms -mru >hyphen-koi8.pdf


Here's a thread from last March when we were first landing this change.

https://lists.gnu.org/archive/html/groff/2023-03/msg00100.html

You might compare your results with those we were getting at the time.

Regards,
Branden


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?65232>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/


Reply via email to