FIX firstname

This commit is contained in:
Thomas Kuschel 2024-06-20 03:27:45 +02:00
parent c060763356
commit 7278cb6883
3 changed files with 127 additions and 9 deletions

View File

@ -1,11 +1,14 @@
m Abdul
m Abdull
m Achaz
m Achim
m Adalbert
m Adalberto
m Adolf
m Adam
m Adem
m Adolf
m Adrian
m Alan
m Alastair
m Albert
m Albin
@ -13,14 +16,17 @@ m Albrecht
m Aleksandar
m Aleksander
m Aleksey
m Alex
m Alexander
m Alfger
m Alfons
m Alfred
m Aljoscha
m Aljosha
m Allan
m Alois
m Alvaro
m Amel
m András
m Andràs
m Andre
@ -31,6 +37,7 @@ m Anton
m Archibald
m Arkadiusz
m Armin
m Arne
m Arno
m Arnold
m Arnulf
@ -38,6 +45,8 @@ m Arpad
m Arthur
m Artur
m Attila
m August
m Augustin
m Augustinus
m Avdija
m Axel
@ -46,12 +55,14 @@ m Bartlmä
m Benedict
m Benedikt
m Benjamin
m Benno
m Bernard
m Bernhard
m Berthold
m Bertram
m Bernd
m Bevan
m Bo
m Bogoljub
m Boguslaw
m Bohumil
@ -62,10 +73,12 @@ m Bruno
m Burghard
m Burkhard
m Burkhart
m Calin
m Camillo
m Carl
m Carlo
m Carlos
m Caslav
m Cezar-Iuliu
m Charles
m Chris
@ -75,9 +88,11 @@ m Christof
m Christoph
m Christopher
m Chungil
m Cedric
m Claudio
m Claus
m Clemens
m Corneliu
m Cornelius
m Craig
m Cristian-Andrei
@ -85,20 +100,26 @@ m Cyrill
m Daniel
m Darko
m David
m Dejan
m Denis
m Detlef
m Dieter
m Dietmar
m Dirk
m Domenikhttp://adminer.localhost/?username=om&db=callbook&select=callbook_user
m Domenik
m Dominic
m Dominik
m Dominique
m Donko
m Dorian
m Dragan
m Dustin
m Guenter
m Eberhard
m Eckart
m Edgar
m Edin
m Edmund
m Eduard
m Edward
m Edwin
@ -106,6 +127,7 @@ m Egidius
m Egon
m Elias
m Elmar
m Emanuel
m Emil
m Emir
m Emmerich
@ -124,14 +146,17 @@ m Fabian
m Fabio
m Felix
m Ferdinand
m Fery
m Filip-Jan
m Florian
m Folker
m Franc
m Francesco
m Frank
m Franz
m Franz-Joseph
m Fred
m Frederic
m Frederick
m Frederikus
m Fredy
@ -140,18 +165,22 @@ m Friedrich
m Fridolin
m Fritz
m Frohwald
m Gabor
m Gabriel
m Gasti
m Gavril
m Gebhard
m Geert
m Georg
m Gerald
m Gerd
m Gerfried
m Gerhard
m Gernod
m Gernot
m Gerold
m Gert
m Gerwin
m Gilbert
m Giulio
m Gisbert
@ -161,13 +190,16 @@ m Gregor
m Gregor-Emanuel
m Guenther
m Guido
m Gunar
m Gunnar
m Gunter
m Günter
m Gunther
m Günther
m Guntram
m Gustav
m Gustav-Josef
m Hagen
m Hannes
m Hanno
m Hanns
@ -189,11 +221,14 @@ m Harald-Thomas
m Harry
m Hartmut
m Hartwig
m Hartwin
m Heiko
m Heimo
m Heiner-Anton
m Heinrich
m Heinz
m Helfried
m Helge
m Hellmut
m Hellmuth
m Helmut
@ -206,9 +241,13 @@ m Hermann
m Herolind
m Herwig
m Holger
m Horia
m Horst
m Hubert
m Hugo
m Ilie
m Immanuel
m Ingmar
m Ingo
m Ingulf
m Ivan
@ -219,7 +258,10 @@ m Jacob
m Jakob
m Jan
m Jann-Steffen
m Jaroslav
m Jens
m Jerzy
m Joachim
m Jochen
m Joerg
m Jonas
@ -237,46 +279,57 @@ m Julian
m Julius
m Junichi
m Jürgen
m Juri
m Jurij
m Karl
m Karl-Heinz
m Karl-Otto
m Karl-Thomas
m Karlheinz
m Katarina
m Kersten
m Kevin
m Kilian
m Klaus
m Klaus-Dieter
m Klaus-Jürgen
m Klemens
m Knut
m Konrad
m Konstantin
m Krzysztof
m Kuno
m Kurt
m Lars
m Laszlo
m Laurence
m Laurenz
m Laurin
m Laszlo
m Leander
m Leo
m Leon
m Leonel
m Leonhard
m Leopold
m Less
m Liam
m Lorenz
m Lothar
m Luca
m Lucas
m Luciano
m Ludwig
m Luis
m Lukas
m Manfred
m Manhart
m Manuel
m Marc
m Marcel
m Marcin
m Marco
m Marcus
m Marijan
m Mario
m Mario-Rafael
m Marius
@ -295,6 +348,7 @@ m Matthias
m Max
m Maxim
m Maximilian
m Meinhard
m Meinrad
m Meletios
m Michael
@ -303,26 +357,35 @@ m Mike
m Mikhail
m Mirian
m Mirijan
m Mirijan
m Miroslav
m Monty
m Moritz
m Muhammed
m Murat
m Nail
m Nanak
m Nicolai
m Nicolas
m Niels-Henrik
m Nigel
m Niklas
m Nikolas
m Nikolaus
m Nils-Henrik
m Noah
m Norbert
m Norman
m Ole
m Ole-Christian
m Oliver
m Oliver-Helmut
m Ortwin
m Oskar
m Oswald
m Oswin
m Othmar
m Otmar
m Oto
m Otto
m Otwin
m Ovidiu
@ -337,21 +400,27 @@ m Peter
m Peter-Ernst
m Peter-Holger
m Peter-Philipp
m Petr
m Petros
m Philemon
m Philip
m Philipp
m Pieter
m Piotr
m Primoz
m Radovan
m Raimund
m Rainer
m Rafael
m Raffael
m Raffi
m Ramon
m Raoul
m Raphael
m Ralf
m Ralph
m Reinald
m Reiner
m Reinhard
m Reinhart
m Rembert
@ -361,9 +430,12 @@ m Richard
m Reinhold
m René
m René-Lysander
m Reto
m Robert
m Robin
m Roger
m Roland
m Rolf-Dieter
m Rolf-Dietrich
m Romain
m Roman
@ -371,10 +443,13 @@ m Ronald
m Rüdiger
m Rudolf
m Rupert
m Samir
m Samuel
m Sándor
m Sandro
m Santiago
m Sasa
m Sascha
m Sebastian
m Seong
m Sepp
@ -390,28 +465,36 @@ m Stelio
m Stephan
m Stephen
m Subagio-Rasidi
m Suad
m Sven
m Sven-Erik
m Tadej
m Tamer
m Tamim
m Theodor
m Thomas
m Thomas-Michael
m Thorsten
m Tibor
m Tillmann
m Tim
m Timm
m Timo
m Tobias
m Tomislav
m Tommaso
m Tonny
m Torsten
m Udo
m Ulf
m Ulfried
m Ulrich
m Ümmet
m Urban
m Uwe
m Valentin
m Valerian
m Victor
m Viktor
m Viorel
m Vjekoslav
@ -427,6 +510,7 @@ m Willibald
m Wilfried
m Wilfrid
m Wilhelm
m Wolf
m Wolf-Dieter
m Wolfred
m Winfried
@ -435,9 +519,12 @@ m Wolfram
m Yannic
m Zeljko
m Zlatko
m Zoran
m Zvonko
f Adelheid
f Alexandra
f Alice
f Alina
f Andrea
f Angela
f Angelika
@ -460,12 +547,15 @@ f Bettina
f Bianca
f Birgit
f Brigitte
f Brita
f Britta
f Carina
f Carmen
f Chiara
f Christa
f Christine
f Christl
f Claudia
f Cornelia
f Dagmar
f Doris
@ -478,6 +568,7 @@ f Elisabeth
f Elke
f Ella
f Erdmuthe
f Erika
f Ernestine
f Esther
f Eva
@ -500,6 +591,7 @@ f Gertraude
f Gertrud
f Gertrude
f Gisela
f Gitta
f Gudrun
f Gunhild
f Gustav
@ -510,8 +602,10 @@ f Heidi
f Heidrun
f Helga
f Hemma
f Hera
f Hermine
f Herta
f Hertha
f Hilde
f Hildegard
f Ida-Maria
@ -526,6 +620,7 @@ f Isabel
f Isabella
f Isolde
f Ivonne
f Jana
f Janet
f Jasmin
f Jemilla-Katalin
@ -535,6 +630,7 @@ f Josefine
f Julia
f Juliana
f Jutta
f Karen
f Karin
f Karolina
f Karoline
@ -543,13 +639,18 @@ f Kathrin
f Katja
f Katrin
f Kerstin
f Kirsti
f Klaudia
f Kornelia
f Krista
f Laila
f Larissa
f Leia
f Leonie
f Lieselotte
f Ligia
f Lisbeth
f Lydia
f Lygia
f Luisa
f Luiza
@ -563,6 +664,7 @@ f Margot
f Margret
f Maria
f Marianne
f Marie
f Marie-Luise
f Marina
f Marion
@ -587,10 +689,13 @@ f Paulina
f Pauline
f Petra
f Phaedra
f Pia
f Regina
f Reinhilde
f Renate
f Renee
f Rhea
f Rosa
f Rosina
f Roswitha
f Ruth
@ -609,6 +714,7 @@ f Stefanie
f Steffi
f Stephanie
f Susanne
f Sveta
f Sybille
f Sylvia
f Tadeja
@ -626,4 +732,5 @@ f Veronika
f Victoria
f Waldtraud
f Waltraud
f Yuri
f Yvonne

