Navigation Menu

Skip to content

Commit

Permalink
convert some common utf8 punctuation to latin1
Browse files Browse the repository at this point in the history
  • Loading branch information
ramen committed Feb 25, 2010
1 parent 230cee8 commit 064cc4c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/encoding.c
Expand Up @@ -364,6 +364,14 @@ int c, to_utf, font;
return (*p)[0] | (font << 8);
}
}
if (c == 0x2010) return '-';
if (c == 0x2013) return '-';
if (c == 0x2014) return '-';
if (c == 0x2018) return '\'';
if (c == 0x2019) return '\'';
if (c == 0x201c) return '"';
if (c == 0x201d) return '"';
if (c == 0x2022) return '*';
return '?';
}
if (c < 128 && (font & 128) != 0)
Expand Down

0 comments on commit 064cc4c

Please sign in to comment.