From b1a0326b6091beba4ecc55b9be22568aaec28be8 Mon Sep 17 00:00:00 2001 From: philipp Date: Sun, 18 Feb 2024 16:27:08 +0100 Subject: [PATCH] kiss: single law text --- laws/abgb.toml | 86 ----------------------------------------- laws/eheg.toml | 57 --------------------------- laws/kschg.toml | 16 -------- laws/mschg.toml | 33 ---------------- laws/schifffahrtsg.toml | 30 -------------- laws/stgb.toml | 43 --------------------- laws/urhg.toml | 30 -------------- laws/vereinsg.toml | 17 -------- laws/vgg.toml | 8 ---- 9 files changed, 320 deletions(-) delete mode 100644 laws/abgb.toml delete mode 100644 laws/eheg.toml delete mode 100644 laws/kschg.toml delete mode 100644 laws/mschg.toml delete mode 100644 laws/schifffahrtsg.toml delete mode 100644 laws/stgb.toml delete mode 100644 laws/urhg.toml delete mode 100644 laws/vereinsg.toml delete mode 100644 laws/vgg.toml diff --git a/laws/abgb.toml b/laws/abgb.toml deleted file mode 100644 index 88e680e..0000000 --- a/laws/abgb.toml +++ /dev/null @@ -1,86 +0,0 @@ -[law] -id = 10001622 -name = "ABGB" - -[[law.classifiers]] -name = "Theil" -is_root = true -match_function = "containsCaseSensitive" - -[[law.classifiers]] -name = "Abtheilung" -is_root = false -match_function = "contains" - -[[law.classifiers]] -name = "Hauptstück" -is_root = false -match_function = "contains" - -[[law.classifiers]] -name = "Abschnitt" -is_root = false -match_function = "contains" - -[[law.classifiers]] -name = "letter" -is_root = false -match_function = "starts_with_letter" - -[[law.classifiers]] -name = "roman numbering" -is_root = false -match_function = "starts_with_roman_number" - -[[law.classifiers]] -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 = [ - "", - "", "", - "", "", - "", "", - """Zweyter Theil.""", # weird thing after § 858 -] - -[[parser.replace_rules]] -find = "Einleitung." # Should be at the same level as the other "Theil"e -replace_with = "Nullter Theil. Einleitung" - -[[parser.replace_rules]] -find = "" -replace_with = "-" - -[[parser.replace_rules]] -find = """Medizinische Behandlung""" -replace_with = """- Medizinische Behandlung""" - -[[parser.replace_rules]] -find = """Von den dinglichen Rechten.""" -replace_with = """Von den dinglichen Rechten.""" - -[[parser.replace_rules]] -find = """Erfordernisse zur Ersitzung:""" -replace_with = """I. Erfordernisse zur Ersitzung:""" - -# RIS uses multiple headers to get more attention... -[[parser.replace_rules]] -find = """Zweyter Theildesbürgerlichen Gesetzbuches.Von dem Sachenrechte.""" -replace_with = """Zweyter Theil des bürgerlichen Gesetzbuches: Von dem Sachenrechte.""" - -[[parser.replace_rules]] -find = """Erste Abtheilungdes Sachenrechtes.""" -replace_with = """Erste Abtheilung des Sachenrechtes.""" - -[[parser.replace_rules]] -find = """Dritter Theildesbürgerlichen Gesetzbuches.Von den gemeinschaftlichen Bestimmungen der Personen- und Sachenrechte.""" -replace_with = """Dritter Theil des bürgerlichen Gesetzbuches.Von den gemeinschaftlichen Bestimmungen der Personen- und Sachenrechte.""" - diff --git a/laws/eheg.toml b/laws/eheg.toml deleted file mode 100644 index 9982cde..0000000 --- a/laws/eheg.toml +++ /dev/null @@ -1,57 +0,0 @@ -[law] -id = 10001871 -name = "Ehegesetz" - -[[law.classifiers]] -name = "Abschnitt" -is_root = true -match_function = "contains" - -[[law.classifiers]] -name = "Uppercase letter" -is_root = false -match_function = "starts_with_uppercaseletter" - -[[law.classifiers]] -name = "roman letter" -is_root = false -match_function = "starts_with_roman_number" - -[[law.classifiers]] -name = "letter" -is_root = false -match_function = "starts_with_letter" - -[parser] -remove_strings = [ - """§ 33""", - "", "", - "", "" -] -move_para_headers_into_content = true - - -[[parser.replace_rules]] -find = "" -replace_with = "-" - -[[parser.replace_rules]] -find = "(Anm.: § 108 aufgehoben durch Art. II Z 7 BGBl. Nr. 566/1983)" -replace_with = "§ 108.(Anm.: § 108 aufgehoben durch Art. II Z 7 BGBl. Nr. 566/1983)" - -# Wrongly formatted "headers" -[[parser.replace_rules]] -find = """Fristablauf""" -replace_with = """Fristablauf""" - -[[parser.replace_rules]] -find = """I. Nichtigkeitsgründe""" -replace_with = """I. Nichtigkeitsgründe""" - -[[parser.replace_rules]] -find = """I. Allgemeine Vorschriften""" -replace_with = """I. Allgemeine Vorschriften""" - -[[parser.replace_rules]] -find = """I. Name der geschiedenen Frau""" -replace_with = """I. Name der geschiedenen Frau""" diff --git a/laws/kschg.toml b/laws/kschg.toml deleted file mode 100644 index bcfc9f2..0000000 --- a/laws/kschg.toml +++ /dev/null @@ -1,16 +0,0 @@ -[law] -id = 10002462 -name = "Konsumentenschutzgesetz" - -[[law.classifiers]] -name = "Hauptstück" -is_root = true -match_function = "contains" - -[[law.classifiers]] -name = "Abschnitt" -is_root = false -match_function = "contains" - -[parser] -remove_strings = ["", ""] diff --git a/laws/mschg.toml b/laws/mschg.toml deleted file mode 100644 index c53b3d7..0000000 --- a/laws/mschg.toml +++ /dev/null @@ -1,33 +0,0 @@ -[law] -id = 10002180 -name = "Markenschutzgesetz" - -[[law.classifiers]] -name = "Abschnitt" -is_root = true -match_function = "contains" - -[[law.classifiers]] -name = "Number" -is_root = false -match_function = "starts_with_number" - -[parser] -remove_strings = ["", ""] - -[[parser.replace_rules]] -find = "bis" -replace_with = "bis" - -[[parser.replace_rules]] -find = "ter" -replace_with = "ter" - -[[parser.replace_rules]] -find = "" -replace_with = "-" - -[[parser.replace_rules]] -find = "(Anm.: § 69 aufgehoben durch Art. 1 Z 12, BGBl. I Nr. 124/2017)" -replace_with = "§ 69.(Anm.: § 69 aufgehoben durch Art. 1 Z 12, BGBl. I Nr. 124/2017)" - diff --git a/laws/schifffahrtsg.toml b/laws/schifffahrtsg.toml deleted file mode 100644 index bea267c..0000000 --- a/laws/schifffahrtsg.toml +++ /dev/null @@ -1,30 +0,0 @@ -[law] -id = 10012703 -name = "Schifffahrtsgesetz" - -[[law.classifiers]] -name = "Teil" -is_root = true -match_function = "contains" - -[[law.classifiers]] -name = "Hauptstück" -is_root = false -match_function = "contains" - -[parser] -remove_strings = [ - "", "", - "", "", - "", "", - "", "", - "", "", - "", "", - "" # this is a nice one, have a look at § 133 (2) Zi. 5 and enjoy :^) -] - - -[[parser.replace_rules]] -find = "" -replace_with = "-" - diff --git a/laws/stgb.toml b/laws/stgb.toml deleted file mode 100644 index 1cb46d3..0000000 --- a/laws/stgb.toml +++ /dev/null @@ -1,43 +0,0 @@ -[law] -id = 10002296 -name = "StGB" - -[[law.classifiers]] -name = "Teil" -is_root = true -match_function = "contains" - -[[law.classifiers]] -name = "Abschnitt" -is_root = false -match_function = "contains" - -[parser] -remove_strings = [ - "", "", - "", "", - "", "", - "", "", - """""" -] - -[[parser.replace_rules]] -find = """Erster Abschnitt""" -replace_with = """Erster Abschnitt""" - -[[parser.replace_rules]] -find = """Allgemeine Bestimmungen""" -replace_with = """Allgemeine Bestimmungen""" - -[[parser.replace_rules]] -find = """1. Verwertungsrechte.""" -replace_with = """1. Verwertungsrechte.""" - -[[parser.replace_rules]] -find = """Strafbare Handlungen gegen Leib und Leben""" -replace_with = """Strafbare Handlungen gegen Leib und Leben""" - -[[parser.replace_rules]] -find = "" -replace_with = "-" - diff --git a/laws/urhg.toml b/laws/urhg.toml deleted file mode 100644 index b9326da..0000000 --- a/laws/urhg.toml +++ /dev/null @@ -1,30 +0,0 @@ -[law] -id = 10001848 -name = "Urhebergesetz" - -[[law.classifiers]] -name = "Hauptstück" -is_root = true -match_function = "contains" - -[[law.classifiers]] -name = "Abschnitt" -is_root = false -match_function = "contains" - -[[law.classifiers]] -name = "Number" -is_root = false -match_function = "starts_with_number" - -[[parser.replace_rules]] -find = "." -replace_with = "." - -[[parser.replace_rules]] -find = "" -replace_with = "-" - -[[parser.replace_rules]] -find = """(2) Einer Rundfunksendung steht es gleich, wenn ein Werk von einer im In- oder im Ausland gelegenen Stelle aus der Öffentlichkeit im Inland, ähnlich wie durch Rundfunk, aber mit Hilfe von Leitungen wahrnehmbar gemacht wird.""" -replace_with = """(2) Einer Rundfunksendung steht es gleich, wenn ein Werk von einer im In- oder im Ausland gelegenen Stelle aus der Öffentlichkeit im Inland, ähnlich wie durch Rundfunk, aber mit Hilfe von Leitungen wahrnehmbar gemacht wird.""" diff --git a/laws/vereinsg.toml b/laws/vereinsg.toml deleted file mode 100644 index 05db481..0000000 --- a/laws/vereinsg.toml +++ /dev/null @@ -1,17 +0,0 @@ -[law] -id = 20001917 -name = "Vereinsgesetz" - -[[law.classifiers]] -name = "Abschnitt" -is_root = true -match_function = "contains" - -[parser] -remove_strings = ["", ""] - - -[[parser.replace_rules]] -find = "" -replace_with = "-" - diff --git a/laws/vgg.toml b/laws/vgg.toml deleted file mode 100644 index 2d9df81..0000000 --- a/laws/vgg.toml +++ /dev/null @@ -1,8 +0,0 @@ -[law] -id = 20011654 -name = "Verbrauchergewährleistungsgesetz" - -[[law.classifiers]] -name = "Abschnitt" -is_root = true -match_function = "contains"