Skip to content

Commit

Permalink
Label single-byte visualization rows by byte value
Browse files Browse the repository at this point in the history
  • Loading branch information
hsivonen authored and annevk committed Feb 26, 2020
1 parent 47c667e commit 673e65a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion visualize.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,9 @@ def format_index(name, row_length, lang, bmp, duplicates, byte_rule):
else:
out_file.write("<th>%d" % (lead - 0xA0))
out_file.write("<th class=byte>%02X" % lead)
out_file.write("<th>%02X" % row_num)
# Format single-byte encodings (whose row_length is 16) by lead byte
# as opposed to index high half
out_file.write("<th>%02X" % (row_num + 0x8 if row_length == 16 else row_num))
new_row = False
duplicate = False
if code_point is not None:
Expand Down

0 comments on commit 673e65a

Please sign in to comment.