Skip to content

Commit

Permalink
Escaped symbols still need to be escaped in some parts of rules
Browse files Browse the repository at this point in the history
so be more selective (#673)
  • Loading branch information
mr-martian committed Aug 7, 2024
1 parent 0c4314a commit 6794566
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,11 @@

CIRCUMFIX_TAG_A = '_cfx_part_a'
CIRCUMFIX_TAG_B = '_cfx_part_b'
APERT_RESERVED = r'([\[\]@/\\^$><{}*#+~])'
# reserved characters listed at here:
# https://wiki.apertium.org/wiki/Apertium_stream_format
# But +, ~, # don't affect the behavior of lt-proc or apertium-transfer
# { and } need to be escaped if we're using apertium-interchunk
APERT_RESERVED = r'([\[\]@/\\^$><{}])'
NONE_HEADWORD = '**none**'

GRAM_CAT_ATTRIBUTE = 'a_gram_cat'
Expand Down

0 comments on commit 6794566

Please sign in to comment.