Esempio n. 1
0
 def test_variants_wholemeasureapps(self):
     name = 'TC_Variants.02 - Whole-Measure <app>'
     mei_file = 'dat/TC.Variants.02.WholeMeasure.mei'
     transform_data = TransformData()
     transform_data.arranger_to_editor = True
     transform_data.replace_longa = False
     transform_data.obliterate_incipit = False
     transform_data.editorial_resp = 'ZK'
     transform_data.alternates_list = [
             ('1', VARIANT, '1', ''),
             ('2', VARIANT, '1', 'ZK'),
             ('3', VARIANT, '1', 'ZK') 
             ]
     transformed_mei = TransformTestCase(name, mei_file, transform_data).Run()
Esempio n. 2
0
 def test_variants_multipleblocks(self):
     name = 'TC_Variants.03 - Multiple colored blocks'
     mei_file = 'dat/TC.Variants.03.mei'
     transform_data = TransformData()
     transform_data.arranger_to_editor = True
     transform_data.replace_longa = False
     transform_data.obliterate_incipit = False
     transform_data.editorial_resp = 'ZK'
     transform_data.alternates_list = [
             ('1', VARIANT, '1', ''),
             ('2', VARIANT, '1', 'ZK'),
             ('3', VARIANT, '1', 'ZK') 
             ]
     transformed_mei = TransformTestCase(name, mei_file, transform_data).Run()
Esempio n. 3
0
 def test_variants_threesources(self):
     name = 'TC_Variants.01'
     mei_file = 'dat/TC.Variants.01.mei'
     transform_data = TransformData()
     transform_data.arranger_to_editor = True
     transform_data.replace_longa = False
     transform_data.obliterate_incipit = False
     transform_data.editorial_resp = 'ZK'
     transform_data.alternates_list = [
             ('1', VARIANT, '1', ''),
             ('2', VARIANT, '1', '2014/01'),
             ('3', VARIANT, '1', '0001/01'),
             ('4', VARIANT, '1', 'ZK 0001/00'), 
             ]
     transformed_mei = TransformTestCase(name, mei_file, transform_data).Run()
Esempio n. 4
0
 def test_canonical_colors(self):
     name = 'MasterPlainMEI.02 - Colors Specified'
     mei_file = 'dat/TC.MasterPlainMEI.02.mei'
     transform_data = TransformData()
     transform_data.arranger_to_editor = True
     transform_data.replace_longa = False
     transform_data.obliterate_incipit = False
     transform_data.editorial_resp = 'ZK'
     transform_data.color_for_variants = BLUE
     transform_data.color_for_emendations = GREEN
     transform_data.alternates_list = [
             ('1', VARIANT, '1', ''),
             ('2', VARIANT, '1', 'ZK'),
             ('3', EMENDATION, '1', 'ZK') 
             ]
     transformed_mei = TransformTestCase(name, mei_file, transform_data).Run()
Esempio n. 5
0
	def test_emendations_DC0113(self):
		name = 'TC_Emendations.DC0113'
		mei_file = 'dat/DC0113E.mei'
		transform_data = TransformData()
		transform_data.arranger_to_editor = True
		transform_data.replace_longa = True
		transform_data.obliterate_incipit = True
		transform_data.editorial_resp = 'ZK'
		transform_data.alternates_list = [
				('1', VARIANT, '1', ''),
				('2', VARIANT, '2', ''),
				('3', EMENDATION, '2', 'Freedman'),
				('4', VARIANT, '4', ''),
				('5', VARIANT, '5', ''), 
				('6', EMENDATION, '5', 'Freedman'), 
				]
		transformed_mei = TransformTestCase(name, mei_file, transform_data).Run()
Esempio n. 6
0
	def test_emendationandvariant_DC0110(self):
		name = 'DC0110'
		mei_file = 'dat/DC0110E.mei'
		transform_data = TransformData()
		transform_data.arranger_to_editor = True
		transform_data.replace_longa = True
		transform_data.obliterate_incipit = True
		transform_data.editorial_resp = 'TEST_EDITOR'
		transform_data.alternates_list = [
				('1', VARIANT, '1', ''),
				('2', EMENDATION, '1', 'Freedman'),
				('3', VARIANT, '3', ''),
				('4', VARIANT, '4', ''),
				('5', VARIANT, '5', ''), 
				('6', VARIANT, '5', '1554/25'), 
				]
		transformed_mei = TransformTestCase(name, mei_file, transform_data).Run()
