Re: Help using DeclareUnicodeCharacter for russian

Gavin Smith <[email protected]>
Newsgroups gmane.comp.tex.texinfo.general
Message-ID <CAKPWYQ2ywy+CZia9-wjZkf942JTrKpjPi4Kte13cy4utcz2xvw@mail.gmail.com>
On Thu, Jun 10, 2021 at 11:53 PM <[email protected]> wrote:
>
> I am trying to declare unicode characters for russian
>
> @macro ru
>
> \DeclareUnicodeCharacter{1040}{\ensuremath\rua}
> \DeclareUnicodeCharacter{1041}{\ensuremath\rube}
> \DeclareUnicodeCharacter{1042}{\ensuremath\ruve}
> \DeclareUnicodeCharacter{1043}{\ensuremath\rughe}
> \DeclareUnicodeCharacter{1044}{\ensuremath\rude}
> \DeclareUnicodeCharacter{1045}{\ensuremath\ruie}
> \DeclareUnicodeCharacter{1046}{\ensuremath\ruzhe}
> \DeclareUnicodeCharacter{1047}{\ensuremath\ruze}
>
> @end macro
>

As well as using @tex instead of @macro as Jacob said, where are you
getting the names \rua, \rube, \ruve from?

You would also have to make sure a Cyrillic font was loaded and access
the glyphs in that font. Look at the definition of \euro in
texinfo.tex for how a font can be loaded on demand.

I don't foresee a problem with adding this to texinfo.tex as it would
probably be only slightly more complicated than the Greek alphabet.

I expect that the document I sent earlier was written in the KOI-8
encoding (an 8-bit encoding) rather than Unicode.

I'm curious what the use of this is: do you speak Russian? Do Russian
mathematicians use Cyrillic letters for variables?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.