Comments (12)
Are you sure about it?
./zh-check_translation.py -i zh-cn2en.txt.0.0.8.74
OK!
try to start the tool with:
./zh-cn2en.py -i zh-cn2pl.txt.0.0.8.74 -l pl -t
the original file will be rewritten with "#" in front of translation fo fix.
On screen you'll see the lenght in bytes of original string and the lenght in bytes of your translation
EG:
#E9 95 B7 E6 8C 89 E6 8C 89 E9 8D B5 => 長按按鍵(12) = Długie przyc.(14)
#E9 95 BF E6 8C 89 E6 8C 89 E9 94 AE => 长按按键(12) = Długie przyc.(14)
#E9 96 8B E5 95 9F E6 96 B9 E5 BC 8F => 開啟方式(12) = Jak otworzyć?(14)
As you can see you need to short your translation
from tools.
And so? Thy to short that line.
On your file you should see some line with # simbol.
You should make them shorter.
from tools.
Ok, I found what is the problem ;)
In Chinese word "Bike" is "騎行" = 2 characters. That why 99% of our translation will be too long.
from tools.
from tools.
@dpeddi so how should you suggest to solve this? :)
Checking "騎行" = 6 bytes ;)
from tools.
1 ZH-CN SYMBOL = 3 BYTES
from tools.
@Tymcio Hi, the problem is that you use special polish characters, like ł in "Długie przyc". ł = 2 BYTES and the lenght of string "Długie przyc" is 13 BYTES but the length of chinese "長按按鍵" is 12 BYTES. Try to replace this characters ł -> l
from tools.
@winni159 the problem still appears :) As the code isn't checking the bytes, but characters:
- Bike = 4
- 騎行 = 2
from tools.
The problem isn't in the code but in your translation:
1- It seems the Bip doesn't support special character so probably ł will become [?] on your watch .
2- Due to binary patching your translation MUST fit the width of the original chinese string
from tools.
from tools.
Ok :) I did 2nd code and now rewriting translation, thanks! :)
from tools.
And now all is working ok :)
from tools.
Related Issues (20)
- res2img and problem with change some pictures HOT 1
- Error with res2img.py HOT 1
- Watch face editor HOT 1
- Amazfit Midong and res2img - adaptation HOT 12
- zh-cn2en.py and problem with space character HOT 5
- dial2img.py and problem with unpack *.bin file
- How to generate zh-cn2en.txt from firmware?
- create new language
- how to pull language txt from firmware amazfit bip?
- bip font HOT 1
- res2img.py - new resource format since MiFit 3.2.8 HOT 1
- GPS not tracking HOT 2
- any plans to update zh-cn2en.py and base text files for latest firmware?
- Combining character HOT 1
- Unable to extract .json from .bin file
- I prepared new font. How can I build firmware for AMAZFIT COR? HOT 1
- bipfont.py unpack is not working HOT 1
- REQUEST: Add compatibility with Mi Band 4? HOT 3
- Memory Error with latest resource file HOT 1
- bipfont not working in T-Rex fonts
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tools.