From 29326c1f79fc4699d67525b0d1760ca86568dc40 Mon Sep 17 00:00:00 2001 From: Daniel Swanson Date: Wed, 7 Aug 2024 09:40:19 -0400 Subject: [PATCH] Escape all characters which have meaning in Apertium (#673) --- Utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utils.py b/Utils.py index 709e827a..c4344701 100644 --- a/Utils.py +++ b/Utils.py @@ -429,7 +429,7 @@ CIRCUMFIX_TAG_A = '_cfx_part_a' CIRCUMFIX_TAG_B = '_cfx_part_b' -APERT_RESERVED = r'([\[\]@/\\^$><])' +APERT_RESERVED = r'([\[\]@/\\^$><{}*#+~])' NONE_HEADWORD = '**none**' GRAM_CAT_ATTRIBUTE = 'a_gram_cat'