View File

@ -1,7 +1,9 @@
# TYPO CALLBOOK - 2024-06-17 Version 1.0.0
# X ... Nachname mit Vorname(n) vertauscht
# F ... Vorname(n) <firstname> falsch geschrieben
# N ... Nachname <surname> falsch geschrieben
# You have to write the values exactly under the titles Nachname, Vorname
* Rufz Nachname Vorname
F OE1CGC Gasser Christoph
X OE5ENN Kolmhofer Erich
* Rufz Nachname Vorname(n)
F OE1CGC Gasser Christoph
X OE5ENN Kolmhofer Erich
N OE7DTW Kalteis-Gamerith Reinhold Josef

View File

@ -193,9 +193,15 @@ def call_split_name(fullname, call, verbose):
surname = surname.lower() + ' ' + name[0]
if verbose > 1:
print(f'## {fullname} --> {surname} ##')
case 'senarclens' : # Senarclens de Grancy
if fullname.lower().startswith('senarclens de grancy'):
name = fullname[21:].split(' ',1)
surname = 'Senarclens de Grancy'
if verbose > 1:
print(f'## {fullname} --> {surname} ##')
if len(name) > 1:
firstname = name[1]
firstname = name[1].lstrip() # FIX when there are more than 1 space b/w surname and firstname
else:
firstname = '<unknown>'
@ -236,7 +242,7 @@ def fix_typo(call, fullname, verbose=1):
case '#':
if verbose > 1:
print(line.rstrip())
case 'F':
case 'F' | 'N':
if verbose > 0:
print(line.rstrip())
print(fullname)
@ -251,6 +257,9 @@ def fix_typo(call, fullname, verbose=1):
fix_cnt += 1
if (surname1 != surname2):
fix_cnt += 1
# when the surname is splitted and wrong written:
if line[0] == 'N' and firstname2 in fullname:
if fix_cnt > 1: fix_cnt = 1
if fix_cnt == 0:
print(f'It is fixed! You can remove the line with the item {call} from the file {fixtypofile}!')
elif fix_cnt > 1: