From b429bfb48ac23ccc04d6f25cc5e15f8d564b0139 Mon Sep 17 00:00:00 2001 From: Nick White Date: Tue, 13 Jun 2017 14:19:02 +0100 Subject: 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. --- Makefile | 1 + htmtojargon.awk | 5 +---- 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("", " ", word); + sub("", " ", word); n = split(defs, array, ""); for(i=0; i<=n; i++) { -- cgit v1.2.3