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: G. Branden Robinson
Subject: [bug #63076] [tmac] add Russian language support
Date: Thu, 9 Mar 2023 10:52:20 -0500 (EST)

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

[comment #16 comment #16:]
> [comment #15 comment #15:]
> > Apparently it can.  In your example document, your use of the character
≈ (in KOI8, this is hex 0x97 or decimal 151) is rejected by GNU troff upon
input.
> By mistake I included a literal em dash character (_—_) in the document.
If I replace it with _\[em]_, no error is raised after running _groff -ww_.

Ah, I see, the code point that was ≈ in KOI8-R is assigned to the em dash
— in KOI8-RU.  But I note that your patch seems to support the former, not
the latter--you do not have `trin` requests for є, і, ї, ґ, or ў.

That's not necessarily a defect; KOI8-R, in its alphabetic code points, seems
to be fully compatible with KOI8-{B,U,RU} (at least) so it's a good basis from
which to start groff support for Cyrillic languages.
 
> I've read _tmac/LOCALIZATION_ and apparently you are not supposed to
redefine the second string in _ISODATE_ macro. I've attached a patch that
fixes that.

Cool.  I'll integrate it with your earlier patch--I haven't pushed anything
yet.
 
> The changes you made all seem correct to me, except for the revised version
of my document (the fix should have been a 
replacement of the character with _\[em]_; see the 1st paragraph).

I'll fix that--thanks!
 
> Speaking of an em dash character, it is used fairly often in Russian texts.

In English, too!

> I have noticed that quite frequently a line break is added before or after
the character, which, as far as I know, is incorrect. I know it's fixable by
adding no-break spaces before and after the character but it seems like there
could be a more automatic solution.  Is it possible to somehow tell _groff_ to
avoid adding breaks in those cases (perhaps using _.cflags_ request)?

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.


    _______________________________________________________

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]