Skip to content

Arabic Script Computing: From the Linotype to Unicode

Abstract

Arabic is written from right to left in a cursive script whose letters change shape with their position in the word, and its numbers run left to right inside the line. Every writing machine of the last 125 years had to bargain with that. The typewriter cut the alphabet to about 90 characters; in the 1950s the Lebanese publisher Kamel Mrowa and the British Linotype company cut newspaper type the same way, and the “Simplified Arabic” that resulted still shapes default computer fonts. The Arab Organization for Standardization and Metrology wrote a 7-bit Arabic code in 1982, and its 8-bit successor became ISO 8859-6, but Windows, DOS, IBM, and Apple each kept their own tables. In Kuwait, Mohammed al-Sharekh’s Sakhr sold Arabic MSX home computers from 1985 and hired the engineer Nabil Ali, who led its research on Arabic morphology and machine translation. Unicode settled the encoding by storing one code per letter and leaving shapes and direction to the display software.

Sakhr MSX Startup Screen
Start-up screen of the Sakhr MSX system, version 1.01, “Copyright 1986 by Microsoft & Alalamiah”, running in an emulator. Image: MDChaara, CC BY-SA 4.0, via Wikimedia Commons.

The Problem

Of the 28 letters of the Arabic alphabet, all but six join the letter that follows, so most letters need separate forms for the beginning, middle, and end of a word and for standing alone. Short vowels and other signs sit above or below the consonants, and most printed text leaves them out. Arabic type for hand composition often had up to 470 characters; the Linotype linecaster, fitted with an auxiliary magazine, could hold 180; the typewriter got by with about 90, figures and punctuation included, by giving most letters only two shapes.

Reformers tried to change the script instead of the machines. The Arabic Language Academy in Cairo set up a commission for the reform of Arabic letters in 1938, and in 1945 it offered a prize of 1,000 Egyptian pounds for the best proposal. In 1968 a new commission sorted the more than 200 entries into three groups: keep the letters and vowel signs, keep the letters but write the vowels into the line, or switch to Latin letters. None was adopted. Rachid Zghibi, who surveyed the history in 2002, names religious, cultural, and nationalist reasons: the script was the script of the Qur’an, and a Latin alphabet looked like dependence on the West. The machines had to adapt.

Typewriters and the Linotype

Selim S. Haddad of Cairo received US patent 637,109, “Types for Type-Writers or Printing-Presses,” in 1899, and the Hammond Type-writer Company took out a British patent for Arabic type-writers in 1901. The first Arabic Linotype came from the diaspora. Salloum Mokarzel, whose brother Naoum published the Arabic newspaper al-Hoda in New York, worked with Mergenthaler Linotype from 1908 to adapt the machine, and by 1911 one was installed at the paper in Manhattan. The Linotype Bulletin remarked that making the Linotype practical for Arabic had “required years of study and hard work.”

Simplified Arabic

Kamel Mrowa, owner and editor of the Beirut daily al-Hayat, wanted newspaper composition as fast as the typewriter. In 1953 or 1954 he sent Linotype & Machinery in London the keyboard layout of a German Continental typewriter and told their representative that its “satisfactory and simple form of Arabic script” could be applied to the Linotype. The plan was a fount of 90 characters for a single 90-key keyboard with no side magazine, which meant giving each letter as few shapes as possible: two for ba, where one of Linotype’s existing Arabic faces used five. Linotype’s Walter Tracy worked the scheme out letter by letter, and the alphabetic characters came down from 102 to 69.

Work stalled, and in April 1957 Mrowa accused the company of neglecting the project and sent his calligrapher Nabih Jaroudi to London, who corrected the drawings in about two weeks. A trial fount was ready by late 1957, and on 13 December al-Hayat set a column of its front page in it, next to text in its Intertype face. In tests at the paper in 1958 the operators composed 30 percent faster. Linotype announced “Mrowa-Linotype Simplified Arabic” in November 1959; it could also be driven by coded paper tape (Teletypesetting) and cost less because it needed fewer matrices. By January 1960 the rival Intertype had a simplified face of its own in proof.

