this post was submitted on 04 Nov 2023
423 points (95.1% liked)

Programmer Humor

32571 readers
313 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 11 points 1 year ago (2 children)

Yes it's always read right to left, which can be confusing when you combine English and Arabic. When you reach the Arabic word or sentence you jump to its beginning which is the first Arabic letter to the right, read it from there to the left, and then continue to the next English word when you're done.

[–] [email protected] 7 points 1 year ago (1 children)

Also this is why unicode has codepoints signifying where to switch between right to left and left to right writing, so that letters can be correctly written "forwards" in the underlying file format (first letter written first) for both writing systems and also rendered correctly for both writing systems on display

[–] themusicman 2 points 1 year ago

I would love to see a breakdown of the line wrap algorithm for that... sounds nasty

[–] [email protected] 2 points 1 year ago