Skip to content

pampos79/tools

 
 

Repository files navigation

Amazfit bip tools

This is a suite of tools to make easier to translate and tweak Amazfit bip (A1608) watch.

Usually each tool have its -h flag that allow you to understand better how it works.

res2img.py

small tool to convert amazfit bip resource file to a standard image file.

./res2img.py -h

./res2img.py -u [-a] [-i Mili_chaohu.res]

edit your bmp you will find in a new direcory freshly created

./res2img.py -p

repack the res file with new name

small tool to convert amazfit bip resource file to a standard image file.

if you call it without any parameter actually it will look for "Mili_chaohu.res_3.0.4"

it will generate splitted a number of raw file and for each file a correspondent jpg file.

The program generate some temporary file like a textual palette and a mask to be applied to the grayscale image to get the indexed one. By tweaking the program is possible to keep souch files.

Requirements:
convert command from imagemagick suite

zh-cn2en.py

./zh-cn2en.py [-h] [-l en] [-p]

Process zh-cn2en.txt by looking for hex string pattern, connect to google translate and add the english translation to the txt file this tool can be useful for replacing string from chinese to english

Requirements:
https://github.com/ssut/py-googletrans.git

zh-check_translation.py

It can help you check the translation (the length of translated strings must be less than or equal to the length of the chinese strings). It prints the line number where the problem occurred

zh-merge_old2new_trans.py

If there will be a new zh-cn2(lang).txt file from next firmware upgrades, the tool can be used to merge your translations from the old "zh" file to the new one

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%