On 2010-02-24, Vincent van Ravesteijn - TNW wrote: >>The problem arouse when I needed to insert some obsolete Russian >>characters that were used before the 20th century. Namely, the letters >>yat (http://en.wikipedia.org/wiki/Yat), fita >>(http://en.wikipedia.org/wiki/Fita) or izhitsa >>(http://en.wikipedia.org/wiki/Izhitsa)
> One possible solution is the following: > 1. Try to locate the unicodesymbols file (it's in the LyX's lib/resource > directory, but I'm not sure where this is on Ubuntu). The path of system dir and user dir are shown in the info you get with the menu entry Help>About LyX. > 2. Copy the file from system dir to the user dir and ... Add the lines 0x0462 "\\textcyr{\\char147}" "textcyr" "" # CYRILLIC CAPITAL LETTER YAT 0x0463 "\\textcyr{\\char176}" "textcyr" "" # CYRILLIC SMALL LETTER YAT > to this file after the line: > 0x045f "\\textcyr{\\char182}" "textcyr" "" # CYRILLIC SMALL LETTER > DZHE Unfortunately, it is not that easy, because the letter Yat requires the font encoding T2C (or X2), while the \textcyr feature selects font encoding T2A! Hence, you can try: 0x0462 "\\fontencoding{X2}\\selectfont\\char88" "\\DeclareFontEncoding{X2}{}{}" "" # CYRILLIC CAPITAL LETTER YAT 0x0463 "\\fontencoding{X2}\\selectfont\\char120" "\\DeclareFontEncoding{X2}{}{}" "" # CYRILLIC SMALL LETTER YAT > 3. In LyX: > Insert->Special Character->Symbols, Category=Cyrillic. > At the end of the list of symbols shown, there will be a square. (if the screen font does not support old cyrillic characters) > This is your Yat character. If you insert this character in your > document it will be outputted correctly as the yat (although it will > look like a square in LyX). If it looks like a square in LyX, you can change the screen font (which is a different font than the one used in the printout) via Tools>Preferences>Screen fonts I use DejaVu serif and the yats are visible in the buffer after inserting with unicode-insert 462 unicode-insert 463 Günter