Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid dictionary with new-style transfer #2

Closed
TinoDidriksen opened this issue Aug 21, 2020 · 3 comments
Closed

Invalid dictionary with new-style transfer #2

TinoDidriksen opened this issue Aug 21, 2020 · 3 comments
Labels
bug Something isn't working

Comments

@TinoDidriksen
Copy link
Member

When converted to new transfer style, the steps lt-proc -b ca-eo.autobil.bin and lt-proc -b ca-eo-translit.autobil.bin both throw Error: Invalid dictionary (hint: entry beginning with whitespace)

@TinoDidriksen TinoDidriksen added the bug Something isn't working label Aug 21, 2020
TinoDidriksen added a commit to apertium/apertium that referenced this issue Aug 24, 2020
Many changes, including the word-bound blank helpers needed for @khannatanmai's GSoC work.

* Removed submodule apertium-get (fixes #4, fixes #16, fixes #36, see apertium/packaging#15)
* Require C++14 (C++1y)
* Changed generic variables and unified where version is defined
* Corrected use of pkg-config
* Use `/usr/bin/env bash` instead of baking in bash path
* Use xmllint from PATH (fixes #28)
* Use xsltproc from PATH
* Added 3 new tools:
  * apertium-wblank-attach: Helper to turn wblank-spans into actual per-word word-bound blanks
  * apertium-wblank-detach: Helper to turn per-word word-bound blanks into wblank-spans
  * apertium-wblank-mode: Converts modes to new-style transfer, inserts wblank helpers, and optionally adds -z to all programs
* The apertium helper script:
  * Will now use [Transfuse](https://github.com/TinoDidriksen/Transfuse) for formats ODT, DOCX, PPTX, and HTML, if Transfuse is in PATH (fixes #69)
  * Always uses apertium-wblank-mode around modes, because wblanks are not specific to Transfuse
    * This also always converts old-style transfer to new-style transfer (see apertium/apertium-eo-ca#2, see apertium/apertium-epo-fra#1)
  * Added `-f odp` as alias for `odt`
  * New envvar `APERTIUM_DATADIR` as alternative to -d
  * New arg -z to enable null-flush mode
  * Require UTF-8 earlier
  * Other cleanup
@TinoDidriksen
Copy link
Member Author

And when building from scratch:

Error: Invalid dictionary (hint: entry on the right beginning with whitespace)
make: *** [Makefile:696: ca-eo.autobil.bin] Error 1
Error: Invalid dictionary (hint: entry on the right beginning with whitespace)
make: *** [Makefile:703: ca-eo-translit.autobil.bin] Error 1

@xavivars
Copy link
Member

The whitespace error is fixed, but there's still another one:

apertium-gen-modes modes.xml
cp *.mode modes/
cp: cannot stat '*.mode': No such file or directory
Makefile:811: recipe for target 'modes/ca-eo.mode' failed
make[1]: *** [modes/ca-eo.mode] Error 1
make[1]: Leaving directory '/home/xavi/src/apertium-eo-ca'
Makefile:309: recipe for target 'all' failed
make: *** [all] Error 2

I'm sure there's something that needs to be changed in the Makefiles, but I'm not that familiar with those.

@TinoDidriksen
Copy link
Member Author

The build system needs fixing, a'la apertium/apertium-eo-es@0555cbd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants