aboutsummaryrefslogtreecommitdiffstats
path: root/libcharconv_latin.c
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-01-24 23:59:59 +0100
committerMattias Andrée <m@maandree.se>2026-01-24 23:59:59 +0100
commitce4e00037288939d9757cd29e28de82f8d92db76 (patch)
treee99ec793a5c1d756cd44280ab780b5ca6de7a483 /libcharconv_latin.c
parentAdd ocr (diff)
downloadcharconv-ce4e00037288939d9757cd29e28de82f8d92db76.tar.gz
charconv-ce4e00037288939d9757cd29e28de82f8d92db76.tar.bz2
charconv-ce4e00037288939d9757cd29e28de82f8d92db76.tar.xz
Add crop marks
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to '')
-rw-r--r--libcharconv_latin.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libcharconv_latin.c b/libcharconv_latin.c
index 68bdd7d..de5b618 100644
--- a/libcharconv_latin.c
+++ b/libcharconv_latin.c
@@ -496,6 +496,12 @@ libcharconv_latin(const char *s, size_t slen, size_t *n, uint_least32_t *cp, siz
/* ocr (telegraphing) */
case UINT32_C(0x2BFF): c1 = 'E'; goto conv1;
+ /* crop marks */
+ case UINT32_C(0x230C): c1 = '|'; c2 = '-'; goto conv2;
+ case UINT32_C(0x230D): c1 = '-'; c2 = '|'; goto conv2;
+ case UINT32_C(0x230E): c1 = '|'; c2 = '_'; goto conv2;
+ case UINT32_C(0x230F): c1 = '_'; c2 = '|'; goto conv2;
+
default:
no_match:
*n += clen;