Upgrade to Pro — share decks privately, control downloads, hide ads and more …

It's All Backwards!

It's All Backwards!

It's All Backwards! How the human element makes supporting BiDi difficult (...and what to do about it)
This lecture was given in the 2019 Unicode Conference.

One of the bigger and more confusing internationalization challenges we face is that of Right-to-Left support, and even more so the support of bidirectionality: when a piece of text mixes LTR and RTL in the same sentence. While the Bidirectional Algorithm gives us a great, solid support system for such situations, it cannot analyze and understand the meaning of individual pieces of text; human beings must make sure that when they are dealing with bidirectionality, they utilize the bidirectional algorithm support intentionally and correctly. As always when depending on the human element, this leads to common mistakes and mishaps in bidirectional support. Some of those are so common, even right-to-left speakers often cannot recognize they are wrong. Some mistakes are so deeply embedded, they have impacted social behavior and even led to lawsuits.

This session will go over examples of real life misuse and mistakes that happen when the bidirectional algorithm is not applied properly, will discuss how prevalent it is in society considering the majority of people are not language or computer savvy, and will give some pieces of advice on how to tackle the more common problems.

Moriel Schottlender

October 17, 2019
Tweet

More Decks by Moriel Schottlender

Other Decks in Technology

Transcript

  1. Senior Software Engineer @ The Wikimedia Foundation Right-to-Left support enthusiast

    @mooeypoo http://rtl.wtf and http://rtl.works Moriel Schottlender http://moriel.smarterthanthat.com https://wikimediafoundation.org Who am I
  2. Unicode’s BiDi Helps define directionality contexts .תירבעב םויסו in English

    םילימ םע ,תירבעב טפשמ RTL context LTR internal context
  3. Unicode’s BiDi Mental model RTL context LTR context BEGINNING BEGINNING

    Content direction dir=”rtl” Bidirectional isolation <bdi>...</bdi> Control characters &rlm; &lrm; Multidirectional typing ...
  4. Unicode’s BiDi Whole document in one direction (No problems) Mixed

    directions in one document (Algorithm needed)
  5. Unicode’s BiDi Whole document in one direction (No problems) Mixed

    directions in one document (Algorithm needed) - Numbers are LTR in most RTL languages - People chat / post in more than one language online More info: http://unicode.org/reports/tr9/ or http://rtl.wtf
  6. Unicode’s BiDi Solves a lot of problems Typing RTL in

    LTR context Typing LTR into an RTL sentence Dealing with numbers Dealing with punctuation Standardizing complex behavior
  7. Unicode’s BiDi Solves a lot of problems BUT BiDi is

    also really really hard for humans
  8. BiDi is also really really hard for humans If BiDi

    has so many problems in Real Life How can we even begin to create products that work for Right to Left users!?
  9. Try to understand common behavior Do our best to find

    best solution Be ready to iterate Some things don’t have a clear cut answer Avoid too many assumptions Be consistent
  10. Standard direction for reading musical notes backwards? Can you sing...

    music reaches into the heart rt ___hea the to in ches ___rea sic mu
  11. Standard direction for reading musical notes backwards? Can you sing...

    music reaches into the heart rt ___h th t n ch’s ___r s’c m (Also, Hebrew doesn’t show the vowels)
  12. The Blacklist, Season 2, Episode 19 Credit: “Screen Shot Thought”

    https://screenshotthought.wordpress.com/2016/07/31/the-blacklist-season-2-ep-19-backwards-hebrew/
  13. The Blacklist, Season 2, Episode 19 Credit: “Screen Shot Thought”

    https://screenshotthought.wordpress.com/2016/07/31/the-blacklist-season-2-ep-19-backwards-hebrew/ Backwards Hebrew
  14. Gas station in New York Credit: “The Lansey Brother’s’ Blog”

    http://lanseybrothers.blogspot.com/2013/12/backwards-hebrew-sign.html Backwards Hebrew
  15. Tattoos stay !reveroF Credit: “The Aramaic New Testament: Bad Hebrew/Aramaic

    Tattoos” http://aramaicnt.org/2007/03/27/bad-hebrewaramaic-tattoos/
  16. Tattoos stay !reveroF Credit: “The Aramaic New Testament: Bad Hebrew/Aramaic

    Tattoos” http://aramaicnt.org/2007/03/27/bad-hebrewaramaic-tattoos/ Backwards אני לדודי ודודי לי
  17. Tattoos stay !reveroF I am my beloved's, and my beloved

    is mine יל ידודו ידודל ינא Credit: “The Aramaic New Testament: Bad Hebrew/Aramaic Tattoos” http://aramaicnt.org/2007/03/27/bad-hebrewaramaic-tattoos/ Backwards אני לדודי ודודי לי Unfortunately, this happens fairly often And usually has to do with the way it’s printed...
  18. Everyone gets :D wrong Chat apps have varying level of

    ease-of-use for emoji This mishap is not uncommon
  19. Ranges are supposed to be Right to Left But the

    computer writes them Left to Right
  20. Ranges are supposed to be Right to Left But the

    computer writes them Left to Right Which leads to inconsistencies in how people read (and write) them
  21. Night and day snacks NIGHT? DAY? But actually it doesn’t

    matter, Because they are the same price
  22. Math still goes Left to Right Credit: “Charts when you

    read right-to-left” https://medium.com/@mapmeld/charts-when-you-read-right-to-left-614f0a2cf54d Hours vs. Distance Right to Left
  23. Years in numbers are Left to Right Credit: “םידומיל תוינכת

    חותיפו ןונכתל ףגאה” http://cms.education.gov.il/EducationCMS/Units/Tochniyot_Limudim/Portal/Haashara/MadaKadurHide/TMashber.htm
  24. Sequential segments are sometimes Right to Left Credit: “Etsem Ha’inyan

    ןיינעה םצע” http://etzemhainyan.com/6-%D7%92%D7%A8%D7%A4%D7%99%D7%9D-%D7%A2%D7%9C-%D7%91%D7%A8%D7%99%D7%90%D7%95%D7%AA-%D7%9B%D7%95%D7%A9% D7%A8-%D7%95%D7%9E%D7%A9%D7%A7%D7%9C/
  25. to flip or not to flip? YES! Browser icon Calendar

    icon Article icon Quotes icon Probably not.
  26. to flip or not to flip? YES! Browser icon Calendar

    icon Article icon Quotes icon Probably not. YES!
  27. to flip or not to flip? YES! Browser icon Calendar

    icon Article icon Quotes icon Probably not. YES! YES!
  28. to flip or not to flip? YES! Browser icon Calendar

    icon Article icon Quotes icon History icon Checkmark icon Probably not. YES! YES!
  29. to flip or not to flip? YES! Browser icon Calendar

    icon Article icon Quotes icon History icon Checkmark icon Probably not. YES! YES! Not if it’s a clock...
  30. to flip or not to flip? YES! Browser icon Calendar

    icon Article icon Quotes icon History icon Checkmark icon Probably not. YES! YES! Not if it’s a clock... Yes if it’s undo/redo
  31. to flip or not to flip? YES! Browser icon Calendar

    icon Article icon Quotes icon History icon Checkmark icon Probably not. YES! YES! Not if it’s a clock... Not unless you’re left handed Yes if it’s undo/redo
  32. Flip if it represents the beginning of the sentence Sometimes

    it depends on how they work with the visual flow
  33. Computers affect real life much more than we realize 90%

    of the time, users aren’t sure what “the correct behavior” even is Right to Left users grew to expect that everything is broken … so broken became the new normal... Which brings us back to...
  34. Try to understand common behavior Do our best to find

    best solution Be ready to iterate Some things don’t have a clear cut answer Avoid too many assumptions Be consistent