diff options
author | Jens Arnold <amiconn@rockbox.org> | 2012-05-19 00:30:55 +0200 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2012-05-19 00:30:55 +0200 |
commit | c736c0e45b65c7d38290e0d895e600c1f0305870 (patch) | |
tree | c7b046b27d042fcf67f62234a53196fd6d78682d | |
parent | 266dc52fab0cad568b6f0dddcf1d4cee2d1b1e73 (diff) | |
download | rockbox-c736c0e45b65c7d38290e0d895e600c1f0305870.tar.gz rockbox-c736c0e45b65c7d38290e0d895e600c1f0305870.zip |
Player LCD: Map several punctuation characters in the U+20xx range
This is in preparation of Win-1252 support (gerrit #209).
-rw-r--r-- | firmware/drivers/lcd-charset-player.c | 36 |
1 files changed, 36 insertions, 0 deletions
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[] = { | |||
506 | { 0x0457, XF_CYR_yi, 1, 0x69 }, /* cyrillic yi */ | 506 | { 0x0457, XF_CYR_yi, 1, 0x69 }, /* cyrillic yi */ |
507 | { 0x0458, 0, 0, 0x6a }, /* cyrillic je */ | 507 | { 0x0458, 0, 0, 0x6a }, /* cyrillic je */ |
508 | 508 | ||
509 | /* extra punctuation */ | ||
510 | { 0x2013, 0, 0, 0x2d }, /* en dash */ | ||
511 | { 0x2014, 0, 0, 0x2d }, /* em dash */ | ||
512 | |||
513 | { 0x2018, 0, 0, 0x27 }, /* left single quotation mark */ | ||
514 | { 0x2019, 0, 0, 0x27 }, /* right single quotation mark */ | ||
515 | { 0x201a, 0, 0, 0x2c }, /* single low-9 quotation mark */ | ||
516 | { 0x201b, 0, 0, 0x27 }, /* single high-reversed-9 quotation mark */ | ||
517 | { 0x201c, 0, 0, 0x22 }, /* left double quotation mark */ | ||
518 | { 0x201d, 0, 0, 0x22 }, /* right double quotation mark */ | ||
519 | { 0x201e, 0, 0, 0x22 }, /* double low-9 quotation mark */ | ||
520 | { 0x201f, 0, 0, 0x22 }, /* double high-reversed-9 quotation mark */ | ||
521 | |||
522 | { 0x2022, 0, 0, 0xa5 }, /* bullet */ | ||
523 | |||
524 | { 0x2039, 0, 0, 0x3c }, /* single left-pointing angle quotation mark */ | ||
525 | { 0x203a, 0, 0, 0x3e }, /* single right-pointing angle quotation mark */ | ||
526 | |||
509 | /* Runtime-definable characters */ | 527 | /* Runtime-definable characters */ |
510 | { 0xe000, 0x8000, 15, 0x20 }, /* variable character 0 */ | 528 | { 0xe000, 0x8000, 15, 0x20 }, /* variable character 0 */ |
511 | { 0xe001, 0x8001, 15, 0x20 }, /* variable character 1 */ | 529 | { 0xe001, 0x8001, 15, 0x20 }, /* variable character 1 */ |
@@ -1014,6 +1032,24 @@ const struct xchar_info xchar_info_oldlcd[] = { | |||
1014 | { 0x0457, 0, 0, 0xa3 }, /* cyrillic yi */ | 1032 | { 0x0457, 0, 0, 0xa3 }, /* cyrillic yi */ |
1015 | { 0x0458, 0, 0, 0x6e }, /* cyrillic je */ | 1033 | { 0x0458, 0, 0, 0x6e }, /* cyrillic je */ |
1016 | 1034 | ||
1035 | /* extra punctuation */ | ||
1036 | { 0x2013, 0, 0, 0x31 }, /* en dash */ | ||
1037 | { 0x2014, 0, 0, 0x31 }, /* em dash */ | ||
1038 | |||
1039 | { 0x2018, 0, 0, 0x2b }, /* left single quotation mark */ | ||
1040 | { 0x2019, 0, 0, 0x2b }, /* right single quotation mark */ | ||
1041 | { 0x201a, 0, 0, 0x30 }, /* single low-9 quotation mark */ | ||
1042 | { 0x201b, 0, 0, 0x2b }, /* single high-reversed-9 quotation mark */ | ||
1043 | { 0x201c, 0, 0, 0x26 }, /* left double quotation mark */ | ||
1044 | { 0x201d, 0, 0, 0x26 }, /* right double quotation mark */ | ||
1045 | { 0x201e, 0, 0, 0x26 }, /* double low-9 quotation mark */ | ||
1046 | { 0x201f, 0, 0, 0x26 }, /* double high-reversed-9 quotation mark */ | ||
1047 | |||
1048 | { 0x2022, XF_MIDDLEDOT, 1, 0x32 }, /* bullet */ | ||
1049 | |||
1050 | { 0x2039, 0, 0, 0x40 }, /* single left-pointing angle quotation mark */ | ||
1051 | { 0x203a, 0, 0, 0x42 }, /* single right-pointing angle quotation mark */ | ||
1052 | |||
1017 | /* Runtime-definable characters */ | 1053 | /* Runtime-definable characters */ |
1018 | { 0xe000, 0x8000, 15, 0x24 }, /* variable character 0 */ | 1054 | { 0xe000, 0x8000, 15, 0x24 }, /* variable character 0 */ |
1019 | { 0xe001, 0x8001, 15, 0x24 }, /* variable character 1 */ | 1055 | { 0xe001, 0x8001, 15, 0x24 }, /* variable character 1 */ |