module documentation

Undocumented

Function match_chars Test whether c1 and c2 are a matching open/close character pair.
Variable closers Undocumented
Variable closing_delimiters Undocumented
Variable delimiters Undocumented
Variable openers Undocumented
Variable quote_pairs Additional open/close quote pairs.
def match_chars(c1, c2): (source)

Test whether c1 and c2 are a matching open/close character pair.

Matching open/close pairs are at the same position in punctuation_chars.openers and punctuation_chars.closers. The pairing of open/close quotes is ambiguous due to different typographic conventions in different languages, so we test for additional matches stored in quote_pairs.

closers: str = (source)

Undocumented

closing_delimiters: str = (source)

Undocumented

delimiters = (source)

Undocumented

openers: str = (source)

Undocumented

quote_pairs: dict[str, str] = (source)

Additional open/close quote pairs.