This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# File input | |
cat "$1" > "tmp.txt" | |
# Translate italian Chess PNG into english Chess PNG | |
sed -i'.bak' 's/R/K/g' "tmp.txt" | |
sed -i'.bak' 's/D/Q/g' "tmp.txt" | |
sed -i'.bak' 's/T/R/g' "tmp.txt" | |
sed -i'.bak' 's/A/B/g' "tmp.txt" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
from pathlib import Path | |
def normalized(name): | |
return (name.replace("-", "_")).lower() | |
def prettyHex(num): | |
return str(hex(num)).replace("0x","") |