###############################################################################
# BRLTTY - A background process providing access to the console screen (when in
#          text mode) for a blind person using a refreshable braille display.
#
# Copyright (C) 1995-2008 by The BRLTTY Developers.
#
# BRLTTY comes with ABSOLUTELY NO WARRANTY.
#
# This is free software, placed under the terms of the
# GNU Lesser General Public License, as published by the Free Software
# Foundation; either version 2.1 of the License, or (at your option) any
# later version. Please see the file LICENSE-LGPL for details.
#
# Web Page: http://mielke.cc/brltty/
#
# This software is maintained by Dave Mielke <dave@mielke.cc>.
###############################################################################

# BRLTTY Text Table - Russian (koi8-r)
# by Hans Schou <chlor@schou.dk> and Dave Mielke <dave@mielke.cc>

# This is the Russian braille table. It is based on the KOI8-R character set
# which to our knowledge is the most used in Russia.

# As the Russian cyrillic definition conflicts with the latin definition, some
# decisions had to be taken. Russians need to type both latin for the command
# prompt and cyrillic while reading and writing documents and mail.

# In the following, latin letters are quoted with apostrophes like in 'a', and
# cyrillic letters are enclosed within brackets like in [a].

# Dot 1 in the cyrillic definition is the cyrillic letter which looks and
# sounds like 'a'. The problem is that in the KOI8-R character set, there is
# both a latin 'a' and a cyrillic [a]. In decimal, their character numbers are
# 97 and 193 respectively.  To handle conflicts like these, we have prioritized
# which characters are most important to match the standard.

# RULES:
# 1. All cyrillic characters must follow the Russian standard. KOI8-R character 
#    193 [a] must be dot-1, and so on.
# 2. Capital cyrillic letters have dot 7 on.
# 3. The latin alphabet is implemented to follow the international standard
#    except it has dot 8 on.
# 4. Capital latin letters have dots 7 and 8 on.
# 5. Numbers are defined as in the American standard. This means dot-2 for
#    number '1', and so on. This will conflict with the cyrillic comma which is
#    also dot-2.
# 4. Special characters like !"#'\x00a4'%&/()=? follow the American standard if 
#    possible.
# 2. Control characters are often used on Linux. These are not very well 
#    implemented. More work should be done.

# Comments from Russians are very welcome as neither Hans Schou nor Dave Mielke
# understand a single word in Russian.

