Module:Citation/CS1/Configuration: Difference between revisions
From Podpedia
Content added Content deleted
(synch from sandbox;) |
No edit summary |
||
Line 201: | Line 201: | ||
['DisplayEditors'] = {'display-editors', 'displayeditors'}, |
['DisplayEditors'] = {'display-editors', 'displayeditors'}, |
||
['Docket'] = 'docket', |
['Docket'] = 'docket', |
||
['DoiBroken'] = {'doi-broken', 'doi-broken-date', 'doi-inactive-date |
['DoiBroken'] = {'doi-broken', 'doi-broken-date', 'doi-inactive-date'}, |
||
['Edition'] = 'edition', |
['Edition'] = 'edition', |
||
['Editors'] = 'editors', |
['Editors'] = 'editors', |
||
Line 229: | Line 229: | ||
['Network'] = 'network', |
['Network'] = 'network', |
||
['NoPP'] = {'no-pp', 'nopp'}, |
['NoPP'] = {'no-pp', 'nopp'}, |
||
['NoTracking'] = {'template-doc- |
['NoTracking'] = {'template-doc-demo', 'no-cat', 'nocat', |
||
'no-tracking', 'notracking'}, |
'no-tracking', 'notracking'}, |
||
['Number'] = 'number', -- this case only for cite techreport |
['Number'] = 'number', -- this case only for cite techreport |
||
Line 266: | Line 266: | ||
['TitleNote'] = 'department', |
['TitleNote'] = 'department', |
||
['TitleType'] = {'type', 'medium'}, |
['TitleType'] = {'type', 'medium'}, |
||
['TransChapter'] = |
['TransChapter'] = 'trans-chapter', |
||
['TransMap'] = 'trans-map', -- cite map only |
['TransMap'] = 'trans-map', -- cite map only |
||
['Transcript'] = 'transcript', |
['Transcript'] = 'transcript', |
||
['TranscriptFormat'] = 'transcript-format', |
['TranscriptFormat'] = 'transcript-format', |
||
['TranscriptURL'] = {'transcript-url', 'transcripturl'}, |
['TranscriptURL'] = {'transcript-url', 'transcripturl'}, |
||
['TransTitle'] = |
['TransTitle'] = 'trans-title', |
||
['URL'] = {'url', 'URL'}, |
['URL'] = {'url', 'URL'}, |
||
['UrlAccess'] = {'url-access'}, |
['UrlAccess'] = {'url-access'}, |
||
Line 369: | Line 369: | ||
['season'] = {['Winter']=24, ['Spring']=21, ['Summer']=22, ['Fall']=23, ['Autumn']=23}; |
['season'] = {['Winter']=24, ['Spring']=21, ['Summer']=22, ['Fall']=23, ['Autumn']=23}; |
||
['named'] = {['Christmas']=99}; |
['named'] = {['Christmas']=99}; |
||
} |
}, |
||
['local_digits'] = {['0'] = '0', ['1'] = '1', ['2'] = '2', ['3'] = '3', ['4'] = '4', ['5'] = '5', ['6'] = '6', ['7'] = '7', ['8'] = '8', ['9'] = '9'}; -- used to convert local language digits to Western 0-9 |
|||
} |
} |
||
Line 466: | Line 467: | ||
-- Kannada 0C80–0CFF – https://unicode.org/charts/PDF/U0C80.pdf |
-- Kannada 0C80–0CFF – https://unicode.org/charts/PDF/U0C80.pdf |
||
-- Malayalam 0D00–0D7F – https://unicode.org/charts/PDF/U0D00.pdf |
-- Malayalam 0D00–0D7F – https://unicode.org/charts/PDF/U0D00.pdf |
||
-- plus the not-necessarily Indic scripts for Sinhala and Burmese: |
|||
-- Sinhala 0D80-0DFF - https://unicode.org/charts/PDF/U0D80.pdf |
|||
-- Myanmar 1000-109F - https://unicode.org/charts/PDF/U1000.pdf |
|||
-- Myanmar extended A AA60-AA7F - https://unicode.org/charts/PDF/UAA60.pdf |
|||
-- Myanmar extended B A9E0-A9FF - https://unicode.org/charts/PDF/UA9E0.pdf |
|||
-- the pattern is used by has_invisible_chars() and coins_cleanup() |
-- the pattern is used by has_invisible_chars() and coins_cleanup() |
||
-- TODO: find a better place for this? |
-- TODO: find a better place for this? |
||
local indic_script = '[\224\164\128-\224\181\191\ |
local indic_script = '[\224\164\128-\224\181\191\224\163\160-\224\183\191\225\128\128-\225\130\159\234\167\160-\234\167\191\234\169\160-\234\169\191]'; |
||
--[[--------------------------< L A N G U A G E S >------------------------------------------------------------ |
--[[--------------------------< L A N G U A G E S >------------------------------------------------------------ |
||
Line 477: | Line 483: | ||
]] |
]] |
||
local script_lang_codes = { |
|||
local script_lang_codes = {'am', 'ar', 'be', 'bg', 'bn', 'bs', 'dv', 'el', -- ISO 639-1 codes only for |script-title= and |script-chapter= |
|||
' |
'am', 'ar', 'be', 'bg', 'bn', 'bs', 'dv', 'el', 'fa', -- ISO 639-1 codes only for |script-title= and |script-chapter= |
||
' |
'gu', 'he', 'hy', 'ja', 'ka', 'kn', 'ko', 'ku', |
||
' |
'mk', 'ml', 'mn', 'mr', 'my', 'ps', 'ru', 'sd', |
||
'sr', 'tg', 'th', 'uk', 'ug', 'ur', 'yi', 'zh' |
|||
}; |
|||
Line 524: | Line 532: | ||
['script'] = 'CS1 uses foreign language script', -- when language specified by |script-title=xx: doesn't have its own category |
['script'] = 'CS1 uses foreign language script', -- when language specified by |script-title=xx: doesn't have its own category |
||
['script_with_name'] = 'CS1 uses $1-language script ($2)', -- |script-title=xx: has matching category; $1 is language name, $2 is ISO639-1 code |
['script_with_name'] = 'CS1 uses $1-language script ($2)', -- |script-title=xx: has matching category; $1 is language name, $2 is ISO639-1 code |
||
['jul_greg_uncertainty'] = 'CS1: Julian–Gregorian uncertainty', -- probably temporary cat to identify scope of template with dates 1 October 1582 – 1 January 1926 |
|||
} |
} |
||