From e8834d6d47f9311d049081938a86d9f3f2a6c5ea Mon Sep 17 00:00:00 2001 From: voroshil Date: Tue, 28 Aug 2007 18:06:11 +0000 Subject: Conversion tables for Serbian/Croatian, Ukrainian and Greek charsets. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24275 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/tvi_vbi.c | 50 +++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 49 insertions(+), 1 deletion(-) (limited to 'stream') diff --git a/stream/tvi_vbi.c b/stream/tvi_vbi.c index 2c9213e504..7f87d3d6df 100644 --- a/stream/tvi_vbi.c +++ b/stream/tvi_vbi.c @@ -201,7 +201,10 @@ static const unsigned char corrHamm48[256]={ enum { LAT_UNI=0, + CYRILLIC1 RUS_UNI, + CYRILLIC3, + GREEK, LANGS }; @@ -224,7 +227,22 @@ static unsigned int lang_chars[LANGS][0x60]={ 0x78,0x79,0x7a,0x7b,0x7c,0x7d,0x7e,0x7f }, { - //Russian + //Cyrillic-1 (Serbian/Croatian) + 0x20,0x21,0x22,0x23,0x24,0x25,0x044b,0x27, + 0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f, + 0x30,0x31,0x32,0x33,0x34,0x35,0x36,0x37, + 0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f, + 0x0427,0x0410,0x0411,0x0426,0x0414,0x0415,0x0424,0x0413, + 0x0425,0x0418,0x0408,0x041a,0x041b,0x041c,0x041d,0x041e, + 0x041f,0x040c,0x0420,0x0421,0x0422,0x0423,0x0412,0x0403, + 0x0409,0x040a,0x0417,0x040b,0x0416,0x0402,0x0428,0x040f, + 0x0447,0x0430,0x0431,0x0446,0x0434,0x0435,0x0444,0x0433, + 0x0445,0x0438,0x0428,0x043a,0x043b,0x043c,0x043d,0x043e, + 0x043f,0x042c,0x0440,0x0441,0x0442,0x0443,0x0432,0x0423, + 0x0429,0x042a,0x0437,0x042b,0x0436,0x0422,0x0448,0x042f + }, + { + //Cyrillic-2 (Russian/Bulgarian) 0x20,0x21,0x22,0x23,0x24,0x25,0x044b,0x27, 0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f, 0x30,0x31,0x32,0x33,0x34,0x35,0x36,0x37, @@ -237,6 +255,36 @@ static unsigned int lang_chars[LANGS][0x60]={ 0x0445,0x0438,0x0439,0x043a,0x043b,0x043c,0x043d,0x043e, 0x043f,0x044f,0x0440,0x0441,0x0442,0x0443,0x0436,0x0432, 0x044c,0x044a,0x0437,0x0448,0x044d,0x0449,0x0447,0x044b + }, + { + //Cyrillic-3 (Ukrainian) + 0x20,0x21,0x22,0x23,0x24,0x25,0xef,0x27, + 0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f, + 0x30,0x31,0x32,0x33,0x34,0x35,0x36,0x37, + 0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f, + 0x042e,0x0410,0x0411,0x0426,0x0414,0x0415,0x0424,0x0413, + 0x0425,0x0418,0x0419,0x041a,0x041b,0x041c,0x041d,0x041e, + 0x041f,0x042f,0x0420,0x0421,0x0422,0x0423,0x0416,0x0412, + 0x042c,0x49,0x0417,0x0428,0x042d,0x0429,0x0427,0xcf, + 0x044e,0x0430,0x0431,0x0446,0x0434,0x0435,0x0444,0x0433, + 0x0445,0x0438,0x0439,0x043a,0x043b,0x043c,0x043d,0x043e, + 0x043f,0x044f,0x0440,0x0441,0x0442,0x0443,0x0436,0x0432, + 0x044c,0x69,0x0437,0x0448,0x044d,0x0449,0x0447,0xFF + }, + { + //Greek + 0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27, + 0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f, + 0x30,0x31,0x32,0x33,0x34,0x35,0x36,0x37, + 0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f, + 0x0390,0x0391,0x0392,0x0393,0x0394,0x0395,0x0396,0x0397, + 0x0398,0x0399,0x039a,0x039b,0x039c,0x039d,0x039e,0x039f, + 0x03a0,0x03a1,0x03a2,0x03a3,0x03a4,0x03a5,0x03a6,0x03a7, + 0x03a8,0x03a9,0x03aa,0x03ab,0x03ac,0x03ad,0x03ae,0x03af, + 0x03b0,0x03b1,0x03b2,0x03b3,0x03b4,0x03b5,0x03b6,0x03b7, + 0x03b8,0x03b9,0x03ba,0x03bb,0x03bc,0x03bd,0x03be,0x03bf, + 0x03c0,0x03c1,0x03c2,0x03c3,0x03c4,0x03c5,0x03c6,0x03c7, + 0x03c8,0x03c9,0x03ca,0x03cb,0x03cc,0x03cd,0x03ce,0x03cf } }; -- cgit v1.2.3