summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Grimm <git@e-tobi.net>2010-02-02 15:59:45 +0100
committerTobias Grimm <git@e-tobi.net>2010-02-03 00:57:41 +0100
commit9f25fdfcadabe8f2284b0da5fd75178faea186ba (patch)
treec0dbec155b22e761417f68ca66a6604e67f904cb
parenteb6a02c3743ef186a88b8d5e5023d6d07efad84c (diff)
downloadvdr-plugin-ttxtsubs-9f25fdfcadabe8f2284b0da5fd75178faea186ba.tar.gz
vdr-plugin-ttxtsubs-9f25fdfcadabe8f2284b0da5fd75178faea186ba.tar.bz2
refactoring - removed unused latin G2 character support
-rw-r--r--teletext-chars.h26
-rw-r--r--teletext.c9
-rw-r--r--teletext.h6
3 files changed, 0 insertions, 41 deletions
diff --git a/teletext-chars.h b/teletext-chars.h
index 42bf619..5a6653a 100644
--- a/teletext-chars.h
+++ b/teletext-chars.h
@@ -98,29 +98,3 @@ uint16_t laG0_nat_opts16[13][14] = {
{0, '#', 0xc2a4, 0xc389, 0xc384, 0xc396, 0xc385, 0xc39c, '_', 0xc3a9, 0xc3a4, 0xc3b6, 0xc3a5, 0xc3bc}, // 11 - Swedish/Finnish/Hungarian
{0, 'T', 'g', 'I', 'S', 0xc396, 0xc387, 0xc39c, 'G', 'i', 's', 0xc3b6, 0xc3a7, 0xc3bc} // 12 - Turkish
};
-
-/*
- * Latin G2 Set
- * ETSI EN 300 706 Table 37
- */
-uint8_t laG2_la1_table[] = {
-'?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?',
-'?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?',
-' ', '¡', '¢', '£', '$', '¥', '#', '§', '¤', '´', '"', '«', '-', '|', '-', '|',
-'°', '±', '²', '³', '×', 'µ', '¶', '·', '÷', '\'', '"', '»', '¼', '½', '¾', '¿',
-' ', '`', '´', '^', '~', '-', '?', '·', '¨', '.', 'º', '¸', '_', '"', '?', '?',
-'-', '¹', '®', '©', 'T', '?', 'C', 'p', '?', ' ', ' ', ' ', '?', '?', '?', '?',
-'?', 'Æ', 'D', 'a', '?', '?', ' ', 'I', 'L', 'L', 'Ø', 'Ö', 'o', 'P', 'n', 'n',
-'k', 'æ', 'd', 'd', 'h', 'i', 'i', 'l', 'l', 'ø', 'ö', 'ß', 'p', 't', 'n', '?'
-};
-
-uint16_t laG2_la1_table16[] = {
-'?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?',
-'?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?',
-0xc2a0, 0xc2a1, 0xc2a2, 0xc2a3, '$', 0xc2a5, '#', 0xc2a7, 0xc2a4, 0xc2b4, '"', 0xc2ab, '-', '|', '-', '|',
-0xc2b0, 0xc2b1, 0xc2b2, 0xc2b3, 0xc397, 0xc2b5, 0xc2b6, 0xc2b7, 0xc3b7, '\'', '"', 0xc2bb, 0xc2bc, 0xc2bd, 0xc2be, 0xc2bf,
-' ', '`', 0xc2b4, '^', '~', '-', '?', 0xc2b7, 0xc2a8, '.', 0xc2ba, 0xc2b8, '_', '"', '?', '?',
-'-', 0xc2b9, 0xc2ae, 0xc2a9, 'T', '?', 'C', 'p', '?', ' ', ' ', ' ', '?', '?', '?', '?',
-'?', 0xc386, 'D', 'a', '?', '?', ' ', 'I', 'L', 'L', 0xc398, 0xc396, 'o', 'P', 'n', 'n',
-'k', 0xc3a6, 'd', 'd', 'h', 'i', 'i', 'l', 'l', 0xc3b8, 0xc3b6, 0xc39f, 'p', 't', 'n', '?'
-};
diff --git a/teletext.c b/teletext.c
index 3622e68..1cc0644 100644
--- a/teletext.c
+++ b/teletext.c
@@ -143,12 +143,3 @@ uint16_t ttxt_laG0_la1_char(int Gtriplet, int natopts, uint8_t inchar)
else
return laG0_nat_opts16[no][laG0_nat_replace_map[c]];
}
-
-/*
- * Map Latin G2 teletext characters into a ISO-8859-1 approximation.
- * Trying to use similar looking or similar meaning characters.
- */
-uint16_t ttxt_laG2_la1_char(uint8_t inchar)
-{
- return laG2_la1_table[inchar & 0x7f];
-}
diff --git a/teletext.h b/teletext.h
index b2d1672..8b672b6 100644
--- a/teletext.h
+++ b/teletext.h
@@ -101,12 +101,6 @@ int parity(uint8_t x);
*/
uint16_t ttxt_laG0_la1_char(int Gtriplet, int natopts, uint8_t inchar);
-/*
- * Map Latin G2 teletext characters into a ISO-8859-1 approximation.
- * Trying to use similar looking or similar meaning characters.
- */
-uint16_t ttxt_laG2_la1_char(uint8_t inchar);
-
// invert tab for last 42 bytes in packets