Disable word wrapping for dictd dictionary.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Fri, 07 Oct 2016 00:45:54 +0300
changeset 593 32de94c1b039
parent 592 f45410f1f80e
child 594 910efcf51ac0
Disable word wrapping for dictd dictionary.
Makefile
py/gadict.py
--- a/Makefile	Fri Oct 07 00:30:52 2016 +0300
+++ b/Makefile	Fri Oct 07 00:45:54 2016 +0300
@@ -371,7 +371,7 @@
 
 DICTFMT := dictfmt
 #  --case-sensitive
-DICTFMT_OPT := --headword-separator '; ' --break-headwords --without-headword --utf8 --allchars
+DICTFMT_OPT := --headword-separator '; ' --break-headwords --without-headword --utf8 --allchars --columns 0
 
 dist/dictd/%.dict dist/dictd/%.index: dist/dictd/%.c5 dist/dictd/%.c5.name dist/dictd/%.c5.url $(MAKEFILE_LIST)
 	(cd dist/dictd; $(DICTFMT) $(DICTFMT_OPT)  -c5  -s "`cat $*.c5.name`" -u "`cat $*.c5.url`"  $*)  < $<
--- a/py/gadict.py	Fri Oct 07 00:30:52 2016 +0300
+++ b/py/gadict.py	Fri Oct 07 00:45:54 2016 +0300
@@ -271,7 +271,7 @@
                 return string
             m = self.CONT_RE.match(self.line)
             if m is not None:
-                string += "\n" + m.group(1)
+                string += " " + m.group(1)
             else:
                 return string