Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Commit

Permalink
Determining the numbered lists.
Browse files Browse the repository at this point in the history
  • Loading branch information
walter-weinmann committed Jul 8, 2022
1 parent 90208b7 commit 5b306b3
Show file tree
Hide file tree
Showing 4 changed files with 82 additions and 15 deletions.
2 changes: 1 addition & 1 deletion data/lt_export_rule_heading.json
Original file line number Diff line number Diff line change
Expand Up @@ -256,4 +256,4 @@
]
}
]
}
}
39 changes: 32 additions & 7 deletions data/lt_export_rule_list_bullet.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,37 @@
{
"lineTypeAntiPatterns": [],
"lineTypeRules": [
"- ",
". ",
"\ufffd ",
"o ",
"\u00b0 ",
"\u2022 ",
"\u2023 "
"-",
".",
"o",
"\u00b0",
"\u00b7",
"\u00ba",
"\u2022",
"\u2023",
"\u2043",
"\u204c",
"\u204d",
"\u2218",
"\u2219",
"\u22c4",
"\u22c5",
"\u22c6",
"\u25cb",
"\u25cf",
"\u25d8",
"\u25e6",
"\u2605",
"\u2606",
"\u2609",
"\u2619",
"\u2662",
"\u2666",
"\u26ac",
"\u26b9",
"\u2765",
"\u2767",
"\u29be",
"\u29bf"
]
}
39 changes: 32 additions & 7 deletions data/lt_export_rule_list_bullet_test.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,37 @@
}
],
"lineTypeRules": [
"- ",
". ",
"\ufffd ",
"o ",
"\u00b0 ",
"\u2022 ",
"\u2023 "
"-",
".",
"o",
"\u00b0",
"\u00b7",
"\u00ba",
"\u2022",
"\u2023",
"\u2043",
"\u204c",
"\u204d",
"\u2218",
"\u2219",
"\u22c4",
"\u22c5",
"\u22c6",
"\u25cb",
"\u25cf",
"\u25d8",
"\u25e6",
"\u2605",
"\u2606",
"\u2609",
"\u2619",
"\u2662",
"\u2666",
"\u26ac",
"\u26b9",
"\u2765",
"\u2767",
"\u29be",
"\u29bf"
]
}
17 changes: 17 additions & 0 deletions src/dcr/nlp/cls_nlp_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -564,17 +564,34 @@ def _get_lt_rules_default_list_bullet() -> dict[str, int]:
The bulleted list line type rules.
"""
return {
"\u002D": 0,
"\u002E": 0,
"\u006F": 0,
"\u00B0": 0,
"\u00B7": 0,
"\u00BA": 0,
"\u2022": 0,
"\u2023": 0,
"\u2043": 0,
"\u204C": 0,
"\u204D": 0,
"\u2218": 0,
"\u2219": 0,
"\u22C4": 0,
"\u22C5": 0,
"\u22C6": 0,
"\u25CB": 0,
"\u25CF": 0,
"\u25D8": 0,
"\u25E6": 0,
"\u2605": 0,
"\u2606": 0,
"\u2609": 0,
"\u2619": 0,
"\u2662": 0,
"\u2666": 0,
"\u26AC": 0,
"\u26B9": 0,
"\u2765": 0,
"\u2767": 0,
"\u29BE": 0,
Expand Down

0 comments on commit 5b306b3

Please sign in to comment.