User:Ohconfucius/test/Sources subscript1.js
Appearance
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. This code will be executed when previewing this page. |
![]() | Documentation for this user script can be added at User:Ohconfucius/test/Sources subscript1. |
function Ohc_sourcename(){
// source names to 'wikiname' and adopts appropriate italicisation
// right hand column should be the exact wiki-name (including brackets), and the left hand column should be all the possible domain names and pipe variants
// the 'cleanup' part of the script should relocate the disambiguator, beif any
// this function should not operate on sources whose names are already correctly stated
var table = {
'(?:the ?|)(?:ny ?times(?:\\.com|)|New York Times)': 'The New York Times',
'iht(?:\\.com|)': 'International Herald Tribune',
'laht(?:\\.com|)': 'Latin America Herald Tribune',
'ibtimes(?:\\.co(?:m|\\.uk)|)': 'International Business Times',
'(?:wsj(?:\\.com|)|Wall (?:Street|Str?\\.?) Journal)': 'The Wall Street Journal',
'newsday(?:\\.com)': 'Newsday',
'(?:nydailynews(?:\\.com|)|(?:New York|NY|n\\. ?y\\.) Daily ?News)': 'Daily News (New York)',
'(?:ny|n\\. ?y\\.) ?post(?:\\.com|)': 'New York Post',
'(?:New York |NY ?|)observer(?:\\.com)': 'The New York Observer',
'(?:New York |NY ?)observer(?:\\.com|)': 'The New York Observer',
'baltimore ?sun(?:\\.com|)': 'The Baltimore Sun',
'(?:the|)boston(?:globe|)\\.com': 'The Boston Globe',
'the boston globe': 'The Boston Globe',
'(?:the ?|)boston ?herald(\\.com|)': 'Boston Herald',
'(?:the ?|)Brussels ?Times(?:\\.com|)': 'The Brussels Times',
'washington ?post(?:\\.com|)': 'The Washington Post',
'washington ?times(?:\\.com|)': 'The Washington Times',
'(?:la ?times(?:\\.com|)|L\\. ?A\\. Times)': 'Los Angeles Times',
'(?:the ?|)Los Angeles Times': 'Los Angeles Times',
'(?:(?:the ?|)chicago ?|)sun[ -]?times(?:\\.com|)': 'Chicago Sun-Times',
'(?:the ?|)chicagotribune(?:\\.com|)': 'Chicago Tribune',
'miami ?herald(?:\\.com|)': 'Miami Herald',
'sun ?herald(?:\\.com|)': 'Sun Herald',
'sun-?sentinel(?:\\.com|)': 'Sun-Sentinel',
'(?:chron|houstonchronicle)(?:\\.com|)': 'Houston Chronicle',
'(?:sf ?gate|(?:the ?|)SF ?Chronicle)(?:\\.com|)': 'San Francisco Chronicle',
'(?:the ?|)denver ?post(?:\\.com|)': 'The Denver Post',
'deseretnews(?:\\.com|)': 'Deseret News',
'contracostatimes(?:\\.com|)': 'Contra Costa Times',
'freep(?:\\.com|)': 'Detroit Free Press',
'insidebayarea(?:\\.com|)': 'Oakland Tribune',
'philly\\.com': 'Philadelphia Daily News',
'tribtotalmedia(?:\\.com|)': 'Pittsburgh Tribune-Review',
'mercurynews(?:\\.com|)': 'Mercury News',
'San Jose mercury news': 'Mercury News',
'(?:seattle ?)pi(?:\\.com|)': 'Seattle Post-Intelligencer',
'(?:the ?|)(?:seattle |)post[- ]intelligencer': 'Seattle Post-Intelligencer',
'(?:minnesota ?|)startribune(?:\\.com|)': 'Star Tribune',
'star-telegram(?:\\.com)': 'Fort Worth Star-Telegram',
'orlandosentinel(?:\\.com|)': 'Orlando Sentinel',
'tbo(?:\\.com|)': 'The Tampa Tribune',
'Palm ?Beach ?Post(?:\\.com|)': 'The Palm Beach Post',
'(?:the ?|)tampa ?bay(?:times|)(?:\\.com|)': 'Tampa Bay Times',
'sptimes(?:\\.com|)': 'St Petersburg Times', //became Tampa Bay Times in 2012
'(?:azcentral|az ?republic)(?:\\.com|)': 'The Arizona Republic',
'dallasnews(?:\\.com|)': 'The Dallas Morning News',
'oregonlive(?:\\.com|)': 'The Oregonian',
'politico(?:\\.com|)': 'Politico',
'philly\\.newspaperdirect\\.com': 'The Philadelphia Inquirer',
'(?:cleveland(?:\\.com)|plain ?dealer)': 'The Plain Dealer',
'(?:(?:sandiegouniontribune|signonsandiego|utsandiego)(?:\\.com|)|(?:the |)San Diego Union[- ]Tribune)': 'The San Diego Union-Tribune',
'seattle ?times(?:\\.com|)': 'The Seattle Times',
'se ?times(?:\\.com|)': 'Southeast European Times',
'sl ?trib(?:\\.com|)': 'The Salt Lake Tribune',
'Tennessean(?:\\.com|)': 'The Tennessean',
'thehill(?:\\.com|)': 'The Hill',
'nj(?:\\.com)': 'The Star-Ledger',
'usatoday(?:\\.com|)': 'USA Today',
'USA ?TODAY': 'USA Today',
'Independent\\.com': 'Santa Barbara Independent',
'(?:Christian ?Science ?Monitor|csmonitor)(?:\\.com|)': 'The Christian Science Monitor',
'Christian ?post(?:\\.com|)': 'The Christian Post',
'(?:(?:The ?|)Columbus ?|)dispatch\\.com': 'The Columbus Dispatch',
'bizjournals(?:\\.com|)': 'The Business Journals',
'adelaide ?now(?:\\.com\\.au|)': 'The Advertiser (Adelaide)',
'(?:The ?|)courier[\s-]?mail(?:\\.com\\.au|)': 'The Courier-Mail',
'smh(?:\\.com\\.au|)': 'The Sydney Morning Herald',
'Sydney Morning Herald': 'The Sydney Morning Herald',
'theage(?:\\.com\\.au|)': 'The Age',
'theaustralian(?:\\.com\\.au|)': 'The Australian',
'brisbane ?times(?:\\.com\\.au|)': 'Brisbane Times',
'canberra ?times(?:\\.com\\.au|)': 'The Canberra Times',
'(?:the ?|)herald ?sun(?:\\.com\\.au|)': 'Herald Sun',
'(?:Daily|the)telegraph(?:\\.com\\.au)': 'The Daily Telegraph (Sydney)',
'themercury(?:\\.com\\.au|)': 'The Mercury (Hobart)',
'nz ?herald(?:\\.co\\.nz|\\.com|)': 'The New Zealand Herald',
'New Zealand Herald': 'The New Zealand Herald',
'odt(?:\\.co\\.nz|\\.com|)': 'Otago Daily Times',
'(?:stuff\\.com\\.nz\\/|)dominionpost': 'The Dominion Post',
'(?:stuff\\.com\\.nz\\/|)manawatu-standard': 'Manawatu Standard',
'(?:stuff\\.com\\.nz\\/|)nelson[- ]mail': 'The Nelson Mail',
'(?:stuff\\.com\\.nz\\/|)marlborough[- ]express': 'The Marlborough Express',
'press\\.co\\.nz': 'The Press',
'(?:stuff\\.com\\.nz\\/|)southland ?times': 'The Southland Times',
'sundaynews\\.co\\.nz': 'Sunday News (New Zealand)',
'sundaystartimes\\.co\\.nz': 'Sunday Star-Times',
'(?:stuff\\.com\\.nz\\/|)taranaki[- ]daily[- ]news': 'Taranaki Daily News',
'(?:stuff\\.com\\.nz\\/|)timaru[- ]herald': 'The Timaru Herald',
'(?:stuff\\.com\\.nz\\/|)waikatotimes': 'Waikato Times',
'stuff\\.co\\.nz': 'Stuff (company)',
'(?:(?:the|)globeandmail(?:\\.com|)|globe & mail)': 'The Globe and Mail',
'(?:the ?|)(?:Toronto |)Globe and Mail': 'The Globe and Mail',
'\\|montreal gazette\\]': '|The Gazette]',
'(?:the |)montreal ?gazette(?:\\.com|)': 'Montreal Gazette',
'The Gazette \(Montreal\)': 'Montreal Gazette',
'(?:the ?|)national ?post(?:\\.com|)': 'National Post',
'(?:the ?|)ottawa ?citizen(?:\\.com|)': 'Ottawa Citizen',
'theprovince(?:\\.com|)': 'The Province',
'thestar(?:\\.com|)\\.my': 'The Star (Malaysia)',
'samoaobserver(?:\\.ws)': 'Samoa Observer',
'thestar(?:\\.com)': 'Toronto Star',
'the ?toronto ?star(?:\\.com|)': 'Toronto Star',
'(?:the |)toronto ?sun(?:\\.com|)': 'Toronto Sun',
'(?:the ?|)vancouver ?sun(?:\\.com|\\b)': 'Vancouver Sun',
'(?:the ?|)Winnipeg ?free ?press(?:\\.com|)': 'Winnipeg Free Press',
'All ?music(?:\\.com|)': 'AllMusic',
'business ?insider(?:\\.com|)': 'Business Insider',
'news\\.bbc\\.co(?:m|\\.uk)': 'BBC News',
'bbc\\.co(m|\\.uk)\\/news': 'BBC News',
'bbc ?news\\.com': 'BBC News',
'bbc\\.co(m|\\.uk)\\/sport': 'BBC Sport',
'(?:espn ?|)cricinfo(?:\\.com|)': 'ESPNcricinfo',
'(?:espn ?|)f1(?:\\.com|)': 'ESPN F1',
'flight ?global(?:\\.com|)': 'FlightGlobal',
'euobserver(?:\\.com|)': 'EUobserver',
'Belfast ?(?:Telegraph|telegraph\\.co\\.uk)': 'Belfast Telegraph',
'Daily ?telegraph(?:\\.co\\.uk|)': 'The Daily Telegraph',
'Telegraph(?:\\.co\\.uk|)': 'The Daily Telegraph',
'Sunday Telegraph': 'The Sunday Telegraph',
'(?:(?:the|)Timesonline.co(?:\\.uk|m)|(?:the ?|)Times ?on-?line)': 'The Times',
'Thetimes\\.co\\.uk': 'The Times',
'TheSundaytimes(?:\\.co\\.uk|)': 'The Sunday Times',
'inews(?:\\.co\\.uk|)': 'i (newspaper)',
'touringcartimes(?:\\.com|)': 'Touring Car Times',
'times ?of ?malta(?:\\.com|)': 'The Times (Malta)',
'(?:the ?|)(?:financial ?times|\\bft)(?:\\.com|\\.co\\.uk|)': 'Financial Times',
'(?:the ?|media|sport|)(?:guardian(?:\\.co(?:m|\\.uk)| unlimited| online|))': 'The Guardian',
'(?:the ?|)scotsman(?:\\.com|)': 'The Scotsman',
'Independent(?:\\.co\\.uk)': 'The Independent',
'(?:the (?:Daily |Sunday|)Express|Express\\.co\\.uk)': 'Daily Express',
'(?:the (?:Daily |Sunday )Mirror|(?:the|Sunday|)Mirror\\.co\\.uk)': 'Daily Mirror',
'(?:(?:dailymail|thisismoney)(?:\\.co(?:\\.uk|m)|)|the Daily Mail|Mail Online)': 'Daily Mail',
'dailystar(?:\\.co\\.uk)': 'Daily Star (United Kingdom)',
'dailystar(?:\\.com\\.lb)': 'The Daily Star (Lebanon)',
'discogs(?:\\.com|)': 'Discogs',
'thesun(?:\\.co\\.uk|)': 'The Sun (United Kingdom)',
'this ?is ?leicestershire(?:\\.co\\.uk|)': 'Leicester Mercury',
'(?:thisislondon\\.co\\.uk|this is london)': 'Evening Standard', //note: this title has no disambiguator
'theneweuropean(?:\\.co\\.uk|)': 'The New European',
'(?:thisisgrimsby\\.co\\.uk|this is grimsby)': 'Grimsby Telegraph',
'(?:(?:London|)evening|)standard\\.co\\.uk': 'Evening Standard',
'(?:the |)(?:London |)evening standard': 'Evening Standard',
'(?:london|the)[- ]?gazette(?:\\.com|\\.co\\.uk|)': 'The London Gazette',
'Birmingham ?mail(?:\\.co\\.uk|)': 'Birmingham Mail',
'Peterbrough ?today(?:\\.co\\.uk|)': 'Peterbrough Telegraph',
'blackpool ?gazette(?:\\.co\\.uk|)': 'Blackpool Gazette',
'(?:the |)express ?and ?star(?:\\.com|\\.co\\.uk|)': 'Express & Star',
'(?:irish ?|)independent\\.ie': 'Irish Independent',
'(?:the |)irish ?independent': 'Irish Independent',
'TheJournal\\.ie': 'TheJournal.ie',
'(?:the |)irish ?examiner(?:\\.com|\\.ie|)': 'Irish Examiner',
'irish ?times(?:\\.com|\\.ie|)': 'The Irish Times',
'gibraltar ?Chronicle(?:\\.gi|)': 'Gibraltar Chronicle',
'gulfnews(?:\\.com|)': 'Gulf News',
'gulf-times(?:\\.com|)': 'Gulf Times',
'panorama(?:\\.gi)': 'Panorama (Gibraltar)',
'The ?courier(?:\\.co.uk|)': 'The Courier',
'Herald ?Scotland(?:\\.com|)': 'The Herald (Glasgow)',
'DailyRecord(?:\\.co\\.uk)': 'Daily Record (Scotland)',
'the Daily Record': 'Daily Record (Scotland)',
'sundaymail(?:\\.co\\.uk|)': 'Sunday Mail (Scotland)',
'eveningtimes(?:\\.co\\.uk|)': 'Evening Times',
'j(?:erusalem ?|)post(?:\\.co(?:\\.il|m)|)': 'The Jerusalem Post',
'(?:the |)Buenos ?Aires ?Herald(?:\\.com|)': 'Buenos Aires Herald',
'Thedailystar(?:\\.net|)': 'The Daily Star',
'thesundaily(?:\\.com|)\\.my': 'The Sun (Malaysia)',
'(?:the ?|)malay ?mail(?: ?online|)(?:\\.com|)': 'Malay Mail',
'(?:the |)business[\\- ]standard(?:\\.com|)': 'Business Standard',
'(?:the |)deccan ?chronicle(?:\\.com|)': 'Deccan Chronicle',
'(?:the |)deccan ?herald(?:\\.com|)': 'Deccan Herald',
'dnaindia(?:\\.com|)': 'Daily News and Analysis',
'Economic ?Times(?:(?:\\.indiatimes|)\\.com|)': 'The Economic Times',
'MaharashtraTimes(?:(?:\\.indiatimes|)\\.com|)': 'Maharashtra Times',
'mydigitalfc(?:\\.com|)': 'Financial Chronicle',
'financial ?express(?:\\.com|)': 'The Financial Express',
'(?:the ?|)Hindustan ?times(?:\\.com|)': 'Hindustan Times',
'(?:the)?hindu(?:\\.com|)': 'The Hindu',
'(?:the ?|)hindu ?business ?line(?:\\.com|\\.in|)': 'Business Line',
'Indian ?Express(?:\\.com|)': 'The Indian Express',
'express(?:india\\.com)': 'The Indian Express',
'(?:(?:the ?|)new ?indian ?express|Expressbuzz)(?:\\.com|)': 'The New Indian Express',
'dailypioneer(?:\\.com|)': 'The Pioneer (India)',
'oneindia(?:\\.com|)': 'Oneindia',
'Thestatesman(?:\\.net|)': 'The Statesman',
'the ?sunday[- ]guardian(?:\\.com|)': 'The Sunday Guardian',
'Telegraph ?india(?:\\.com|)': 'The Telegraph (India)',
'The Telegraph \((?:Calcutta|Kolkata)\)': 'The Telegraph (India)',
'(?:the ?|)Times ?of ?india(?:(?:\\.indiatimes|)\\.com|)': 'The Times of India',
'tribune ?india(?:\\.com|)': 'The Tribune',
'brecorder(?:\\.com|)': 'Business Recorder',
'dailytimes(?:\\.com\\.pk|)': 'Daily Times (Pakistan)',
'times(?:\\.mw)': 'The Daily Times (Malawi)',
// 'malawivoice(?:\\.com|)': 'Malawi Voice', // no article
'nyasatimes(?:\\.com|)': 'Nyasa Times',
'dawn ?newspapers?(?:\\.com|)': 'Dawn (newspaper)',
'dawn(?: ?newspapers?|)(?:\\.com)': 'Dawn (newspaper)',
'(?:express ?|)tribune(?:\\.com\\.pk|)': 'The Express Tribune',
'tribune(?:\\.com\\.pk)': 'The Express Tribune',
'frontier ?post(?:\\.com\\.pk|)': 'The Frontier Post',
'thenational(?:\\.ae|)': 'The National (Abu Dhabi)',
'nation(?:\\.com\\.pk)': 'The Nation (Pakistan)',
'the nation \(pakistani newspaper\)': 'The Nation (Pakistan)',
'mwnation(?:\\.com|)': 'The Nation (Malawi)',
'thenationonlineng(?:\\.net|)': 'The Nation (Nigeria)',
'nationmultimedia(?:\\.com|)': 'The Nation (Thailand)',
'navbharat ?times(?:(?:\\.indiatimes|)\\.com|)': 'Navbharat Times',
'india ?times(?:\\.com|)': 'The Times of India', //this line should be the last of all indiatimes.com domains
'dailynht(?:\\.com|) ': 'National Herald Tribune',
'thenews(?:\\.com\\.pk)': 'The News International',
'pakobserver(?:\\.net|)': 'Pakistan Observer',
'pakistan ?today(?:\\.com\\.pk|)': 'Pakistan Today',
'Atlantic ?Sun(?:\\.com|)': 'Atlantic Sun',
'Business ?Day(?:\\.co\\.za|)': 'Business Day (South Africa)',
'Cape ?Argus(?:\\.co\\.za|)': 'Cape Argus',
'Cape ?Times(?:\\.co\\.za|)': 'Cape Times',
'(?:cayman|)compass(?:cayman|)(?:\\.com)': 'Cayman Compass',
'City ?Press(?:\\.co\\.za|)': 'City Press (South Africa)',
'dispatch(?:live|)(?:\\.co\\.za|)': 'Daily Dispatch',
'Daily ?Maverick(?:\\.co\\.za|)': 'Daily Maverick',
'DailyNews(?:\\.co\\.za)': 'Daily News (Durban)',
'Financial ?Mail(?:\\.co\\.za|)': 'Financial Mail',
'(?:greengazette|gics)(?:\\.co\\.za|)': 'Government Gazette of South Africa',
'heraldlive(?:\\.co\\.za|)': 'The Herald (South Africa)',
'iol(?:\\.co\\.za)\/thepost': 'Post (South Africa)',
'iol(?:\\.co\\.za)': 'Independent Online (South Africa)',
'(?:the ?|)j(?:ewish ?|)c(?:hronicle|)(?:\\.com|)': 'The Jewish Chronicle',
'(?:sajr|saJewishReport)(?:\\.co\\.za|)': 'Jewish Report',
'mg(?:\\.co\\.za)': 'Mail & Guardian',
'the m&g online': 'Mail & Guardian',
'Monserrat ?reporter(?:\\.com|)': 'The Monserrat Reporter',
'guampdn(?:\\.com|)': 'Pacific Daily News',
'thenassauguardian(?:\\.com|)': 'The Nassau Guardian',
'Post(?:\\.co\\.za)': 'Post (South Africa)',
'Pretoria ?News(?:\\.co\\.za|)': 'Pretoria News',
'timeslive(?:\\.co\\.za)': 'Sunday Times (South Africa)',
'citizen(?:\\.co\\.za)': 'The Citizen (South African newspaper)',
'the citizen \(South Africa\)': 'The Citizen (South African newspaper)',
'Independent ?on ?Saturday(?:\\.co\\.za|)': 'The Independent on Saturday',
'The ?Mercury(?:\\.co\\.za)': 'The Mercury (South Africa)',
'The ?New ?Age(?:\\.co\\.za|)': 'The New Age (South African newspaper)',
'samoaobserver(?:\\.ws|)': 'Samoa Observer',
'(?:The|)Star(?:\\.co\\.za)': 'The Star (South Africa)',
'(?:the|)Sowetan(?:live|)(?:\\.co\\.za|)': 'The Sowetan',
'(?:The|)stkittsnevisobserver(?:\\.com)': 'The St. Kitts-Nevis Observer',
'Sunday ?Independent(?:\\.co\\.za)': 'The Sunday Independent (South Africa)',
'SundayTimes(?:\\.co\\.za)': 'The Sunday Times (South Africa)',
'TheTimes(?:\\.co\\.za)': 'The Times (South Africa)',
'virginislandsdailynews(?:\\.com)': 'The Virgin Islands Daily News',
'witness(?:\\.co\\.za)': 'The Witness (newspaper)',
'nation\\.co\\.ke': 'Daily Nation',
'Sudan ?Tribune(?:\\.com|)': 'Sudan Tribune',
'(?:asia ?|\\ba)Times(?:\\.com|)': 'Asia Times',
'(?:The ?|)bangkok ?Post(?:\\.com|)': 'Bangkok Post',
'(?:The ?|)borneo ?Post(?:\\.com|)': 'The Borneo Post',
'(?:The ?|)China ?Post(?:\\.com(?:\\.tw|)|)': 'China Post',
'Caixin(?:\\.com|)': 'Caixin',
'Chinadaily(?:\\.com\\.cn|)': 'China Daily',
'China ?daily ?asia(?:\\.com|)': 'China Daily',
'chinadigitaltimes(?:\\.com|\\.net|)': 'China Digital Times',
'wantchinatimes(?:\\.com|\\.net|)': 'Want China Times',
'cphpost(?:\\.dk|)': 'The Copenhagen Post',
'Copenhagen Post': 'The Copenhagen Post',
'enet(?: ?english|)(?:\\.gr|)': 'Eleftherotypia',
'(?:the ?|)(?:global ?times|环球时报)(?:\\.cn|)': 'Global Times',
'Korea ?Herald(?:\\.com|)': 'The Korea Herald',
'Korea ?times(?:\\.com|\\.co\\.kr|)': 'The Korea Times',
'(?:the ?|)jakartapost(?:\\.com|)': 'The Jakarta Post',
'(?:the ?|)jakarta ?globe(?:\\.com|)': 'Jakarta Globe',
'(?:The ?|)Japan ?Times(?:\\.com|)': 'The Japan Times',
'hurriyet ?daily ?news(?:\\.com|)': 'Hürriyet Daily News',
'h[uü]rriyet': 'Hürriyet Daily News',
'Jordan ?Times(?:\\.com|)': 'The Jordan Times',
'Kathimerini(?:\\.gr|)': 'Kathimerini',
'krakow ?post(?:\\.com|)': 'Krakow Post',
'kyiv ?post(?:\\.com|)': 'Kyiv Post',
'nst\.com\.my': 'New Straits Times',
'people(?:daily|)\\.com\\.cn': 'People\'s Daily',
'peopledaily': 'People\'s Daily',
'philstar(?:\\.com|)': 'The Philippine Star',
'phnom ?penh ?post(?:\\.com|)': 'The Phnom Penh Post',
'inquirer\\.net': 'Philippine Daily Inquirer',
'prague ?post(?:\\.com|)': 'The Prague Post',
'hongkongfp(?:\\.com|)': 'Hong Kong Free Press',
'Hong Kong Free Press HKFP': 'Hong Kong Free Press',
'scmp(?:\\.com|)': 'South China Morning Post',
'(?:thestandard(?:\\.com\\.hk|)|(?:hong kong|hk) standard)': 'The Standard (Hong Kong)',
'eastandard(?:\\.net|)': 'The Standard (Kenya)',
'(?:The|)Straits ?Times(?:\\.com|)': 'The Straits Times',
'(?:The|)TaipeiTimes(?:\\.com|)': 'Taipei Times',
'Times ?of ?israel(?:\\.com|)': 'The Times of Israel',
'Todayonline(?:\\.com|)': 'Today (Singapore newspaper)',
'(?:The|)vienna ?times(?:\\.at|)': 'Vienna Times',
'derstandard(?:\\.at|)': 'Der Standard',
'Today\'?s ?zaman(?:\\.com|)': 'Today\'s Zaman',
'gazeta ?vatan(?:\\.com|)': 'Vatan',
//News business politics magazines
'Businessweek(?:\\.com| magazine|)': 'Bloomberg BusinessWeek',
'Counterpunch(?:\\.org|)': 'CounterPunch',
'Ebony(?:\\.com| magazine)': 'Ebony (magazine)',
'Economist(?:\\.co\\.uk|\\.com)': 'The Economist',
'Essence(?:\\.com| magazine)': 'Essence (magazine)',
'Forbes(?:\\.com| magazine)': 'Forbes',
'Fortune(?:(?:\\.cnn|)\\.com| magazine)': 'Fortune (magazine)',
'Foreignaffairs(?:\\.com|)': 'Foreign Affairs',
'Foreign ?policy(?:\\.com| \\(?magazine\\)|)': 'Foreign Policy',
'Maclean\'?s(?:\\.ca| Canada|)': 'Maclean\'s',
'Mother ?jones(?:\\.com| magazine|)': 'Mother Jones (magazine)',
'Nationalreview(?:\\.com|)': 'National Review',
'(?:the |)New ?Statesman(?:\\.co.uk|\\.com|)': 'New Statesman',
'Newsweek(?:\\.com| magazine)': 'Newsweek',
'publishersweekly(?:\\.com|)': 'Publishers Weekly',
'publisher\'?s\'?\sweekly': 'Publishers Weekly',
'Spectator(?:\\.co\\.uk|)': 'The Spectator',
'Time(?:\\.com| magazine| \\(magazine\\)|)': 'Time (magazine)',
'Life(?:\\.com| magazine| \\(magazine\\)|)': 'Life (magazine)',
'The ?atlantic(?:\\.com| magazine)': 'The Atlantic',
'The ?nation(?:\\.com| magazine)': 'The Nation',
'Vice(?:\\.com| magazine)': 'Vice (magazine)',
'reuters\\.com': 'Reuters.com',
//general interest, sport leisure lifestyle
'(?:ew|entertainmentweekly)(?:\\.com|)': 'Entertainment Weekly',
'people(?: ?magazine|)(?:\\.com|)': 'People (magazine)',
'(?:the |)radio ?times(?:\\.co.uk|\\.com|)': 'Radio Times',
'TVguide(?:\\.com|)': 'TV Guide',
'fast ?company(?:\\.com|)': 'Fast Company',
'Hello!? ?(?:magazine|online)(?:\\.com|)': 'Hello! (magazine)',
'(?:india ?today(?:\\.com|)|intoday\\.in)': 'India Today',
'marie ?claire(?:\\.co\\.uk|\\.com|)': 'Marie Claire',
'(?:new york|ny) ?mag(?:azine|)(?:\\.com|)': 'New York (magazine)',
'new ?yorker(?:\\.com|)': 'The New Yorker',
'time ?out(?:\\.com(?:\\.\\w{2}|)|)': 'Time Out (magazine)',
'OK!? ?magazine(?:\\.com|)': 'OK!',
'OK\\.co\\.uk': 'OK!',
'onthemedia(\\.org|)': 'On the Media',
'Usmagazine(?:\\.com|)': 'Us Weekly',
'village ?voice(?:\\.com|)': 'The Village Voice',
'theweek(?:\\.com|)': 'The Week',
//new media with original content
'(?:the ?|)huffington ?post(?:\\.(?:com(?:\\.\\w{2}|)|ca|fr|co\\.uk)|)': 'HuffPost',
'huff(?:ington ?|)post(?: ?canada| uk)': 'HuffPost',
'digitalspy(?:\\.co\\.uk|\\.com(?:\\.au|)|\\.ie)': 'Digital Spy',
'(?:Quartz(?: magazine|)|qz.com)': 'Quartz (publication)',
'reason(?: magazine|)(?:\\.com|)': 'Reason (magazine)',
// 'salon(?:\\.com|)': 'Salon (website)',
'Slate(?:\\.com|\\.fr| magazine|)': 'Slate (magazine)',
'theregister(?:\\.co\\.uk|\\.com|)': 'The Register',
'theweekinchess(?:\\.com|)': 'The Week in Chess',
//arts & lit
'Aesthetica ?magazine(?:\\.com|)': 'Aesthetica',
'Alt ?Press(?:\\.com|)': 'Alternative Press',
'American ?way ?mag(?:azine|)(?:\\.com|)': 'American Way',
'Apollo[\\- ]?magazine(?:\\.com|)': 'Apollo (magazine)',
'Art ?and ?Antiques mag(?:azine|)(?:\\.com|)': 'Art & Antiques',
'Art ?in ?America ?magazine(?:\\.com|)': 'Art in America',
'Art ?Monthly(?:\\.co\\.uk)': 'Art Monthly',
'Artinfo(?:\\.com)': 'Art+Auction', //there's also an unrelated Artinfo.ba
'Artforum(?:\\.com|)': 'Artforum',
'Artist ?Profile(?:\\.com\\.au)': 'Artist Profile',
'Artlink(?:\\.com\\.au)': 'Artlink',
'ARTnews(?:\\.com|)': 'ARTnews',
'ArtReview(?:\\.com|)': 'ArtReview',
'(?:The ?|)Asia ?Literary ?Review(?:\\.com|)': 'Asia Literary Review',
'(?:The ?|)Australian ?Book ?Review(?:\\.com|)': 'Australian Book Review',
'classical-Music(?:\\.com|)': 'BBC Music Magazine',
'bombsite(?:\\.com|)': 'Bomb',
'Bookforum(?:\\.com|)': 'Bookforum',
'Border ?Crossings ?mag(?:azine|)(?:\\.com|)': 'Border Crossings',
'Brick ?mag(?:azine|)(?:\\.com|)': 'Brick (magazine)',
'notesandqueries(?:\\.ca|)': 'Canadian Notes & Queries',
'asiancha(?:\\.com|)': 'Cha: An Asian Literary Journal',
'Chapman-pub(?:\\.co\\.uk)': 'Chapman',
'Clashmusic(?:\\.com|)': 'Clash (magazine)',
'crq(?:\\.org\\.uk|)|Classic Record Collector': 'Classical Recordings Quarterly',
'Contemporary[\\- ]?mag(?:azine|)(?:\\.com|)': 'Contemporary',
'Drowned ?in ?Sound(?:\\.com|)': 'Drowned in Sound',
'Esquire(?:[- ]?magazine|\\.com)': 'Esquire (magazine)',
'Exclaim(?:\\.ca|)': 'Exclaim!',
'Flash ?Art ?online(?:\\.com|)': 'Flash Art',
'Flaunt ?(?:magazine|)(?:\\.com|)': 'Flaunt',
'frieze(?:\\.com|)': 'frieze',
'Gangway(?:\\.net|)': 'Gangway',
'Geist(?:\\.com|)': 'Geist',
'GHLL(?:\\.com|)': 'GHLL',
'GQ[- ]?(?:magazine|)(?:\\.com|\\.co\\.uk)': 'GQ',
'Grain ?magazine(?:\\.ca|)': 'Grain',
'(?:The ?|)Gramophone(?:\\.co\\.uk|\\.net|)': 'Gramophone',
'Granta(?:\\.com|)': 'Granta',
'Hot ?Press(?:\\.com|)': 'Hot Press',
'moreIntelligentLife(?:\\.com|)': 'Intelligent Life',
'(?:The ?|)Irish ?Pages(?:\\.org|)': 'Irish Pages',
'cadencejazzmagazine(?:\\.com|)': 'Cadence Magazine',
'cashbox(?:\\.com| magazine)': 'Cashbox',
'coda(?: ?magazine|1958)(?:\\.com|)': 'Coda (magazine)',
'decibel ?magazine(?:\\.com|)': 'Decibel (magazine)',
'dj ?mag(?:\\.com|)': 'DJ Mag',
'downbeat(?: ?magazine|)(?:\\.com|)': 'DownBeat',
'fanfaremag(?:\\.com|)': 'Fanfare (magazine)',
'jazzjournal(?:\\.com|)': 'Jazz Journal',
'jazz ?times(?:\\.com| magazine)': 'JazzTimes',
'mississippi ?rag(?:\\.com|)': 'The Mississippi Rag',
'shook(?: ?magazine|)(?:\\.fm|)': 'Shook',
'interview ?magazine(?:\\.com|)': 'Interview',
'kerrang(?:\\.com|!? magazine)': 'Kerrang!',
'Lapham\'s ?Quarterly(?:\\.org|)': 'Lapham\'s Quarterly',
'Lesinrocks(?:\\.com|)': 'Les Inrockuptibles',
'Limelight(?:\\.com\\.au)': 'Limelight (magazine)',
'Literary ?Review(?:\\.co\\.uk)': 'Literary Review',
'Maxim ?(?:\\.com|\\.co\\.uk|Magazine)': 'Maxim (magazine)',
'Meanjin(?:\\.com|)': 'Meanjin',
'Melodic(?:\\.net|)(?:\\.com|)': 'Melodic (magazine)',
'Mixmag(?:\\.net|)': 'Mixmag',
'Mixonline(?:\\.com|)': 'Mix (magazine)',
'Modern ?Painters(?:\\.com)': 'Modern Painters',
'Mojo(?:4music\\.com| magazine)': 'Mojo (magazine)',
'Muse ?mag(?:azine|)(?:\\.hk)': 'Muse (Hong Kong magazine)',
'musicOMH\\.com': 'musicOMH',
'MusicRadar\\.com': 'MusicRadar',
'musicweek(?:\\.co(?:m|\\.uk))': 'Music Week',
'nplusonemag(?:\\.com|)': 'n+1',
'New ?Welsh ?Review(?:\\.com|)': 'New Welsh Review',
'(?:NME(?:\\.com|)|New Musical Express)': 'NME',
'Opera(?:\\.co\\.uk)': 'Opera (British magazine)',
'Opera ?Canada(?:\\.ca|)': 'Opera Canada',
'Opera ?News(?:\\.com|)': 'Opera News',
'Oxford ?Poetry\\.co\\.uk': 'Oxford Poetry',
'Paste(?:(?: ?magazine|)\\.com|)': 'Paste (magazine)',
'Pitchfork\\.com': 'Pitchfork',
'Playboy(?:\\.com|\\.co\\.uk| Magazine)': 'Playboy',
'Pshares(?:\\.org|)': 'Ploughshares',
'Poetry ?magazine(?:\\.org|)': 'Poetry (magazine)',
'Poetry ?Ireland\\.ie': 'Poetry Ireland Review',
'Poetry(?:\\.co\\.uk)': 'Poetry London',
'poetry ?salzburg(?:\\.com|)': 'Poetry Salzburg Review',
'pw(?:\\.org|)': 'Poets & Writers',
'PopMatters(?:\\.com|)': 'PopMatters',
'q(?:themusic\\.com| magazine)': 'Q (magazine)',
'record ?collector ?mag(?:\\.com|azine|)': 'Record Collector',
'Rolling ?stone(?:\\.com(?:\\.\\w{2}|)| magazine)': 'Rolling Stone',
'Shape ?(?:magazine|)(?:\\.com|)': 'Shape (magazine)',
'sound ?on ?sound(?:\\.com|)': 'Sound on Sound',
'Spin ?(?:magazine|)(?:\\.com|)': 'Spin (magazine)',
'Sputnikmusic(?:\\.com|)': 'Sputnikmusic',
'Standpoint ?mag(?:azine|)(?:\\.co\\.uk|)': 'Standpoint',
'Stylus\\.com': 'Stylus Magazine',
'Tate(?:\\.org\\.uk|)': 'Tate Etc.',
'aprweb(?:\\.org|)': 'The American Poetry Review',
'painters-online(?:\\.co\\.uk|)': 'The Artist',
'Believer ?mag(?:azine|)(?:\\.com|)': 'The Believer',
'(?:The |)Brooklyn ?Rail(?:\\.org|)': 'The Brooklyn Rail',
'Burlington(?:\\.org\\.uk| magazine)': 'The Burlington Magazine',
'The ?Fly\\.co\\.uk': 'The Fly',
'ny ?Books(?:\\.com|)': 'The New York Review of Books',
'(?:The ?|)Paris ?Review(?:\\.org|)': 'The Paris Review',
'TheReader(?:\\.org\\.uk)': 'The Reader',
'Stinging ?Fly(?:\\.org|)': 'The Stinging Fly',
'the-tls(?:\\.co\\.uk|)': 'The Times Literary Supplement',
'TheWire\\.co\\.uk': 'The Wire',
'McSweeneys(?:\\.net|)': 'Timothy McSweeney\'s Quarterly Concern',
'Tin ?House(?:\\.com|)': 'Tin House',
'Uncut\\.co\\.uk': 'Uncut',
'vibe\\.com': 'Vibe (magazine)',
'All-Story(?:\\.com|)': 'Zoetrope: All-Story',
//special interest
'airforcetimes(?:\\.com|)': 'Air Force Times',
'allure(?:\\.com|)': 'Allure',
'aviationweek(?:\\.com|)': 'Aviation Week & Space Technology',
'auto ?sport(?:\\.com|)': 'Autosport',
'badger ?gp(?:\\.com|)': 'Badger GP',
'cosmopolitan(?:\\.com| magazine)': 'Cosmopolitan',
'elle(?:uk|)(?:\\.com|\\.\\w{2,3}| magazine)': 'Elle',
'britannica(?:\\.com|)': 'Encyclopædia Britannica',
'Encyclop(?:ae|æ|e)dia britannica': 'Encyclopædia Britannica',
'engadget(?:\\.com|)': 'Engadget',
'FairwaysandGreens(?:\\.com|)': 'Fairways + Greens',
'fhm(?:\\.com|)': 'FHM',
'ForeGeorgia(?:\\.com|)': 'Fore Georgia',
'f1 ?racing(?:\\.co\\.uk| magazine|)': 'F1 Racing',
'glamour(?:\\.com|\\.\\w{2,3}| magazine)': 'Glamour (magazine)',
'goal(?:\\.com|)': 'Goal (website)',
'GolfCourseNewsInternational(?:\\.com|)': 'Golf Course News International',
'GolfDigest(?:\\.com|)': 'Golf Digest',
'estateswestGolfLiving(?:\\.com|)': 'Golf Living',
'Golf(?:magazine|)(?:\\.com|)': 'Golf Magazine',
'Golfinternationalmag(?:\\.com|)': 'Golf International Magazine',
'GolfPunkmag(?:\\.com|)': 'Golf Punk',
'GolfWorld(?:\\.com|)': 'Golf World',
'Golf ?Styles ?online(?:\\.com|)': 'GolfStyles',
'Golf ?Today(?:\\.co\\.uk| ?magazine|)': 'Golf Today',
'Golfweek(?:\\.com)': 'Golfweek',
'HKGolfer(?:\\.com|)': 'HK Golfer',
'InsideGolf(?:\\.co\\.au|)': 'Inside Golf',
'arniesKingdom(?:\\.com|)': 'Kingdom magazine',
'Linksmagazine(?:\\.com|)': 'Links',
'NationalClubGolfer(?:\\.com|)': 'National Club Golfer',
'nuts ?magazine(?:\\.co\\.uk|)': 'Nuts (magazine)',
'Putt ?magazine(?:\\.co\\.uk|)': 'Putt',
'Scoregolf(?:\\.com|)': 'Scoregolf',
'sport[- ]?magazine(?:\\.co\\.uk|)': 'Sport (UK magazine)',
'TheCut(?:\\.co\\.nz|)': 'The Cut (magazine)',
'TodaysGolfer(?:\\.co\\.uk|)': 'Today\'s Golfer',
'thelawyer(?:\\.com|)': 'The Lawyer',
'Hollywood ?Reporter(?:\\.com|)': 'The Hollywood Reporter',
'playbill(?:\\.com|)': 'Playbill',
'variety(?:\\.com| magazine)': 'Variety (magazine)',
'teenvogue(?:\\.com|)': 'Teen Vogue',
'legal-forum\\.uchicago\\.edu': 'University of Chicago Legal Forum',
'vogue(?:\\.co\\.uk)': 'British Vogue',
'vogue(?:\\.fr)': 'Vogue Paris',
'vogue(?:\\.(?:com|\\w{2})| magazine)': 'Vogue',
'(?:vanityfair(?:\\.com|)|vf\\.com)': 'Vanity Fair',
'wsc(?:\\.co\\.uk)': 'When Saturday Comes',
'motor ?sport ?magazine(?:\\.com|)': 'Motor Sport',
'nature(?:\\.com|)': 'Nature (journal)',
'Road ?(?:And|&) ?Track(?:\\.com|)': 'Road & Track',
'science(?:\\.com|)': 'Science (journal)',
'scientificamerican(?:\\.com|)': 'Scientific American',
'hi-?fi ?news(?:\\.co\\.uk|)': 'Hi-Fi News & Record Review',
'what ?hi-?fi(?:\\.com|\\.co\\.uk|)': 'What Hi-Fi? Sound and Vision',
'stereophile(?:\\.com|)': 'Stereophile',
'theabsolutesound(?:\\.com|)': 'The Absolute Sound',
'autocar(?:\\.co\\.uk|)': 'Autocar',
'autoexpress(?:\\.co\\.uk|)': 'Auto Express',
'carmagazine(?:\\.co\\.uk|)': 'Car Magazine',
'fastcar(?:\\.co\\.uk|)': 'Fast Car',
'top ?gear(?:\\.com|)': 'Top Gear',
'newscientist(?:\\.com|)': 'New Scientist',
'Billboard(?:\\.com|\\.biz| magazine|)': 'Billboard (magazine)',
'Deadline(?:\\.com)': 'Deadline Hollywood',
'Empire ?(?:online(?:\\.com|)|magazine)': 'Empire (film magazine)',
'computer ?world(?:\\.com| magazine|)': 'Computerworld',
'computer ?weekly(?:\\.com| magazine|)': 'Computer Weekly',
'hansard\\.parliament\\.uk': 'Hansard',
'information ?week(?:\\.com| magazine|)': 'InformationWeek',
'pc ?world(?:\\.com| magazine|)': 'PC World',
'pc ?mag(?:\\.com|)': 'PC Magazine',
'mac ?world(?:\\.com| magazine|)': 'MacWorld',
'mma ?weekly(?:\\.com|)': 'MMA Weekly',
'nationalgeographic(?:\\.com| magazine)': 'National Geographic',
'navytimes(?:\\.com|)': 'Navy Times',
'nonleaguedaily(?:\\.com|)': 'Non League Daily',
'sporting ?life(?:\\.com| magazine)': 'Sporting Life (British newspaper)',
'(?:si|sportsillustrated)(?:\\.cnn|)(?:\\.com)': 'Sports Illustrated',
'swimming ?world(?: magazine(?:\\.com|)|)': 'Swimming World',
'thestage(?:\\.co\\.uk|)': 'The Stage',
'The ?verge(?: \\(website\\)|\\.com)': 'The Verge',
'Windingroad(?:\\.com|)': 'Winding Road',
'Wired(?:\\.com|\\.co\\.uk| magazine)': 'Wired (magazine)',
'(?:Womens ?Wear ?Daily|Wwd)(?:\\.com|)': 'Women\'s Wear Daily',
'(?:The |)CIA (?:World |)Factbook': 'The World Factbook',
//Professional
'Medicalnewstoday(?:\\.com|)': 'Medical News Today',
'publishersweekly(?:\\.com|)': 'Publishers Weekly',
'ad(?:vertising|\\s|)age(?:\\.com|)': 'Advertising Age',
'adweek(?:\\.com|)': 'Adweek',
'bmj(?:\\.com|)': 'BMJ',
'brandrepublic(?:\\.com|)': 'Brand Republic',
'brandweek(?:\\.com|)': 'Brandweek',
'campaignlive(?:\\.com|\\.co\\.uk|)': 'Campaign (magazine)',
'campaign ?uk': 'Campaign (magazine)',
'marketingweek(?:\\.com|\\.co\\.uk|)': 'Marketing Week',
'editor ?and ?publisher(?:\\.com|)': 'Editor & Publisher',
'thelancet(?:\\.com|)': 'The Lancet',
//Spanish-language dailies
'abc\\.es': 'ABC (newspaper)',
'cincodias(?:\\.com|\\.es|)': 'Cinco Días',
'elcomercio(?:\\.com|)': 'El Comercio',
'elcomercio\\.es': 'El Comercio (Spain)',
'elcomercio\\.pe': 'El Comercio (Peru)',
'elcorreo(?:\\.com|\\.es|)': 'El Correo',
'eleconomista(?:\\.com|\\.es|)': 'El Economista',
'elmundo(?:\\.es)': 'El Mundo (Spain)',
'elmundo(?:\\.com)': 'El Mundo (Colombia)',
'elmundodeportivo(?:\\.com|\\.es|)': 'Mundo Deportivo',
'elpais(?:\\.com|\\.es|)': 'El País',
'elperiodicodearagon(?:\\.com|\\.es|)': 'El Periódico',
'el ?universal(?:\\.com\\.co)': 'El Universal (Cartagena)',
'el ?universal(?:\\.com\\.mx)': 'El Universal (Mexico City)',
'el ?universal(?:\\.com)': 'El Universal (Caracas)',
'estadiodeportivo(?:\\.com|\\.es|)': 'Estadio Deportivo',
'expansion(?:\\.com|\\.es)': 'Expansión',
'larazon(?:\\.com|\\.es|)': 'La Razón',
'lavanguardia(?:\\.com|\\.es|)': 'La Vanguardia',
'lavozdegalicia(?:\\.com|\\.es|)': 'La Voz de Galicia',
'marca(?:\\.com|\\.es|)': 'Marca (newspaper)',
'neg-ocio(?:\\.com|\\.es|)': 'Negocio & Estilo de Vida',
'negocios(?:\\.com|\\.es|)': 'La Gaceta de los Negocios',
'noticias-bolsa(?:\\.com|\\.es|)': 'Noticias Bolsa',
'publico(?:\\.es)': 'Público (Spain)',
'publico(?:\\.pu)': 'Público (Portugal)',
'quediario(?:\\.com|\\.es|)': 'Qué!',
'sport(?:\\.es|-english\\.com)': 'Sport (Spanish newspaper)',
'superdeporte(?:\\.com|\\.es|)': 'Super Deporte',
'diariodecaracas(?:\\.com)': 'El Diario de Caracas',
'diariovea(?:\\.com\\.ve|)': 'Diario VEA',
'el-nacional(?:\\.com)': 'El Nacional (Caracas)',
'talcualdigital(?:\\.com)': 'Tal Cual',
'ultimasnoticias(?:\\.com\\.ve|)': 'Últimas Noticias',
'eluniversal(?:\\.com)': 'El Universal',
//Finnish-language dailies (Helsinki)
'Aamulehti(?:\\.fi|)': 'Aamulehti',
'Aamuposti(?:\\.fi|)': 'Aamuposti',
'Demari(?:\\.fi|)': 'Demokraatti',
'hs\\.fi': 'Helsingin Sanomat',
'kansanuutiset(?:\\.fi|)': 'Kansan Uutiset',
'kauppalehti(?:\\.fi|)': 'Kauppalehti',
'kaloussanomat(?:\\.fi|)': 'Taloussanomat',
//French-language dailies
'la-croix(?:\\.com|\\.fr|)': 'La Croix',
'(?:le ?|)monde[- ]diplomatique(?:\\.fr|)': 'Le Monde diplomatique',
'(?:le ?|)monde(?:\\.com|\\.fr|)': 'Le Monde',
'(?:le ?|)figaro(?:\\.com|\\.fr|)': 'Le Figaro',
'le ?parisien(?:\\.com|\\.fr|)': 'Le Parisien',
'lib[eé]ration\\.fr': 'Libération',
'humanite(?:\\.com|\\.fr|)': 'L\'Humanité',
'francetvinfo(?:\\.com|\\.fr|)': 'France Info',
'france ?soir(?:\\.com|\\.fr|)': 'France-Soir',
'mediapart(?:\\.com|\\.fr)': 'Mediapart',
'lesechos(?:\\.com|\\.fr|)': 'Les Échos (France)',
'latribune(?:\\.com|\\.fr|)': 'La Tribune',
'lequipe(?:\\.com|\\.fr|)': 'L\'Équipe',
'20minutes(?:\\.fr|)': '20 Minutes (France)',
// 'directmatin(?:\\.com|\\.fr|)': 'Direct Matin', //no article
// 'directsoir(?:\\.com|\\.fr|)': 'Direct Soir', //no article
'metro\\.co\\.uk': 'Metro (British newspaper)',
'lecanardenchaine(?:\\.com|\\.fr|)': 'Le Canard enchaîné',
'(?:le|)nouvelobs(?:\\.com|\\.fr|)': 'L\'Obs',
'lexpress(?:\\.fr|)': 'L\'Express',
'lepoint(?:\\.com|\\.fr|)': 'Le Point',
'lejdd(?:\\.com|\\.fr|)': 'Le Journal du Dimanche',
'marianne(?:\\.net|)': 'Marianne (magazine)',
'parismatch(?:\\.com|\\.fr|)': 'Paris Match',
'telerama(?:\\.com|\\.fr|)': 'Télérama',
'courrierinternational(?:\\.com|\\.fr|)': 'Courrier International',
'minute-hebdo(?:\\.com|\\.fr|)': 'Minute (newspaper)',
'ledevoir(?:\\.com|)': 'Le Devoir',
'lesoleil\\.com': 'Le Soleil (Quebec)',
'ouest-france(?:\\.fr|)': 'Ouest-France',
'lejournaldemontreal(?:\\.com|)': 'Le Journal de Montréal',
'(?:la|cyber)presse(?:\\.com|\\.ca)': 'La Presse (Canadian newspaper)',
'journaldequebec(?:\\.com|)': 'Le Journal de Québec',
'elwatan(?:\\.com|)': 'El Watan',
'politico(?:\\.eu|\\.fr)': 'Politico Europe',
//German-language dailies
'20min(?:\\.ch|)': '20 Minuten',
'Aargauer ?Zeitung(?:\\.ch|)': 'Aargauer Zeitung',
'baz(?:\\.ch|)': 'Basler Zeitung',
'Baslerstab(?:\\.ch|)': 'Baslerstab',
'Berner ?Zeitung(?:\\.ch|)': 'Berner Zeitung',
'Bieler ?Tagblatt(?:\\.ch|)': 'Bieler Tagblatt',
'Blick(?:\\.ch|)': 'Blick',
'tagesspiegel(?:\\.de|)': 'Der Tagesspiegel',
'Sudostschweiz(?:\\.ch|)': 'Die Südostschweiz',
'bild(?:\\.de|)': 'Bild',
'taz(?:\\.de|)': 'die Tageszeitung',
'welt(?:\\.de|)': 'Die Welt',
'zeit(?:\\.de|)': 'Die Zeit',
'ftd(?:\\.de|)': 'Financial Times Deutschland',
'faz(?:\\.net|)': 'Frankfurter Allgemeine Zeitung',
'fr-online(?:\\.de|)': 'Frankfurter Rundschau',
'handelsblatt(?:\\.de|\\.com)': 'Handelsblatt',
'jungefreiheit(?:\\.de|)': 'Junge Freiheit',
'jungewelt(?:\\.de|)': 'Junge Welt',
'Luzerner ?Zeitung(?:\\.ch|)': 'Neue Luzerner Zeitung',
'nzz(?:\\.ch|)': 'Neue Zürcher Zeitung',
'neues-deutschland(?:\\.de|)': 'Neues Deutschland',
'Tagblatt(?:\\.ch|)': 'St. Galler Tagblatt',
'sueddeutsche(?:\\.de|)': 'Süddeutsche Zeitung',
'Tages ?Anzeiger(?:\\.ch|)': 'Tages Anzeiger',
'TagesWoche(?:\\.ch|)': 'TagesWoche',
//Italian-language newspapers
'avvenire(?:\\.it)': 'Avvenire',
'corriere(?:\\.it)': 'Corriere della Sera',
'corrieredellosport(?:\\.it|)': 'Corriere dello Sport – Stadio',
'ilfattoquotidiano(?:\\.it|)': 'Il Fatto Quotidiano',
'ilfoglio(?:\\.it|)': 'Il Foglio',
'ilgiornale(?:\\.it|)': 'Il Giornale',
'ilgiorno(?:\\.it|)': 'Il Giorno (newspaper)',
'ilmanifesto(?:\\.it|)': 'il manifesto',
'ilmattino(?:\\.it|)': 'Il Mattino',
'ilmessaggero(?:\\.it|)': 'Il Messaggero',
'ilrestodelcarlino(?:\\.it|)': 'il Resto del Carlino',
'ilriformista(?:\\.it|)': 'Il Riformista',
'ilsecoloxix(?:\\.it|)': 'Il Secolo XIX',
'ilsole24ore(?:\\.com|)': 'Il Sole 24 Ore',
'iltempo(?:\\.it|)': 'Il Tempo',
'gazzetta(?:\\.it)': 'La Gazzetta dello Sport',
'lanazione(?:\\.it|)': 'La Nazione',
'repubblica(?:\\.it|)': 'la Repubblica',
'lastampa(?:\\.it|)': 'La Stampa',
'espressonline(?:\\.it|)': 'L\'espresso',
'lettera43(?:\\.it)': 'lettera43',
'punto-informatico(?:\\.it|)': 'Punto Informatico',
'tuttosport(?:\\.com)': 'Tuttosport',
'wallstreetitalia(?:\\.com|)': 'Wall Street Italia',
//Afrikaans-language dailies
'Beeld(?:\\.com|)': 'Beeld',
'Die ?Burger(?:\\.co\\.za|)': 'Die Burger',
'Netwerk24(?:\\.com|)': 'Die Burger',
'Die ?Son(?:\\.co\\.za|)': 'Die Son',
'Isolezwe(?:\\.co\\.za|)': 'Isolezwe',
'Volksblad(?:\\.com|)': 'Volksblad',
'Ziwaphi(?:\\.co\\.za|)': 'Ziwaphi',
//Portuguese-language dailies
'folha(?:\\.info|)\\b': 'Brasil em Folhas',
'correiobraziliense(?:\\.com\\.br|)': 'Correio Braziliense',
'dm(?:\\.com\\.br)': 'Diário da Manhã',
'dou(?:\\.com\\.br)': 'Diário Oficial da União',
'em(?:\\.com\\.br)': 'Estado de Minas',
'folha(?:\\.com\\.br|)': 'Folha de S. Paulo',
'jbonline(?:\\.com\\.br|)': 'Jornal do Brasil',
'estadao(?:\\.com\\.br|)': 'O Estado de S. Paulo',
'oglobo.globo(?:\\.com|)': 'O Globo',
'zh(?:\\.com\\.br)': 'Zero Hora',
//Other language dailies -Europe, Middle East
'aawsat(?:\\.com|)': 'Asharq Al-Awsat',
'ad(?:\\.nl)': 'Algemeen Dagblad',
'aftonbladet(?:\\.se|)': 'Aftonbladet',
'al ?ahram(?:\\.org\\.eg|)': 'Al-Ahram',
'alo(?:\\.rs|)': 'Alo!',
'Berlingske\\.dk': 'Berlingske',
'blesk(?:\\.cz|)': 'Blesk',
'blic(?:\\.rs|)': 'Blic',
'Arbejderen(?:\\.dk|)': 'Dagbladet Arbejderen',
'Borsen(?:\\.dk|)': 'Dagbladet Børsen',
'Information(?:\\.dk)': 'Dagbladet Information',
'Politiken(?:\\.dk|)': 'Politiken',
'dagen(?:\\.se|)': 'Dagen',
'dabladet(?:\\.no|)': 'Dagbladet',
'danas(?:\\.rs)': 'Danas (newspaper)',
'dn(?:\\.se)': 'Dagens Nyheter',
'depers(?:\\.nl|)': 'De Pers',
'hrvatskarijec(?:\\.rs)': 'Hrvatska riječ',
// 'informer(?:\\.rs|)': 'Informer (newspaper)', //notoriously unreliable
'kurir(?:\\.rs|)': 'Kurir',
'libertatea(?:\\.rs|)': 'Libertatea (Pančevo)',
'magyarszo(?:\\.rs|)': 'Magyar Szó',
'politika(?:\\.rs|)': 'Politika',
'zurnal(?:\\.rs|)': 'Sportski žurnal',
'telegraaf(?:\\.nl|)': 'De Telegraaf',
'novosti(?:\\.rs|)': 'Večernje novosti',
'volkskrant(?:\\.nl|)': 'De Volkskrant',
'egypttoday(?:\\.com|)': 'Egypt Today',
'ekstrabladet(?:\\.dk|)': 'Ekstra Bladet',
'expressen(?:\\.se|)': 'Expressen',
'e-fakt(?:\\.pl|)': 'Fakt',
'wyborcza(?:\\.pl|)': 'Gazeta Wyborcza',
'postimees(?:\\.ee|)': 'Postimees',
'baltictimes\\.com': 'The Baltic Times',
'gp\\.se': 'Göteborgs-Posten',
'haaretz\\.co(?:\\.il|m)': 'Haaretz',
'ha\'aretz': 'Haaretz',
'fd\\.nl': 'Het Financieele Dagblad',
'parool(?:\\.nl|)': 'Het Parool',
'ihned(?:\\.cz|)': 'Hospodářské noviny',
'hurriyet(?:\\.com\\.tr|)': 'Hürriyet',
'izvestia(?:\\.ru|)': 'Izvestia',
'jp\\.dk': 'Jyllands-Posten',
'lidovky(?:\\.cz|)': 'Lidové noviny',
'clubmetro(?:\\.nl|)': 'Metro',
'idnes(?:\\.cz|)': 'Mladá fronta DNES',
'nd\\.nl': 'Nederlands Dagblad',
'nrc\\.nl': 'NRC Handelsblad',
'nrcnext(?:\\.nl|)': 'NRC Next',
'gazeta-pravda(?:\\.ru|)': 'Pravda',
'(?:the ?|)Moscow ?Times(?:\\.ru|)': 'The Moscow Times',
'(?:novaya ?gazeta(?:\\.[er]u|)|Новая газета)': 'Novaya Gazeta',
'lenta(?:\\.ru|)': 'Lenta.ru',
'newsru(?:\\.com|)': 'NEWSru',
'newtimes\\.ru': 'The New Times (magazine)',
'ng\\.ru': 'Nezavisimaya Gazeta',
'pravda(?:\\.com\\.ua)': 'Ukrayinska Pravda',
'pravo.novinky(?:\\.cz|)': 'Právo',
'sports\\.pl': 'Przegląd Sportowy',
'pb\\.pl': 'Puls Biznesu',
'reformatorischdagblad(?:\\.nl|)': 'Reformatorisch Dagblad',
'rp\\.pl': 'Rzeczpospolita',
'sondagsavisen(?:\\.dk|)': 'Søndagsavisen',
'spectator(?:\\.sme\\.sl)': 'The Slovak Spectator',
'spitsnet(?:\\.nl|)': 'Spits (newspaper)',
'svd(?:\\.se|)': 'Svenska Dagbladet',
'sydsvenskan(?:\\.se)': 'Sydsvenskan',
'trouw(?:\\.nl|)': 'Trouw',
'urbanavis(?:\\.dk|)': 'Urban',
'Večernji(?:\\.hr|)': 'Večernji list',
'weekendavisen(?:\\.dk|)': 'Weekendavisen',
'ynet ?news(?:\\.com)': 'Ynet',
//Other language dailies -Asia
'asahi\\.com': 'The Asahi Shimbun',
'dong-?a(?: ilbo|)(?:\\.com|)': 'The Dong-a Ilbo',
'Mainichi(?:\\.co\\.jp|)': 'Mainichi Shimbun',
'(?:the ?|)(?:daily |)yomiuri(?:\\.co\\.jp|)': 'Yomiuri Shimbun',
'(?:the ?|)yomiuri daily': 'Yomiuri Shimbun',
'(?:The ?|)liberty ?times(?:\\.com(?:\\.tw|)|)': 'Liberty Times',
'自由(?:時|電子)報': 'Liberty Times',
'am730\\.com\\.hk': 'am730 |language=zh |location=Hong Kong',
'(?:appledaily|蘋果日報)(?:\\.com|)': 'Apple Daily |language=zh',
'(?:(?:apple daily |)蘋果日報)': 'Apple Daily |language=zh',
'hk\\.apple\\.nextmedia\\.com': 'Apple Daily |language=zh |location=Hong Kong',
'(?:appledaily\\.com\\.tw)': 'Apple Daily |language=zh |location=Taiwan',
'hk01\\.com': 'HK01 |language=zh |location=Hong Kong',
'metrohk\\.com\\.hk': 'Metro Daily |language=zh |location=Hong Kong',
'(?:metrodaily\\.hk|都市日報)': 'Metro Daily |language=zh |location=Hong Kong',
'(?:thestandnews\\.com)': 'Stand News |language=zh |location=Hong Kong',
'立場新聞 Stand News': 'Stand News |language=zh |location=Hong Kong',
'ming ?pao ?(?:daily ?(?:news ?|)|)(?:\\.com|)': 'Ming Pao',
'(?:明[報报]|明報新聞網 - 每日明報)': 'Ming Pao |language=zh',
'sing ?pao ?(?:\\.com|)': 'Sing Pao Daily News |language=zh',
'成[報报]': 'Sing Pao Daily News |language=zh',
'wenweipo(?:\\.com|)': 'Wen Wei Po |language=zh',
'文(匯報|汇报)': 'Wen Wei Po |language=zh',
'(?:大公[報报]|takungpao(?:\\.com\\.hk|))': 'Ta Kung Po |language=zh',
'(?:香港經濟日報|香港经济日报|hket.com)': 'Hong Kong Economic Times |language=zh',
'oriental ?daily(?:\\.com\\.hk|)': 'Oriental Daily News',
'the-sun(?:\\.on\\.cc|)': 'The Sun (Hong Kong)',
'(?:(?:on\\.cc|)东网|東網)': 'Oriental Daily News |language=zh',
'sing ?tao(?:\\.(?:com|ca)|)': 'Sing Tao Daily',
'星[岛島]日[報报]': 'Sing Tao Daily |language=zh',
'紐約時報': 'New York Times |language=zh',
'Yahoo 新聞香港': 'Yahoo! News |language=zh',
//Other websites
'rediff\\.com': 'Rediff.com',
//Other language magazines
'spiegel(?:\\.de|)': 'Der Spiegel',
'stern(?:\\.de|)': 'Stern',
'wiwo(?:\\.de|)': 'Wirtschaftswoche'
};
var word, newWord;
for (var word in table) {
newWord = '$1' + table[ word ] + '$2';
newWord1 = 'title= <!--ACTUAL ARTICLE TITLE BELONGS HERE! --> \|work$1' + table[ word ] + '$2';
newWord2 = '$1\'\'' + table[ word ] + '\'\'$2';
newWord3 = '$1\'\'\[\[' + table[ word ] + '\]\]\'\'$2';
newWord4 = 'work$1' + table[ word ] + '$2';
var txt="";
try {
// within citation templates - italicisation ensured [later] through change of parameters by function 'Ohc_sourcework'
// source names to 'wikiname', unlinked
var re = new RegExp('((?:agency|author|journal|magazine|newspaper|periodical|website|work)[ ]*=[ ]*)(?:\\w+\\.|)' + word + '(?: newspaper|,? online|)\\.?([\\s]*[|}])', 'gi');
regex(re, newWord);
// source names to 'wikiname', linked (simple, without pipes)
var re = new RegExp('((?:agency|author|journal|magazine|newspaper|periodical|website|work)[ ]*=[ ]*\\[\\[)(?:\\w+\\.|)' + word + '(?: newspaper| online| website|)(\\]\\][\\s\\.]*[|}])', 'gi');
regex(re, newWord);
// source names to 'wikiname', linked (with pipes)
var re = new RegExp('((?:agency|author|journal|magazine|newspaper|periodical|website|work)[ ]*=[ ]*\\[\\[(?:[^|\\]]*\\||))(?:\\w+\\.|)' + word + '(?: newspaper| online| website|)(\\]\\][\\s\\.]*[|}])', 'gi');
regex(re, newWord);
// source names to 'wikiname', unlinked (misclassified)
var re = new RegExp('(?:author|publisher|via)([ ]*=[ ]*)(?:\\w+\\.|)' + word + '(?:,? online|)\\.?([\\s]*[|}])', 'gi');
regex(re, newWord4);
// source names to 'wikiname', linked (simple, without pipes)
var re = new RegExp('(?:author|publisher|via)([ ]*=[ ]*\\[\\[)(?:\\w+\\.|)' + word + '(?: newspaper| online| website|)(\\]\\][\\s\\.]*[|}])', 'gi');
regex(re, newWord4);
// source names to 'wikiname', linked (with pipes)
var re = new RegExp('(?:author|publisher|via)([ ]*=[ ]*\\[\\[(?:[^|\\]]*\\||))(?:\\w+\\.|)' + word + '(?: newspaper| online| website|)(\\]\\][\\s\\.]*[|}])', 'gi');
regex(re, newWord4);
// source in title parameter
var re = new RegExp('(?:title)([ ]*=[ ]*)(?:\\w+\\.|)' + word + '(?:,? online|)\\.?([\\s]*[|}])', 'gi');
regex(re, newWord1);
// source names to 'wikiname', linked (simple, without pipes)
var re = new RegExp('(?:title)([ ]*=[ ]*\\[\\[)(?:\\w+\\.|)' + word + '(?: newspaper| online| website|)(\\]\\][\\s\\.]*[|}])', 'gi');
regex(re, newWord1);
// source names to 'wikiname', linked (with pipes)
var re = new RegExp('(?:title)([ ]*=[ ]*\\[\\[(?:[^|\\]]*\\||))(?:\\w+\\.|)' + word + '(?: newspaper| online| website|)(\\]\\][\\s\\.]*[|}])', 'gi');
regex(re, newWord1);
// outside citation templates
// source names to italicised 'wikiname' - unlinked
var re = new RegExp('(<ref[^>]*>[^<{]+?[-\\]\\.},;–]\\s+)(?:\\w+\\.|)' + word + '(?: newspaper| online| website|)((?:[,\\.]?[^\\w\' ][^\\]<]*?|)<\\/ref>)', 'gi');
regex(re, newWord2); //NOTE: adaptation to italicise is built into 'newWord2'
// italicised source names to 'wikiname' - unlinked
var re = new RegExp('(<ref[^>]*>[^<{|]+?\\s+\'\')(?:\\w+\\.|)' + word + '(?: newspaper| online| website|)(\'\'[^<]*?<\\/ref>)', 'gi');
regex(re, newWord);
// unitalicised 'wikiname' - linked (piped + unpiped)
var re = new RegExp('(<ref[^>]*>[^<{|]+?[-\\]\\.},;–]\\s*)\\[\\[(?:[^|\\]]*\\||)' + word + '(?: newspaper| online| website|)\\]\\]([^<]*?<\\/ref>)', 'gi');
regex(re, newWord3); //NOTE: adaptation to italicise and re-link sources is built into 'newWord3'
// italicised 'wikiname' - linked (piped + unpiped)
var re = new RegExp('(<ref[^>]*>[^<{|]+?[-\\]\\.},;–]\\s*)\'\'\\[\\[(?:[^|\\]]*\\||)' + word + '(?: newspaper| online| website|)\\]\\]\'\'([^<]*?<\\/ref>)', 'gi');
regex(re, newWord3); //NOTE: adaptation to re-italicise and re-link sources is built into 'newWord3'
}
catch(err) {
txt="There was an error on function Ohc_sourcename(), when changing '"+ word + "' => '"+ table[word] +"'.\n\n";
txt+="Error: " + err.message + "\n\n";
txt+="Click OK to continue.\n\n";
alert(txt);
}
}
//Self-publishing sites
// NON-ITALICISING -switching all to the non-italicising 'via' parameter; strips italicising quote marks if citation not inside citation template
var table = {
//(British Newspaper Archive|Google Books|Proquest|Scribd|web(?:\.archive\|citation)(?:\.org|))
'books.google(?:\\.com|)': 'Google Books',
'sites.google(?:\\.com|)': 'Google Sites',
'facebook(?:\\.com|)': 'Facebook',
'findarticles(?:\\.com|)': 'Find Articles',
'gutenberg\\.org': 'Project Gutenberg',
'highbeam(?:\\.com|)': 'HighBeam Research',
'issuu(?:\\.com|)': 'Issuu',
'newspapers(?:\\.com|)': 'Newspapers\.com',
'pressreader(?:\\.com|)': 'PressReader',
'Scribd(?:\\.com|)': 'Scribd',
'twi?tte?r(?:\\.com|Inc\\.|)': 'Twitter',
'youtube(?:\\.com|)': 'YouTube',
'vimeo(?:\\.com|)': 'Vimeo'
};
var word, newWord;
for (var word in table) {
newWord = 'via$1' + table[ word ] + '$2';
newWord2 = '$1' + table[ word ] + '$2';
newWord3 = '$1\[\[' + table[ word ] + '\]\]$2';
var txt="";
try {
// source names that are self-published - linked –>unlinked
var re = new RegExp('(?:agency|author|journal|magazine|newspaper|periodical|publisher|via|website|work)([ ]*=[ ]*\\[\\[)(?:\\w+\\.|)' + word + '(?: newspaper| online| website|)(\\]\\][\\s\\.]*[|}])', 'gi');
regex( re, newWord );
// source names that are self-published - unlinked
var re = new RegExp('(?:agency|author|journal|magazine|newspaper|periodical|publisher|via|website|work)([ ]*=[ ]*)(?:\\w+\\.|)' + word + '(?: newspaper| online| website|)\\.?([\\s]*[|}])', 'gi');
regex( re, newWord );
// unitalicise agency name - unlinked
var re = new RegExp('(<ref[^>]*>[^<]+?\\s+)\'\'(?:\\w+\\.|)' + word + '(?: newspaper| online| website|)\'\'([^<]*?<\\/ref>)', 'gi');
regex(re, newWord2);
// unabbreviate and unpipe agency name
var re = new RegExp('(<ref[^>]*>[^<]+?\\s*)\\[\\[(?:\\w+\\.|)' + word + '(?: newspaper| online| website|)\\]\\]([^<]*?<\\/ref>)', 'gi');
regex(re, newWord3); //NOTE: adaptation to un-italicise linked sources and relink is built into 'newWord2'
// unitalicise agency name - linked
var re = new RegExp('(<ref[^>]*>[^<]+?\\s+)\'\'\\[\\[(?:\\w+\\.|)' + word + '(?: newspaper| online| website|)\\]\\]\'\'([^<]*?<\\/ref>)', 'gi');
regex(re, newWord3); //NOTE: adaptation to un-italicise linked sources and relink is built into 'newWord3'
}
catch(err) {
txt="There was an error on function Ohc_sourcename(), when changing '"+ word + "' => '"+ table[word] +"'.\n\n";
txt+="Error: " + err.message + "\n\n";
txt+="Click OK to continue.\n\n";
alert(txt);
}
}
//NEWS AGENCIES
// NON-ITALICISING -switching all to the non-italicising 'publisher' parameter; strips italicising quote marks if citation not inside citation template
var table = {
'aap(?:\\.com\\au|)': 'Australian Associated Press',
'(?:ap(?:\\.org|\\.com|)|(?:The ?|)Associated Press)': 'Associated Press',
'(?:afp(?:\\.com|)|Agence France[- ]Presse?)': 'Agence France-Presse',
'amna(?:\\.gr|)': 'Athens-Macedonian News Agency',
'bernama(?:\\.com|)': 'Bernama',
'Cna\\.com\\.tw': 'Central News Agency (Taiwan)',
'kyodo ?news(?:\\.com|\\.jp|)': 'Kyodo News',
'pressassociation(?:\\.com|)': 'Press Association',
'pr ?newswire(?:\\.com|)': 'PR Newswire',
'dpa(?:\\.com|)': 'Deutsche Presse-Agentur',
'ians(?:\\.in|)': 'Indo-Asian News Service',
'interfax(?:\\.com|)': 'Interfax',
'interfax\\.com\\.ua': 'Interfax-Ukraine',
'irin ?news(?:\\.org|)': 'The New Humanitarian',
'irina(?:\\.ir|)': 'Islamic Republic News Agency',
'tass(?:\\.com|)': 'TASS',
'itar-tass(?:\\.com|)': 'Information Telegraph Agency of Russia',
'jta(?:\\.com|\\.org|)': 'Jewish Telegraphic Agency',
'maan ?news(?: ?agency|)(?:\\.net|)': 'Ma\'an News Agency',
'pti(?:news(?:\\.com|)|)': 'Press Trust of India',
'religionnews(?:\\.com|)': 'Religion News Service',
'reuters': 'Reuters',
'(?:ria(?:n\\.com|n?\\.ru|)|RIA ?Novosti)': 'RIA Novosti',
'sputniknews(?:\\.com|)': 'Sputnik News Agency',
'(?:Syrian Arab News Agency|sana(?:\\.sy|))': 'Syrian Arab News Agency',
'telam(?:\\.com\\.ar|)': 'Télam',
'(?:the ?|)canadian ?press(?:\\.com|)': 'The Canadian Press',
'ukrinform(?:\\.com\\.ua\\.net|)': 'Ukrinform',
'unian(?:\\.net|)': 'Ukrainian Independent Information Agency',
'upi(?:\\.com|)': 'United Press International',
'xinhua(?:(?:net|)\\.com|\\.com\\.cn|)': 'Xinhua News Agency',
'(?:en\\.|)yna.co.kr': 'Yonhap News Agency'
};
var word, newWord;
for (var word in table) {
newWord = 'agency$1' + table[ word ] + '$2';
newWord2 = '$1' + table[ word ] + '$2';
newWord3 = '$1\[\[' + table[ word ] + '\]\]$2';
var txt="";
try {
// source names that are agencies - linked –>unlinked
var re = new RegExp('(?:agency|author|journal|magazine|newspaper|periodical|publisher|via|website|work)([ ]*=[ ]*\\[\\[)(?:\\w+\\.|)' + word + '(?: newspaper| online| website|)(\\]\\][\\s\\.]*[|}])', 'gi');
regex( re, newWord );
// source names that are agencies - unlinked
var re = new RegExp('(?:agency|author|journal|magazine|newspaper|periodical|publisher|via|website|work)([ ]*=[ ]*)(?:\\w+\\.|)' + word + '(?: newspaper| online| website|)\\.?([\\s]*[|}])', 'gi');
regex( re, newWord );
// unitalicise agency name - unlinked
var re = new RegExp('(<ref[^>]*>[^<]+?\\s+)\'\'(?:\\w+\\.|)' + word + '(?: newspaper| online| website|)\'\'([^<]*?<\\/ref>)', 'gi');
regex(re, newWord2);
// unabbreviate and unpipe agency name
var re = new RegExp('(<ref[^>]*>[^<]+?\\s*)\\[\\[(?:\\w+\\.|)' + word + '(?: newspaper| online| website|)\\]\\]([^<]*?<\\/ref>)', 'gi');
regex(re, newWord3); //NOTE: adaptation to un-italicise linked sources and relink is built into 'newWord2'
// unitalicise agency name - linked
var re = new RegExp('(<ref[^>]*>[^<]+?\\s+)\'\'\\[\\[(?:\\w+\\.|)' + word + '(?: newspaper| online| website|)\\]\\]\'\'([^<]*?<\\/ref>)', 'gi');
regex(re, newWord3); //NOTE: adaptation to un-italicise linked sources and relink is built into 'newWord3'
}
catch(err) {
txt="There was an error on function Ohc_sourcename(), when changing '"+ word + "' => '"+ table[word] +"'.\n\n";
txt+="Error: " + err.message + "\n\n";
txt+="Click OK to continue.\n\n";
alert(txt);
}
}
//Broadcasters, TV/radio stations and networks
// NON-ITALICISING -switching all to the non-italicising 'agency' parameter; strips italicising quote marks if citation not inside citation template
var table = {
//Broadcasters
'abc(?:\\.go|)\\.com': 'American Broadcasting Company',
'abc\\.(?:com\\.au|net(?:\\.au|))': 'Australian Broadcasting Corporation',
'abcnews(?:\\.go|)(?:\\.com|)': 'ABC News',
'alarabiya(?:\\.net|)': 'Al Arabiya',
'al[- ]?jazeera(?:\\.com| \\w+|)': 'Al Jazeera',
'israel ?national ?news(?:\\.com|)': 'Arutz Sheva',
'bbc(?:\\.co\\.uk|\\.com|)': 'BBC',
'british broadcasting corporation': 'BBC',
'bfi(?:\\.org\\.uk|)': 'British Film Institute',
'boxofficeindia(?:\\.com|)': 'Box Office India',
'boxofficemojo(?:\\.com|)': 'Box Office Mojo',
'Canadian Broadcasting Co\\.?(?:mpany|rp\\.?|)': 'Canadian Broadcasting Corporation',
'CapitalFM\\.com\\/London': 'Capital London',
'CapitalFM(?:\\.co\\.uk|\\.com|)': 'Capital Radio',
'cbc(?:\\.ca|)': 'Canadian Broadcasting Corporation',
'radio-canada(?:\\.ca|)': 'CBC/Radio-Canada',
'cbs\\.com': 'CBS',
'cbs?news(?:\\.com|)': 'CBS News',
'channel4(?:\\.co\\.uk|\\.com|)': 'Channel 4',
'channel5(?:\\.co\\.uk|\\.com|)': 'Channel 5',
'channel ?news ?asia(?:\\.com(?:\\.sg|)|)': 'Channel NewsAsia',
'cnbc\\.com': 'CNBC',
'cntv\\.cn': 'China Central Television',
'cnet(?:\\.com|)': 'CNET',
'cmt\\.c(?:a|om)': 'Country Music Television',
'dw\\.(?:de|com)': 'Deutsche Welle',
'disney(?:\\.go|)\\.com': 'Disney',
'E!? ?online(?:\\.com|)': 'E!',
'eurovision(?:\\.tv|)': 'Eurovision Song Contest',
// 'france24(?:\\.com|)': 'France 24',
'soccerway\\.com': 'Soccerway',
'soccernet(?:\\.espn\\.go|)\\.com': 'ESPN FC',
'espn(?:(?:\\.go|)\\.com|\\.co\\.uk|)': 'ESPN',
'fox ?news(?:\\.com|)': 'Fox News',
'Fox News Channel': 'Fox News',
'fox ?sports(?:\\.com|)': 'Fox Sports',
'imdb(?:\\.com|)': 'IMDb',
'Internet Movie Database': 'IMDb',
'kissfmuk(?:\\.com|)': 'KissFM',
'Mitpress.mit.edu': 'The MIT Press',
'msnbc(?:(?:\\.msn|)\\.com|)': 'MSNBC',
'nbcnews(?:\\.com|)': 'NBC News',
'nrk(?:\\.no|)': 'NRK',
'(?:npr|National ?Public ?Radio)': 'NPR',
'officialcharts(?:\\.com|)': 'Official Charts Company',
'pbs(?:\\.org|)': 'PBS',
'presstv(?:\\.ir|)': 'Press TV',
'rfa(?:\\.org|)': 'Radio Free Asia',
'rfi(?:\\.fr|)': 'Radio France Internationale',
'rferl(?:\\.org|)': 'Radio Free Europe/Radio Liberty',
'(?:Radio Free Europe|Radio Liberty)': 'Radio Free Europe/Radio Liberty',
'(?:rt[eéÉ] ?news|rt[eéÉ]\\.ie\\/news)': 'RTÉ News',
'rt(?:\\.com)': 'RT (TV network)',
'russia ?today(?:\\.com|)': 'RT (TV network)',
'rt[eéÉ](?:\\.ie|)': 'Raidió Teilifís Éireann',
'radio[- ]television hong kong': 'RTHK',
'rthk(?:(?:\\.org|)\\.hk)': 'RTHK',
'香港電台': 'RTHK',
'skynews(?:\\.com|\\.co\\.uk|)': 'Sky News',
'news\\.sky\\.com': 'Sky News',
'sky(?:\\.com|\\.co\\.uk)': 'Sky UK',
'tsn(?:\\.ca)': 'The Sports Network',
// 'twi?tte?r(?:\\.com|Inc\\.)': 'Twitter',
// 'ultratop(?:\\.com|\\.be|\\.fr)': 'Ultratop',
'voanews(?:\\.com|)': 'Voice of America',
'zdnet(?:news|)(?:\\.com|)': 'ZDNet',
'All ?movie(?:\\.com|)': 'AllMovie',
'airfrance(?:\\.com|(?:\\.co|)\\.\\w{2}|)': 'Air France',
'amnesty(?:usa|)(?:\\.org|)': 'Amnesty International',
'brits?(?:\\.co\\.uk|awards)': 'Brit Awards',
'boeing(?:\\.com|)': 'Boeing',
'grammy(?:\\.com|)': 'National Academy of Recording Arts and Sciences',
'immd.gov.hk': 'Immigration Department, Hong Kong',
'pland.gov.hk': 'Planning Department, Hong Kong',
'police.gov.hk': 'Hong Kong Police Force',
'td\\.gov\\.hk': 'Transport Department Hong Kong',
'gov\\.hk': 'Government of Hong Kong',
'greenpeace(?:\\.org(?:\\.\\w{2}|)|)': 'Greenpeace',
'hrw(?:\\.org|)': 'Human Rights Watch',
'(msf|doctorswithoutborders)(?:\\.org|)': 'Médecins Sans Frontières',
'national ?theatre?(?:\\.org\\.uk|)': 'Royal National Theatre',
'navy(?:\\.mil)': 'United States Navy',
'nobelprize(?:\\.org|)': 'Nobel Foundation',
'oscars(?:\\.org|)': 'Academy of Motion Picture Arts and Sciences',
'riaa(?:\\.com|)': 'Recording Industry Association of America',
'rottentomatoes(?:\\.com|)': 'Rotten Tomatoes',
'(?:rsf|reporters Sans Fronti[eè]res)(?:\\.org|)': 'Reports Without Borders',
'ted(?:\\.com|)': 'TED (conference)',
'un(?:\\.org|\\.int)': 'United Nations',
'unhcr(?:\\.org|)': 'United Nations High Commission for Refugees',
'unesco(?:\\.org|)': 'UNESCO',
'who(?:\\.int)': 'World Health Organization',
'worldbank(?:\\.org|)': 'World Bank',
//Sporting bodies
'belgianfootball(?:\\.be|)': 'Royal Belgian Football Association',
'chl(?:\\.ca|)': 'Canadian Hockey League',
'eredivisielive(?:\\.nl|)': 'Eredivisie',
'fia(?:\\.com|)': 'Fédération Internationale de l\'Automobile',
'International Automobile Federation': 'Fédération Internationale de l\'Automobile',
'fifa(?:\\.com|)': 'FIFA',
'fina(?:\\.com|)': 'FINA',
'fim-live(?:\\.com|)': 'Fédération Internationale de Motocyclisme',
'International Motorcycling Federation': 'Fédération Internationale de Motocyclisme',
'(?:the ?|)football[\\- ]league(?:\\.co\\.uk|)': 'The Football League',
'Formula ?(?:1|One)(?:\\.com| Group| Administration|)': 'Formula One',
'irb(?:\\.com|)': 'World Rugby',
'International Rugby Board': 'World Rugby',
'mlb(?:\\.com|)': 'Major League Baseball',
'minorleaguebaseball(?:\\.com|)': 'Minor League Baseball',
'nba(?:\\.com|)': 'National Basketball Association',
'olympic(?:\\.org|)': 'International Olympic Committee',
'Premierleague(?:\\.com|)': 'Premier League',
'(?:nfl|superbowl)(?:\\.com|)': 'National Football League',
'nhl(?:\\.com|)': 'National Hockey League',
'pga\\.com': 'Professional Golfers\' Association of America',
'pga\\.info': 'Professional Golfers\' Association (Great Britain and Ireland)',
'pgatour(?:\\.com|)': 'PGA Tour',
'england ?rugby(?:\\.com|)': 'Rugby Football Union',
'rsssf(?:\\.com|)': 'Rec.Sport.Soccer Statistics Foundation',
'ttproleague(?:\\.com|)': 'TT Pro League',
'uefa(?:\\.com|)': 'UEFA',
'wimbledon(?:\\.com)': 'The Championships, Wimbledon',
'worldrugby(?:\\.com)': 'World Rugby',
'thefa(?:\\.com)': 'The Football Association',
//Sports teams
'arsenal(?:\\.com|\\.co\\.uk|)': 'Arsenal F.C.',
'avfc(?:\\.com|\\.co\\.uk|)': 'Aston Villa F.C.',
'chelsea(?:fc|)(?:\\.com|\\.co\\.uk|)': 'Chelsea F.C.',
'Evertonfc(?:\\.com|\\.co\\.uk|)': 'Everton F.C.',
'Fulhamfc(?:\\.com|\\.co\\.uk|)': 'Fulham F.C.',
'Liverpool(?:\\.com|\\.co\\.uk|)': 'Liverpool F.C.',
'mcfc(?:\\.co\\.uk|)': 'Manchester City F.C.',
'man(?:utd| ?united)(?:\\.com|\\.co\\.uk|)': 'Manchester United F.C.',
'nufc(?:\\.co\\.uk)': 'Newcastle United F.C.',
'canaries(?:\\.com|\\.co\\.uk|)': 'Norwich City F.C.',
'qpr(?:\\.com|\\.co\\.uk|)': 'Queens Park Rangers F.C.',
'Readingfc(?:\\.com|\\.co\\.uk|)': 'Reading F.C.',
'saintsfc(?:\\.com|\\.co\\.uk|)': 'Southampton F.C.',
'StokeCityfc(?:\\.com|\\.co\\.uk|)': 'Stoke City F.C.',
'safc(?:\\.co\\.uk|)': 'Sunderland A.F.C.',
'Swansea ?City(?:\\.net|\\.co\\.uk|)': 'Swansea City A.F.C.',
'Tottenham ?Hotspur(?:\\.com|\\.co\\.uk|)': 'Tottenham Hotspur F.C.',
'wba(?:\\.co\\.uk|)': 'West Bromwich Albion F.C.',
'whufc(?:\\.com|)': 'West Ham United F.C.',
'wiganlatics(?:\\.co\\.uk|)': 'Wigan Athletic F.C.',
'Barnsleyfc(?:\\.co\\.uk|)': 'Barnsley F.C.',
'bcfc(?:\\.co\\.uk|)': 'Birmingham City F.C.',
'rovers(?:\\.co\\.uk|)': 'Blackburn Rovers F.C.',
'Blackpoolfc(?:\\.co\\.uk|)': 'Blackpool F.C.',
'bwfc(?:\\.co\\.uk|)': 'Bolton Wanderers F.C.',
'BradfordCityfc(?:\\.co\\.uk|)': 'Bradford City A.F.C.',
'burnley ?football?club(?:\\.co\\.uk|)': 'Burnley F.C.',
'cafc(?:\\.co\\.uk|)': 'Charlton Athletic F.C.',
'ccfc(?:\\.co\\.uk|)': 'Coventry City F.C.',
'cpfc(?:\\.co\\.uk|)': 'Crystal Palace F.C.',
'dcfc(?:\\.co\\.uk|)': 'Derby County F.C.',
'HullCityafc(?:\\.net|\\.co\\.uk|)': 'Hull City A.F.C.',
'itfc(?:\\.co\\.uk|)': 'Ipswich Town F.C.',
'Leeds ?United(?:\\.co\\.uk|\\.com|)': 'Leeds United A.F.C.',
'lcfc(?:\\.co\\.uk|)': 'Leicester City F.C.',
'mfc(?:\\.co\\.uk|)': 'Middlesbrough F.C.',
'Nottingham ?Forest(?:\\.com|\\.co\\.uk|)': 'Nottingham Forest F.C.',
'Oldham ?athletic(?:\\.com|\\.co\\.uk|)': 'Oldham Athletic A.F.C.',
'Portsmouthfc(?:\\.com|\\.co\\.uk|)': 'Portsmouth F.C.',
'sufc(?:\\.co\\.uk|)': 'Sheffield United F.C.',
'swfc(?:\\.co\\.uk|)': 'Sheffield Wednesday F.C.',
'SwindonTownfc(?:\\.com|\\.co\\.uk|)': 'Swindon Town F.C.',
'Watfordfc(?:\\.com|\\.co\\.uk|)': 'Watford F.C.',
'afcWimbledon(?:\\.com|\\.co\\.uk|)': 'Wimbledon F.C.',
'wolves(?:\\.com|\\.co\\uk|)': 'Wolverhampton Wanderers F.C.',
'real ?madrid(?:\\.com|)': 'Real Madrid C.F.',
'fcbarcelona(?:\\.com|)': 'FC Barcelona',
//academic institutions
'birmingham(?:\\.ac\\.uk)': 'University of Birmingham',
'bristol(?:\\.ac\\.uk)': 'University of Bristol',
'stemcells\\.cam(?:\\.ac\\.uk)': 'Wellcome–MRC Cambridge Stem Cell Institute',
'cam(?:\\.ac\\.uk)': 'University of Cambridge',
'cardiff(?:\\.ac\\.uk)': 'Cardiff University',
'derby(?:\\.ac\\.uk)': 'University of Derby',
'dur(?:\\.ac\\.uk)': 'Durham University',
'ed(?:\\.ac\\.uk)': 'University of Edinburgh',
'exeter(?:\\.ac\\.uk)': 'University of Exeter',
'gla(?:\\.ac\\.uk)': 'University of Glasgow',
'imperial(?:\\.ac\\.uk)': 'Imperial College London',
'kcl(?:\\.ac\\.uk)': 'King\'s College London',
'le(?:\\.ac\\.uk)': 'University of Leicester',
'leeds(?:\\.ac\\.uk)': 'University of Leeds',
'liverpool(?:\\.ac\\.uk)': 'University of Liverpool',
'lse(?:\\.ac\\.uk|)': 'London School of Economics',
'London School of Economics and Political Science': 'London School of Economics',
'manchester(?:\\.ac\\.uk)': 'University of Manchester',
'ncl(?:\\.ac\\.uk)': 'Newcastle University',
'nottingham(?:\\.ac\\.uk)': 'University of Nottingham',
'ndm\\.ox(?:\\.ac\\.uk)': 'Nuffield Department of Medicine, University of Oxford',
'ox(?:\\.ac\\.uk)': 'University of Oxford',
'port(?:\\.ac\\.uk)': 'University of Portsmouth',
'qmul(?:\\.ac\\.uk)': 'Queen Mary University of London',
'qub(?:\\.ac\\.uk)': 'Queen\'s University Belfast',
'sheffield(?:\\.ac\\.uk)': 'University of Sheffield',
'so(?:uthamp|)ton(?:\\.ac\\.uk)': 'University of Southampton',
'ucl(?:\\.ac\\.uk)': 'University College London',
'warwick(?:\\.ac\\.uk)': 'University of Warwick',
'york(?:\\.ac\\.uk)': 'University of York',
'britishmuseum.org': 'British Museum',
'iwm(?:\\.org\\.uk|)': 'Imperial War Museum',
'nationalgallery(?:\\.org\\.uk|)': 'National Gallery',
'nhm(?:\\.ac\\.uk|)': 'Natural History Museum',
'vam(?:\\.ac\\.uk|)': 'Victoria and Albert Museum',
'edfringe(?:\\.com|)': 'The Edinburgh Festival Fringe Society',
// Major portals: beware
'itunes\\.apple(?:\\.com?|)(?:\\.[\\w]{2}|)': 'iTunes Store',
'itunes (?:music |)stores?': 'iTunes Store',
'itunes': 'iTunes Store',
'amazon(?:\\.com?|)(?:\\.[\\w]{2}|)': 'Amazon.com',
'bloomberg(?:\\.com(?:\\/news\\/))': 'Bloomberg News',
'bloomberg(?: L\\.P\\.|)': 'Bloomberg L.P.',
'afp\\.google(?:\\.com?|)(?:\\.[\\w]{2}|)': 'Google News |agency=Agence France-Presse',
'finance\\.google(?:\\.com?|)(?:\\.[\\w]{2}|)': 'Google Finance',
'maps\\.google(?:\\.com?|)(?:\\.[\\w]{2}|)': 'Google Maps',
'news\\.google(?:\\.com?|)(?:\\.[\\w]{2}|)': 'Google News',
'scholar\\.google(?:\\.com?|)(?:\\.[\\w]{2}|)': 'Google Scholar',
'trends\\.google(?:\\.com?|)(?:\\.[\\w]{2}|)': 'Google Trends',
'ibnlive(?:\\.com?|)': 'CNN-IBN',
'CNN IBN': 'CNN-IBN',
'cnn\\.com': 'CNN',
// 'cnn(?: \\w+|)': 'CNN',
'nasdaq(?:\\.com|)': 'NASDAQ',
'NYSE(?:\\.com|)': 'New York Stock Exchange',
'finance\\.yahoo(?:\\.com?|)(?:\\.[\\w]{2}|)': 'Yahoo! Finance',
'green\\.yahoo(?:\\.com?|)(?:\\.[\\w]{2}|)': 'Yahoo! Green',
'sports\\.yahoo(?:\\.com?|)(?:\\.[\\w]{2}|)': 'Yahoo! Sports',
'kids\\.yahoo(?:\\.com?|)(?:\\.[\\w]{2}|)': 'Yahoo! Kids',
'(?:\\w+\\.|)music\\.yahoo(?:\\.com?|)(?:\\.[\\w]{2}|)': 'Yahoo! Music',
'news\\.yahoo(?:\\.com?|)(?:\\.[\\w]{2}|)': 'Yahoo! News',
'sina(?:\\.com\\.(?:cn|hk)|)': 'Sina Corp',
'yahoo\\.com': 'Yahoo!',
'google(?:\\.com|)': 'Google',
'msn(?:\\.com|)': 'MSN',
'mtv(?:\\.com?|)(?:\\.[\\w]{2}|)': 'MTV',
'mtv ?news': 'MTV News',
'ec\\.europa(?:\\.com|)\\.eu': 'European Commission',
'ecdc\\.europa(?:\\.com|)\\.eu': 'European Centre for Disease Prevention and Control',
'europarl\\.europa(?:\\.com|)\\.eu': 'European Parliament',
'europa(?:\\.com|)\\.eu': 'Europa (web portal)',
'cdc\\.gov': 'Centres for Disease Control and Prevention', //
'whitehouse\\.gov': 'White House', //
'number10\\.gov\\.uk': '10 Downing Street',
'college-of-arms\\.gov\\.uk': 'College of Arms',
'privycouncil\\.independent\\.gov\\.uk': 'Privy Council of the United Kingdom',
'companieshouse\\.gov\\.uk': 'Companies House, Government of the United Kingdom',
'ofsted\\.gov\\.uk': 'Ofsted',
'education\\.gov\\.uk': 'Department of Education, UK',
// 'gov\\.uk': 'Government of the United Kingdom',
'scottish\\.parliament\\.uk': 'Scottish Parliament',
'parliament\\.uk': 'Parliament of the United Kingdom',
'ecb(?:\\.europa\\.eu|)': 'European Central Bank',
'federalreserve(?:\\.gov|)': 'Federal Reserve',
'bpi\\.co\\.uk': 'British Phonographic Industry',
'cia(?:\\.gov|)': 'Central Intelligence Agency',
'faa(?:\\.gov|)': 'Federal Aviation Administration',
'fas(?:\\.org|)': 'Federation of American Scientists',
'olympics(?:\\.com|)': 'International Olympic Committee',
'thefa(?:\\.com|)': 'The Football Association',
'army\\.mil': 'United States Army',
'navy\\.mil': 'United States Navy',
'airforce(?:\\.com|)': 'United States Air Force',
'delfi(?:\\.ee|\\.lv|\\.lt)': 'Delfi (web portal)',
'rada\\.gov\\.ua': 'Verkhovna Rada',
'metacritic(?:\\.com|)': 'Metacritic',
// Keep this as the last line (no comma per js syntax)
'vh1\\.com': 'VH1'
};
// Broadcasters
var word, newWord;
for (var word in table) {
newWord = 'publisher$1' + table[ word ] + '$2';
newWord2 = '$1' + table[ word ] + '$2';
newWord3 = '$1\[\[' + table[ word ] + '\]\]$2';
var txt="";
try {
// Broadcasters - linked "\\bwork" required to prevent conversion of "network" parameter
var re = new RegExp('(?:agency|author|journal|magazine|newspaper|periodical|publisher|via|website|\\bwork)([ ]*=[ ]*\\[\\[(?:[^|\\]]*\\||))(?:[\\w\\.]+\\.|)' + word + '(?: newspaper| online| website|)(\\]\\][\\s\\.]*[|}])', 'gi');
regex(re, newWord);
// Broadcasters - unlinked
var re = new RegExp('(?:agency|author|journal|magazine|newspaper|periodical|publisher|via|website|\\bwork)([ ]*=[ ]*)(?:[\\w\\.]+\\.|)' + word + '(?: newspaper| online| website|)\\.?([\\s]*[|}])', 'gi');
regex(re, newWord);
// source names to 'wikiname' - unlinked, unitalicised; outside citation templates (non-italicising)
var re = new RegExp('(<ref[^>]*>[^<]+?[-\\]\\.},;–]\\s+)(?:\\w+\\.|)' + word + '(?: newspaper| online| website|)((?:[,\\.]?[^\\w\' ][^\\]<]*?|)<\\/ref>)', 'gi');
regex(re, newWord2);
// source names to 'wikiname' - unlinked; outside citation templates (deitalicising)
var re = new RegExp('(<ref[^>]*>[^<]+?\\s+)\'\'(?:\\w+\\.|)' + word + '(?: newspaper| online| website|)\'\'([^<]*?<\\/ref>)', 'gi');
regex(re, newWord2);
// source names to unitalicised 'wikiname' - linked, unpiped; outside citation templates
var re = new RegExp('(<ref[^>]*>[^<]+?[-\\]\\.},;–]\\s+\\[\\[)(?:\\w+\\.|)' + word + '(?: newspaper| online| website|)(\\]\\][^<]*?<\\/ref>)', 'gi');
regex(re, newWord2);
// source names to 'wikiname' - linked, unpiped; outside citation templates(deitalicising)
var re = new RegExp('(<ref[^>]*>[^<]+?[-\\]\\.},;–]\\s+)\'\'\\[\\[(?:\\w+\\.|)' + word + '(?: newspaper| online| website|)\\]\\]\'\'([^<]*?<\\/ref>)', 'gi');
regex(re, newWord3); //NOTE: adaptation to re-link is built into 'newWord3'
}
catch(err) {
txt="There was an error on function Ohc_sourcename(), when changing '"+ word + "' => '"+ table[word] +"'.\n\n";
txt+="Error: " + err.message + "\n\n";
txt+="Click OK to continue.\n\n";
alert(txt);
}
}
}