How to Type in Urdu on a Mac

Christoph DusenberyTechnology, Urdu Language Leave a Comment

Overview

OS Version: macOS Sonoma (14.6)

Typing in Nastaliq (the Urdu script) on your Mac computer is simple to set up and relatively easy to master. Here I'll walk you through how to enable an Urdu keyboard layout, conveniently switch between keyboards, and finally, what software to use for writing in Urdu. The following instructions have been written according to macOS Sonoma (version 14.6). The steps may be slightly different if you are running an older or newer operating system.

Typing in Roman Transliteration

Are you looking for a way to type Urdu in Roman transliteration? Check out my page on how to type Hindi-Urdu words in Roman.

#1 - Enable an Urdu Keyboard

  1. Go to System Settings
  2. Click Keyboard
  3. Click Edit... next to Input Sources
  4. Click the + sign
  5. Select Urdu from the list of languages
  6. Highlight one of the keyboards and then click Add
  7. You're done!
Adding an Urdu keyboard in Mac OS

You'll notice that step 6 gives you two different keyboard layout options:

  • Urdu
  • Urdu — Transliteration

The Urdu option allows you to type faster in Urdu once you've invested the time to learn its layout. Urdu — Transliteration requires you to write in Roman letters while the system guesses what word you're trying to write in Urdu (and it gives you several options).

I would recommend using neither of these options. I prefer using Urdu — QWERTY which is mostly phonetic, enabling you to start typing in Urdu with some degree of fluency from the get-go. Unfortunately, macOS doesn't come with this keyboard, so you need to install it yourself. To do so, follow these steps:

  1. Download the keyboard Urdu - QWERTY (you can download it here)
  2. Unzip the file. You'll need to use the file named "UrduQWERTY.bundle"
  3. Go to your user library (Go → Computer → Macintosh HD → Users → (your username) → Library
  4. It's possible that the Library folder will be hidden. To make it visible, type command+shift+. (hold down the command, shift and period keys at the same time and then let go).
  5. Once you're in the Library folder, go to "Keyboard Layouts" and drop the file "UrduQWERTY.bundle" into that folder.
  6. Go back to System Settings → Keyboard → Edit (Input Sources) and choose Urdu again. You should now see "Urdu - QWERTY" as an option.
Location of the folder Keyboard Layouts in macOS
Adding the keyboard Urdu - QWERTY in mac OS

#2 - Create a System for Easily Switching Keyboards

  1. Back in Input Sources (System SettingsKeyboard), make sure the box Show Input menu in menu bar is checked
  2. Now click Keyboard Shortcuts (found just above Text Input on System SettingsKeyboard)
  3. Select Input Sources from the list on the left
  4. Check the box next to Select the previous input source
  5. Select Spotlight from the list on the left
  6. Uncheck the box Show Spotlight search

Note: This will disable the shortcut for spotlight search. If this is a shortcut you use, you'll need to create a new shortcut.

Options for All Input Sources in macOS
Shortcut to easily switch to the Urdu keyboard in mac OS
You can now easily switch between your English and Urdu keyboards. On your system menu bar (the very top of your screen), you should see an icon associated with the keyboard language you're currently using. To switch the keyboard, you can left-click on that icon and choose any other keyboard you have installed. Alternatively, you can press 'command' and 'space bar' together to swap back and forth.

#3 - Use the Keyboard Viewer

The macOS in-built Keyboard Viewer is the best way to learn the Urdu keyboard you've installed. To see the Keyboard Viewer:

  1. Click on the language icon in the upper tray
  2. Click on Show Keyboard Viewer
  3. You can resize the Keyboard Viewer by dragging its corners
  4. It'll show you all the possible keystrokes for whatever language you're currently using

Note: To see the full range of characters in the Urdu — QWERTY keyboard, use the shift and option keys alone and together.

Show Keyboard Viewer in macOS
Keyboard Viewer showing the keyboard Urdu - QWERTY in mac OS

#4 - Applications and Software

All built-in programs within your operating system (macOS) will support typing in Urdu. This means you can freely switch to Urdu while composing an email in Mail, make a Urdu note in Stickies, Notes, or Reminders, or type in Urdu within any input field while surfing the web.

You can also use the in-built TextEdit and Apple Pages to create documents in Urdu, and these programs will allow you to format your text however you'd like.

However, if you're looking for something more powerful, especially if you want to combine the Urdu and Hindi scripts in a single document, Nisus Writer Pro is my suggestion. It's a premium software solution for word processing and is especially capable when working with multiple languages. It allows me to smoothly write in English, Urdu, and Hindi within single documents, using a wide range of formatting.

To make the font Noto Nastaliq Urdu (which comes with your operating system) the default within Nisus Writer Pro, you can do the following:

  1. Within Preferences, go to Languages
  2. Input your chosen Urdu font in Secondary Font (including the font size you prefer)
  3. Within Switch Font, choose "Switch to secondary font"
  4. Check the box "Also switch font size"
  5. For Keyboard, choose "Switch to chosen keyboard" and then select your preferred Hindi keyboard from the dropdown

Next, to take advantage of the Nisus Writer Pro settings above, we need to create a way to switch between English and Urdu within Nisus Writer Pro. While you can still switch between languages using the system-wide shortcut (command + space), the automatic font style and size won't work within Nisus Writer Pro when you switch languages that way. Instead, we need to install what's called a Macro. You can go ahead and download the macro you need here if you like. Once you've downloaded the Macro, follow these steps:

  1. Unzip the file
  2. In Nisus Writer Pro, go to the Macro drop-down menu and then choose "Add Macro to Menu from File"
  3. Once installed, go to Preferences and then Menu Keys
  4. Assign shortcuts for Cycle Language Next and for Cycle Language Previous (I like to use (command + .) (command and period) and (command + ,) (command and comma)
Language settings in Nisus Writer Pro showing Urdu
Settings in Nisus Writer Pro showing language macro settings

#5 - Putting It All Together

Assuming you've enabled the Urdu - QWERTY keyboard, you'll find it's relatively intuitive, but there are a few quirks to learn.

Typing most consonants is straightforward. To type گ, you type "g." If you want an aspirated گھ, type "g" and then "h."

The ی (choṭī ye) is produced by typing "i" while the ے (baṛī ye) is produced by typing "y."

One difficulty I faced when first learning was figuring out how to produce a "hamza" over a vowel such as the ی (choṭī ye). I finally figured out that you have to type "u." To produce the word نئی (naī) for example, type the following:

  1. n
  2. u
  3. i

As you're getting the hang of it, I'd recommend enabling Show Keyboard Viewer. Now you're on your way!

An example of typing in Urdu in Nisus Writer Pro with the Keyboard Viewer enabled in mac OS

Urdu Fonts

Want to try Urdu fonts other than the system defaults? Head over to my Urdu Fonts page and explore a wide range of fonts available for free download.

Leave a Reply

Your email address will not be published. Required fields are marked *