1 of 94

It’s all Backwards

How the human element makes supporting BiDi difficult��(...and what to do about it)

2 of 94

Who am I

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

3 of 94

Unicode’s BiDi�A really quick primer

4 of 94

Unicode’s BiDi�Helps define directionality contexts

משפט בעברית, עם מילים in English וסיום בעברית.

5 of 94

Unicode’s BiDi�Helps define directionality contexts

משפט בעברית, עם מילים in English וסיום בעברית.

RTL context

LTR internal context

6 of 94

Unicode’s BiDi�Mental model

RTL context

LTR context

7 of 94

Unicode’s BiDi�Mental model

RTL context

LTR context

BEGINNING

BEGINNING

8 of 94

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

...

9 of 94

Unicode’s BiDi�

Whole document in one direction (No problems)

Mixed directions in one document (Algorithm needed)

10 of 94

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

11 of 94

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

12 of 94

Unicode’s BiDi�Solves a lot of problems

BUT

BiDi is also really really hard for humans

13 of 94

BiDi is also really really hard for humans

14 of 94

BiDi is also really really hard for humans

RTL

LTR

15 of 94

16 of 94

If BiDi has so many problems�in Real Life

How can we even begin to create products that work for Right to Left users!?

BiDi is also really really hard for humans

17 of 94

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

18 of 94

How real life BiDi�ruins everything

19 of 94

Misaligned print-outs

are not uncommon

Please leave

toilet bowl clean

after use

.Thanks

20 of 94

Can you sing...

21 of 94

Can you sing...

Standard direction for reading musical notes

22 of 94

backwards?

Can you sing...

Standard direction for reading musical notes

23 of 94

backwards?

Can you sing...

Standard direction for reading musical notes

🎶music reaches into the heart🎶

rt ___hea the to in ches ___rea sic mu

24 of 94

backwards?

Can you sing...

Standard direction for reading musical notes

🎶music reaches into the heart🎶

rt ___h th t n ch’s ___r s’c m

(Also, Hebrew doesn’t show the vowels)

25 of 94

When English Speakers

do RTL

26 of 94

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/

27 of 94

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

28 of 94

Gas station in New York

Credit: “The Lansey Brother’s’ Blog” http://lanseybrothers.blogspot.com/2013/12/backwards-hebrew-sign.html

Backwards

Hebrew

29 of 94

Credit: @aharoni https://twitter.com/i/web/status/1142807699895324674

30 of 94

Spotify gets <3 wrong

Credit: @aharoni https://twitter.com/i/web/status/1142807699895324674

31 of 94

“Tradition”

32 of 94

“noitidarT”

מסורת

سنت

33 of 94

“noitidarT”

التقليد

34 of 94

Tattoos stay�!reveroF

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

35 of 94

Tattoos stay�!reveroF

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

Backwards

יל ידודו ידודל ינא

36 of 94

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...

37 of 94

When RTL Speakers

fail at RTL

38 of 94

Everyone get :D wrong

39 of 94

Everyone gets :D wrong

Chat apps have varying level of ease-of-use for emoji

This mishap is not uncommon

40 of 94

Ranges are supposed to be

Right to Left

But the computer writes them Left to Right

41 of 94

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

42 of 94

PRINTED ABROAD

PRINTED IN ISRAEL

43 of 94

Night and day snacks

44 of 94

Night and day snacks

45 of 94

Night and day snacks

NIGHT?

DAY?

46 of 94

Night and day snacks

NIGHT?

DAY?

But actually it doesn’t matter,

Because they are the same price

47 of 94

Parking is forbidden

Between the hours

06:00 - 23:00

48 of 94

Parking is forbidden

Between the hours

06:00 - 23:00

Night parking?

Day parking?

49 of 94

Authorized Parking

Sun-Thur 8:00 to 20:00

Fri & holidays 8:00 to 14:00

Convert ranges to be contextually clear

50 of 94

What about

Calendars

51 of 94

Credit: “Afeka Tel Aviv, Engineering Department” https://www.afeka.ac.il/media/1187475/calendar_afeka_2019sx.pdf

52 of 94

Credit: “Afeka Tel Aviv, Engineering Department” https://www.afeka.ac.il/media/1187475/calendar_afeka_2019sx.pdf

September

January

February

May

53 of 94

Credit: “Afeka Tel Aviv, Engineering Department” https://www.afeka.ac.il/media/1187475/calendar_afeka_2019sx.pdf

54 of 94

