Module:Citation/CS1: Difference between revisions
interim fix to kern_quotes(); see discussion;
m>Trappist the monk (unsuport |version= for cite arxiv;) |
m>Trappist the monk (interim fix to kern_quotes(); see discussion;) |
||
Line 480: | Line 480: | ||
local cap2=''; | local cap2=''; | ||
-- TODO: move this elswhere so that all title-holding elements get these quote marks replaced? | -- TODO: move this elswhere so that all title-holding elements get these quote marks replaced? | ||
-- str= mw.ustring.gsub (str, '[“”]', '\"'); -- replace “” (U+201C & U+201D) with " (typewriter double quote mark) | |||
-- str= mw.ustring.gsub (str, '[‘’]', '\''); -- replace ‘’ (U+2018 & U+2019) with ' (typewriter single quote mark) | |||
cap, cap2 = str:match ("^([\"\'])([^\'].+)"); -- match leading double or single quote but not double single quotes | cap, cap2 = str:match ("^([\"\'])([^\'].+)"); -- match leading double or single quote but not double single quotes |