Module:Citation/CS1/Configuration: Difference between revisions

Content deleted Content added
bump s2cid;
post-update update;
Line 137:
"%(%( *[Ee][Tt]%.? *[Aa][Ll]%.? *%)%)", -- a double-bracketed form (to counter partial removal of ((...)) syntax)
"[%(%[] *[Ee][Tt]%.? *[Aa][Ll]%.? *[%)%]]", -- a bracketed form
}
 
 
--[[--------------------------< E D I T O R _ M A R K U P _ P A T T E R N S >----------------------------------
 
This table provides Lua patterns for the phrase "ed" and variants in name text
(author, editor, etc.). The main module uses these to identify and emit the
'extra_text_names' message. (It is not the only series of patterns for this message.)
 
]]
 
local editor_markup_patterns = { -- these patterns match annotations at end of name
'%f[%(%[][%(%[]%s*[Ee][Dd][Ss]?%.?%s*[%)%]]?$', -- (ed) or (eds): leading '(', case insensitive 'ed', optional 's', '.' and/or ')'
'[,%.%s]%f[e]eds?%.?$', -- ed or eds: without '('or ')'; case sensitive (ED could be initials Ed could be name)
'%f[%(%[][%(%[]%s*[Ee][Dd][Ii][Tt][Oo][Rr][Ss]?%.?%s*[%)%]]?$', -- (editor) or (editors): leading '(', case insensitive, optional '.' and/or ')'
'[,%.%s]%f[Ee][Dd][Ii][Tt][Oo][Rr][Ss]?%.?$', -- editor or editors: without '('or ')'; case insensitive
-- these patterns match annotations at beginning of name
'^eds?[%.,;]', -- ed. or eds.: lower case only, optional 's', requires '.'
'^[%(%[]%s*[Ee][Dd][Ss]?%.?%s*[%)%]]', -- (ed) or (eds): also sqare brackets, case insensitive, optional 's', '.'
'^[%(%[]?%s*[Ee][Dd][Ii][Tt][Oo][Rr][Ss]?%A', -- (editor or (editors: also square brackets, case insensitive, optional brackets, 's'
'^[%(%[]?%s*[Ee][Dd][Ii][Tt][Ee][Dd]%A', -- (edited: also square brackets, case insensitive, optional brackets
 
-- these patterns match annotations that are the 'name'
'^[Ee][Dd][Ii][Tt][Oo][Rr][Ss]?%.?$', -- editor or editors; case insensitive
}
 
Line 445 ⟶ 420:
 
]]
local is_Latn = 'A-Za-z\195\128-\195\150\195\152-\195\182\195\184-\198\191\199\132-\201\143';
 
local special_case_translation = {
['AuthorList'] = 'authors list', -- used to assemble maintenance category names
Line 482 ⟶ 457:
{['en'] = {'wikiwix\'s cache', true}, ['local'] = nil},
},
 
['generic_names'] = {
-- generic names and patterns in this table should be lowercase only
-- leave ['local'] nil except when there is a matching generic name in your language
-- boolean 'true' for plain-text searches; 'false' for pattern searches
{['en'] = {'about us', true}, ['local'] = nil},
{['en'] = {'author%f[%a]advisor%f[%A]', truefalse}, ['local'] = nil},
{['en'] = {'collaborator%f[%a]author%f[%A]', truefalse}, ['local'] = nil},
{['en'] = {'contributorcollaborator', true}, ['local'] = nil},
{['en'] = {'contact uscontributor', true}, ['local'] = nil},
{['en'] = {'directorycontact us', true}, ['local'] = nil},
{['en'] = {'editordirectory', true}, ['local'] = nil},
{['en'] = {'email%f[%(%[][%(%[]%s*eds?%.?%s*[%)%]]?$', truefalse}, ['local'] = nil},
{['en'] = {'facebook[,%.%s]%f[e]eds?%.?$', truefalse}, ['local'] = nil},
{['en'] = {'google^eds?[%.,;]', truefalse}, ['local'] = nil},
{['en'] = {'home page^[%(%[]%s*[Ee][Dd][Ss]?%.?%s*[%)%]]', truefalse}, ['local'] = nil},
{['en'] = {'instagram%f[%a]edited%f[%A]', truefalse}, ['local'] = nil},
{['en'] = {'interviewer%f[%a]editors?%f[%A]', truefalse}, ['local'] = nil},
{['en'] = {'linkedIn%f[%a]email%f[%A]', truefalse}, ['local'] = nil},
{['en'] = {'pinterestfacebook', true}, ['local'] = nil},
{['en'] = {'policygoogle', true}, ['local'] = nil},
{['en'] = {'privacyhome page', true}, ['local'] = nil},
{['en'] = {'translatorinstagram', true}, ['local'] = nil},
{['en'] = {'tumblrinterviewer', true}, ['local'] = nil},
{['en'] = {'twitterlinkedIn', true}, ['local'] = nil},
{['en'] = {'site namepinterest', true}, ['local'] = nil},
{['en'] = {'statementpolicy', true}, ['local'] = nil},
{['en'] = {'submittedprivacy', true}, ['local'] = nil},
{['en'] = {'supertranslator', true}, ['local'] = nil},
{['en'] = {'usertumblr', true}, ['local'] = nil},
{['en'] = {'verfassertwitter', true}, ['local'] = nil},
{['en'] = {'site name', true}, ['local'] = nil},
{['en'] = {'statement', true}, ['local'] = nil},
{['en'] = {'submitted', true}, ['local'] = nil},
{['en'] = {'super.?user', false}, ['local'] = nil},
{['en'] = {'%f['..is_Latn..']user%f[^'..is_Latn..']', false}, ['local'] = nil},
{['en'] = {'verfasser', true}, ['local'] = nil},
}
}
Line 934 ⟶ 915:
'ab', 'am', 'ar', 'be', 'bg', 'bn', 'bo', 'bs', 'dv', 'dz', 'el', 'fa', 'gu',
'he', 'hi', 'hy', 'ja', 'ka', 'kk', 'km', 'kn', 'ko', 'ku', 'ky', 'lo', 'mk',
'ml', 'mn', 'mr', 'my', 'ne', 'or', 'ota', 'ps', 'ru', 'sd', 'si', 'sr', 'syc',
'ta', 'te', 'tg', 'th', 'ti', 'ug', 'uk', 'ur', 'uz', 'yi', 'yue', 'zh'
};
Line 1,608 ⟶ 1,589:
anchor = 'extra_punct',
category = 'CS1 maint: extra punctuation',
hidden = true,
},
maint_extra_text_names = {
message = nil,
anchor = 'extra_text_names',
category = 'CS1 maint: extra text: $1', -- $1 is '<name>s list'; gets value from special_case_translation table
hidden = true,
},