diff options
author | Karl Berry <karl@freefriends.org> | 2012-12-07 23:32:34 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-12-07 23:32:34 +0000 |
commit | dd0cc7705d2c78ed2f7c6a7b9afe96e0aa48b9e1 (patch) | |
tree | c512e7818a5ef38734e04dfcc43d48e21cf8820c /Master/texmf-dist/tex/lualatex | |
parent | ca94651714aa4fc2f0ce2f363011b2deda254885 (diff) |
spelling 0.2 (6dec12)
git-svn-id: svn://tug.org/texlive/trunk@28464 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/lualatex')
-rw-r--r-- | Master/texmf-dist/tex/lualatex/spelling/spelling.sty | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/lualatex/spelling/spelling.sty b/Master/texmf-dist/tex/lualatex/spelling/spelling.sty index c363e53c129..a060002fadf 100644 --- a/Master/texmf-dist/tex/lualatex/spelling/spelling.sty +++ b/Master/texmf-dist/tex/lualatex/spelling/spelling.sty @@ -11,7 +11,7 @@ %% See file README for more information. %% \ProvidesPackage{spelling} - [2012/11/30 v0.1 Aid spell-checking (SH)] + [2012/12/04 v0.2 Aid spell-checking (SH)] \NeedsTeXFormat{LaTeX2e}[1999/12/01] % Test for the LuaTeX engine. \RequirePackage{ifluatex} @@ -22,7 +22,13 @@ \fi \RequirePackage{ifthen} \RequirePackage{luatexbase} -\directlua name {spelling}{dofile('spelling.lua')} +% Load main Lua file. +\directlua name {spelling}{ + % The main Lua file is not a module, so we must pass a full path to + % `dofile`. + local f = kpse.find_file('spelling.lua', 'lua') + dofile(f) +} % Words are extracted after pages have been built. In lack of a proper % Lua call-back, we're hooking into shipout from the LaTeX side. \RequirePackage{atbegshi} |