diff options
Diffstat (limited to 'tex/context/base/lang-hyp.lua')
-rw-r--r-- | tex/context/base/lang-hyp.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tex/context/base/lang-hyp.lua b/tex/context/base/lang-hyp.lua index b263ea1b0..496cfd19b 100644 --- a/tex/context/base/lang-hyp.lua +++ b/tex/context/base/lang-hyp.lua @@ -362,6 +362,7 @@ local function hyphenate(dictionary,word,n) -- odd is okay local specials = dictionary.specials local patterns = dictionary.patterns -- +-- inspect(specials) local spec for i=1,l do for j=i,l do @@ -572,7 +573,7 @@ do lpegmatch(u_pattern,str,1,dictionary.patterns,dictionary.specials) -- unregister_pattern(dictionary.patterns,dictionary.specials,str) else - lpegmatch(r_pattern,str,1,dictionary.patterns,dictionary.specials,specification or false) + lpegmatch(r_pattern,str,1,dictionary.patterns,dictionary.specials,type(specification) == "table" and specification or false) -- register_pattern(dictionary.patterns,dictionary.specials,str,specification) end end |