module LTP

Defined in:

ltp.cr

Constant Summary

ALPHABET = ALPHABET_ASCII.merge(ALPHABET_UK)
ALPHABET_ASCII = {" " => ["\u00A0\u00A0\u00A0", "\u00A0\u00A0\u00A0", "\u00A0\u00A0\u00A0"], "!" => ["\u00A0𜸜\u00A0", "\u00A0𜸩\u00A0", "\u00A0𜹊\u00A0"], "\"" => ["𜸜𜸜\u00A0", "\u00A0\u00A0\u00A0", "\u00A0\u00A0\u00A0"], "#" => ["\u00A0\u00A0\u00A0", "𜸺𜸺\u00A0", "𜸺𜸺\u00A0"], "$" => ["𜸚𜸺𜸤", "𜸾𜸺𜸤", "𜸾𜸺𜹃"], "%" => ["𜹇\u00A0𜹇", "𜸬𜸴𜸻", "𜹐\u00A0𜹐"], "&" => ["𜸚𜸤\u00A0", "𜸮𜹀𜸺", "𜸾𜸟𜹃"], "'" => ["\u00A0𜸜\u00A0", "\u00A0\u00A0\u00A0", "\u00A0\u00A0\u00A0"], "(" => ["\u00A0𜸚𜸥", "\u00A0𜸩\u00A0", "\u00A0𜸾𜸥"], ")" => ["𜸞𜸤\u00A0", "\u00A0𜸩\u00A0", "𜸞𜹃\u00A0"], "*" => ["\u00A0\u00A0\u00A0", "𜸪𜸲𜸸", "\u00A0\u00A0\u00A0"], "+" => ["\u00A0𜸣\u00A0", "𜸞𜸺𜸥", "\u00A0𜸭\u00A0"], "," => ["\u00A0\u00A0\u00A0", "\u00A0\u00A0\u00A0", "\u00A0𜸚\u00A0"], "-" => ["\u00A0\u00A0\u00A0", "𜸞𜸟𜸥", "\u00A0\u00A0\u00A0"], "." => ["\u00A0\u00A0\u00A0", "\u00A0\u00A0\u00A0", "\u00A0𜹊\u00A0"], "/" => ["\u00A0\u00A0𜸜", "𜸬𜸴𜸻", "𜸼\u00A0\u00A0"], "0" => ["𜸚𜸟𜸤", "𜸩𜹋𜸩", "𜸾𜸟𜹃"], "1" => ["\u00A0𜸦\u00A0", "\u00A0𜸩\u00A0", "\u00A0𜸼\u00A0"], "2" => ["𜸚𜸟𜸤", "𜸚𜸟𜹃", "𜸽𜸟𜸥"], "3" => ["𜸚𜸟𜸤", "\u00A0𜸟𜸷", "𜸾𜸟𜹃"], "4" => ["𜸜\u00A0𜸜", "𜸽𜸟𜸺", "\u00A0\u00A0𜸼"], "5" => ["𜸛𜸟𜸥", "𜸽𜸟𜸤", "𜸾𜸟𜹃"], "6" => ["𜸚𜸟𜸤", "𜸨𜸟𜸤", "𜸾𜸟𜹃"], "7" => ["𜸞𜸟𜸧", "\u00A0𜸵𜸻", "\u00A0𜸼\u00A0"], "8" => ["𜸚𜸟𜸤", "𜸮𜸟𜸷", "𜸾𜸟𜹃"], "9" => ["𜸚𜸟𜸤", "𜸾𜸟𜸶", "𜸾𜸟𜹃"], ":" => ["\u00A0\u00A0\u00A0", "\u00A0𜹐\u00A0", "\u00A0𜹐\u00A0"], ";" => ["\u00A0\u00A0\u00A0", "\u00A0𜹐\u00A0", "\u00A0𜸚\u00A0"], "<" => ["\u00A0𜸬\u00A0", "\u00A0𜸫\u00A0", "\u00A0\u00A0\u00A0"], "=" => ["\u00A0\u00A0\u00A0", "𜸞𜸟𜸥", "𜸞𜸟𜸥"], ">" => ["\u00A0𜸢\u00A0", "\u00A0𜸻\u00A0", "\u00A0\u00A0\u00A0"], "?" => ["𜸚𜸟𜸤", "\u00A0𜸵𜸻", "\u00A0𜹊\u00A0"], "@" => ["𜸚𜸟𜸤", "𜸚𜸧𜸩", "𜸾𜹀𜹃"], "A" => ["𜸚𜸟𜸤", "𜸨𜸟𜸶", "𜸼\u00A0𜸼"], "B" => ["𜸛𜸟𜸤", "𜸨𜸟𜸷", "𜸽𜸟𜹃"], "C" => ["𜸚𜸟𜸤", "𜸩\u00A0\u00A0", "𜸾𜸟𜹃"], "D" => ["𜸛𜸟𜸤", "𜸩\u00A0𜸩", "𜸽𜸟𜹃"], "E" => ["𜸛𜸟𜸥", "𜸨𜸟\u00A0", "𜸽𜸟𜸥"], "F" => ["𜸛𜸟𜸥", "𜸨𜸟\u00A0", "𜸼\u00A0\u00A0"], "G" => ["𜸚𜸟𜸤", "𜸩\u00A0𜸧", "𜸾𜸟𜹃"], "H" => ["𜸜\u00A0𜸜", "𜸨𜸟𜸶", "𜸼\u00A0𜸼"], "I" => ["\u00A0𜸠\u00A0", "\u00A0𜸩\u00A0", "\u00A0𜹀\u00A0"], "J" => ["\u00A0\u00A0𜸜", "\u00A0\u00A0𜸩", "𜸾𜸟𜹃"], "K" => ["𜸜\u00A0𜸜", "𜸨𜸯𜸸", "𜸼\u00A0𜸼"], "L" => ["𜸜\u00A0\u00A0", "𜸩\u00A0\u00A0", "𜸽𜸟𜸥"], "M" => ["𜸝𜸡𜸦", "𜸩𜸰𜸩", "𜸼\u00A0𜸼"], "N" => ["𜸝𜸢𜸜", "𜸩𜸫𜸹", "𜸼\u00A0𜸼"], "O" => ["𜸚𜸟𜸤", "𜸩\u00A0𜸩", "𜸾𜸟𜹃"], "P" => ["𜸛𜸟𜸤", "𜸨𜸟𜹃", "𜸼\u00A0\u00A0"], "Q" => ["𜸚𜸟𜸤", "𜸩\u00A0𜸩", "𜸾𜸟𜹅"], "R" => ["𜸛𜸟𜸤", "𜸨𜸟𜸷", "𜸼\u00A0𜸼"], "S" => ["𜸚𜸟𜸤", "𜸾𜸟𜸤", "𜸾𜸟𜹃"], "T" => ["𜸞𜸠𜸥", "\u00A0𜸩\u00A0", "\u00A0𜸼\u00A0"], "U" => ["𜸜\u00A0𜸜", "𜸩\u00A0𜸩", "𜸾𜸟𜹃"], "V" => ["𜸜\u00A0𜸜", "𜸩\u00A0𜸩", "𜸫𜹁𜸻"], "W" => ["𜸜\u00A0𜸜", "𜸩𜸱𜸩", "𜸿𜹂𜹆"], "X" => ["𜸜\u00A0𜸜", "𜸪𜸲𜸸", "𜸼\u00A0𜸼"], "Y" => ["𜸜\u00A0𜸜", "𜸫𜸳𜸻", "\u00A0𜸼\u00A0"], "Z" => ["𜸛𜸟𜸧", "𜸬𜸴𜸻", "𜸽𜸟𜹄"], "[" => ["\u00A0𜸛𜸥", "\u00A0𜸩\u00A0", "\u00A0𜸽𜸥"], "\\" => ["𜸜\u00A0\u00A0", "𜸫𜸲𜸢", "\u00A0\u00A0𜸼"], "]" => ["𜸞𜸧\u00A0", "\u00A0𜸩\u00A0", "𜸞𜹄\u00A0"], "^" => ["\u00A0𜸱\u00A0", "\u00A0𜹂\u00A0", "\u00A0\u00A0\u00A0"], "_" => ["\u00A0\u00A0\u00A0", "\u00A0\u00A0\u00A0", "𜸞𜸟𜸥"], "`" => ["\u00A0𜸤\u00A0", "\u00A0\u00A0\u00A0", "\u00A0\u00A0\u00A0"], "a" => ["\u00A0\u00A0\u00A0", "𜸚𜸧\u00A0", "𜸾𜹄\u00A0"], "b" => ["𜸜\u00A0\u00A0", "𜸨𜸤\u00A0", "𜸽𜹃\u00A0"], "c" => ["\u00A0\u00A0\u00A0", "𜸚𜸥\u00A0", "𜸾𜸥\u00A0"], "d" => ["\u00A0𜸜\u00A0", "𜸚𜸶\u00A0", "𜸾𜹄\u00A0"], "e" => ["\u00A0\u00A0\u00A0", "𜸚𜸤\u00A0", "𜸾𜸥\u00A0"], "f" => ["𜸚𜸤\u00A0", "𜸺\u00A0\u00A0", "𜸼\u00A0\u00A0"], "g" => ["\u00A0\u00A0\u00A0", "𜸚𜸧\u00A0", "𜸾𜸶\u00A0"], "h" => ["𜸜\u00A0\u00A0", "𜸨𜸤\u00A0", "𜸼𜸼\u00A0"], "i" => ["\u00A0𜸣\u00A0", "\u00A0𜸜\u00A0", "\u00A0𜸼\u00A0"], "j" => ["\u00A0𜸣\u00A0", "\u00A0𜸜\u00A0", "𜸾𜹃\u00A0"], "k" => ["𜸜\u00A0\u00A0", "𜸨𜸷\u00A0", "𜸼𜸼\u00A0"], "l" => ["\u00A0𜸜\u00A0", "\u00A0𜸩\u00A0", "\u00A0𜸼\u00A0"], "m" => ["\u00A0\u00A0\u00A0", "𜸝𜸦\u00A0", "𜸼𜸼\u00A0"], "n" => ["\u00A0\u00A0\u00A0", "𜸛𜸤\u00A0", "𜸼𜸼\u00A0"], "o" => ["\u00A0\u00A0\u00A0", "𜸚𜸤\u00A0", "𜸾𜹃\u00A0"], "p" => ["\u00A0\u00A0\u00A0", "𜸛𜸤\u00A0", "𜸨𜹃\u00A0"], "q" => ["\u00A0\u00A0\u00A0", "𜸚𜸧\u00A0", "𜸾𜸶\u00A0"], "r" => ["\u00A0\u00A0\u00A0", "𜸚𜸥\u00A0", "𜸼\u00A0\u00A0"], "s" => ["\u00A0\u00A0\u00A0", "𜸚𜸥\u00A0", "𜸞𜹃\u00A0"], "t" => ["𜸣\u00A0\u00A0", "𜸺\u00A0\u00A0", "𜸾𜹃\u00A0"], "u" => ["\u00A0\u00A0\u00A0", "𜸜𜸜\u00A0", "𜸽𜹄\u00A0"], "v" => ["\u00A0\u00A0\u00A0", "𜸜𜸜\u00A0", "𜸾𜹃\u00A0"], "w" => ["\u00A0\u00A0\u00A0", "𜸜𜸜\u00A0", "𜸿𜹆\u00A0"], "x" => ["\u00A0\u00A0\u00A0", "𜸮𜸷\u00A0", "𜸼𜸼\u00A0"], "y" => ["\u00A0\u00A0\u00A0", "𜸜𜸜\u00A0", "𜸾𜸶\u00A0"], "z" => ["\u00A0\u00A0\u00A0", "𜸞𜸧\u00A0", "𜸽𜸥\u00A0"], "{" => ["\u00A0𜸚𜸥", "\u00A0𜸷\u00A0", "\u00A0𜸾𜸥"], "¦" => ["\u00A0𜹈\u00A0", "\u00A0\u00A0\u00A0", "\u00A0𜹌\u00A0"], "}" => ["𜸞𜸤\u00A0", "\u00A0𜸮\u00A0", "𜸞𜹃\u00A0"], "~" => ["\u00A0\u00A0\u00A0", "𜸚𜸟𜹃", "\u00A0\u00A0\u00A0"]}
ALPHABET_UK = {"А" => ["𜸚𜸟𜸤", "𜸨𜸟𜸶", "𜸼\u00A0𜸼"], "а" => ["\u00A0\u00A0\u00A0", "𜸚𜸧\u00A0", "𜸾𜹀\u00A0"], "Б" => ["𜸛𜸟𜸥", "𜸨𜸟𜸤", "𜸽𜸟𜹃"], "б" => ["𜸚𜸥\u00A0", "𜸮𜸤\u00A0", "𜸾𜹃\u00A0"], "В" => ["𜸛𜸟𜸤", "𜸨𜸟𜸷", "𜸽𜸟𜹃"], "в" => ["𜸛𜸤\u00A0", "𜸨𜸷\u00A0", "𜸽𜹃\u00A0"], "Г" => ["𜸛𜸟𜸥", "𜸩\u00A0\u00A0", "𜸼\u00A0\u00A0"], "г" => ["\u00A0\u00A0\u00A0", "𜸛𜸥\u00A0", "𜸼\u00A0\u00A0"], "Ґ" => ["𜸛𜸟𜹄", "𜸩\u00A0\u00A0", "𜸼\u00A0\u00A0"], "ґ" => ["\u00A0\u00A0\u00A0", "𜸛𜹄\u00A0", "𜸼\u00A0\u00A0"], "Д" => ["\u00A0𜸛𜸧", "𜸚𜹃𜸩", "𜸺𜸟𜸺"], "д" => ["\u00A0\u00A0\u00A0", "𜸛𜸧\u00A0", "𜸺𜸺\u00A0"], "Е" => ["𜸛𜸟𜸥", "𜸨𜸟\u00A0", "𜸽𜸟𜸥"], "е" => ["\u00A0\u00A0\u00A0", "𜸚𜸤\u00A0", "𜸾𜸥\u00A0"], "Є" => ["𜸚𜸟𜸤", "𜸨𜸟\u00A0", "𜸾𜸟𜹃"], "є" => ["𜸚𜸤\u00A0", "𜸨\u00A0\u00A0", "𜸾𜹃\u00A0"], "Ж" => ["𜸜𜸜𜸜", "𜸮𜸺𜸷", "𜸼𜸼𜸼"], "ж" => ["\u00A0\u00A0\u00A0", "𜸮𜸺𜸷", "𜸼𜸼𜸼"], "З" => ["𜸚𜸟𜸤", "\u00A0𜸟𜸷", "𜸾𜸟𜹃"], "з" => ["𜸚𜸤\u00A0", "𜸭𜸷\u00A0", "𜸾𜹃\u00A0"], "И" => ["𜸜\u00A0𜸦", "𜸨𜸻𜸩", "𜸼\u00A0𜸼"], "и" => ["\u00A0\u00A0\u00A0", "𜸜\u00A0𜸦", "𜸿\u00A0𜸼"], "І" => ["\u00A0𜸠\u00A0", "\u00A0𜸩\u00A0", "\u00A0𜹀\u00A0"], "і" => ["\u00A0𜸣\u00A0", "\u00A0𜸧\u00A0", "\u00A0𜹀\u00A0"], "Ї" => ["𜹏𜸠𜹏", "\u00A0𜸩\u00A0", "\u00A0𜹀\u00A0"], "ї" => ["𜸣\u00A0𜸣", "\u00A0𜸧\u00A0", "\u00A0𜹀\u00A0"], "Й" => ["𜸜𜹁𜸦", "𜸨𜸻𜸩", "𜸼\u00A0𜸼"], "й" => ["\u00A0𜸡\u00A0", "𜸜\u00A0𜸦", "𜸿\u00A0𜸼"], "К" => ["𜸜\u00A0𜸜", "𜸨𜸯𜸸", "𜸼\u00A0𜸼"], "к" => ["\u00A0\u00A0\u00A0", "𜸨𜸷\u00A0", "𜸼𜸼\u00A0"], "Л" => ["𜸚𜸟𜸧", "𜸩\u00A0𜸩", "𜹃\u00A0𜸼"], "л" => ["\u00A0\u00A0\u00A0", "𜸚𜸧\u00A0", "𜹃𜸼\u00A0"], "М" => ["𜸝𜸡𜸦", "𜸩𜸰𜸩", "𜸼\u00A0𜸼"], "м" => ["\u00A0\u00A0\u00A0", "𜸝𜸦\u00A0", "𜸼𜸼\u00A0"], "Н" => ["𜸜\u00A0𜸜", "𜸨𜸟𜸶", "𜸼\u00A0𜸼"], "н" => ["\u00A0\u00A0\u00A0", "𜸨𜸶\u00A0", "𜸼𜸼\u00A0"], "О" => ["𜸚𜸟𜸤", "𜸩\u00A0𜸩", "𜸾𜸟𜹃"], "о" => ["\u00A0\u00A0\u00A0", "𜸚𜸤\u00A0", "𜸾𜹃\u00A0"], "П" => ["𜸛𜸟𜸧", "𜸩\u00A0𜸩", "𜸼\u00A0𜸼"], "п" => ["\u00A0\u00A0\u00A0", "𜸛𜸧\u00A0", "𜸼𜸼\u00A0"], "Р" => ["𜸛𜸟𜸤", "𜸨𜸟𜹃", "𜸼\u00A0\u00A0"], "р" => ["\u00A0\u00A0\u00A0", "𜸛𜸤\u00A0", "𜸨𜹃\u00A0"], "С" => ["𜸚𜸟𜸤", "𜸩\u00A0\u00A0", "𜸾𜸟𜹃"], "с" => ["\u00A0\u00A0\u00A0", "𜸚𜸥\u00A0", "𜸾𜸥\u00A0"], "Т" => ["𜸞𜸠𜸥", "\u00A0𜸩\u00A0", "\u00A0𜸼\u00A0"], "т" => ["\u00A0\u00A0\u00A0", "𜸞𜸠𜸥", "\u00A0𜸼\u00A0"], "У" => ["𜸦\u00A0𜸜", "𜸾𜸵𜸻", "𜸾𜹃\u00A0"], "у" => ["\u00A0\u00A0\u00A0", "𜸜𜸜\u00A0", "𜸮𜸻\u00A0"], "Ф" => ["𜸚𜸺𜸤", "𜸩𜸩𜸩", "𜸾𜸺𜹃"], "ф" => ["\u00A0\u00A0\u00A0", "𜸚𜸺𜸤", "𜸾𜸺𜹃"], "Х" => ["𜸜\u00A0𜸜", "𜸪𜸲𜸸", "𜸼\u00A0𜸼"], "х" => ["\u00A0\u00A0\u00A0", "𜸮𜸷\u00A0", "𜸼𜸼\u00A0"], "Ц" => ["𜸜\u00A0𜸜", "𜸩\u00A0𜸩", "𜸽𜸟𜸺"], "ц" => ["\u00A0\u00A0\u00A0", "𜸜𜸜\u00A0", "𜸽𜸺\u00A0"], "Ч" => ["𜸜\u00A0𜸜", "𜸾𜸟𜸶", "\u00A0\u00A0𜸼"], "ч" => ["\u00A0\u00A0\u00A0", "𜸾𜸶\u00A0", "\u00A0𜸼\u00A0"], "Ш" => ["𜸜𜸜𜸜", "𜸩𜸩𜸩", "𜸽𜹀𜹄"], "ш" => ["\u00A0\u00A0\u00A0", "𜸜𜸜𜸜", "𜸽𜹀𜹄"], "Щ" => ["𜸜𜸜𜸜", "𜸩𜸩𜸩", "𜸽𜹀𜸺"], "щ" => ["\u00A0\u00A0\u00A0", "𜸜𜸜𜸜", "𜸽𜹀𜸺"], "Ь" => ["𜸜\u00A0\u00A0", "𜸨𜸟𜸤", "𜸽𜸟𜹃"], "ь" => ["\u00A0\u00A0\u00A0", "𜸨𜸤\u00A0", "𜸽𜹃\u00A0"], "Ю" => ["𜸜𜸚𜸤", "𜸨𜸩𜸩", "𜸼𜸾𜹃"], "ю" => ["\u00A0\u00A0\u00A0", "𜸜𜸚𜸤", "𜸿𜸾𜹃"], "Я" => ["𜸚𜸞𜸧", "𜸮𜸞𜸶", "𜸼\u00A0𜸼"], "я" => ["𜸚𜸧\u00A0", "𜸮𜸶\u00A0", "𜸼𜸼\u00A0"], "Ы" => ["𜸜\u00A0𜸜", "𜸨𜸤𜸩", "𜸽𜹃𜸼"], "ы" => ["\u00A0\u00A0\u00A0", "𜸨𜸤𜸩", "𜸽𜹃𜸼"], "Ё" => ["𜸛𜸟𜸥", "𜸨𜸟\u00A0", "𜸽𜸟𜸥"], "ё" => ["𜸣𜸣\u00A0", "𜸚𜸤\u00A0", "𜸾𜸥\u00A0"], "Э" => ["𜸚𜸟𜸤", "\u00A0𜸟𜸶", "𜸾𜸟𜹃"], "э" => ["𜸚𜸤\u00A0", "\u00A0𜸶\u00A0", "𜸾𜹃\u00A0"], "Ъ" => ["𜸧\u00A0\u00A0", "𜸨𜸟𜸤", "𜸽𜸟𜹃"], "ъ" => ["𜸧\u00A0\u00A0", "𜸨𜸤\u00A0", "𜸽𜹃\u00A0"]}
INVALID_CHAR = ["▚▚▚", "▚▚▚", "▚▚▚"]

Class Method Summary

Class Method Detail

def self.print(input) #

[View source]