Live data from Hacker News

The experience of rendering Arabic typography and its technical debt

lr0.org

71–80 of 87 posts

Re: The experience of rendering Arabic typography and its technical debt

#71

Earlier quoted context omitted.

With all due respect, your comment comes off as a bit ignorant and rude. A few points: Firstly, the Qur'an wasn't written by the Prophet, he would dictate it and it would be written by his scribes. Secondly, it's hard to argue that Islam has had a negative effect on Arabic or caused it to lag behind. In fact, it's easy to argue for the opposite. It's a historical fact that the Arabic language developed and proliferat…

I don’t think anybody said that Arabic has suffered a complete standstill, and it has doubtlessly evolved significantly. But if you compare it with basically any other major language, it’s clearly much, much more conservative. If you are a native English speaker, understanding English from 1,000 years ago is like learning a completely different language. If you are a native speaker of Italian, you cannot understand a…

There is no one "Arabic". Yes, formal modern Arabic (fusha) is based on (but not identical to) the classical Arabic of the Quran, but nobody speaks this in real life. The actual Arabics are the 20-odd spoken languages, many of which are effectively different languages at this point:

https://en.wikipedia.org/wiki/Varieties_of_Arabic

A rough equivalent in both time and space is how the Vatican continues to use Latin, but the rest of the Roman Empire has splintered into Italian, French, Spanish, Romanian, etc.

Re: The experience of rendering Arabic typography and its technical debt

#72
post #51
post #38

I feel so sorry for Arabs now, just read that paragraph about everyday experience of trying to write English-Arabic text in the mail or any other editor. > I have watched senior engineers, fluent in both Arabic and English, give up on writing a long email in Outlook on a Wednesday afternoon because the cursor would not behave, and switch to Arabic-only or English-only because the cognitive cost of fighting the editor…

The complexities of mixed LR and RL text are quite astonishing since it’s not really even a case of just switching modes when switching scripts since double-nested (or more) texts can change the semantics of line breaks. This article provides a good overview: https://tug.org/TUGboat/tb08-1/tb17knutmix.pdf [1] In college [2], when I wanted to quote some texts from Exodus in Hebrew in a paper that I wrote, I ended up a…

RFC 3986 (STD 66) recommends (in appendix C) delimiting URLs in angle brackets to avoid the problem which your link now has. I.e. if you’d written https://tug.org/TUGboat/tb08-1/tb17knutmix.pdf>¹ there would have been no problem.

Re: The experience of rendering Arabic typography and its technical debt

#73

Earlier quoted context omitted.

I don’t think anybody said that Arabic has suffered a complete standstill, and it has doubtlessly evolved significantly. But if you compare it with basically any other major language, it’s clearly much, much more conservative. If you are a native English speaker, understanding English from 1,000 years ago is like learning a completely different language. If you are a native speaker of Italian, you cannot understand a…

There is no one "Arabic". Yes, formal modern Arabic (fusha) is based on (but not identical to) the classical Arabic of the Quran, but nobody speaks this in real life. The actual Arabics are the 20-odd spoken languages, many of which are effectively different languages at this point: https://en.wikipedia.org/wiki/Varieties_of_Arabic A rough equivalent in both time and space is how the Vatican continues to use Latin, b…

> but nobody speaks this in real life

They speak it on tv and it's written in newpapers. They learn it in schools. Educated Arabs code switch into Fusha all the time. Islamist leaders (e.g. Nasrallah) speak Fusha in their broadcast speeches.

It's also pretty hard for foreigners to learn an ammiyya (outside of immersion). "Studying Arabic" almost always means Fusha.

I agree with you that "the actual Arabics are the 20-odd spoken languages". In a healhier culture, Fusha wouldn't exist or would have the same cultural place as Latin in the Western world.

Re: The experience of rendering Arabic typography and its technical debt

#74

To me it sounds like it's high time Arabic got a new script that's compatible with computers. I've seen some Lebanese people use mix of Latin letters and digits to type, so the idea isn't entirely stupid.

Computers are tools that exist to serve humans. Humans should never be asked to become subservient to computers. Your suggestion is ludicrous and risible.

Re: The experience of rendering Arabic typography and its technical debt

#75
post #74

To me it sounds like it's high time Arabic got a new script that's compatible with computers. I've seen some Lebanese people use mix of Latin letters and digits to type, so the idea isn't entirely stupid.

