summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/lualatex/stricttex/stricttex.lua
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/lualatex/stricttex/stricttex.lua')
-rw-r--r--Master/texmf-dist/tex/lualatex/stricttex/stricttex.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/lualatex/stricttex/stricttex.lua b/Master/texmf-dist/tex/lualatex/stricttex/stricttex.lua
index d8dd9621410..0533a4683a2 100644
--- a/Master/texmf-dist/tex/lualatex/stricttex/stricttex.lua
+++ b/Master/texmf-dist/tex/lualatex/stricttex/stricttex.lua
@@ -95,20 +95,20 @@ stricttexFormatNumbers = function(str)
end
stricttexReplacePrimes = function(str)
- str = str:gsub("'",'symbolPRIME')
+ str = str:gsub('\'','symbolPRIME')
return str
end
+
stricttexFormatNumbersAndPrimes = function(str)
- local p, q = str:find("\\%a+[%d']")
+ local p, q = str:find('\\%a+[%d\']')
if p then
while true do
- local r,s = str:sub(q,-1):find("[%w']+") -- ^ in the beginning did not work
- local newstring = stricttexReplaceNumbersByLetters( str:sub(q,q+s-1) )
- mewstring = stricttexReplacePrimes( newstring )
+ local r,s = str:sub(q,-1):find('[%w\']+') -- ^ in the beginning did not work
+ local newstring = stricttexReplaceNumbersByLetters( stricttexReplacePrimes( str:sub(q,q+s-1) ) )
local l = string.len(newstring)
str = str:sub(1, q-1) .. newstring .. str:sub(q+s,-1)
- local t = str:sub(q+l,-1):find("\\%a+[%d']")
+ local t = str:sub(q+l,-1):find('\\%a+[%d\']')
if t then
q = q + l + t - 1
else