summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrmh <rmh@FreeBSD.org>2011-10-28 20:00:30 +0000
committerrmh <rmh@FreeBSD.org>2011-10-28 20:00:30 +0000
commit3b98cf90cf3a3d5cae53f038956e9689ad8645a6 (patch)
tree925a0105a49d7306a73fdb4be845bd4c4940c515
parent2355cf60809a67a87848a49c1f67b49966a4836f (diff)
downloadFreeBSD-src-3b98cf90cf3a3d5cae53f038956e9689ad8645a6.zip
FreeBSD-src-3b98cf90cf3a3d5cae53f038956e9689ad8645a6.tar.gz
Add a few improvements to utf-8 -> cp436 console map
(mostly with Catalan characters in mind, but it probably benefits other languages). The new mappings are as follows: ▮ -> █ ÀÈÍÏÓÒÚ -> AEIIOOU ŀ / Ŀ -> l / L Reviewed by: ed Approved by: kib (mentor)
-rw-r--r--sys/dev/syscons/scterm-teken.c20
1 files changed, 15 insertions, 5 deletions
diff --git a/sys/dev/syscons/scterm-teken.c b/sys/dev/syscons/scterm-teken.c
index 725f9f5..6762388 100644
--- a/sys/dev/syscons/scterm-teken.c
+++ b/sys/dev/syscons/scterm-teken.c
@@ -424,10 +424,18 @@ static const struct unicp437 cp437table[] = {
{ 0x00b6, 0x14, 0x00 }, { 0x00b7, 0xfa, 0x00 },
{ 0x00ba, 0xa7, 0x00 }, { 0x00bb, 0xaf, 0x00 },
{ 0x00bc, 0xac, 0x00 }, { 0x00bd, 0xab, 0x00 },
- { 0x00bf, 0xa8, 0x00 }, { 0x00c4, 0x8e, 0x01 },
- { 0x00c6, 0x92, 0x00 }, { 0x00c7, 0x80, 0x00 },
- { 0x00c9, 0x90, 0x00 }, { 0x00d1, 0xa5, 0x00 },
- { 0x00d6, 0x99, 0x00 }, { 0x00dc, 0x9a, 0x00 },
+ { 0x00bf, 0xa8, 0x00 }, { 0x00c0, 0x41, 0x00 },
+ { 0x00c1, 0x41, 0x00 }, { 0x00c2, 0x41, 0x00 },
+ { 0x00c4, 0x8e, 0x01 }, { 0x00c6, 0x92, 0x00 },
+ { 0x00c7, 0x80, 0x00 }, { 0x00c8, 0x45, 0x00 },
+ { 0x00c9, 0x90, 0x00 }, { 0x00ca, 0x45, 0x00 },
+ { 0x00cb, 0x45, 0x00 }, { 0x00cc, 0x49, 0x00 },
+ { 0x00cd, 0x49, 0x00 }, { 0x00ce, 0x49, 0x00 },
+ { 0x00cf, 0x49, 0x00 }, { 0x00d1, 0xa5, 0x00 },
+ { 0x00d2, 0x4f, 0x00 }, { 0x00d3, 0x4f, 0x00 },
+ { 0x00d4, 0x4f, 0x00 }, { 0x00d6, 0x99, 0x00 },
+ { 0x00d9, 0x55, 0x00 }, { 0x00da, 0x55, 0x00 },
+ { 0x00db, 0x55, 0x00 }, { 0x00dc, 0x9a, 0x00 },
{ 0x00df, 0xe1, 0x00 }, { 0x00e0, 0x85, 0x00 },
{ 0x00e1, 0xa0, 0x00 }, { 0x00e2, 0x83, 0x00 },
{ 0x00e4, 0x84, 0x00 }, { 0x00e5, 0x86, 0x00 },
@@ -442,6 +450,7 @@ static const struct unicp437 cp437table[] = {
{ 0x00f8, 0xed, 0x00 }, { 0x00f9, 0x97, 0x00 },
{ 0x00fa, 0xa3, 0x00 }, { 0x00fb, 0x96, 0x00 },
{ 0x00fc, 0x81, 0x00 }, { 0x00ff, 0x98, 0x00 },
+ { 0x013f, 0x4c, 0x00 }, { 0x0140, 0x6c, 0x00 },
{ 0x0192, 0x9f, 0x00 }, { 0x0393, 0xe2, 0x00 },
{ 0x0398, 0xe9, 0x00 }, { 0x03a3, 0xe4, 0x00 },
{ 0x03a6, 0xe8, 0x00 }, { 0x03a9, 0xea, 0x00 },
@@ -490,7 +499,8 @@ static const struct unicp437 cp437table[] = {
{ 0x2584, 0xdc, 0x00 }, { 0x2588, 0xdb, 0x00 },
{ 0x258c, 0xdd, 0x00 }, { 0x2590, 0xde, 0x00 },
{ 0x2591, 0xb0, 0x02 }, { 0x25a0, 0xfe, 0x00 },
- { 0x25ac, 0x16, 0x00 }, { 0x25b2, 0x1e, 0x00 },
+ { 0x25ac, 0x16, 0x00 },
+ { 0x25ae, 0xdb, 0x00 }, { 0x25b2, 0x1e, 0x00 },
{ 0x25ba, 0x10, 0x00 }, { 0x25bc, 0x1f, 0x00 },
{ 0x25c4, 0x11, 0x00 }, { 0x25cb, 0x09, 0x00 },
{ 0x25d8, 0x08, 0x00 }, { 0x25d9, 0x0a, 0x00 },
OpenPOWER on IntegriCloud