Policy¶
asciilint.policy
¶
Character policy parsing and evaluation.
CharacterPolicy
dataclass
¶
Allow/deny policy for Unicode characters.
A character is disallowed when it is outside the configured allowlist or inside the configured denylist. Denylist rules take precedence over allowlist rules.
CodePointRange
dataclass
¶
PolicyError
¶
Bases: ValueError
Raised when a character policy cannot be parsed.
parse_code_point(value)
¶
Parse one Unicode code point from a string.