The design outlived the machine it was made for. Simplified Arabic moved almost unchanged to photocomposition, and later, as the type historian Titus Nemeth showed, to digital type, where its principles became the basis of the default Arabic system fonts on most computers, although digital type no longer needed the economy. In 2013 it was still on sale under the name Yakout. Nemeth also records that Hrant Gabeyan, Linotype’s representative in Egypt, who in 1967 gave the face its later name Yakout without ever being credited for it, worked on the first computer-aided Arabic typesetting system, installed at Cairo’s al-Ahram in 1969.

Codes and Standards

ISO 646, the international form of ASCII, left 12 positions for national characters, not enough for the Arabic letters and vowel signs, so computer makers selling in the Arab world defined their own Arabic codes. According to Zghibi, the question of a unified Arabic code for data transmission was first raised in the Arab world in 1975, and until 1976 no standard code covered the full alphabet with its vowel signs.

In 1982 Technical Committee 8 of the Arab Organization for Standardization and Metrology (ASMO) produced ASMO 449, a 7-bit code. It was registered internationally as ISO-IR 89 on 1 January 1985, with ASMO and the Arab Telecommunication Union as sponsors: 86 graphic characters derived from ISO 646, for data processing and transmission and “also intended for the usage of basic programs in Arabic language.” ISO published it as ISO 9036 in 1987. The 8-bit ASMO 708 put ASCII in the left half and the ASMO 449 letters in the right half, 146 characters in all. The European Computer Manufacturers Association published the same table as ECMA-114 in June 1986, the registry recorded its Arabic right-hand half as ISO-IR 127 on 30 November 1986, and ISO adopted ECMA-114 by its fast-track procedure as ISO 8859-6, first edition 15 August 1987. Zghibi dates ASMO 708 to 1988; the 1986 registration, which already names “Standard ASMO-708,” suggests that the Arab standard and the European one were prepared together. ASMO was dissolved in 1990.

Dead End: Nine Arabic Code Pages

The standard did not unify the market. Microsoft’s current list of code-page identifiers still carries nine Arabic entries: 708 (ASMO 708), 709 (ASMO-449+, BCON V4), 710 (Transparent Arabic), 720 (Transparent ASMO, the Arabic DOS page), 864 (IBM’s OEM Arabic), 1256 (Windows Arabic), 10004 (Mac Arabic), 20420 (IBM EBCDIC Arabic), and 28596 (ISO 8859-6). Apart from the EBCDIC page, they agree on the 128 ASCII positions and disagree on the Arabic letters. Zghibi’s example is the word قوي (strong), which ISO 8859-6 stores as bytes 226, 232, and 234; a browser reading those bytes as Windows code page 1256 displays “âèê.” A web page from the 1990s in the wrong encoding looked like French with the wrong accents, or like nothing at all.

Sakhr and the Arabic MSX

Mohammed al-Sharekh (1942–2024), a Kuwaiti economist trained at Cairo University and Williams College, first met computers in Washington, where the Arab states had put him on the World Bank’s board in 1973. In 1980 he founded the Al Alamiah group in Kuwait, an electronics dealer that also sold Atari’s 400 and 800, in English only. In 1982 he founded Sakhr. Al-Sharekh met Bill Gates and a Japanese businessman, Nishi, and licensed Microsoft’s MSX home-computer standard for an Arabic machine.

What MSX? reported the result in the summer of 1985: Hitachi and Yamaha were building Arabic versions for Al Alamiah with a full Arabic character set, right-to-left cursor movement, and keys marked in Arabic and English, launched with English–Arabic tutors, Qur’an quizzes, and design programs. The Yamaha AX-100, based on the CX5M, cost £300 and came with a text writer and a converter between the Islamic and Gregorian calendars; an Arabic disk operating system and Arabic printers were planned. Al Jazeera’s history of the company dates the launch of Sakhr MSX to June 1985. A Qur’an program followed in 1987, storing the text in the Ottoman orthography after approval by religious authorities in Kuwait, Saudi Arabia, and Egypt. From 1986 Sakhr was also Microsoft’s provider of Arabic localisation.

Iraq’s invasion of Kuwait in 1990 ended Sakhr’s work in Kuwait. Iraqi soldiers occupied its offices; al-Sharekh moved to Saudi Arabia and Egypt, and about 30 programmers were relocated to Cairo, where Sakhr continued as a software house. Al Jazeera’s account adds that talks with Microsoft about Arabic Windows broke off with the invasion, that Microsoft then hired Sakhr engineers, and that Sakhr’s lawsuit in the United States ended in a financial settlement. Sakhr’s later products included Arabic–English machine translation and optical character recognition for Arabic script. Al-Sharekh received the King Faisal Prize for Service to Islam in 2021, for the Qur’an and Hadith software and the Arabisation of computer programs, and died on 6 March 2024, aged 82.

Nabil Ali and Arabic Morphology

Nabil Ali (1938–2016) was an aeronautical engineer, with a doctorate from Cairo University in 1971 and twelve years in the Egyptian Air Force. As data-processing manager of EgyptAir from 1972 to 1976 he set up the first airline reservation system in the Arab region. His CV records a stint at World Electronics in Athens from 1978 to 1980, “developing the first Arabic word processor,” and from 1983 to 1986 the post of project manager for launching Sakhr in Kuwait, including the “first Arabic/English home computer (MSX-SAKHR).” From 1986 to 2000 he directed research and development for Sakhr in Cairo.

His work there dealt with the language behind the glyphs. Because most Arabic text is printed without vowel signs, a program has to work out a word’s structure before it can search, index, or pronounce it. Ali’s group built a morphological analyser and generator, a parser, an automatic diacritiser that restored the missing vowels, and a lexical database organised by semantic features, and he directed the work on what his CV calls the first English-to-Arabic machine translation system. He shared the 2012 King Faisal Prize for Arabic Language and Literature, awarded that year for “Computer Processing of the Arabic Language,” with Ali Helmy Mousa of Ain Shams University, and died in Cairo in January 2016.

Unicode and the Bidirectional Algorithm

Unicode chose the opposite approach to Simplified Arabic’s. Each letter receives one code point “no matter how many different contextual appearances it may exhibit in text,” and the rendering software picks the initial, medial, final, or isolated glyph. The basic Arabic letters sit “in the same relative positions as in ISO/IEC 8859-6,” which in turn follow ASMO 449, so the older data converts directly. Blocks of precomposed “presentation forms” exist only for compatibility with older systems and “should not be used in general interchange.”

Direction is handled by a separate rule. Text is stored in logical order, the order in which it is typed and read, and conformant software must use the Unicode Bidirectional Algorithm to lay it out on screen, so that a Latin word, a telephone number, or an English quotation inside an Arabic sentence appears in the right order. Version 1.0 of the Unicode Standard, published in October 1991, already had an appendix on directionality; the second volume of June 1992 added one on Arabic character shaping. The algorithm is maintained today as Unicode Standard Annex #9.

Programming in Arabic

The ASMO 449 registration in 1985 already said the code was “also intended for the usage of basic programs in Arabic language.” In 1986 Mohammed Ghazali Khayyat of the University of Petroleum and Minerals described Dad (ضاد, the name of an Arabic letter), a general-purpose Arabic programming language with user-defined data types and structured control statements, and a compiler that translated it into assembly language. In 2012 the programmer Ramsey Nasser, a fellow at the Eyebeam Art and Technology Center in New York, released Qalb (قلب, “heart”), a small Scheme-like language written entirely in Arabic. Nasser called it “the first programming language that is a conceptual art piece” and pointed at the English keywords of mainstream languages: “Computer science was born largely in England and software engineering was really fostered in the United States.” Because the connecting strokes between Arabic letters can be stretched without changing the text, a Qalb program can be lengthened into calligraphic shapes and still run.

For India’s parallel story of keyboards, codes, and private fonts, see Indian Language Computing; for the Chinese one, Wang Yongmin and the Chinese Input Wars. The regional industry around Sakhr is in The Middle East’s Tech Industry, and the universal character set in Unicode and UTF-8.

📚 Sources