-
-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[question] How to get same behaviour of po4a in wrap? #140
Comments
I haven't any clue about what |
Oh, sorry, let me say more clearly: import polib
po = polib.pofile("XXX.po", wrapwidth=76)
po.save()
Because
the english text is wraped correctly. However, the chinese text is different, one Chinese character has two line width. Although
but the true line width python has a library named https://github.com/jquast/wcwidth can calculate the correct line width of Chinese characters. |
So … the real title for this issue should probably be
and the answer, like in #96, is that this is standard behaviour of the |
https://polib.readthedocs.io/en/latest/api.html#polib.pofile
However,
we get:
the linewidth is not
76
. Why?Then
po4a
, the po file's linewidth still change.the linewidth of
即使命令通常会启动服务器(例如 E<.Ic new-session> 或 E<.Ic start-server>),
is76
. Right, it is my need. So how to get same behaviour of po4a in wrap?The text was updated successfully, but these errors were encountered: