mirror of
https://gitlab.os-k.eu/neox/CNIRevelator.git
synced 2023-08-25 14:03:10 +02:00
commit
cb46844fec
BIN
CNIRevelator Documentation.docx
Normal file
BIN
CNIRevelator Documentation.docx
Normal file
Binary file not shown.
@ -1 +1,2 @@
|
||||
|
||||
# ver|url|checksum, and | as separator, one version per ||
|
||||
3.1.2|https://github.com/neox95/CNIRevelator/releases/download/3.1.2b/CNIRevelator.zip|c64aef5b9935783c271e0e3406f9c335ce6f8d59||
|
@ -96,8 +96,7 @@ try:
|
||||
launcherThread = threading.Thread(target=updater.umain, daemon=False)
|
||||
launcher.lmain(launcherThread)
|
||||
except Exception:
|
||||
critical.crashCNIR()
|
||||
updater.exitProcess(1)
|
||||
critical.crashCNIR(False)
|
||||
|
||||
if updater.UPDATE_IS_MADE:
|
||||
# Launch app !
|
||||
|
12
src/lang.py
12
src/lang.py
@ -180,15 +180,16 @@ french = \
|
||||
"Please choose your language : " : "Merci de choisir votre langue : ",
|
||||
"Please choose your update "
|
||||
"channel : " : "Merci de choisir votre canal de mise-à-jour : ",
|
||||
"Passeport" : "Passeport",
|
||||
"Passeport lisible à la machine" : "Passeport lisible à la machine",
|
||||
"Carte-passeport" : "Carte-passeport",
|
||||
"Titre d'identité/de voyage" : "Titre d'identité/de voyage",
|
||||
"Carte d’identité européenne" : "Carte d’identité européenne",
|
||||
"Certificat de membre d'équipage" : "Certificat de membre d'équipage",
|
||||
"Visa de type A" : "Visa de type A",
|
||||
"Visa de type B" : "Visa de type B",
|
||||
"Carte de séjour" : "Carte de séjour",
|
||||
"Carte de séjour FR" : "Carte de séjour français",
|
||||
"Pièce d'identité/de voyage" : "Pièce d'identité/de voyage",
|
||||
"Pièce d'identité FR" : "Pièce d'identité FR",
|
||||
"Pièce d'identité FR" : "Pièce d'identité française",
|
||||
"Permis de conduire" : "Permis de conduire",
|
||||
"The file you provided is not "
|
||||
"valid : {}" : "Le fichier transmis n'est pas valide : {}",
|
||||
@ -873,13 +874,14 @@ english = \
|
||||
"Please choose your language : " : "Please choose your language : ",
|
||||
"Please choose your update "
|
||||
"channel : " : "Please choose your update channel : ",
|
||||
"Passeport" : "Passport",
|
||||
"Passeport lisible à la machine" : "Machine Readable Passport",
|
||||
"Carte-passeport" : "Passport card",
|
||||
"Carte d’identité européenne" : "European identity document",
|
||||
"Titre d'identité/de voyage" : "Identity/travel document",
|
||||
"Certificat de membre d'équipage" : "Crew member certificate",
|
||||
"Visa de type A" : "Type A visa",
|
||||
"Visa de type B" : "Type B visa",
|
||||
"Carte de séjour" : "Residence permit",
|
||||
"Carte de séjour FR" : "French Residence permit",
|
||||
"Pièce d'identité/de voyage" : "Identity/travel document",
|
||||
"Pièce d'identité FR" : "French Identity card",
|
||||
"Permis de conduire" : "Driver License",
|
||||
|
34
src/mrz.py
34
src/mrz.py
@ -61,7 +61,7 @@ P = [
|
||||
"D": ["1", "CTRLF", "[0-9]", "C"],
|
||||
"E": ["1", "CTRL", "[0-9]", "4578ABCD"]
|
||||
},
|
||||
lang.all[globs.CNIRlang]["Passeport"]
|
||||
lang.all[globs.CNIRlang]["Passeport lisible à la machine"]
|
||||
]
|
||||
|
||||
IP = [
|
||||
@ -84,7 +84,7 @@ IP = [
|
||||
lang.all[globs.CNIRlang]["Carte-passeport"]
|
||||
]
|
||||
|
||||
I_ = [
|
||||
IDEUR = [
|
||||
["112223333333334555555555555555", "66666678999999ABBBCCCCCCCCCCCD"],
|
||||
{
|
||||
"1": ["2", "CODE", "I."],
|
||||
@ -101,7 +101,27 @@ I_ = [
|
||||
"C": ["11", "FACULT", ".+"],
|
||||
"D": ["1", "CTRL", "[0-9]", "345679AC"]
|
||||
},
|
||||
lang.all[globs.CNIRlang]["Titre d'identité/de voyage"]
|
||||
lang.all[globs.CNIRlang]["Carte d’identité européenne"]
|
||||
]
|
||||
|
||||
TSEUR = [
|
||||
["112223333333334555555555555555", "66666678999999ABBBCCCCCCCCCCCD"],
|
||||
{
|
||||
"1": ["2", "CODE", "IR"],
|
||||
"2": ["3", "PAYS", "[A-Z]+"],
|
||||
"3": ["9", "NO", ".+"],
|
||||
"4": ["1", "CTRL", "[0-9]", "3"],
|
||||
"5": ["15", "FACULT", ".+"],
|
||||
"6": ["6", "BDATE", "[0-9]+"],
|
||||
"7": ["1", "CTRL", "[0-9]", "6"],
|
||||
"8": ["1", "SEX", "[A-Z]"],
|
||||
"9": ["6", "EDATE", "[0-9]+"],
|
||||
"A": ["1", "CTRL", "[0-9]", "9"],
|
||||
"B": ["3", "NAT", "[A-Z]+"],
|
||||
"C": ["11", "FACULT", ".+"],
|
||||
"D": ["1", "CTRL", "[0-9]", "345679AC"]
|
||||
},
|
||||
lang.all[globs.CNIRlang]["Carte d’identité européenne"]
|
||||
]
|
||||
|
||||
AC = [
|
||||
@ -179,10 +199,10 @@ TSF = [
|
||||
"B": ["1", "CTRL", "[0-9]", "A"],
|
||||
"C": ["8", "FACULT", ".+"]
|
||||
},
|
||||
lang.all[globs.CNIRlang]["Carte de séjour"]
|
||||
lang.all[globs.CNIRlang]["Carte de séjour FR"]
|
||||
]
|
||||
|
||||
I__ = [
|
||||
TDV = [
|
||||
["112223333333333333333333333333333333", "444444444566677777789AAAAAABCCCCCCCD"],
|
||||
{
|
||||
"1": ["2", "CODE", "I."],
|
||||
@ -199,7 +219,7 @@ I__ = [
|
||||
"C": ["7", "FACULT", ".+"],
|
||||
"D": ["1", "CTRL", "[0-9]", "4578ABC"]
|
||||
},
|
||||
lang.all[globs.CNIRlang]["Pièce d'identité/de voyage"]
|
||||
lang.all[globs.CNIRlang]["Titre d'identité/de voyage"]
|
||||
]
|
||||
|
||||
IDFR = [
|
||||
@ -236,7 +256,7 @@ DL = [
|
||||
lang.all[globs.CNIRlang]["Permis de conduire"]
|
||||
]
|
||||
|
||||
TYPES = [IDFR, I__, VB, VA, AC, I_, IP, P, DL, TSF]
|
||||
TYPES = [IDFR, TDV, VB, VA, AC, IDEUR, IP, P, DL, TSF, TSEUR]
|
||||
|
||||
# longest document MRZ line
|
||||
longest = max([len(x[0][0]) for x in TYPES])
|
||||
|
Loading…
Reference in New Issue
Block a user