Hi DZO.
I was wondering if there's a step by step guide anywhere showing how to edit these .LNG files / translate them to English, because I'd really like to learn how it works.
I understood how to access, backup and replace the files, but I just can't get the decoding and stuff to work. I've seen your post on github but I'm not sure how to use the scripts..
If a guide doesn't exist and you prefer to not make one, which I understand, do you still take requests?
Thanks for reading!
The source on github are small C programs. To run them you need a compiler, it's possible on windows but much easier on a linux box.
For a debian based distribution you need unicode libs so do:
apt install libunistring-dev
git clone https://github.com/dzo/mrz99.git
cd mrz99
make
to extract strings from a .LNG file do:
./decode PF090JPJPN.LNG | iconv -f utf16 > untranslated_090.txt
to create a new .LNG file do:
./recode translated.txt PF090JPJPN_new.LNG
where translated.txt is the translated text.
To extract the images from an Image.img file do
mkdir bmp
./extractbmp
cp -r bmp bmp_d
cd bmp_d
for i in *.gz; do gzip -d $i; done
to make a new Image.img file put your new images in the updated directory (must be 16 bit rgb565) and do:
cp -r bmp bmp1
cd updated
sh ./update.sh
cd ..
./extractbmp encode
I do have a way to change the splash screen on the mrz99 but it's a little fiddly so I'll only make it available if there is lots of demand.