Skip to content

Commit

Permalink
Remove soft hyphens from tex input list
Browse files Browse the repository at this point in the history
  • Loading branch information
snomos committed Jan 16, 2025
1 parent 21139b6 commit 54371c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion am-shared/tools-hyphenators-dir-include.am
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,16 @@ hyphenated-fst-wordlist.txt: hyphenator-gt-desc-no_fallback.hfst \
# grep -x '.\{3,25\}' # remove all strings shorter than three, longer than
# 25 symbols (patgen has an upper limit of 50 chars,
# but everything beyond 25 should be useless)
# tr -d '\302\255' # remove soft hyphens
cleaned-hyphenated-fst-wordlist.txt: hyphenated-fst-wordlist.txt
$(AM_V_GEN)grep -v '^[-]' $< |\
egrep -v '\.' |\
egrep -v ' ' |\
egrep -v '[0123456789]' |\
egrep -v '[_<>’³²&‒–—―+£§¢€*@()%$$]' |\
egrep -v ' ' |\
grep -x '.\{3,25\}' \
grep -x '.\{3,25\}' |\
tr -d '\302\255' \
> $@

# 1. build tex pattern file
Expand Down

0 comments on commit 54371c5

Please sign in to comment.