improve abgb
All checks were successful
CI/CD Pipeline / test (push) Successful in 1m39s

This commit is contained in:
2024-02-06 13:10:59 +01:00
parent b096ffe74d
commit 4cc684ea91
6 changed files with 14 additions and 4479 deletions

View File

@ -31,12 +31,18 @@ name = "numbering"
is_root = false
match_function = "starts_with_number"
[[law.classifiers]]
name = "dash"
is_root = false
match_function = "starts_with_dash"
[parser]
remove_strings = [
"<tab />",
"<b>", "</b>",
"<i>", "</i>",
"<n>", "</n>",
"""<ueberschrift typ="g1" ct="text" halign="c">Zweyter Theil.</ueberschrift>""", # weird thing after § 858
]
[[parser.replace_rules]]
@ -49,7 +55,7 @@ replace_with = "-"
[[parser.replace_rules]]
find = """<ueberschrift typ="g1" ct="text" halign="c">Medizinische Behandlung</ueberschrift>"""
replace_with = """<ueberschrift typ="g1" ct="text" halign="c">I. Medizinische Behandlung</ueberschrift>"""
replace_with = """<ueberschrift typ="g1" ct="text" halign="c">- Medizinische Behandlung</ueberschrift>"""
[[parser.replace_rules]]
find = """<ueberschrift typ="g1" ct="text" halign="c">Zweyter Theil</ueberschrift><ueberschrift typ="g1" ct="text" halign="c">des</ueberschrift><ueberschrift typ="g1" ct="text" halign="c">bürgerlichen Gesetzbuches.</ueberschrift><ueberschrift typ="g1" ct="text" halign="c">Von dem Sachenrechte.</ueberschrift>"""