Skip to content

Commit

Permalink
Update the fix for Wiktionary’s dictionaries
Browse files Browse the repository at this point in the history
The pronunciation delimiter changed (from \ to /). The new fix works, at
least, for the English version from 2023-05-01.
  • Loading branch information
baskerville committed May 15, 2023
1 parent de510aa commit b88105c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/convert-dictionary.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ args="${base}.dict"

# shellcheck disable=SC2086
"$bindir"/sdunpack $args < "${base}.idx" > "${base}.txt"
[ "${short_name%% *}" = "Wiktionary" ] && sed -i 's/^\(\\.*\)/<p>\1<\/p>/' "${base}.txt"
[ "${short_name%% *}" = "Wiktionary" ] && sed -i 's/^\(\/.*\)/<p>\1<\/p>/' "${base}.txt"
"$bindir"/dictfmt --quiet --utf8 --index-keep-orig --headword-separator '|' -s "$short_name" -u "$url" -t "$base" < "${base}.txt"
"$bindir"/dictzip "${base}.dict"

Expand Down

0 comments on commit b88105c

Please sign in to comment.