Skip to content

Commit 88edf2d

Browse files
committed
Remove begninning-of-word token from ignore patterns.
1 parent 25c6116 commit 88edf2d

File tree

2 files changed

+13
-18
lines changed

2 files changed

+13
-18
lines changed

scriptshifter/tables/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ def load_table(tname):
400400

401401
# Inherit normalization rules.
402402
for parent in parents:
403-
parent_langsec = load_table(parent)["script_to_roman"]
403+
parent_langsec = load_table(parent).get("script_to_roman", {})
404404
normalize |= parent_langsec.get("normalize", {})
405405

406406
for k, v in tdata["script_to_roman"].get("normalize", {}).items():

scriptshifter/tables/data/_ignore_base.yml

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,17 @@ roman_to_script:
2222
# dedicated U+2160÷U+216F (uppercase Roman
2323
# numerals) and/or U+2170÷U+217F (lower case Roman
2424
# numerals) ranges to avoid this ambiguity.
25-
- "\\bI{2,3}\\b"
26-
- "\\bI(V|X)\\b"
27-
- "\\bLI{,3}\\b"
28-
- "\\bLI?(V|X)\\b"
29-
- "\\bL(V|X{1,3})I{,3}\\b"
30-
- "\\bLX{1,3}I?V\\b"
31-
- "\\bLX{1,3}VI{,3}\\b"
32-
- "\\b(V|X{1,3})I{,3}\\b"
33-
- "\\bX{1,3}I{,3}\\b"
34-
- "\\bX{1,3}I(V|X)\\b"
35-
- "\\bX{1,3}VI{,3}\\b"
25+
- "I{2,3}\\b"
26+
- "I(V|X)\\b"
27+
- "LI{,3}\\b"
28+
- "LI?(V|X)\\b"
29+
- "L(V|X{1,3})I{,3}\\b"
30+
- "LX{1,3}I?V\\b"
31+
- "LX{1,3}VI{,3}\\b"
32+
- "(V|X{1,3})I{,3}\\b"
33+
- "X{1,3}I{,3}\\b"
34+
- "X{1,3}I(V|X)\\b"
35+
- "X{1,3}VI{,3}\\b"
3636

3737
# MARC sub-field markers.
38-
- "\\b[\u2021\u01C2\\$][0-9a-z]\\b"
39-
40-
script_to_roman:
41-
ignore_ptn:
42-
# MARC sub-field markers.
43-
- "\\b[\u2021\u01C2\\$][0-9a-z]\\b"
38+
- "[\u2021\u01C2\\$][0-9a-z]\\b"

0 commit comments

Comments
 (0)