# generated by ttbtest
letter \x0000 12345678		NULL
letter \x0001 1678		START OF HEADING
letter \x0002 124678		START OF TEXT
letter \x0003 14678		END OF TEXT
letter \x0004 1467		END OF TRANSMISSION
letter \x0005 15678		ENQUIRY
letter \x0006 2358		ACKNOWLEDGE
letter \x0007 235678		BELL
letter \x0008 378		BACKSPACE
space \t 2468		CHARACTER TABULATION
space \n 678		LINE FEED (LF)
space \v 345678		LINE TABULATION
space \f 12367		FORM FEED (FF)
space \r 458		CARRIAGE RETURN (CR)
letter \x000e 134567		SHIFT OUT
letter \x000f 1235678		SHIFT IN
letter \x0010 34568		DATA LINK ESCAPE
letter \x0011 124568		DEVICE CONTROL ONE
letter \x0012 23468		DEVICE CONTROL TWO
letter \x0013 4578		DEVICE CONTROL THREE
letter \x0014 3458		DEVICE CONTROL FOUR
letter \x0015 23578		NEGATIVE ACKNOWLEDGE
letter \x0016 1236		SYNCHRONOUS IDLE
letter \x0017 25678		END OF TRANSMISSION BLOCK
letter \x0018 3478		CANCEL
letter \x0019 13456		END OF MEDIUM
letter \x001a 4678		SUBSTITUTE
letter \x001b 24678		ESCAPE
letter \x001c 125678		INFORMATION SEPARATOR FOUR
letter \x001d 1245678		INFORMATION SEPARATOR THREE
letter \x001e 1234678		INFORMATION SEPARATOR TWO
letter \x001f 45678		INFORMATION SEPARATOR ONE
space \s 0		SPACE
punctuation ! 2357		EXCLAMATION MARK
punctuation " 5		QUOTATION MARK
punctuation # 3456		NUMBER SIGN
punctuation $ 57		DOLLAR SIGN
punctuation % 146		PERCENT SIGN
punctuation & 2578		AMPERSAND
punctuation ' 3		APOSTROPHE
punctuation ( 478		LEFT PARENTHESIS
punctuation ) 578		RIGHT PARENTHESIS
punctuation * 12678		ASTERISK
punctuation + 346		PLUS SIGN
punctuation , 6		COMMA
punctuation - 36		HYPHEN-MINUS
punctuation . 46		FULL STOP
punctuation / 34		SOLIDUS
digit 0 356		DIGIT ZERO
digit 1 2		DIGIT ONE
digit 2 23		DIGIT TWO
digit 3 25		DIGIT THREE
digit 4 256		DIGIT FOUR
digit 5 26		DIGIT FIVE
digit 6 235		DIGIT SIX
digit 7 2356		DIGIT SEVEN
digit 8 236		DIGIT EIGHT
digit 9 35		DIGIT NINE
punctuation : 237		COLON
punctuation ; 56		SEMICOLON
punctuation < 126		LESS-THAN SIGN
punctuation = 123456		EQUALS SIGN
punctuation > 345		GREATER-THAN SIGN
punctuation ? 1456		QUESTION MARK
punctuation @ 47		COMMERCIAL AT
uppercase A 178		LATIN CAPITAL LETTER A
uppercase B 1278		LATIN CAPITAL LETTER B
uppercase C 1478		LATIN CAPITAL LETTER C
uppercase D 14578		LATIN CAPITAL LETTER D
uppercase E 1578		LATIN CAPITAL LETTER E
uppercase F 12478		LATIN CAPITAL LETTER F
uppercase G 124578		LATIN CAPITAL LETTER G
uppercase H 12578		LATIN CAPITAL LETTER H
uppercase I 2478		LATIN CAPITAL LETTER I
uppercase J 24578		LATIN CAPITAL LETTER J
uppercase K 1378		LATIN CAPITAL LETTER K
uppercase L 12378		LATIN CAPITAL LETTER L
uppercase M 13478		LATIN CAPITAL LETTER M
uppercase N 134578		LATIN CAPITAL LETTER N
uppercase O 13578		LATIN CAPITAL LETTER O
uppercase P 123478		LATIN CAPITAL LETTER P
uppercase Q 1234578		LATIN CAPITAL LETTER Q
uppercase R 123578		LATIN CAPITAL LETTER R
uppercase S 23478		LATIN CAPITAL LETTER S
uppercase T 234578		LATIN CAPITAL LETTER T
uppercase U 13678		LATIN CAPITAL LETTER U
uppercase V 123678		LATIN CAPITAL LETTER V
uppercase W 245678		LATIN CAPITAL LETTER W
uppercase X 134678		LATIN CAPITAL LETTER X
uppercase Y 1345678		LATIN CAPITAL LETTER Y
uppercase Z 135678		LATIN CAPITAL LETTER Z
punctuation [ 234678		LEFT SQUARE BRACKET
punctuation \\ 3567		REVERSE SOLIDUS
punctuation ] 124567		RIGHT SQUARE BRACKET
punctuation ^ 457		CIRCUMFLEX ACCENT
punctuation _ 456		LOW LINE
punctuation ` 4		GRAVE ACCENT
lowercase a 18		LATIN SMALL LETTER A
lowercase b 128		LATIN SMALL LETTER B
lowercase c 148		LATIN SMALL LETTER C
lowercase d 1458		LATIN SMALL LETTER D
lowercase e 158		LATIN SMALL LETTER E
lowercase f 1248		LATIN SMALL LETTER F
lowercase g 12458		LATIN SMALL LETTER G
lowercase h 1258		LATIN SMALL LETTER H
lowercase i 248		LATIN SMALL LETTER I
lowercase j 2458		LATIN SMALL LETTER J
lowercase k 138		LATIN SMALL LETTER K
lowercase l 1238		LATIN SMALL LETTER L
lowercase m 1348		LATIN SMALL LETTER M
lowercase n 13458		LATIN SMALL LETTER N
lowercase o 1358		LATIN SMALL LETTER O
lowercase p 12348		LATIN SMALL LETTER P
lowercase q 123458		LATIN SMALL LETTER Q
lowercase r 12358		LATIN SMALL LETTER R
lowercase s 2348		LATIN SMALL LETTER S
lowercase t 23458		LATIN SMALL LETTER T
lowercase u 1368		LATIN SMALL LETTER U
lowercase v 12368		LATIN SMALL LETTER V
lowercase w 24568		LATIN SMALL LETTER W
lowercase x 13468		LATIN SMALL LETTER X
lowercase y 134568		LATIN SMALL LETTER Y
lowercase z 13568		LATIN SMALL LETTER Z
punctuation { 23678		LEFT CURLY BRACKET
punctuation | 34567		VERTICAL LINE
punctuation } 12456		RIGHT CURLY BRACKET
punctuation ~ 45		TILDE
letter \x007f 4567		DELETE
punctuation \x00a0 0		NO-BREAK SPACE
punctuation \x00a9 34678		COPYRIGHT SIGN
punctuation \x00b0 23567		DEGREE SIGN
punctuation \x00b2 268		SUPERSCRIPT TWO
punctuation \x00b7 34578		MIDDLE DOT
punctuation \x00f7 145678		DIVISION SIGN
uppercase \x0401 167		CYRILLIC CAPITAL LETTER IO
uppercase \x0410 17		CYRILLIC CAPITAL LETTER A
uppercase \x0411 127		CYRILLIC CAPITAL LETTER BE
uppercase \x0412 24567		CYRILLIC CAPITAL LETTER VE
uppercase \x0413 12457		CYRILLIC CAPITAL LETTER GHE
uppercase \x0414 1457		CYRILLIC CAPITAL LETTER DE
uppercase \x0415 157		CYRILLIC CAPITAL LETTER IE
uppercase \x0416 2457		CYRILLIC CAPITAL LETTER ZHE
uppercase \x0417 13567		CYRILLIC CAPITAL LETTER ZE
uppercase \x0418 247		CYRILLIC CAPITAL LETTER I
uppercase \x0419 123467		CYRILLIC CAPITAL LETTER SHORT I
uppercase \x041a 137		CYRILLIC CAPITAL LETTER KA
uppercase \x041b 1237		CYRILLIC CAPITAL LETTER EL
uppercase \x041c 1347		CYRILLIC CAPITAL LETTER EM
uppercase \x041d 13457		CYRILLIC CAPITAL LETTER EN
uppercase \x041e 1357		CYRILLIC CAPITAL LETTER O
uppercase \x041f 12347		CYRILLIC CAPITAL LETTER PE
uppercase \x0420 12357		CYRILLIC CAPITAL LETTER ER
uppercase \x0421 2347		CYRILLIC CAPITAL LETTER ES
uppercase \x0422 23457		CYRILLIC CAPITAL LETTER TE
uppercase \x0423 1367		CYRILLIC CAPITAL LETTER U
uppercase \x0424 1247		CYRILLIC CAPITAL LETTER EF
uppercase \x0425 1257		CYRILLIC CAPITAL LETTER HA
uppercase \x0426 147		CYRILLIC CAPITAL LETTER TSE
uppercase \x0427 123457		CYRILLIC CAPITAL LETTER CHE
uppercase \x0428 1567		CYRILLIC CAPITAL LETTER SHA
uppercase \x0429 13467		CYRILLIC CAPITAL LETTER SHCHA
uppercase \x042a 123567		CYRILLIC CAPITAL LETTER HARD SIGN
uppercase \x042b 23467		CYRILLIC CAPITAL LETTER YERU
uppercase \x042c 234567		CYRILLIC CAPITAL LETTER SOFT SIGN
uppercase \x042d 2467		CYRILLIC CAPITAL LETTER E
uppercase \x042e 12567		CYRILLIC CAPITAL LETTER YU
uppercase \x042f 12467		CYRILLIC CAPITAL LETTER YA
lowercase \x0430 1		CYRILLIC SMALL LETTER A
lowercase \x0431 12		CYRILLIC SMALL LETTER BE
lowercase \x0432 2456		CYRILLIC SMALL LETTER VE
lowercase \x0433 1245		CYRILLIC SMALL LETTER GHE
lowercase \x0434 145		CYRILLIC SMALL LETTER DE
lowercase \x0435 15		CYRILLIC SMALL LETTER IE
lowercase \x0436 245		CYRILLIC SMALL LETTER ZHE
lowercase \x0437 1356		CYRILLIC SMALL LETTER ZE
lowercase \x0438 24		CYRILLIC SMALL LETTER I
lowercase \x0439 12346		CYRILLIC SMALL LETTER SHORT I
lowercase \x043a 13		CYRILLIC SMALL LETTER KA
lowercase \x043b 123		CYRILLIC SMALL LETTER EL
lowercase \x043c 134		CYRILLIC SMALL LETTER EM
lowercase \x043d 1345		CYRILLIC SMALL LETTER EN
lowercase \x043e 135		CYRILLIC SMALL LETTER O
lowercase \x043f 1234		CYRILLIC SMALL LETTER PE
lowercase \x0440 1235		CYRILLIC SMALL LETTER ER
lowercase \x0441 234		CYRILLIC SMALL LETTER ES
lowercase \x0442 2345		CYRILLIC SMALL LETTER TE
lowercase \x0443 136		CYRILLIC SMALL LETTER U
lowercase \x0444 124		CYRILLIC SMALL LETTER EF
lowercase \x0445 125		CYRILLIC SMALL LETTER HA
lowercase \x0446 14		CYRILLIC SMALL LETTER TSE
lowercase \x0447 12345		CYRILLIC SMALL LETTER CHE
lowercase \x0448 156		CYRILLIC SMALL LETTER SHA
lowercase \x0449 1346		CYRILLIC SMALL LETTER SHCHA
lowercase \x044a 12356		CYRILLIC SMALL LETTER HARD SIGN
lowercase \x044b 2346		CYRILLIC SMALL LETTER YERU
lowercase \x044c 23456		CYRILLIC SMALL LETTER SOFT SIGN
lowercase \x044d 246		CYRILLIC SMALL LETTER E
lowercase \x044e 1256		CYRILLIC SMALL LETTER YU
lowercase \x044f 1246		CYRILLIC SMALL LETTER YA
lowercase \x0451 16		CYRILLIC SMALL LETTER IO
uppercase \x0462 3457		CYRILLIC CAPITAL LETTER YAT
lowercase \x0463 345		CYRILLIC SMALL LETTER YAT
uppercase \x046a 2467		CYRILLIC CAPITAL LETTER BIG YUS
lowercase \x046b 246		CYRILLIC SMALL LETTER BIG YUS
space \x02219 238		BULLET OPERATOR
punctuation \x0221a 568		SQUARE ROOT
punctuation \x02248 358		ALMOST EQUAL TO
space \x02264 4568		LESS-THAN OR EQUAL TO
space \x02265 35678		GREATER-THAN OR EQUAL TO
punctuation \x02320 2568		TOP HALF INTEGRAL
punctuation \x02321 258		BOTTOM HALF INTEGRAL
punctuation \x02580 348		UPPER HALF BLOCK
punctuation \x02584 468		LOWER HALF BLOCK
punctuation \x02588 68		FULL BLOCK
punctuation \x0258c 278		LEFT HALF BLOCK
punctuation \x02590 2378		RIGHT HALF BLOCK
punctuation \x02591 3578		LIGHT SHADE
punctuation \x02592 267		MEDIUM SHADE
punctuation \x02593 3568		DARK SHADE
punctuation \x025a0 23568		BLACK SQUARE
