risp/data/configs/aeuv.toml
philipp 7e88257df6
All checks were successful
CI/CD Pipeline / test (push) Successful in 1m0s
cleaner config
2024-05-26 17:15:22 +02:00

53 lines
1.1 KiB
TOML

[law]
id = 10008049
name = "AEUV"
par_sign = "Artikel"
[[law.classifiers]]
name = " Teil"
is_root = true
match_function = "contains"
[[law.classifiers]]
name = "Titel"
is_root = false
match_function = "contains"
[[law.classifiers]]
name = "Kapitel"
is_root = false
match_function = "contains"
[[law.classifiers]]
name = "Abschnitt"
is_root = false
match_function = "contains"
[parser]
remove_strings = [
"<tab />",
"<b>", "</b>",
"<i>", "</i>",
"<n>", "</n>",
"<super>", "</super>",
]
move_para_headers_into_content = true
[[parser.replace_rules]]
find = "<br />"
replace_with = " "
[[parser.replace_rules]]
find = "<gdash />"
replace_with = "-"
# Replace all 'erltext's which have subsections...
[[parser.replace_rules]]
find = """<absatz typ="erltext" ct="text" halign="j">("""
replace_with = """<absatz typ="abs" ct="text" halign="j">("""
# ... and replace all 'erltext's which have only one section
[[parser.replace_rules]]
find = """/ueberschrift><absatz typ="erltext" ct="text" halign="j">"""
replace_with = """/ueberschrift><absatz typ="abs" ct="text" halign="j">"""