--extract --fromtext Schalter hinzu, um die regulären Ausdrücke in der config testen zu können. Konfigurationsdatei erweitert, so dass CAD Begriffe, Maßeinheiten etc. nicht in die Übersetzungstexte kommen

This commit is contained in:
2025-12-03 19:05:31 +01:00
parent ed416a5315
commit 56979938f5
3 changed files with 426 additions and 69 deletions
+33 -8
View File
@@ -6,13 +6,13 @@
# Häufige technische Abkürzungen und Codes
layer = LAYER=*
dim = DIM*
special = %%*
# Koordinaten und technische Angaben
coord_x = X=*
coord_y = Y=*
coord_z = Z=*
KR_code = KR-M*
@@ -21,12 +21,30 @@ coord_z = Z=*
# Ein Ausdruck pro Zeile (Python regex Syntax)
# Format: pattern_name = regex
# Dezimalzahl mit Punkt oder Komma
decimal_number = ^-?\d+([.,]\d+)?$
pos_decimal_number = ^\+?\d+([.,]\d+)?$
# Prozentangaben
percent = ^-?\d+([.,]\d+)?\s*%$
# Angaben wie =A1 +AB12 oder =A2+UZ304
anlagen_nr = ^=A\d\s*\+[A-Z]{2}\d+
anlagen_nr3 = ^=A\d\+UZ\d{3}
anlagen_nr3 = ^=A\d\+UZ\d{3}
# Zeichen von A bis F als einzelnes Zeichen
ein_zeichen = ^[A-F]$
# A.1 bold
single_letters = ^\\f.*;[A-Z]\.\d$
AX = ^[A-F]\d$
ILSCV = ^ILS-CV\\PM\d{4}$
# # Blöcke wie BLOCK 1.1.2
# BLOCK_3 = ^BLOCK \d\.\d(\.\d)?$
# BLOCK_2 = ^BLOCK \d\.\d$
# BLOCK_1 = ^BLOCK \d\$
# Technische Angaben
h1875 = ^\\H1.875x
h1875ff = ^\\H1.875x;.*$
@@ -37,12 +55,19 @@ m_numbers = ^M\d{3}$
coord_arrows = ^\+\d{1,3}(?:[.,]\d{3})\s*(?:<<<|>>>)\s*\+\d{1,3}(?:[.,]\d{3})$
# +UC3206\P3 x ET200 SP DI16 402.0
uc4 = ^\+UC\d{4}
uc2 = ^=A\d\+UC\d{2}
uc3 = ^=A\d\+UC\d{3}
uz2 = ^=A\d\+UZ\d{2}
uz3 = ^=A\d\+UZ\d{3}
ax_uc4 = ^=A\d\+UC\d{2,4}
ax_uz4 = ^=A\d\+UZ\d{2,4}
a0x_uz1= ^=A01\+UZ\d+
a0x_uc4 = ^=A0\d\+UC\d{2,4}
a0x_uz4 = ^=A\d\+UZ\d{2,4}
pxqc_patterns = ^\\pxqc; =A0[1-9]\+UC\d{2,4}$
pxqc_patterns2 = ^\\pxqc; =A1\+UC\d{2,4}$
pxqc_patterns3 = ^\\pxqc; =A1\+UH\d{2,4}$
ip_adresse = ^\\fArial Narrow.*(\d{1,3}\.){3}\d{1,3}$
ip_adress = ^.*;(\d{1,3}\.){3}\d{1,3}$
# TUNNEL Bezeichnungen wie \fArial TUNNEL12-3456
tunnel = ^\\fArial.*TUNNEL\d+-\d{4}$
kr = ^KR-\d{3,4}$
kw_A = ^\d+\s*KW\s*-\s*\d+\s*A$