Beispiel #1
0
def start():
    workfiles.rem_tmpfiles()
    workfiles.remove_last_comma()
    remove_same_word()
    remove_less_half_frequency()
    only_four_translations()
    workfiles.treat_line1001()
    workfiles.rem_tmpfiles_create_outfile()
def start():
    workfiles.rem_tmpfiles()
    add_tabs()
    rem_definitions_duplicate()
    valid = workfiles.validate_number_tabs(6)
    if valid == True:
        rem_spell_synonyms()
        sound_mp3_directory()
        workfiles.treat_line1001()
        workfiles.rem_tmpfiles_create_outfile()
Beispiel #3
0
def start():
    workfiles.rem_tmpfiles()
    reorganizeTranslations()
    remove_frequency()
    remove_same_word()
    remove_same_word()
    remove_same_translations()
    remove_same_translations_without_frequency()
    only_four_translations()
    workfiles.remove_last_comma()
    workfiles.treat_line1001()
    workfiles.rem_tmpfiles_create_outfile()
Beispiel #4
0
def start():
    workfiles.rem_tmpfiles()
    valid = workfiles.validate_number_tabs(3)
    if valid == True:
        if is_firstfield_equals_word() == False:
            cnt = workfiles.get_last_tmpcnt()
            cnt = cnt + 1
            workfiles.add_word_to_firstfield(cnt)
    valid = workfiles.validate_number_tabs(4)
    if valid == True:
        rem_spaces_between_translations()
        clean_ipa()
        #remove_wordlist_from_soundname()
        sound_mp3_directory()
        organize_definitions()
        clean_definitions()
        organize_definitions_with_br()
        workfiles.treat_line1001()
        workfiles.rem_tmpfiles_create_outfile()
def start():
    workfiles.rem_tmpfiles()
    workfile()
    workfiles.remove_last_comma()
    workfiles.treat_line1001()
    workfiles.rem_tmpfiles_create_outfile()
Beispiel #6
0

def remove_spaces_between_words():
    print('removing spaces between words')
    rd = workfiles.read_lasttmp_or_output()
    cnt = workfiles.new_tmpfile()
    while True:
        line = rd.readline()
        if not line:
            break
        if len(line) < 5:
            workfiles.write_tmpfile(cnt, line, 'a')
            continue
        terms = line.split('\t')
        if len(terms) == 1:
            workfiles.write_tmpfile(cnt, line, 'a')
            continue
        words = terms[1].split(',')
        new_line = ','.join(words)
        new_line = new_line.replace(', ', ',')
        workfiles.write_tmpfile(cnt, terms[0] + '\t' + new_line, 'a')
    rd.close()


workfiles.rem_tmpfiles()
clean_debbris()
insert_comma()
remove_spaces_between_words()
workfiles.count_words()
workfiles.treat_line1001()
workfiles.rem_tmpfiles_create_outfile()
def start():
    workfiles.rem_tmpfiles()
    #remove_wordlist_from_name()
    sound_mp3_directory()
    workfiles.treat_line1001()
    workfiles.rem_tmpfiles_create_outfile()