--- /dev/null
+# -*- coding: utf-8 -*-
+#
+# CREM Database migrator
+
+# Copyright (C) 2009 Samalyse SARL
+# Author: Olivier Guilyardi <olivier samalyse com>
+
+# This software is governed by the CeCILL license under French law and
+# abiding by the rules of distribution of free software. You can use,
+# modify and/ or redistribute the software under the terms of the CeCILL
+# license as circulated by CEA, CNRS and INRIA at the following URL
+# "http://www.cecill.info".
+
+# As a counterpart to the access to the source code and rights to copy,
+# modify and redistribute granted by the license, users are provided only
+# with a limited warranty and the software's author, the holder of the
+# economic rights, and the successive licensors have only limited
+# liability.
+
+# In this respect, the user's attention is drawn to the risks associated
+# with loading, using, modifying and/or developing or reproducing the
+# software by the user in light of its specific status of free software,
+# that may mean that it is complicated to manipulate, and that also
+# therefore means that it is reserved for developers and experienced
+# professionals having in-depth computer knowledge. Users are therefore
+# encouraged to load and test the software's suitability as regards their
+# requirements in conditions enabling the security of their systems and/or
+# data to be ensured and, more generally, to use and operate it in the
+# same conditions as regards security.
+
+# The fact that you are presently reading this means that you have had
+# knowledge of the CeCILL license and that you accept its terms.
+
+from telemeta.core import *
+from api import IDataMigrator
+from core import DataMigrator
+
+class InstrumentsThesaurusMigrator(DataMigrator):
+ """Migrate the instruments thesaurus"""
+
+ implements(IDataMigrator)
+
+ families = [
+ ('A', u'AÉROPHONE'),
+ ('AA', u'ANCHE'),
+ ('AAB', u'ANCHE BATTANTE'),
+ ('AABC', u'CORNEMUSE'),
+ ('AABD', u'HAUTBOIS'),
+ ('AABS', u'CLARINETTE'),
+ ('AAL', u'ANCHE LIBRE'),
+ ('AF', u'FLUTE'),
+ ('AFG', u'FLUTE GLOBUL'),
+ ('AFGC', u'FLUTE GLOBUL CONDUIT'),
+ ('AFGS', u'FLUTE GLOBUL SANS CONDUIT'),
+ ('AFL', u'FLUTE'),
+ ('AFLC', u'FLUTE LAT CONDUIT'),
+ ('AFLS', u'FLUTE LAT SANS CONDUIT'),
+ ('AFP', u'FLUTE DE PAN'),
+ ('AFT', u'FLUTE TERM'),
+ ('AFTC', u'FLUTE TERM CONDUIT'),
+ ('AFTS', u'FLUTE TERM SANS CONDUIT'),
+ ('AR', u'AIR AMBIANT'),
+ ('AT', u'TROMPE'),
+ ('ATL', u'TROMPE LAT'),
+ ('ATT', u'TROMPE TERM'),
+ ('BC', u'BRUITS CORPORELS'),
+ ('BM', u'MIRLITON'),
+ ('BR', u'BRUITEUR'),
+ ('C', u'CORDOPHONE'),
+ ('CA', u'PLURIARC'),
+ ('CC', u'CITHARE'),
+ ('CH', u'HARPE'),
+ ('CHC', u'HARPE-CITHARE'),
+ ('CHL', u'HARPE LUTH'),
+ ('CL', u'LUTH'),
+ ('CV', u'VIELE'),
+ ('CY', u'LYRE'),
+ ('EL', u'ELECTRONIQUE'),
+ ('I', u'IDIOPHONE'),
+ ('IE', u'IDIOPHONES ENTRECHOQUES'),
+ ('IEB', u'BATONS'),
+ ('IEC', u'CLAQUETTES'),
+ ('IF', u'IDIOPHONE FRAPPE'),
+ ('IFC', u'IDIOPHONE FRAPPE CREUX'),
+ ('IFP', u'IDIOPHONE FRAPPE PLEIN'),
+ ('IFZ', u'FEUILLES FRAPPEES/JAMBE'),
+ ('IL', u'IDIOPHONE PILONNE'),
+ ('IP', u'IDIOPHONE PINCE'), # added family
+ ('IR', u'IDIOPHONE RACLE'),
+ ('IR', u'RACLEUR'),
+ ('IS', u'IDIOPHONE SECOUE'), # added family
+ ('IT', u'IDIOPHONE FROTTE'), # added family
+ ('M', u'TBR'),
+ ('M1', u'TBR 1MEMB'),
+ ('M1C', u'TBR 1MEMB/CAISSE'),
+ ('M1D', u'TBR 1MEMB/CADRE'),
+ ('M1F', u'TBR 1MEMB FRICTION'),
+ ('M1V', u'TBR 1MEMB VARIABLE'),
+ ('M2', u'TBR 2MEMB'),
+ ('M2C', u'TBR 2MEMB/CAISSE'),
+ ('M2D', u'TBR 2MEMB/CADRE'),
+ ('M2F', u'TBR 2MEMB FRICTION'),
+ ('M2V', u'TBR 2MEMB VARIABLE'),
+ ('ORCH', u'ORCHESTRE'),
+ ('SA', u'SONS ANIMAUX'),
+ ('SD', u'AMBIANCES DIVERSES'),
+ ('SN', u'BRUITS DE LA NATURE'),
+ ('V', u'VOIX'),
+ ('VA', u'DIVERS'), # added family
+ ('VC', u'CHANTE'),
+ ('VP', u'PARLE'),
+ ('VX', u'COMPOSITE'),
+ ('Z', u'AUTRE'),
+ ('Z1', u'BRUITS NATURE'),
+ ('Z2', u'CRIS D\'ANIMAUX'),
+ ('ZIFC', u'CLOCHETTE'),
+ ('ZIFZ', u'TRIANGLE'),
+ ('ZIFT', u'TAMBOUR DE BOIS A FENTE'),
+ ('ZILZ', u'PILONS ET MORTIER')
+ ]
+
+ def get_name(self):
+ return 'instruments:thesaurus'
+
+