|
| An introduction to writing Arabic on the MacThe following is an attempt to answer questions like "how can I write Arabic on my Macintosh", "how do I get hold of good software for Arabic", and "why doesn't it work like it is supposed to?". It is thus in the format of a "Frequently Answered Questions" ("FAQ"), and I have divided it into two sections:
Part I. How do I get going?
Part II: My trusted old Mac just broke down and they shoved a new one under my nose, so:
Can I write in Arabic on my Macintosh, and is it expensive?Yes and not at all respectively. The "Yes" comes on two conditions: * That you have "activated" the Arabic keyboard layout.* That you use programs which can make use of Arabic The first condition is pretty straightforward. It means to make a trip to the settings in System Preferences: Even if Arabic is installed on all Macs, most users will of course not need or want access to it, so you have tell your computer that you are one who does.
The second condition, however, requires a little more care: Not all software that you can put on your Mac is able to handle Arabic text. Unfortunately, that includes the most common word processor of all, Microsoft Word, which for many users is synonymous with word processing. But not in Arabic. You must therefore, for Arabic purposes, use a program that does accept Arabic. That can be a "Word equivalent" as the free program OpenOffice, or a commercial program like NisusWriter, or many others. There is much to choose from, but Microsoft is not helpful on the Mac where Arabic is concerned. (Happily, the web is an Arabic-friendly zone, pretty much every available web browser displays Arabic web pages automatically). In spite of this, we should not be confused: The Arabic capabilities do
not reside in any particular program, they are generic to your computer itself.
It is just that those bad programs are not able to avail themselves of the
Arabic resources that the Mac provides (Arabic fonts, right-to-left writing, character combinations, etc.).
But the menus and everything turn into Arabic?No, generally not. On computers bought in the West, Arabic is normally just an extra language that is added to the English or European system. If you look in System Preferences : International (or Language and Text), you will find an option to set Arabic as the main language, to be displayed in menus and dialog boxes of the system and programs. But that requires that the program contains such optional Arabic menus. In fact, I have not seen any program that does so, nor does any Apple programs, so this is probably not really implemented (although a few programs for the Arabic market may have translated their own menus into Arabic). Consider Arabic an added capability to your basically English / European Mac. I just learned the Arabic letters last week, so bear with me; it writes from right to left, right?That is the point, yes. If you have never written Arabic on a computer before (new student!), these are the basic features which all workable programs share:
You can combine English and Arabic on any line, when you switch to English in an Arabic text, the writing direction changes automatically. It looks funny the first time you see it, but it works correctly, also if there is a line break in the middle of the "other" language. The program should also switch tabs and indents to run from right rather than the left, some also mirror the complete document (page by page).
How do I get started with Arabic?If all you want to do is e.g. to read Arabic web pages, you need not do anything, except to avoid Microsoft's Explorer. All other browsers, including the Safari already on your machine, will display Arabic text automatically. (*)
If you want to write in Arabic, you must however activate a "keyboard layout", which makes your keyboard produce Arabic characters rather than the English a-b-c. You do this by going to "System Preferences : International" (in the new Mac system 10.6, "Snow Leopard", this is called Language and Text) and click on Input Menu ("Keyboard menu"). There you will see a long list of keyboard layouts; scroll down until you find Arabic and check the check box beside it, then close the window.
While you are at it in the "International" window, go to the Language section. You see that Arabic is not listed in the short list there. Click on Edit list..., then scroll down to "Arabic" and check it there too (‘Arabi will then appear at the top of the short list, move it below your preferred first language). This has no immediate effect, but allows access to certain Arabic resources in some programs, like Mail. (*) If Safari's Arabic appears to be broken, check here. What about the keyboard? Where do I get an Arabic keyboard?You don't need a particular Arabic piece of plastic in front of your Mac. The physical keyboard is exactly the same, whatever is painted in black on the keys - the electronics inside are identical. When we talk of "keyboards" or "keyboard layouts" we are just talking about software: These are commands that tell the computer that when I press the left-most key on the middle row, it should produce an a - if it is English - or a shin - if it is Arabic. You can even find a funny "Arabic transliterated" layout, which will produce an Arabic alif when the leftmost key on the middle row [the "a" key] is pressed. The regular Arabic keyboard layout, however, follows more or less the established Arabic typewriter standard for what keys produce what characters.
Why do I only see each Arabic character separate in some programs?Although your Macintosh has now become Arabized, not all programs are able to display Arabic properly, and not all Arabic fonts work. So, even if Arabic works fine in some programs, you may find that in others there are no Arabic fonts in the Fonts menu (e.g. in Microsoft Word). Or, if you try to type Arabic, you just get European letters. Or, you do actually get Arabic letters, but they run from left to right. Or, they are not joined into words, you just get separate (dis-joined) Arabic characters.All of these are symptoms that the program you are using does not support Arabic, or the font is not useful. Each issue is different, some you can get around, others not. In brief, - If the Arabic keyboard is dimmed (grey), or you do not get Arabic characters when you type using the Arabic keyboard, it means the program does not support "Unicode", meaning most non-European languages are unavailable. This normally also means the program is fairly old. - If you cannot see the Arabic fonts (or only "Geeza Pro") in the font list, but you do get Arabic characters when you switch to the Arabic keyboard, it may mean the program has limited support for Arabic. Sometimes, that is close enough so you can use it, often by installing other fonts (see the fonts page), which it will accept. But in many cases, you cannot select a word by double-clicking (it selects the wrong word), or the line breaks up if you try to make changes (Apple's Pages is like this). Here each program is different, but such programs are at best of limited use for Arabists. - If Arabic seems to work, except that the characters do not combine into words (they appear in isolate form), check which font is used. The program may be OK, but not the font. There are many (non-Mac) fonts that contain Arabic letters, but not the information the Mac uses to join them up in the correct shapes. This can e.g. happen with the font Times New Roman, which Windows users often have as their standard font even for Arabic. If text in this font contains Arabic, it will sometimes appear as disjoined letters. Change the font of that text to a regular Arabic font, and the text joins up properly (if the program itself is Arabic capable. However, it may also be a symptom that the program itself lacks Arabic support, if the text remains disjointed also in e.g. Geeza.) This is more common on Mac system 10.4 than on the newest Macs, but it may still occur for some fonts today. It is fairly rare now to find a new program that does not have any Unicode support at all (although they do exist), but there are still quite a few programs, both large and famous as well as small and dedicated, that do not allow Arabic to function properly for one reason or another. Often, the larger and more complex programs, as well as the programs that have more advanced text editing features (such as desktop publishing) have more things that can go wrong with Arabic, while smaller programs often work fine. However, overall a quick survey of existing text editing and word processing programs showed that "OK" programs outnumber problematic ones by two to one or more. What about Arabic on the net, in email and web pages?Today, it is almost unthinkable to come across an Arabic web page that does not show up correctly in your browser. It is taken so for granted that the question does not even arise. That in fact, shows the power of standardization, as it was a big problem in the 1990s and even well after 2000. Today, both those who make and those who read Arabic web pages regularly follow Unicode so that Arabic text displays as intended. If, however, you happen to come across an old Arabic web page where the script does not appear correctly, most browsers have an option called "Character Set" or "Encoding", using this (and choosing e.g. "Arabic (Windows)" or similar) will most often correct the error the page made.The same mostly goes for email, although there is some old email software around that does not handle Arabic. But real Arabic (not "pictures") is more and more used without problem today. With some exceptions, you can assume that both your software and that of the recipient adhere to the standard, so that emailing in Arabic is as unproblematic as in English. The most notable remaining problem is mailing lists, either the programs there cannot handle Arabic, or they refuse to do so, in deference to those readers whose email programs still have problems with formatted email. (One issue is that non-western email is often sent in the "html" format, and some mailing lists refuse to accept postings in html.) By and large, however, the Internet has become an Arabic-friendly zone for Mac users just as well as for other computer systems.
What programs do work for Arabic then?You will find more details on this on the separate pages linked below. But the lowdown is: - Apple's own free programs, TextEdit, Mail, Safari, etc. are fine (but not its commercial "iWork") - All web browsers are fine, except Internet Explorer.
- In some other program cateories, like page layout, database and graphics, if the large "standard" programs do not support Arabic, they may have "Middle Eastern" variants that specialize in right-to-left languages. Unfortunately, these often come with a hefty price tag. There are however in most cases smaller and less expensive alternatives, some with good support for Arabic, others more basic. As problematic programs are updated, more and more also add Unicode and Arabic support. - As for fonts, you may want to install more than the ones that come pre-installed. There are almost a hundred free Arabic fonts on the Net for use on any current Mac, with the most recent Mac system you can add another 300 for free, and yet more if you want to buy commercial fonts. Part II: I had to get a new Mac. What is new for Arabic?What do I have to do to keep working in Arabic?If you had a Mac from, say, the 1990s, which you used for Arabic, e.g. in NisusWriter, and now have had to replace it, you will find many changes have occured. You can of course still use Arabic, but there are some issues involved. Your new Mac now runs the operating system called "OS X" ("Operating System Ten"); if your old Mac was from the 1990s, you will quickly notice that menus and stuff now look different. Not just different, your old programs, such as NisusWriter or WinText cannot work under OS X at all. For a while, it was however possible to use a "transition solution" that Apple provided, called "Classic", which allowed you to use older software on the new machines. It tricks old programs to believe it is actually the older OS 9, which they do accept - in fact, running a computer within a computer. It could be a bit confusing, but it allowed you to keep working with NisusWriter or other old programs pretty much as before. (There was a trick to install Arabic into Classic, however, see the legacy page for details.) Unfortunately, Apple has now dropped this Classic option. It cannot be installed on any new Mac from 2006 or later; nor does it work in the Mac system version 10.5 ("Leopard") that came in late 2007 or later. So the option of continuity through Classic - which was anyway somewhat convoluted - is dwindling fast, and will not work on any new Mac that you get today. As of now, you should rather get used to the new options, new programs or program versions that are in OS X. This creates a certain number of issues for people in transit from older Macs:
We will deal with each issue in greater detail, starting with the most basic one: What is that, "Unicode", and how does it relate to typing Arabic?
Ah. That is a key concept when working with non-European scripts on computers
these days. "Unicode" (for "Universal Character Code")
is actually just an agreement between computer makers (a standard)
that every character in every possible script and language in the world,
dead or alive, is given its own particular number. The computers use these numbers to identify the characters, and thus a Mac and Windows machine will agree on what should
be displayed as an alif (before, they also used ID numbers, "character sets", but different ones for Mac and Windows). Unicode is actually no more than that, a piece of paper
signed by various computer companies and an international standards board, it is not a program you can install on your machine that does something or such. Thus, computers and applications can choose to apply this standard in their software, or not. Today, basically all computers do, but applications may or may not.
The reason not all do, is that the Unicode standard is based on an assumption: that the computer - and the program - is able to handle large numbers of characters, Unicode gives ID numbers to 65,000 different characters. No individual font will actually contain anywhere near so many characters (I have seen up to 51,000), but the program has to be able to recognize a character with such a high ID number. Old Macs did not; they could only understand character IDs up to 255. Under Unicode, the IDs of the Arabic letters range between number 1,570 and number 1,620. So older applications simply cannot see those characters, they are beyond their horizon. The Mac systems OS 9 (and OS 8) could in theory work with Unicode, but hardly any program knew how to deal with it. Arabic and other non-European writing was normally handled differently: While Unicode consists of one single character set, with every character in all languages together in sequential numbers, OS 9 could have many parallel character sets ("scripts"), English, Arabic, Hebrew, but each of them restrained to 256 characters (ID numbers), which was ample for each one. Every font on the Mac was linked to one of these scripts; the regular ones to "Latin", and the Arabic fonts to the "Arabic" script. So, when you chose one of the Arabic fonts, the Mac knew that it should switch to Arabic mode, use the Arabic keyboard layout and starting writing from the right to the left - the font choice determined the computer's behaviour. Thus, a font could be either Arabic or Hebrew, but not both, the font had an unambigiuous identity. This setup was called "WorldScript", and was very practical. But Unicode does not work that way. With OS X, which came in 2001, Unicode was built in, and the Mac departed from the WorldScript system of parallel scripts (although some allowance was made for East Asian and Cyrillic, so these were more available than Arabic and Hebrew). Since Unicode includes all scripts into one huge setup, any font can now contain both Chinese and Arabic characters. Thus, the Mac can no longer determine which script behaviour you want just from the font (even if the font actually only contains Arabic characters, it may contain any other as well, so selecting the Arabic keyboard is separate from selecting the font). But all Macs with OS X have Arabic, then?Today that would be the case, yes; all Macs do Arabic. But historically it is not quite precise, there was a "gap" between 2001 and 2002 when Macs without Arabic were sold, in system versions 10.0 and 10.1. That actually broke off a long line, Arabic has been possible on every Mac since 1988, except for that one year. If you happen to have a machine from 2001 or 2002, you must upgrade to system 10.2 or later. It was only a software issue, the actual machines sold at the time run system 10.2, and Arabic, fine.There is a more detailed history of Arabic support on the Mac on the Classic page, but the main milestones were:
How can I upgrade my old Arabic documents to OS X?As you could see from the Unicode paragraph above, OS X actually defines the Arabic characters completely differently from OS 9, although they may use some of the same fonts. That is why opening an OS 9 or Classic document with Arabic text into an OS X program will often stubbornly display the supposed Arabic in Times, and no selecting an Arabic font for it will help: The OS X program cannot understand that the text was in another, parallel script under OS 9, and only displays the characters according to their ID numbers, which were below 256; i.e. as strange European characters. Arabic from Mac OS 9 must therefore go through some conversion to appear properly in OS X programs.Happily, there are ways. If you have an older (well, pre-2006) Mac with the Classic environment as well as the old program running on your Mac, you can simply copy and paste through the Clipboard: Copy the text while it is displayed in an Arabic font in a window in Classic (e.g. from old Nisus), and paste it into a window in an OS X program that handles Arabic. The Mac has understood that the origin was Arabic, and pastes the correct characters in the Arabic script, and according to Unicode (and thus automatically in an Arabic font, although probably not the same Arabic font you used originally). That will not work on newer Macs, which do not allow Classic. So, on current Macs, you instead tell the modern application
that the file you want to open contains old-style
Arabic characters and ask it to convert it to modern (Unicode) Arabic. Most
word processors let you do this, in slightly different ways:
NisusWriter (Pro and Express) will, when you open an Arabic file from NisusWriter "Classic", automatically convert and present the Arabic correctly, although again perhaps in a different Arabic font. Such documents preserve most (but not all) of their formatting when opened in NisusWriter. Most text programs allow you to import Arabic "text-only" files written in OS 9 (or in Windows or other systems, see below), through a menu in the Open dialogue box called Text encoding or similar. From this menu, choose "Arabic (Mac)", and the Arabic characters appear correctly. If you do this a lot, you can often also set "Arabic (Mac)" as the default choice for opening plain-text files, so that double-clicking a file will automatically convert it from older Mac Arabic to Unicode Arabic (remember then to save it to "Automatic" or Unicode, otherwise it may be saved back to the older system.)
That is only useful if your old Mac files were saved as rtf. However, if you used e.g. Nisus Classic, its standard file format was text-only, so you can generally open old Nisus files in any word processor that has an Encoding menu (TextEdit, Mellel, Jedit, etc.). Footnotes and formatting in such Nisus Classic files are lost, however, unless you open the files in modern NisusWriter.
As for converting text-only files, some comments: Unfortunately, many of the programs used for Arabic in olden days, such as WinText, RavKtav, and others have disappeared with no-one to inherit their format. Files from these programs are often impossible to convert, unless you have access to the original program on an OS 9 machine and can save the files as Text Only in it. You may, however, sometimes be able to open such files (incorrectly labelled "executable Unix") as if they were text-only files, using Arabic conversion as above. The Arabic will then be mixed into a mess of formatting codes. Using e.g. Nisus's "Find: Scripts: AnyArabic" can help separate out the actual Arabic text in such files, although manual clean-up will also be needed.
You may use the same process if you have an RTF or other formatted document containing OS 9 Arabic which the program insists on displaying as Latin characters: Copy the text you know should be Arabic into a separate file, save that as a text-only file in West European encoding, open it again with encoding Arabic (Mac), and paste the converted Arabic back where they should be in the main file.
What about old Word files written in Arabic Windows?There is an added complexity for old documents that come from Windows, in that they are first (mis-)converted from Windows to Mac, not based on their Arabic content, but because of the difference between Mac and Windows "Latin" characters (European accents, mostly). This bungles the Arabic-Arabic conversion, and we must therefore go an extra step to create a file that converts into Arabic:
- In Nisus, TextEdit, and most others, the relevant menus are Open and Save As, in Mellel they are Import and Export. The names of the encodings vary slightly from program to program, "Roman (Windows)" in Mellel and "Windows Only: Western (Latin 1)" in Nisus, for step 2, are the same. - You cannot use Nisus for step 3, as Nisus does not have Arabic Windows conversion; the others do. - TextEdit does not let you override encoding in files made by itself for some reason, so if you use TextEdit for step 3, you must use Nisus, Mellel or Jedit for step 1 & 2. If you use TextEdit for step 2, choose Format: Make Plain Text before saving. - For NeoOffice, OpenOffice and Bean, see the comments in previous section: In the two Offices, the name of a plain-text file you convert should not have the extension .txt; in Bean, it must have that extension. "Show Info" (in Finder) will tell you if the extension is present or not. In Bean you must change the encoding (manually) before you Save As, see above. - In Jedit, you have to set the default encoding in Preferences: Encoding to "Western (Windows Latin 1)" for step 2, and turn off Sniff Encoding. iText Express works like TextEdit. - If you cannot see e.g. "Arabic (Windows)" in the TextEdit or Jedit encodings menu, go to Customize Encodings at the bottom of the list. This process thus, unfortunately, requires making the original Word file into plain-text, losing the formatting information. This is because there is no way to override the encoding conversions (which is what we do here) for Word .doc or .rtf files in any of these programs, only in plain-text files can you do that. (Mellel allows it on import, but not export of rtf files). If you have footnotes, however, both Mellel and Nisus will retain those when you save as plain-text, placing them in the body text (TextEdit and Jedit also do so, but drop the reference number.)
As you can see from the remarks, each program has its own quirks, and the conversion mostly requires a combination of two programs. For an occasional file it does not matter much which, but if you are converting a lot of documents from Arabic Windows to Mac OS X, my choice would probably be to use Nisus for steps 1&2 (creating the plain-text files) and setting up TextEdit for quick conversion of these to Arabic (step 3). Then, if your original Word files had both English and Arabic in the text, copy the converted Arabic bits into their proper place in a second, "English" copy of the original file that did not go through the plain-text route and therefore retains its formatting, in Nisus, Mellel or Neo/OpenOffice. I used Arabic under OS 9 and I am missing many capabilities in OS X?Partly because Arabic under OS X is limited by Unicode conventions, and partly because Apple had to recreate Arabic support from scratch, it seems, many things we were used to from OS 9 seem to be gone, either for the moment or premanently:
|