Skip to content
Snippets Groups Projects
Commit e1b25a41 authored by Lili Gasser's avatar Lili Gasser
Browse files

ugly workaround for Z'graggen

parent 062b2719
No related branches found
No related tags found
No related merge requests found
...@@ -444,6 +444,10 @@ def label_speechstart(XML_new, ind_p, ind_t, text, ind_tl_colon, df_names, list_ ...@@ -444,6 +444,10 @@ def label_speechstart(XML_new, ind_p, ind_t, text, ind_tl_colon, df_names, list_
# add attribute speech_start to textbox # add attribute speech_start to textbox
XML_new[ind_p][ind_t].attrib['text_type'] = 'speech_start' XML_new[ind_p][ind_t].attrib['text_type'] = 'speech_start'
# MP Z'graggen causes problem in xml because of '
if 'graggen' in str_name:
str_name = 'Zgraggen Max Johann (Basel-Stadt BS)'
# add speaker as attribute to first textline # add speaker as attribute to first textline
XML_new[ind_p][ind_t][0].attrib['speaker'] = (str_name, str_role, list_uniqueID, str_canton) XML_new[ind_p][ind_t][0].attrib['speaker'] = (str_name, str_role, list_uniqueID, str_canton)
...@@ -1097,6 +1101,7 @@ def collect_info(XML_root, bln_print=False): ...@@ -1097,6 +1101,7 @@ def collect_info(XML_root, bln_print=False):
# construct key # construct key
key = '_'.join((index_page, speaker, index_start, index_end)) key = '_'.join((index_page, speaker, index_start, index_end))
# add to dictionary # add to dictionary
dict_speeches[key] = (speaker_tpl, complete_text) dict_speeches[key] = (speaker_tpl, complete_text)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment