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

LuaTeX error cannot open spelling.lua: No such file or directory #14

Closed
vbgl opened this issue Dec 4, 2012 · 4 comments
Closed

LuaTeX error cannot open spelling.lua: No such file or directory #14

vbgl opened this issue Dec 4, 2012 · 4 comments

Comments

@vbgl
Copy link

vbgl commented Dec 4, 2012

After installing spelling using TeXlive, the following minimal document produces the error: “LuaTeX error cannot open spelling.lua: No such file or directory”.

\documentclass{minimal}
\usepackage{spelling}
\begin{document}
Helo.
\end{document}

I guess require should be used instead of dofile in spelling.sty, line 25.

@sh2d
Copy link
Owner

sh2d commented Dec 4, 2012

Cannot reproduce the issue with a current TL2012.

How did you install the package?
How did you compile the minimal document?

BTW, dofile should be OK, because file spelling.lua is actually not a module. The remaining files spelling-*.lua are indeed modules and are required by the former file. If there's any benefit in turning spelling.lua itself into a module, that can certainly be done.

@sh2d
Copy link
Owner

sh2d commented Dec 4, 2012

And watch out for issue #8. In your example, the word Helo would never be highlighted, because of the trailing punctuation.

@vbgl
Copy link
Author

vbgl commented Dec 4, 2012

How did you install the package?

tlmgr update --all

This has automatically installed spelling, whose documentation tells:
“v0.1, 30th November 2012”.

How did you compile the minimal document?

lualatex sp

where sp.tex is the file name.

BTW, dofile should be OK, because file spelling.lua is actually
not a module. The remaining files spelling-*.lua are indeed
modules and are required by the former file. If there's any
benefit in turning spelling.lua itself into a module, that can
certainly be done.

Ok. My apologies for suggesting a wrong solution. I’m no lua programmer.
I’ve just read this thread:
http://tex.stackexchange.com/questions/30438/lua-tree-analogue-of-texmf-tree
and tried the patch and see it work; that’s why…

Regards,

@sh2d
Copy link
Owner

sh2d commented Dec 4, 2012

My fault, I've done the test in the working copy that contains file spelling.lua. Doing the test in another directory, I can reproduce the issue now. Will investigate.

As a work-around, you can copy file spelling.lua (just that file is enough) into the directory containing the document. You can find out the path to that file via command

kpsewhich spelling.lua

on the command-line.

@sh2d sh2d closed this as completed in 2a7e5d8 Dec 4, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants