DEV Community

Omar Bahareth
Omar Bahareth

Posted on • Originally published at blog.prototypr.io on

The Case of The Jumping Dot

The Case of The Jumping Dot

When you enter the dot/full stop character when typing in English, it just works, and you don’t need to think about it dancing around your words and sentences. This isn’t the case in Arabic. Since the full stop character is technically considered a BiDi (bidirectional) character, weird stuff starts to happen. There’s no clear standard on how to render it correctly(as far as I know).

Take a look at this GIF for example:

The Case of The Jumping Dot

The dot suddenly went to the beginning of the line (on the right side instead of the left), and the blinking cursor isn’t even moving. Now this doesn’t just happen with that character, it happens with any BiDi character (e.g. exclamation mark) in the middle of RTL (Right To Left) text.

There’s actually a solution to this for some characters, there’s an Arabic full stop character, the only issue is that most people have no idea it exists or how to type it. I usually google it and copy it off of websites that show you Unicode characters, and it works pretty well as you can see in this example:

The Case of The Jumping Dot

The way it’s rendered is a bit weird, and some fonts render it at a very strange vertical position, but it doesn’t jump around text and drive me crazy.

Another solution is to “set the text direction” but most users don’t know how to do that, it doesn’t work well when you mix LTR (Left To Right) and RTL in the same line, and it isn’t even immediately obvious how to do that in a number of platforms/apps. So I propose changing the normal full stop character to the Arabic one when using Arabic input (and the same for all other applicable characters), on all desktop and mobile operating systems. Which by the way, is what already happens when you try to use type a question mark with Arabic input.

I’ve actually tweeted to Apple, Google, and Microsoft, as well as their CEOs with no response (yet).

Could we get the Arabic full stop character to be inputted when we try to input a full stop with Arabic input? The normal one gets rendered all over the place and most people don’t know the Arabic one exists or how to type it.@Apple @Google @Microsoft https://t.co/ccpePNJ45G

— Omar Bahareth | Blockchain (@o_bahareth) December 8, 2017

@sundarpichai @tim_cook @satyanadella Could you guys get this looked at?

— Omar Bahareth | Blockchain (@o_bahareth) December 8, 2017

I would think these kind of UX issues are more important than where the cheese is on the burger emoji.

I think we need to have a discussion about how Google's burger emoji is placing the cheese underneath the burger, while Apple puts it on top pic.twitter.com/PgXmCkY3Yc

— Thomas Baekdal (@baekdal) October 28, 2017

Will drop everything else we are doing and address on Monday:) if folks can agree on the correct way to do this! https://t.co/dXRuZnX1Ag

— Sundar Pichai (@sundarpichai) October 29, 2017

There are many other difficulties that we face which I might show in other posts but I’ll mention just a few which I regularly face and am extremely irritated by:

  • Selecting Arabic text, particularly when there’s English text within the selection. What’s rendered on-screen as selected isn’t actually what’s selected.
  • Tiny font sizes. Most websites I visit have a font size of around 16px (Google search bar for example), this looks fine for English, but many Arabic characters are not legible for some reason. I don’t know if this is the fault of the font or if we need dynamic font sizes per language.

It is my hope that this post will bring some of the issues many users face when typing Arabic on computers and phones to light, and even drive developers and font creators to tackle these issues. There are many apps and websites that have solved a lot of these issues, but we need this knowledge to be shared and turned into standards that operating systems and browsers handle, without every app and website having to repeat the work.

Top comments (0)