Files
Roland van Laar 47cb9dedbe TESTS: String equality tables
Different director versions have different string equalitytables.
The directory `stringequality` contains all that is necessary to
recreate the table for D3 and D4 mac and D4 and D5 windows.
2024-12-20 17:03:12 +01:00

10 lines
421 B
Python

if __name__ == "__main__":
with open("D3-mac-equalitytable.txt", "r") as file:
data = file.read()
table_from_mac = [i for i in data.replace("-", "").replace("\"","").replace(" ", "").split('\n') if i]
equality_table = list(range(256))
for i in table_from_mac:
a, b = i.split(":")
equality_table[int(a)] = int(b)
print([hex(i) for i in equality_table])