mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05:00
Bugs 879, 928, 947: Specially map U+00A0 and U+00AD in translation tables.
[ Backported from commit da3c8c5ce2
in
ELinks 0.12.GIT. --KON ]
This commit is contained in:
parent
dd7a3ad95b
commit
a7980fcffc
@ -343,6 +343,10 @@ get_translation_table(int from, int to)
|
|||||||
if (codepages[from].table == table_utf_8) {
|
if (codepages[from].table == table_utf_8) {
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
/* Map U+00A0 and U+00AD the same way as u2cp() would. */
|
||||||
|
add_utf_8(table, UCS_NO_BREAK_SPACE, strings[NBSP_CHAR]);
|
||||||
|
add_utf_8(table, UCS_SOFT_HYPHEN, "");
|
||||||
|
|
||||||
for (i = 0; codepages[to].table[i].c; i++)
|
for (i = 0; codepages[to].table[i].c; i++)
|
||||||
add_utf_8(table, codepages[to].table[i].u,
|
add_utf_8(table, codepages[to].table[i].u,
|
||||||
strings[codepages[to].table[i].c]);
|
strings[codepages[to].table[i].c]);
|
||||||
|
Loading…
Reference in New Issue
Block a user