From ed5a8e5353bb37971bb05ff163bae87d3df54445 Mon Sep 17 00:00:00 2001 From: scossu Date: Sun, 21 Jul 2024 00:02:38 -0400 Subject: [PATCH] Fix char index misalignment after ignoring. --- scriptshifter/trans.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scriptshifter/trans.py b/scriptshifter/trans.py index 12a77bd..ea55046 100644 --- a/scriptshifter/trans.py +++ b/scriptshifter/trans.py @@ -169,6 +169,7 @@ def transliterate(src, lang, t_dir="s2r", capitalize=False, options={}): logger.info(f"Ignored token: {ctx.tk}") ctx.dest_ls.append(ctx.tk) ctx.cur += step + cur_char = ctx.src[ctx.cur] ctx.ignoring = True break # We looked through all ignore tokens, not found any. Move on.