Visitar URL original
gh-84508: tool to generate cjk traditional chinese mappings by sorcio · Pull Request #93272 · python/cpython · GitHub
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
strip trailing whitespace
  • Loading branch information
sorcio committed May 26, 2022
commit 0eae90704b1a2bba747a1c1a30e4fd2cbe2da977
4 changes: 2 additions & 2 deletions Tools/unicode/genmap_tchinese.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def parse_hkscs_map(fo):
# In both supported cases, we only need the first and last column:
# * Big-5 is a hex string (always 4 digits)
# * iso10646:2003 is either a hex string (4 or 5 digits) or a sequence
# of hex strings like: `<code_point1,code_point2>`
# of hex strings like: `<code_point1,code_point2>`
try:
hkscs_col, _, _, uni_col = line.split()
hkscs = int(hkscs_col, 16)
Expand Down Expand Up @@ -209,7 +209,7 @@ def fillhints(self, hintfrom, hintto):


def main_hkscs():
filename = f'python-mappings/hkscs-{HKSCS_VERSION}-big5-iso.txt'
filename = f'python-mappings/hkscs-{HKSCS_VERSION}-big5-iso.txt'
with open_mapping_file(filename, MAPPINGS_HKSCS) as f:
table = parse_hkscs_map(f)
hkscsdecmap, hkscsencmap_bmp, hkscsencmap_nonbmp, isbmpmap = (
Expand Down