From c736c0e45b65c7d38290e0d895e600c1f0305870 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Sat, 19 May 2012 00:30:55 +0200 Subject: Player LCD: Map several punctuation characters in the U+20xx range This is in preparation of Win-1252 support (gerrit #209). --- firmware/drivers/lcd-charset-player.c | 36 +++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'firmware/drivers') diff --git a/firmware/drivers/lcd-charset-player.c b/firmware/drivers/lcd-charset-player.c index ba6f67848b..68404c6230 100644 --- a/firmware/drivers/lcd-charset-player.c +++ b/firmware/drivers/lcd-charset-player.c @@ -506,6 +506,24 @@ const struct xchar_info xchar_info_newlcd[] = { { 0x0457, XF_CYR_yi, 1, 0x69 }, /* cyrillic yi */ { 0x0458, 0, 0, 0x6a }, /* cyrillic je */ + /* extra punctuation */ + { 0x2013, 0, 0, 0x2d }, /* en dash */ + { 0x2014, 0, 0, 0x2d }, /* em dash */ + + { 0x2018, 0, 0, 0x27 }, /* left single quotation mark */ + { 0x2019, 0, 0, 0x27 }, /* right single quotation mark */ + { 0x201a, 0, 0, 0x2c }, /* single low-9 quotation mark */ + { 0x201b, 0, 0, 0x27 }, /* single high-reversed-9 quotation mark */ + { 0x201c, 0, 0, 0x22 }, /* left double quotation mark */ + { 0x201d, 0, 0, 0x22 }, /* right double quotation mark */ + { 0x201e, 0, 0, 0x22 }, /* double low-9 quotation mark */ + { 0x201f, 0, 0, 0x22 }, /* double high-reversed-9 quotation mark */ + + { 0x2022, 0, 0, 0xa5 }, /* bullet */ + + { 0x2039, 0, 0, 0x3c }, /* single left-pointing angle quotation mark */ + { 0x203a, 0, 0, 0x3e }, /* single right-pointing angle quotation mark */ + /* Runtime-definable characters */ { 0xe000, 0x8000, 15, 0x20 }, /* variable character 0 */ { 0xe001, 0x8001, 15, 0x20 }, /* variable character 1 */ @@ -1014,6 +1032,24 @@ const struct xchar_info xchar_info_oldlcd[] = { { 0x0457, 0, 0, 0xa3 }, /* cyrillic yi */ { 0x0458, 0, 0, 0x6e }, /* cyrillic je */ + /* extra punctuation */ + { 0x2013, 0, 0, 0x31 }, /* en dash */ + { 0x2014, 0, 0, 0x31 }, /* em dash */ + + { 0x2018, 0, 0, 0x2b }, /* left single quotation mark */ + { 0x2019, 0, 0, 0x2b }, /* right single quotation mark */ + { 0x201a, 0, 0, 0x30 }, /* single low-9 quotation mark */ + { 0x201b, 0, 0, 0x2b }, /* single high-reversed-9 quotation mark */ + { 0x201c, 0, 0, 0x26 }, /* left double quotation mark */ + { 0x201d, 0, 0, 0x26 }, /* right double quotation mark */ + { 0x201e, 0, 0, 0x26 }, /* double low-9 quotation mark */ + { 0x201f, 0, 0, 0x26 }, /* double high-reversed-9 quotation mark */ + + { 0x2022, XF_MIDDLEDOT, 1, 0x32 }, /* bullet */ + + { 0x2039, 0, 0, 0x40 }, /* single left-pointing angle quotation mark */ + { 0x203a, 0, 0, 0x42 }, /* single right-pointing angle quotation mark */ + /* Runtime-definable characters */ { 0xe000, 0x8000, 15, 0x24 }, /* variable character 0 */ { 0xe001, 0x8001, 15, 0x24 }, /* variable character 1 */ -- cgit v1.2.3