Vés al contingut

Usuari:MineralBot/codis

De la Viquipèdia, l'enciclopèdia lliure
    if re.search(u'<span class="o">.</span>',text):
        textnou=re.sub(u'<span class="o">(.)</span>',r"{{overline|\1}}",textnou)
        print 'overline'

    if re.search(u"sectile\*",text):
        textnou=re.sub(u"sectile\*",u"sèctil",textnou)
        print 'sèctil'

    if re.search(u"waxy\*",text):
        textnou=re.sub(u"waxy\*",u"cerosa",textnou)
        print 'cerosa'

    if re.search(u"greasy\*",text):
        textnou=re.sub(u"greasy\*",u"grassa",textnou)
        print 'grassa'

    if re.search(u"exfoliació = none observed\*",text):
        textnou=re.sub(u"exfoliació = none observed\*",u"exfoliació = no observada",textnou)
        print 'no observada'

    if re.search(u"trigonal\*\]\]",text):
        textnou=re.sub(u"trigonal\*\]\]",u"[[sistema trigonal]]",textnou)
        print 'sist. trigonal'

    if re.search(u"trigonal\*",text):
        textnou=re.sub(u"trigonal\*",u"[[trigonal]]",textnou)
        print 'trigonal'

    if re.search(u"-\)\*",text):
        textnou=re.sub(u"-\)\*",u"-)",textnou)
        print 'opt. -'

    if re.search(u"\+\)\*",text):
        textnou=re.sub(u"\+\)\*",u"+)",textnou)
        print 'opt. +'

    if re.search(u"Namibia",text):
        textnou=re.sub(u"Namibia",u"[[Namíbia]]",textnou)
        print 'Namíbia'

    if re.search(u"Rhineland-Palatinate,",text):
        textnou=re.sub(u"Rhineland-Palatinate,",u"[[Renània-Palatinat]],",textnou)
        print 'Renània-Palatinat'

    if re.search(u"Germany",text):
        textnou=re.sub(u"Germany",u"[[Alemanya]]",textnou)
        print 'Alemanya'

    if re.search(u"Lower Saxony,",text):
        textnou=re.sub(u"Lower Saxony,",u"[[Baixa Saxònia]],",textnou)
        print 'Baixa Saxònia'

    if re.search(u"Honshu Island,",text):
        textnou=re.sub(u"Honshu Island,",u"[[Honshū]],",textnou)
        print 'Honshū'

    if re.search(u"Chubu Region,",text):
        textnou=re.sub(u"Chubu Region,",u"[[Chubu]],",textnou)
        print 'Chubu'

    if re.search(u"Japan",text):
        textnou=re.sub(u"Japan",u"[[Japó]]",textnou)
        print 'Japó'

    if re.search(u"USA",text):
        textnou=re.sub(u"USA",u"[[Estats Units]]",textnou)
        print 'Estats Units'

    if re.search(u"Yukon Territory,",text):
        textnou=re.sub(u"Yukon Territory,",u"[[Yukon]],",textnou)
        print 'Yukon'

    if re.search(u", Noril'sk,",text):
        textnou=re.sub(u", Noril'sk,",u", [[Norilsk]],",textnou)
        print 'Norilsk'
        
    if re.search(u", Putoran Plateau,",text):
        textnou=re.sub(u", Putoran Plateau,",u", [[Altiplà de Putorana]],",textnou)
        print 'Altiplà de Putorana'

    if re.search(u", Taimyr Peninsula,",text):
        textnou=re.sub(u", Taimyr Peninsula,",u", [[Península de Taimir]],",textnou)
        print 'Península de Taimir'

    if re.search(u", Taymyrskiy Autonomous Okrug,",text):
        textnou=re.sub(u", Taymyrskiy Autonomous Okrug,",u", [[Taimíria]],",textnou)
        print 'Taimíria'

    if re.search(u"Canada",text):
        textnou=re.sub(u"Canada",u"[[Canadà]]",textnou)
        print 'Canadà'

    if re.search(u"Russia",text):
        textnou=re.sub(u"Russia",u"[[Rússia]]",textnou)
        print 'Rússia'

    if re.search(u"Värmland,",text):
        textnou=re.sub(u"Värmland,",u"[[Värmland]],",textnou)
        print 'Värmland'

    if re.search(u"Sweden",text):
        textnou=re.sub(u"Sweden",u"[[Suècia]]",textnou)
        print 'Suècia'

    if re.search(u"relatively strong\*",text):
        textnou=re.sub(u"relatively strong\*",u"relativament forta",textnou)
        print 'relativament forta'

    if re.search(u"sub-vitreous\*",text):
        textnou=re.sub(u"sub-vitreous\*",u"subvítria",textnou)
        print 'subvítria'

    if re.search(u"sub-metallic\*",text):
        textnou=re.sub(u"sub-metallic\*",u"submetàl·lica",textnou)
        print 'submetàl·lica'

    if re.search(u"disphenoidal\*",text):
        textnou=re.sub(u"disphenoidal\*",u"disfenoide",textnou)
        print 'disfenoide'

    if re.search(u"splintery\*",text):
        textnou=re.sub(u"splintery\*",u"desagregable",textnou)
        print 'desagregable'

    if re.search(u"scalenohedral\*",text):
        textnou=re.sub(u"scalenohedral\*",u"escalenoedral",textnou)
        print 'escalenoedral'

    if re.search(u"none\*",text):
        textnou=re.sub(u"none\*",u"no en té",textnou)
        print 'no en té'

    if re.search(u"Not fluorescent\*",text):
        textnou=re.sub(u"Not fluorescent\*",u"no fluorescent",textnou)
        print 'no fluorescent'

    if re.search(u"uniaxial\*",text):
        textnou=re.sub(u"uniaxial\*",u"uniaxial",textnou)
        print 'uniaxial'

    if re.search(u"Northern Cape Province,",text):
        textnou=re.sub(u"Northern Cape Province,",u"[[Cap Septentrional]],",textnou)
        print 'Cap Septentrional'

    if re.search(u"South Africa",text):
        textnou=re.sub(u"South Africa",u"[[Sud-àfrica]],",textnou)
        print 'Sud-àfrica'

    if re.search(u"Italy",text):
        textnou=re.sub(u"Italy",u"[[Itàlia]]",textnou)
        print 'Itàlia'

    if re.search(u"Piedmont,",text):
        textnou=re.sub(u"Piedmont,",u"[[Piemont]],",textnou)
        print 'Piemont'

    if re.search(u"◻",text):
        textnou=re.sub(u"◻",u"◻",textnou)
        print '◻'

    if re.search(u"Minas Gerais,",text):
        textnou=re.sub(u"Minas Gerais,",u"[[Minas Gerais]],",textnou)
        print 'Minas Gerais'

    if re.search(u"Hunan Province,",text):
        textnou=re.sub(u"Hunan Province,",u"[[Hunan]],",textnou)
        print 'Hunan'

    if re.search(u"Wallis \(Valais\),",text):
        textnou=re.sub(u"Wallis \(Valais\),",u"[[Valais]],",textnou)
        print 'Valais'

    if re.search(u"Tibet Autonomous Region,",text):
        textnou=re.sub(u"Tibet Autonomous Region,",u"[[Regió Autònoma del Tibet]],",textnou)
        print 'Regió Autònoma del Tibet'

    if re.search(u"Brazil",text):
        textnou=re.sub(u"Brazil",u"[[Brasil]]",textnou)
        print 'Brasil'

    if re.search(u"China",text):
        textnou=re.sub(u"China",u"[[Xina]]",textnou)
        print 'Xina'

    if re.search(u"Switzerland",text):
        textnou=re.sub(u"Switzerland",u"[[Suïssa]]",textnou)
        print 'Suïssa'

    if re.search(u"non-fluorescent\*",text):
        textnou=re.sub(u"non-fluorescent\*",u"no fluorescent",textnou)
        print 'no fluorescent'

    if re.search(u", Far-Eastern Region,",text):
        textnou=re.sub(u", Far-Eastern Region,",u", [[Districte Federal de l'Extrem Orient]],",textnou)
        print 'Extrem Orient'

    if re.search(u", Chelyabinsk Oblast',",text):
        textnou=re.sub(u", Chelyabinsk Oblast',",u", [[Província de Txeliàbinsk]],",textnou)
        print 'Província de Txeliàbinsk'

    if re.search(u", Democratic Republic of Congo \(Zaïre\)",text):
        textnou=re.sub(u", Democratic Republic of Congo \(Zaïre\)",u", [[República Democràtica del Congo]]",textnou)
        print 'República Democràtica del Congo'

    if re.search(u"\[\[Itàlia\]\],",text):
        textnou=re.sub(u"\[\[Itàlia\]\],",u"[[Itàlia]]",textnou)
        print 'Itàlia'

    if re.search(u"Mt Vesuvius, Somma-Vesuvius Complex,",text):
        textnou=re.sub(u"Mt Vesuvius, Somma-Vesuvius Complex,",u"[[Vesuvi]],",textnou)
        print 'Vesuvi'

    if re.search(u"Naples Province,",text):
        textnou=re.sub(u"Naples Province,",u"[[Província de Nàpols]],",textnou)
        print 'Napols'

    if re.search(u"Campania,",text):
        textnou=re.sub(u"Campania,",u"[[Campània]],",textnou)
        print 'Campania'

    if re.search(u"South Moravia Region,",text):
        textnou=re.sub(u"South Moravia Region,",u"[[Moràvia Meridional]],",textnou)
        print 'South Moravia Region'

    if re.search(u"Moravia \(Mähren; Maehren\),",text):
        textnou=re.sub(u"Moravia \(Mähren; Maehren\),",u"[[Moràvia]],",textnou)
        print 'Moravia'

    if re.search(u"Czech Republic",text):
        textnou=re.sub(u"Czech Republic",u"[[República Txeca]]",textnou)
        print 'Czech Republic'

    if re.search(u", Haute-Vienne",text):
        textnou=re.sub(u", Haute-Vienne",u", [[Alta Viena]]",textnou)
        print 'Haute-Vienne'

    if re.search(u"Limousin, ",text):
        textnou=re.sub(u"Limousin, ",u"[[Llemosí (regió)|Llemosí]], ",textnou)
        print 'Limousin'

    if re.search(u", France",text):
        textnou=re.sub(u", France",u", [[França]]",textnou)
        print 'France'

    if re.search(u", Larvik",text):
        textnou=re.sub(u", Larvik",u", [[Larvik]]",textnou)
        print 'Larvik'

    if re.search(u"Vestfold, ",text):
        textnou=re.sub(u"Vestfold, ",u"[[Vestfold]], ",textnou)
        print 'Vestfold'

    if re.search(u", Norway",text):
        textnou=re.sub(u", Norway",u", [[Noruega]]",textnou)
        print 'Norway'

    if re.search(u", Narsaq",text):
        textnou=re.sub(u", Narsaq",u", [[Narsaq]]",textnou)
        print 'Narsaq'

    if re.search(u"Kujalleq, ",text):
        textnou=re.sub(u"Kujalleq, ",u"[[Kujalleq]], ",textnou)
        print 'Kujalleq'

    if re.search(u", Greenland",text):
        textnou=re.sub(u", Greenland",u", [[Groenlàndia]]",textnou)
        print 'Greenland'

    if re.search(u", The Moon",text):
        textnou=re.sub(u", The Moon",u", [[Lluna|La Lluna]]",textnou)
        print 'The Moon'

    if re.search(u"Franklin, Franklin Mining District, Sussex Co., New Jersey",text):
        textnou=re.sub(u"Franklin, Franklin Mining District, Sussex Co., New Jersey",u"[[Franklin (Nova Jersey)|Franklin]], Districte miner de Franklin, Comtat de Sussex, [[Nova Jersey]]",textnou)
        print 'Franklin'

    if re.search(u"New Jersey, ",text):
        textnou=re.sub(u"New Jersey, ",u"[[Nova Jersey]], ",textnou)
        print 'New Jersey'

    if re.search(u", Gwynedd",text):
        textnou=re.sub(u", Gwynedd",u", [[Gwynedd]]",textnou)
        print 'Gwynedd'

    if re.search(u", Wales",text):
        textnou=re.sub(u", Wales",u", [[Gal·les]]",textnou)
        print 'Wales'

    if re.search(u", Somma-Vesuvius Complex",text):
        textnou=re.sub(u", Somma-Vesuvius Complex",u", complex volcànic Somma-Vesuvi",textnou)
        print 'Somma-Vesuvius Complex'

    if re.search(u", Mount Somma",text):
        textnou=re.sub(u", Mount Somma",u", Mont Somma",textnou)
        print 'Somma'

    if re.search(u", Montecchio Maggiore",text):
        textnou=re.sub(u", Montecchio Maggiore",u", [[Montecchio Maggiore]]",textnou)
        print 'Montecchio Maggiore'

    if re.search(u", Vicenza Province",text):
        textnou=re.sub(u", Vicenza Province",u", [[Província de Vicenza]]",textnou)
        print 'Vicenza Province'

    if re.search(u", Veneto",text):
        textnou=re.sub(u", Veneto",u", [[Vèneto]]",textnou)
        print 'Veneto'

    if re.search(u", Inner Mongolia Autonomous Region",text):
        textnou=re.sub(u", Inner Mongolia Autonomous Region",u", [[Mongòlia Interior]]",textnou)
        print 'Inner Mongolia Autonomous Region'

    if re.search(u", Eifel",text):
        textnou=re.sub(u", Eifel",u", [[Eifel]]",textnou)
        print 'Eifel'

    if re.search(u", Mpumalanga Province",text):
        textnou=re.sub(u", Mpumalanga Province",u", [[Província de Mpumalanga]]",textnou)
        print 'Mpumalanga Province'

    if re.search(u"\| estat IMA = ",text):
        textnou=re.sub(u"\| estat IMA = ",u"| aclariment = ",textnou)
        print 'estat IMA -> aclariment'

    if re.search(u" class='newformsup newformsupabs'",text):
        textnou=re.sub(u" class='newformsup newformsupabs'",u"",textnou)
        print 'fórmula'

    if re.search(u" class='newformsub newformsubabs'",text):
        textnou=re.sub(u" class='newformsub newformsubabs'",u"",textnou)
        print 'fórmula'

    if re.search(u", Sichuan Province",text):
        textnou=re.sub(u", Sichuan Province",u", [[Sichuan]]",textnou)
        print 'Sichuan Province'

    if re.search(u"Långban, Filipstad, ",text):
        textnou=re.sub(u"Långban, Filipstad, ",u"[[Långban]], [[Municipi de Filipstad|Filipstad]], ",textnou)
        print 'Mun. de Filipstad'

    if re.search(u"\[\[Långban\]\], \[\[Filipstad\]\], ",text):
        textnou=re.sub(u"\[\[Långban\]\], \[\[Filipstad\]\], ",u"[[Långban]], [[Municipi de Filipstad|Filipstad]], ",textnou)
        print 'Filipstad > Mun. de Filipstad'
        
    if re.search(u"Långban, ",text):
        textnou=re.sub(u"Långban, ",u"[[Långban]], ",textnou)
        print 'Långban'

    if re.search(u", Buriatia Republic \(Buryatia\)",text):
        textnou=re.sub(u", Buriatia Republic \(Buryatia\)",u", [[Buriàtia]]",textnou)
        print 'Buriàtia'

    if re.search(u", Transbaikalia \(Zabaykalye\)",text):
        textnou=re.sub(u", Transbaikalia \(Zabaykalye\)",u", [[Transbaikal]]",textnou)
        print 'Transbaikal'

    if re.search(u"un \[\[substàncies orgànique\]\] de",text):
        textnou=re.sub(u"un \[\[substàncies orgànique\]\] de",u"una [[Compost orgànic|substància orgànica]] de",textnou)
        print 'substància orgànica'

    if re.search(u"\[\[compostos orgànics\|substàncies orgàniques\]\]",text):
        textnou=re.sub(u"\[\[compostos orgànics\|substàncies orgàniques\]\]",u"[[compostos orgànics]]",textnou)
        print 'compostos orgànics'

    if re.search(u", Western Australia",text):
        textnou=re.sub(u", Western Australia",u", [[Austràlia Occidental]]",textnou)
        print 'Austràlia Occidental'

    if re.search(u"Zakarpats'ka Oblast' \(Transcarpathian Oblasť; Zakarpattia\)",text):
        textnou=re.sub(u"Zakarpats'ka Oblast' \(Transcarpathian Oblasť; Zakarpattia\)",u"[[Transcarpàcia]]",textnou)
        print 'Transcarpàcia'

    if re.search(u", Central Bohemia Region",text):
        textnou=re.sub(u", Central Bohemia Region",u", [[Bohèmia Central]]",textnou)
        print 'Bohèmia Central'

    if re.search(u", Siena Province",text):
        textnou=re.sub(u", Siena Province",u", [[Província de Siena]]",textnou)
        print 'Siena Province'

    if re.search(u", Montepulciano",text):
        textnou=re.sub(u", Montepulciano",u", [[Montepulciano]]",textnou)
        print 'Montepulciano'

    if re.search(u"Tolbachik volcano,",text):
        textnou=re.sub(u"Tolbachik volcano,",u"[[Tolbàtxik|volcà Tolbàtxik]],",textnou)
        print 'Tolbachik ang'

    if re.search(u"volcà Tolbachik,",text):
        textnou=re.sub(u"volcà Tolbachik,",u"[[Tolbàtxik|volcà Tolbàtxik]],",textnou)
        print 'Tolbachik cat'

    if re.search(u"\[\[volcà\]\] Tolbachik,",text):
        textnou=re.sub(u"\[\[volcà\]\] Tolbachik,",u"[[Tolbàtxik|volcà Tolbàtxik]],",textnou)
        print 'Tolbachik cat'

    if re.search(u", Irkutskaya Oblast',",text):
        textnou=re.sub(u", Irkutskaya Oblast',",u", [[Província d'Irkutsk]],",textnou)
        print 'Irkutsk'