aboutsummaryrefslogtreecommitdiffstats
path: root/libcharconv_latin.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcharconv_latin.c')
-rw-r--r--libcharconv_latin.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libcharconv_latin.c b/libcharconv_latin.c
index 5179388..68bdd7d 100644
--- a/libcharconv_latin.c
+++ b/libcharconv_latin.c
@@ -350,6 +350,11 @@ libcharconv_latin(const char *s, size_t slen, size_t *n, uint_least32_t *cp, siz
c5 = '0';
goto conv5;
+ } else if (UINT32_C(0x2440) <= c && c <= UINT32_C(0x244A)) {
+ /* ocr */
+ c = (uint_least32_t)"SdYAIXC/P_\\"[c - UINT32_C(0x2440)];
+ goto conv;
+
} else {
switch (c) {
/* shogi */
@@ -488,6 +493,9 @@ libcharconv_latin(const char *s, size_t slen, size_t *n, uint_least32_t *cp, siz
case UINT32_C(0x1F030): c1 = '#'; c2 = '|'; c3 = '#'; goto conv3;
case UINT32_C(0x1F062): c1 = '#'; c2 = '-'; c3 = '#'; goto conv3;
+ /* ocr (telegraphing) */
+ case UINT32_C(0x2BFF): c1 = 'E'; goto conv1;
+
default:
no_match:
*n += clen;