aboutsummaryrefslogtreecommitdiff
path: root/lib/unicode/prop/uprop_get_tc.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/unicode/prop/uprop_get_tc.c')
-rw-r--r--lib/unicode/prop/uprop_get_tc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/unicode/prop/uprop_get_tc.c b/lib/unicode/prop/uprop_get_tc.c
index 442db6e..83649e1 100644
--- a/lib/unicode/prop/uprop_get_tc.c
+++ b/lib/unicode/prop/uprop_get_tc.c
@@ -64,9 +64,11 @@ _MLIB_DEFINE_BSEARCH_KV(struct rview, lookup, M(ch))
struct rview
uprop_get_tc(rune ch, struct tcctx ctx)
{
+ constexpr rune COMB_DOT_ABOVE = 0x307;
+
if (ch == 'i' && ctx.az_or_tr)
return M(U'İ');
- if (ch == 0x307 && ctx.lt && ctx.after_i)
+ if (ch == COMB_DOT_ABOVE && ctx.lt && ctx.after_soft_dotted)
return M();
rune CH = uprop_get_stc(ch);