| 10 | |
| 11 | @dataclass |
| 12 | class CharData: |
| 13 | name: str |
| 14 | codept: int |
| 15 | encodings: list[tuple[str, int]] |
| 16 | |
| 17 | def sort_key(self) -> tuple[int, str, int]: |
| 18 | if self.name.startswith("LATIN "): |
| 19 | return (0, self.name, self.codept) |
| 20 | else: |
| 21 | return (1, "", self.codept) |
| 22 | |
| 23 | |
| 24 | SAFE_ENCODINGS = [ |