Credit: “Afeka Tel Aviv, Engineering Department” https://www.afeka.ac.il/media/1187475/calendar_afeka_2019sx.pdf

55 of 94

Credit: “Palphot” https://www.palphot.com/producth/2808/?lang=he#!

56 of 94

Credit: “Palphot” https://www.palphot.com/producth/2808/?lang=he#!

57 of 94

Credit: “صقور الإبدآع” https://www.sqorebda3.com/vb/threads/50275/

58 of 94

Credit: “صقور الإبدآع” https://www.sqorebda3.com/vb/threads/50275/

59 of 94

Credit: “123RF” https://www.123rf.com/photo_86917712_stock-vector-calendar-2018-hijri-1439-islamic-arabic-english-dates-horizontal-design-with-bottom-contact-template.html

60 of 94

Credit: “123RF” https://www.123rf.com/photo_86917712_stock-vector-calendar-2018-hijri-1439-islamic-arabic-english-dates-horizontal-design-with-bottom-contact-template.html

61 of 94

What about

Graphs

62 of 94

Math

Credit: “מתי מתוק” https://isrageo.blogspot.com/2014/07/3-2014-2.html

63 of 94

Math still goes

Left to Right

Credit: “מתי מתוק” https://isrageo.blogspot.com/2014/07/3-2014-2.html

Hours vs. Distance

64 of 94

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

65 of 94

Months

Credit: “ynet.co.il” https://www.ynet.co.il

66 of 94

Credit: “ynet.co.il” https://www.ynet.co.il

Months in Hebrew are

Right to Left

67 of 94

Credit: “Boris Gorelik” https://gorelik.net/2019/05/21/%D7%9B%D7%95%D7%95%D7%9F-%D7%94%D7%A6%D7%99%D7%A8-%D7%94%D7%90%D7%A4%D7%A7%D7%99-%D7%91%D7%9E%D7%A1%D7%9E%D7%9B%D7%99%D7%9D-%D7%94%D7%A0%D7%9B%D7%AA%D7%91%D7%99%D7%9D-%D7%9E%D7%99%D7%9E%D7%99%D7%9F/

Months in Hebrew are

Right to Left

Left to Right

68 of 94

Years in numbers are

Left to Right

Credit: “האגף לתכנון ופיתוח תכניות לימודים” http://cms.education.gov.il/EducationCMS/Units/Tochniyot_Limudim/Portal/Haashara/MadaKadurHide/TMashber.htm

69 of 94

Sequential segments

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/

70 of 94

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/

71 of 94

Eastern Arabic numerals

72 of 94

Eastern Arabic numerals

73 of 94

Eastern Arabic numerals

74 of 94

Eastern Arabic numerals

Credit: “מתי מתוק” https://isrageo.blogspot.com/2014/07/3-2014-2.html

75 of 94

Eastern Arabic numerals

Credit: “מתי מתוק” https://isrageo.blogspot.com/2014/07/3-2014-2.html

76 of 94

Eastern Arabic numerals

Credit: “מתי מתוק” https://isrageo.blogspot.com/2014/07/3-2014-2.html

77 of 94

Arabic bar graph

Credit: “Al Jazeera” https://www.aljazeera.net/specialfiles/pages/7165406c-2ce7-4c5b-81a1-19ec7bdd95da

78 of 94

So...

What’s the

correct behavior?

79 of 94

So...

What’s the

correct behavior?

80 of 94

to flip

or

not to flip?

81 of 94

to flip

or

not to flip?

Browser icon

Calendar icon

Article icon

Quotes icon

82 of 94

to flip

or

not to flip?

YES!

Browser icon

Calendar icon

Article icon

Quotes icon

83 of 94

to flip

or

not to flip?

YES!

Browser icon

Calendar icon

Article icon

Quotes icon

Probably not.

84 of 94

to flip

or

not to flip?

YES!

Browser icon

Calendar icon

Article icon

Quotes icon

Probably not.

YES!

85 of 94

to flip

or

not to flip?

YES!

Browser icon

Calendar icon

Article icon

Quotes icon

Probably not.

YES!

YES!

86 of 94

to flip

or

not to flip?

YES!

Browser icon

Calendar icon

Article icon

Quotes icon

History icon

Checkmark icon

Probably not.

YES!

YES!

87 of 94

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...

88 of 94

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

89 of 94

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

90 of 94

Flip if it represents the beginning of the sentence

Sometimes it depends on how they work with the visual flow

91 of 94

snoisulcnoC

92 of 94

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...

93 of 94

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

94 of 94

?Questions!