bug-groff
[Top][All Lists]
Advanced

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

[bug #63076] [tmac] add Russian language support


From: Nikita Ivanov
Subject: [bug #63076] [tmac] add Russian language support
Date: Fri, 10 Mar 2023 17:15:13 -0500 (EST)

Follow-up Comment #19, bug #63076 (project groff):

[comment #17 comment #17:]
> Yes, although in English, style authorities conflict over whether em-dashes
should get space around them, so groff does not mandate a policy.  Deciding
this question may require consultation of multiple style authorities in
Russian.
I did and this is what one of them states:

> You cannot transfer punctuation marks to another line, except for a dash
after a period or after a colon before the second part of the interrupted
direct speech.

It means that it's not always incorrect to put a line break before the dash.
And I don't see it being possible to communicate the condition on whether to
put a line break to groff. So I guess putting _\~_ is the only way.

[comment #18 comment #18:]
> Setting this to "Ready for Test" since we don't really use that status.  In
this case, it means I'd like you to test it, and also that it needs to be
merged onto master (after 1.23.0 final is tagged).
I tried building it but encountered an error:


cp: cannot stat '../doc/groff.txt': No such file or directory
make[2]: *** [Makefile:14583: install-txt] Error 1
make[2]: Leaving directory '/home/nikita/aur/groff-git/src/groff-git/build'
make[1]: *** [Makefile:11924: install-am] Error 2
make[1]: Leaving directory '/home/nikita/aur/groff-git/src/groff-git/build'
make: *** [Makefile:11917: install] Error 2


I've fixed it by applying this patch (although, I'm not sure it's a correct
solution):


diff --git a/doc/doc.am b/doc/doc.am
index cddc51907..9626dbb28 100644
--- a/doc/doc.am
+++ b/doc/doc.am
@@ -624,7 +624,7 @@ install-data-local: install-txt
 install-txt:
        -test -d $(DESTDIR)$(docdir) \
          || $(mkinstalldirs) $(DESTDIR)$(docdir)
-       cp $(top_srcdir)/doc/groff.txt $(DESTDIR)$(docdir)
+       cp $(top_builddir)/doc/groff.txt $(DESTDIR)$(docdir)
 
 install-data-local: install_infodoc
 install_infodoc: doc/groff.info


Other than that, the localization seems to be working. I've just discovered
that the order of macroset includions on a command line matters: If I put
_-mru_ before _-ms_, _ms_ strings are not localized. Maybe it should me
documented on _groff_tmac(5)_?

I've read again documentation for the hyphenation pattern (which resides in
_tmac/hyphen.ru_ now) and it turns out that there is another hyphenation
pattern file in the same package which is supposed to improve hyphenation for
words that contain the letter "yo" (_ё_). I'm not exactly sure why they were
not distributed in a single file. I think it should be included in groff as
well.

(file #54471)

    _______________________________________________________

Additional Item Attachment:

File name: cyryoal.tex                    Size:1 KB
    <https://file.savannah.gnu.org/file/cyryoal.tex?file_id=54471>



    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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