How can I type cyrillic vowels with stress marks in linux? Particularly Ubuntu. I have russian keyboard layout setup and working, just need to figure out the stress marks.
Russian keyboard layouts both in Linux and Windows don't have stressed vowels. Some people type latin accented vowels instead, but the right way to do it, I suppose, is to use combined Unicode characters (but I don't know how to type them in Linux, sorry).
We do not use stressed vowels in everyday typing so there are none in regular Russian keyboard layout (at least X.Org one). As far as I can imagine you need that for some "linguistic" purpose. In this case the best way to input literally _everything_ you may occasionally need would be LaTeX. Typing stress marks is really simple there. Besides you may use IPA without any hassles.. That's what I use in Linux.
If you use HTML, write ́ after the character to set the stress mark: а́ е́ и́ о́ у́ ы́ э́ ю́ я́ It is the Unicode character U+0301 (CC 80 in UTF-8).
Actually, there are NO accented Cyrillic characters in most charsets, IIRC, as they aren't used in normal writing -- only in teching materials and dictionaries. But Unicode has a postfix accent character, which, IIRC, could be entered by "Compose" key -- you just type [Compose]-[Letter]-[Apostrophe] and get an accented letter. Look at X.Org keyboard driver settings, there is a checkbox that turns Compose key on.
\usepackage{ucs} \usepackage[utf8x]{inputenc} % assuming you are using a UTF-8 locale, which you most probably are \usepackage[T2A]{fontenc} \usepackage[russian]{babel} %optional
In the body:
\'{а}, \'{ю} % much as you would do it for Latin characters
Someone who wished to remain anonymous asked me to post this:
1. Run im-switch -c, choose default-xim. 2. Edit (create if needed) your ~/.XCompose. First, include your standard compose settings:
include "/usr/share/X11/locale/en_US.UTF-8/Compose"
and then add your own settings. I use this line:
: "́" U0301 # ударение
Please note that there's a live combining stress/acute mark (Unicode 0x0301) between the quotes! I don't know how to define this setting in 7-bit ASCII. You may just copy the line and paste it into your Unicode-aware editor of choice (vim and nano both work just fine).
Now Restart X11. To type a stressed vowel, type the vowel and then, while holding your compose key, press apostrophe twice.
You can add other mappings to your ~/.XCompose, but most of what you need, like quotes «» or long dash —, is already in the default compose file. Read it.
I don't know what the default compose key in Gnome is, or how to set it (I use KDE). Check your keyboard settings dialog. I think you may map Win or RightCtrl or RightAlt or CapsLock to serve as compose key. You probably can also do this in /etc/X11/xorg.conf by adding something like
This is the anonymous guy who tried to be helpful.
There's a technical problem with the parent comment. A piece of text is missing due to incorrectly placed <> symbols (stupid me, forgot that <> can't be copied-and-pasted in LJ!) I will repeat the missing fragment below.
Please note that there's a live combining stress/acute mark (Unicode 0x0301) between the quotes! I don't know how to define this setting in 7-bit ASCII. You may just copy the line and paste it into your Unicode-aware editor of choice (vim and nano both work just fine).
Oh, and you can use any key instead of the apostrophe. E.g. if you don't have the apostrophe in your Russian layout, use the double quote (the code is <quotedbl>) or comma (<comma>) or slash (<slash>), or whatever is convenient.
no subject
Date: 2009-01-19 06:14 am (UTC)no subject
Date: 2009-01-19 06:49 am (UTC)no subject
Date: 2009-01-19 06:57 am (UTC)а́ е́ и́ о́ у́ ы́ э́ ю́ я́
It is the Unicode character U+0301 (CC 80 in UTF-8).
no subject
Date: 2009-01-19 07:37 am (UTC)no subject
Date: 2009-01-19 09:00 am (UTC)no subject
Date: 2009-01-19 11:07 am (UTC)no subject
Date: 2009-01-19 11:10 am (UTC)no subject
Date: 2009-01-19 11:38 am (UTC)no subject
Date: 2009-01-19 12:21 pm (UTC)\usepackage{ucs}
\usepackage[utf8x]{inputenc} % assuming you are using a UTF-8 locale, which you most probably are
\usepackage[T2A]{fontenc}
\usepackage[russian]{babel} %optional
In the body:
\'{а}, \'{ю} % much as you would do it for Latin characters
no subject
Date: 2009-01-19 08:29 pm (UTC)no subject
Date: 2009-01-19 08:32 pm (UTC)1. Run im-switch -c, choose default-xim.
2. Edit (create if needed) your ~/.XCompose. First, include your standard compose settings:
include "/usr/share/X11/locale/en_US.UTF-8/Compose"
and then add your own settings. I use this line:
: "́" U0301 # ударение
Please note that there's a live combining stress/acute mark (Unicode 0x0301) between the quotes! I don't know how to define this setting in 7-bit ASCII. You may just copy the line and paste it into your Unicode-aware editor of choice (vim and nano both work just fine).
Now Restart X11. To type a stressed vowel, type the vowel and then, while holding your compose key, press apostrophe twice.
You can add other mappings to your ~/.XCompose, but most of what you need, like quotes «» or long dash —, is already in the default compose file. Read it.
I don't know what the default compose key in Gnome is, or how to set it (I use KDE). Check your keyboard settings dialog. I think you may map Win or RightCtrl or RightAlt or CapsLock to serve as compose key. You probably can also do this in /etc/X11/xorg.conf by adding something like
Option "XkbOptions" "compose:rwin"
to your keyboard section.
Hope this helped.
no subject
Date: 2009-01-19 09:14 pm (UTC)There's a technical problem with the parent comment. A piece of text is missing due to incorrectly placed <> symbols (stupid me, forgot that <> can't be copied-and-pasted in LJ!) I will repeat the missing fragment below.
Sorry for the inconvenience.
no subject
Date: 2009-01-19 09:21 pm (UTC)