Esempio n. 7
0
 def test_canonical_01(self):
     name = 'MasterPlainMEI.01 - All-in-one'
     mei_file = 'dat/TC.MasterPlainMEI.01.mei'
     transform_data = TransformData()
     transform_data.arranger_to_editor = True
     transform_data.replace_longa = False
     transform_data.obliterate_incipit = False
     transform_data.editorial_resp = 'ZK'
     transform_data.alternates_list = [
             ('1', VARIANT, '1', ''),
             ('2', VARIANT, '2', ''),
             ('3', RECONSTRUCTION, '2', 'Contributor-A'),
             ('4', RECONSTRUCTION, '2', 'Contributor-B'), 
             ('5', VARIANT, '5', ''),
             ('6', EMENDATION, '5', 'Komives'), 
             ('7', VARIANT, '7', ''),
             ('8', VARIANT, '7', 'Source-A'), 
             ]
     transformed_mei = TransformTestCase(name, mei_file, transform_data).Run()
Esempio n. 8
0
	def test_reconstructions_DC1209(self):
		name = 'TC_Reconstructions.DC1209'
		mei_file = 'dat/DC1209E.mei'
		transform_data = TransformData()
		transform_data.arranger_to_editor = True
		transform_data.replace_longa = True
		transform_data.obliterate_incipit = True
		transform_data.editorial_resp = 'ZK'
		transform_data.alternates_list = [
				('1', VARIANT, '1', ''),
				('2', VARIANT, '2', ''),
				('3', RECONSTRUCTION, '2', 'Apgar'),
				('4', RECONSTRUCTION, '2', 'Busnel'),
				('5', RECONSTRUCTION, '2', 'Freedman'),
				('6', VARIANT, '6', ''), 
				('7', VARIANT, '7', ''), 
				('8', RECONSTRUCTION, '7', 'Apgar'),
				('9', RECONSTRUCTION, '7', 'Busnel'),
				('10', RECONSTRUCTION, '7', 'Freedman'),
				]
		transformed_mei = TransformTestCase(name, mei_file, transform_data).Run()
Esempio n. 9
0
	def test_emendandreconstr_DC1323(self):
		name = 'DC1209'
		mei_file = 'dat/DC1323E.mei'
		transform_data = TransformData()
		transform_data.arranger_to_editor = True
		transform_data.replace_longa = True
		transform_data.obliterate_incipit = True
		transform_data.editorial_resp = 'TEST_EDITOR'
		transform_data.alternates_list = [
				('1', VARIANT, '1', ''),
				('2', VARIANT, '2', ''),
				('3', RECONSTRUCTION, '2', 'Apgar'),
				('4', RECONSTRUCTION, '2', 'Clement'),
				('5', VARIANT, '5', ''),
				('6', EMENDATION, '5', 'Chater'), 
				('7', EMENDATION, '5', 'Tanguy'), 
				('8', VARIANT, '8', ''),
				('9', RECONSTRUCTION, '8', 'Apgar'),
				('10', RECONSTRUCTION, '8', 'Clement'),
				]
		transformed_mei = TransformTestCase(name, mei_file, transform_data).Run()
Esempio n. 10
0
 def test_emendationandvariant_DC0909(self):
     name = 'DC0909'
     mei_file = 'dat/DC0909E.mei'
     transform_data = TransformData()
     transform_data.arranger_to_editor = True
     transform_data.replace_longa = True
     transform_data.obliterate_incipit = True
     transform_data.editorial_resp = 'TEST_EDITOR'
     transform_data.alternates_list = [
             ('1', VARIANT, '1', ''),
             ('2', VARIANT, '1', '1554/22'),
             ('3', VARIANT, '3', ''),
             ('4', EMENDATION, '3', 'Tanguy'),
             ('5', VARIANT, '3', '1554/22'), 
             ('6', VARIANT, '6', ''), 
             ('7', VARIANT, '6', '1554/22'), 
             ('8', VARIANT, '8', ''), 
             ('9', VARIANT, '8', '1554/22'), 
             ]
     transform_data.color_for_ficta = ANY_COLOR
     transformed_mei = TransformTestCase(name, mei_file, transform_data).Run()
Esempio n. 11
0
	def test_variants_DC0221(self):
		name = 'TC_DC0221'
		mei_file = 'dat/DC0221E.mei'
		transform_data = TransformData()
		transform_data.arranger_to_editor = True
		transform_data.replace_longa = True
		transform_data.obliterate_incipit = True
		transform_data.editorial_resp = 'ZK'
		transform_data.alternates_list = [
				('1', VARIANT, '1', ''),
				('2', VARIANT, '1', 'ZK'),
				('3', VARIANT, '1', 'ZK'),
				('4', VARIANT, '4', ''),
				('5', VARIANT, '4', 'ZK'),
				('6', VARIANT, '4', 'ZK'),
				('7', VARIANT, '7', ''),
				('8', VARIANT, '7', 'ZK'),
				('9', VARIANT, '7', 'ZK'),
				('10', VARIANT, '10', ''),
				('11', VARIANT, '10', 'ZK'),
				('12', VARIANT, '10', 'ZK') ]
		transformed_mei = TransformTestCase(name, mei_file, transform_data).Run()