diff options
author | Context Git Mirror Bot <phg42.2a@gmail.com> | 2015-04-12 01:15:04 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2015-04-12 01:15:04 +0200 |
commit | 5a96cf7b6e9ade3c3df8a119e6f0bd1a0a81a2bf (patch) | |
tree | 8df60c57ee7659e7ad87cebbcf93177530e13aa9 /tex/context/base/lang-hyp.lua | |
parent | cb778ed4a2252111bd0498f3d80ebe9ab03c8b41 (diff) | |
download | context-5a96cf7b6e9ade3c3df8a119e6f0bd1a0a81a2bf.tar.gz |
2015-04-12 00:56:00
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 |