summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick White <git@njw.name>2017-06-13 14:19:02 +0100
committerNick White <git@njw.name>2017-06-13 14:19:02 +0100
commitb429bfb48ac23ccc04d6f25cc5e15f8d564b0139 (patch)
treeedf02cd036d6ec844b180deb4ec520db95f2c8ff
parent83efb1888dc4a319c0a8d07d95a5becd9a44bef2 (diff)
downloadoed2dict-b429bfb48ac23ccc04d6f25cc5e15f8d564b0139.tar.bz2
oed2dict-b429bfb48ac23ccc04d6f25cc5e15f8d564b0139.zip
Enable --index-data-separator in dictfmt
There are newer releases of GoldenDict now, so their bug that made me hold off on this feature can now be safely ignored.
-rw-r--r--Makefile1
-rw-r--r--htmtojargon.awk5
2 files changed, 2 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 8b60533..8b6d8fd 100644
--- a/Makefile
+++ b/Makefile
@@ -31,6 +31,7 @@ oed.dict: oed.jargon
cat oed.jargon \
| dictfmt -j --utf8 \
--columns 0 --headword-separator ',' \
+ --index-data-separator " " \
-u http://njw.me.uk/oed \
-s "Oxford English Dictionary, 2nd Edition" \
oed
diff --git a/htmtojargon.awk b/htmtojargon.awk
index f67cd49..265c1c6 100644
--- a/htmtojargon.awk
+++ b/htmtojargon.awk
@@ -13,10 +13,7 @@ function printdefs(word, defs) {
# ensures that e.g. 'n.' queries don't match every noun.
# To be used in conjuction with an argument to dictfmt like this:
# --index-data-separator " "
- # This is disabled at the moment as GoldenDict prior to 2c901d5
- # (2013-06-16) had a bug that would ignore any entry with this
- # extra information in the index.
- #sub("<i>", " ", word);
+ sub("<i>", " ", word);
n = split(defs, array, "<def>");
for(i=0; i<=n; i++) {