Computers are tools that exist to serve humans. Humans should never be asked to become subservient to computers. Your suggestion is ludicrous and risible.

Yeah cool then enjoy your text being broken

Re: The experience of rendering Arabic typography and its technical debt

#76
Believe it or not, there once was an 8-bit computer with native Arabic. It was a version of the Z-80 MSX series by Al Alamiah called Sakhr. It seems it could switch between English, Arabic, or mixed. (In fact, this was mentioned in the OP.)

I'm curious how it handled mixed entry.

https://forum.vcfed.org/index.php?threads/bought-a-al-alamia...

https://www.msx.org/wiki/Sakhr_AX-230

Re: The experience of rendering Arabic typography and its technical debt

#77
post #15

One thing I sometimes think about when I think about text layout problems is how the text we use also has a bunch of complexities that we can take for granted. Think of variable width characters and kerning and ligatures and hyphenation and justification. Imagine computers had been won by a CJK language, which have none of these problems. You could imagine a similar article about how exotic and difficult English layo…

CJK languages can include vertical and RtL stretches too, to complicate matters. Here's some lyrics I made as a test: https://codepen.io/kingcharlesone/pen/GgRXLoM Japanese magazines usually mix three different script types on a majority of the pages like this: https://imgur.com/a/x61XbIV (In another quirk some Japanese mags open right-bound, others open left-bound)

Chinese apparently was originally always written vertically top-to-bottom. (And then columns would be right-to-left.) Modern Chinese just rotates everything except the characters themselves 90 degrees to the Latin order.

I also read that a few Chinese texts only make sense in vertical order: one had a pun where the characters read one way as separated characters, but as stacked was also a single character pun for something like a "crumbly cookie".

Re: The experience of rendering Arabic typography and its technical debt

#78
post #39
post #35

This explains a lot of why I think Arabic looks so beautiful on the page. I also love the way it can sound when spoken. Shame I don't have reason good enough to take the years I would need to learn it.

Learning language is like learning poetry. Your appreciation of the thing grows proportionally with the practice. Which means you don't need to learn to fluency to appreciate Arabic. Even modest practice, just learning to write the alphabet, will increase your appreciation for the language if that's what you'd like to do.

Have experienced this with a bilingual relative whos language i have learned bits and pieces of both of us enjoy it. They give you little challenges from time to time too which is fun

Re: The experience of rendering Arabic typography and its technical debt

#79

Earlier quoted context omitted.

I was lucky enough to date someone from the Gulf, so I forced myself to understand and read Arabic scripts (but not understand the text), which is a huge bonus when creating multi-lingual designs. I already had a good understand of CJK scripts, and you'll come across RtL there, with things like tategaki which is both vertical and RtL at the same time (and can include quotes in other languages such as English and Arab…

I love this question. Basically all scripts have things that make them challenging to render, sometimes little things, sometimes bigger ones. Cyrillic for Russian is reasonably straightforward, but it's also used for many other languages. The variation in style is particularly notable for Bulgarian[1]. A sophisticated font might have a "loca" table with locale-specific adjustments, but this is not universal yet, for…

Wow, thank you for this response. This is actually fascinating and frustrating at the same time. So Bulgarian uses the same Unicode points, but also uses the language/culture metadata to let the font know which set to use.

I'm building out a multi-lingual wiki and just about to start adding Cyrillic support, and this really helps me understand that there is more research I need to do to support other Cyrillic languages.

Re: The experience of rendering Arabic typography and its technical debt

#80

Earlier quoted context omitted.

I love this question. Basically all scripts have things that make them challenging to render, sometimes little things, sometimes bigger ones. Cyrillic for Russian is reasonably straightforward, but it's also used for many other languages. The variation in style is particularly notable for Bulgarian[1]. A sophisticated font might have a "loca" table with locale-specific adjustments, but this is not universal yet, for…

Wow, thank you for this response. This is actually fascinating and frustrating at the same time. So Bulgarian uses the same Unicode points, but also uses the language/culture metadata to let the font know which set to use. I'm building out a multi-lingual wiki and just about to start adding Cyrillic support, and this really helps me understand that there is more research I need to do to support other Cyrillic languag…

Any time, friend. Your basic move is to set the lang metadata accurately and choose a font that does have these style differences implemented in the loca table.

Best of luck and feel free to reach out if you have more specific questions.

Post reply on HN