Message alignment for non-English characters #6948
Replies: 1 comment
-
Posted at 2024-06-13 by @thyttan I've seen this with Swedish as well, as can be seen on screenshots uploaded to this issue: espruino/BangleApps#3037 This comment specifically refers to this indentation/offset problem: espruino/BangleApps#3037 (comment) I think it got better for me but not entirely solved. If I click the text body to show it all within its own scroller I think it never has those extra indentations. What firmware do you use? Posted at 2024-06-13 by JeonLab @thyttan, the firmware version is 2v22 and my phone is (unfortunately) an iphone, so I'm using iOS integration, not Gadgetbridge. Posted at 2024-06-14 by @gfwilliams
Ok, thanks - well that's a help and narrows it down. So you've got a
Do you think you could confirm that? Do you think you could include some text that exhibits the problem? Ideally if you're running in the Web IDE and you can get some code like this that reproduces the issue it'll be a ton easier for me to dig into:
Posted at 2024-06-14 by JeonLab
Yes, I have installed the Posted at 2024-06-19 by JeonLab
I tried to run this code in the Web IDE and it gave me this response.
Posted at 2024-06-19 by @gfwilliams What was on the screen? Posted at 2024-06-19 by JeonLab @gfwilliams, see attached screenshot. I didn't see it on my clock screen. :) Attachments: Posted at 2024-06-20 by @gfwilliams Ok. I think that's pasting the code in on the left? If you put it on the right, then make sure the text under the upload button says RAM, then click upload it'll be better. Maybe add However my point was: If you can change the text from The problem we have with iOS is the second you disconnect from the watch, we lose the messages that were saved, so I can't easily get hold of the message that caused the problem Posted at 2024-06-20 by JeonLab Hi Gordon,
Attached is the screenshot. The Korean characters are not displayed correctly, but the alignment looks fine. Attachments: Posted at 2024-06-21 by @gfwilliams Ahh, sorry about that - it looks like the IDE is struggling to convert Unicode properly. If you escape it (eg by pasting this into Node.js or your web browser's console):
It'll give you the escaped unicode:
And you can try that with:
And when I do that I see the issue with text alignment (attached) - so thanks! I think that's all I need to get started fixing this (but that means it'll need a new firmware version - it's not JS) Attachments: Posted at 2024-06-21 by @gfwilliams Filed an issue at espruino/Espruino#2519 Posted at 2024-06-21 by JeonLab Thank you, Gordon. Posted at 2024-06-21 by @gfwilliams Thanks! You too! If you try with a cutting edge firmware build now, it should be fixed. Posted at 2024-06-21 by JeonLab @gfwilliams, that was lightning-fast fix!! Attachments: |
Beta Was this translation helpful? Give feedback.
-
Posted at 2024-06-12 by JeonLab
See attached pictures. Those English messages are center aligned for both short and long messages, but those messages in Korean (wonder if other non-English languages are the same) alignment is not done well. The first line is aligned at the center, but starting the second line (wrapped), the messages starts from the middle of the screen and the rest of the lines are pushed even further to the right.
Would there be any fix for this?
Thanks.
Attachments:
Beta Was this translation helpful? Give feedback.
All reactions