Content deleted Content added
sync from sandbox; Tag: Reverted |
strip wikilink markup tweak; Tag: Reverted |
||
Line 68:
return ret_string; -- then we're done
end
local romaji_text = romaji:gsub ('%b<>', ''):gsub ('\'\'+', ''):gsub ('%[%[', ''):gsub ('%]%]', ''); -- strip html tags▼
romaji = romaji:gsub ('([%(%)%.%%%+%-%*%?%[%^%$%]])', '%%%1'); -- escape lua pattern characters
Line 73 ⟶ 75:
local romaji_has_leading_paren = ret_string:match ('%(' .. romaji); -- has a value if (<romaji>; nil else
local romaji_has_trailing_paren = ret_string:match (romaji .. '%)'); -- has a value if <romaji>); nil else
▲ local romaji_text = romaji:gsub ('%b<>', ''); -- strip html tags
local kern_lead_pattern = '^[jpy]'; -- list of characters that when italicized contact unitalicized leading parenthesis
|