From dd0cc7705d2c78ed2f7c6a7b9afe96e0aa48b9e1 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 7 Dec 2012 23:32:34 +0000 Subject: spelling 0.2 (6dec12) git-svn-id: svn://tug.org/texlive/trunk@28464 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/lualatex/spelling/spelling.sty | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'Master/texmf-dist/tex/lualatex') 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} -- cgit v1.2.3