From 05c2be6af9588ebbada5398b0bc049b636bc9165 Mon Sep 17 00:00:00 2001 From: jozan Date: Sat, 14 Nov 2020 22:11:02 +0000 Subject: New rule for aa, documentation in progress FossilOrigin-Name: cf569e29a8e713184f37e5b5188ecf4f5bde1ffaee2cc9e16e08770a4bb68cfb --- src/c_subst.c | 5 +++++ src/c_subst.h | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/c_subst.c b/src/c_subst.c index ace57d3..3c667b7 100644 --- a/src/c_subst.c +++ b/src/c_subst.c @@ -266,6 +266,11 @@ c_unicode_subst(char filename[]) *(p + 1) = 'e'; c_unicode_subst(filename); } + if (u_isucharset((unsigned char)*(p + 1), C_CHARSET_AA) == TRUE) { + *p = 'a'; + *(p + 1) = 'a'; + c_unicode_subst(filename); + } if (u_isucharset((unsigned char)*(p + 1), C_CHARSET_N) == TRUE) { *p = 'n'; memmove( diff --git a/src/c_subst.h b/src/c_subst.h index 00073b2..cc2ca21 100644 --- a/src/c_subst.h +++ b/src/c_subst.h @@ -52,7 +52,9 @@ #define C_CHARSET_VALID "_-." #define C_CHARSET_A \ - "\x80\x81\x82\x83\x84\x85\xa0\xa1\xa2\xa3\xa4\xa5" + "\x80\x81\x82\x83\x84\xa0\xa1\xa2\xa3\xa4" +#define C_CHARSET_AA \ + "\x85\xa5" #define C_CHARSET_O \ "\x92\x93\x94\x95\x96\x98\xb2\xb3\xb4\xb5\xb6\xb8" #define C_CHARSET_AE \ -- cgit v1.2.3