Showing posts with label unicode. Show all posts
Showing posts with label unicode. Show all posts

Sunday, March 02, 2008

How do I type Wingdings in Pages?

Wingdings and Webdings are fonts with small images instead of the letters. My personal recommendation is that you do not use them, even if you have the fonts. This is why:

Every document you type will be read by someone - either by someone else or by yourself in a few minutes, days or years. A document you type with Latin letters or any standard unicode letters is likely to be legible by anyone with the right software - today and in the future. But Wingdings is not standard unicode.

Now, let's assume that you want to show the yin-and-yang symbol to a reader.


You know that it is part of the Wingdings font, so you decide to get the symbol there.

So what you can do is to activate the Keyboard Viewer. Then select Wingdings from the menu in the bottom left corner and then select Wingdings as font in Pages and start typing.


However, when you send this Pages document to another computer user, it is very possible that he will not have the Wingdings font, so the character will not display. What is displayed is just "[" because that is the character that Wingdings uses to display the yin-yang symbol.

And the same thing can happen to you. When you change the paragraph style in this document, the symbol will become "[". If you copy the text to another application, it will become "[". If you export it to RTF and then open it in TextEdit, it will become "[". It is basically a very unstable character - just like all other characters in Wingdings, Webdings and Monotype Sorts.

TextEdit does not even allow you to type the character, and that is probably a wise choice. You can insert it from the Character Palette to TextEdit. You find it in the Character Palette with the View PIFonts, Font: Wingdings-Regular. However, what is inserted is the unicode F05B which is in the Private Area. The Private Area means that it can be used by anyone for anything, so depending on the available font, it can appear as completely different characters.


As you do not know which font the reader will have available, you will not know what the document will look like to him. That's why it usually is best to avoid Wingdings fonts altogether.

There are perhaps cases where you need to use them, but try to make sure you have a normal picture as a backup - just in case. You can also use Wingdings to create PDF files, as PDFs usually embed the font.

Saturday, March 01, 2008

How do I import and export text files in different encodings?

Pages does not pretend to be a text editor. If you want to edit text files, you are much better off using TextEdit or other programs.

When you Export a text file from Pages, it usually uses either Western (Mac OS Roman) or unicode UTF16 as encoding. You cannot choose which encoding you want, and you cannot for sure tell what encoding it was, unless you verify in some other program like TextWrangler.

When you import text files, Pages can usually open UTF16 without any problem and usually also Western (Mac OS Roman). Pages is unable to open the common UTF8 format.

The workaround is to always use TextEdit or another program for text files. You can then copy the content to Pages - if you want to.

Sunday, December 09, 2007

OpenType, TrueType, PostScript fonts, which is best?

A new well designed OpenType or TrueType works fine with Mac OS X 10.5 (Leopard), and most people have no reason to ask themselves any questions - at least not if you write in a language with a Latin alphabet. Older fonts may not work in Mac OS X 10.5, even though they worked in 10.4. As PostScript fonts are being phased out for OpenType fonts, PostScript fonts often tend to fall in the unsupported category. Mac OS X supports Macintosh or OpenType Postscript, but it does not support Windows Postscript.

Here is a short summary for each font.

  • PostScript fonts are nowadays almost always Postscript Type 1. There are plenty of other Types, but none of them matters. Some features (like the hinting) are not completely documented. They are defined with cubic Bézier curves which is more flexible and more complicated than TrueType's quadratic curves. The reason they exist is that Adobe created them. As Adobe now promotes OpenType instead, it is likely that pure PostScript fonts will become rare.
  • TrueType fonts were developed by Apple and licensed by Microsoft. They use quadratic Bézier curves. The reason they exist is that Apple and Microsoft did not want to pay Adobe's high license fees.
  • OpenType fonts were developed by Microsoft and Adobe. They are a thin wrapper around PostScript and TrueType fonts and share the same features. The reason they exist is that Microsoft and Adobe wanted one unified format.

Most fonts work equally well on both Mac OS X 10.5, Windows and Linux, but there are exceptions.

OpenType support is much improved in Mac OS X 10.5 compared to Mac OS X 10.4 (Tiger), but it is not yet complete. Most typographic extras now work as well as they do with TrueType fonts: ligatures, old-style figures, contextual alternates and so on. Even the Japanese glyph variants work as well in OpenType as they do in TrueType.

However, some glyph variants still do not work in Pages; exact line spacing does not work; and Arabic ligatures do not work at all, even though they work in TextEdit.

Friday, September 28, 2007

How do I type characters from foreign languages?

For some simple accents and variants of the basic Latin alphabet it is very easy. The steps below will tell you how to see which characters are easy to type with your keyboard.

1. Activate the Keyboard Viewer. (System Preferences > International > Input Menu. Check the checkbox before Keyboard Viewer.)

2. In the flag menu in the upper right corner of the screen, choose Show Keyboard Viewer .



The Keyboard Viewer shows what character will be printed when you use a specific key combination.

3. Hold down a modifier key, like "alt" (⌥).



All accents that are available using "alt" with that keyboard layout are highlighted in orange. In the picture above, I am using U.S. Extended as keyboard layout, but you may have another one.

4. Now press one of the keys that were highlighted in orange, like "e" (acute accent ´ in the picture).



You now see all characters that take an acute accent with this keyboard layout. To type for example á, you would consequently first hold down ⌥ at the same time as you type e, and then press the a-key.


Chances are the characters you want are available with your standard keyboard. Following the steps above you can tell if that is the case.

To learn more about which languages and language features are supported, go to this page.

For instructions for most languages of the world, see the excellent page Unleash Your Multilingual Mac.

Sunday, September 09, 2007

Why are some glyphs missing in Pages?

Glyphs are variants of characters in a font. One example is "fi", which in some fonts may use special glyphs to look like "fi". (Increase the text size in your browser, if you cannot tell the difference.) Sometimes glyphs are used to make superscripts like ² instead of 2. Sometimes, but not always, what you achieve with a glyph could also be achieved with standard unicode characters.

In a standard MacOS X application, you access glyph variants like Ligatures and other variants from the Font Palette's Typography option.



Each font can contain a large number of glyph variants or no variants at all. You can see exactly which glyphs are available in a font using the Character Palette.



There are of course different ways of handling glyphs in different kinds of fonts. Adobe and Microsoft use mainly OpenType fonts. Apple uses mainly TrueType fonts. OpenType fonts mostly work in MacOS X, but there may be some glyphs that MacOS X does not support.




For example, if you have Adobe InDesign, you can see a section of "Ornaments" glyphs in the OpenType font Adobe Caslon Pro. The selected pointed hand in the picture above is actually a "P" - something you can tell by copying it and pasting it to another application. You can also see that the unicode for the hand is 0050, and that is upper case P.

You can also see that the GID (Glyph ID) in Adobe's InDesign is 642. However Apple's Character Palette gives it GID 523. Clearly, something strange is going on.

If you access the Typography Palette for Adobe Caslon Pro in TextEdit, you do not have any Ornaments section. However, you can still double click the glyph in the Character Palette and display it in TextEdit.

In Pages you cannot even add it by double clicking it in the Character Palette, when you are running Mac OS X 10.4.

And why? Well, because it is an unsupported feature. It may not be a very exhaustive explanation, but that all there is right now.

Friday, February 02, 2007

How do I decide where a word is hyphenated at line breaks?

This is a missing feature in Pages.

Many applications use a soft hyphen or discretionary hyphen (unicode 00AD). That is an invisible character in the middle of a word, which only appears when the word needs to be broken into two in a line break.

Let's for example say you want to write an article about something called "efterår". You know the word, and you know that it can be broken into efter-år, if needed. A soft hyphen would be visible only when the word is broken.

Unfortunately, if you try with the soft hyphen 00AD in Pages, you will see that it is visible even when the word does not break: "efter-år".

Monday, December 11, 2006

What pdf features are supported in Pages?

When you create a pdf from Pages 3.0 in MacOS X 10.5 (Export or Print to PDF) it retains the following features:

* Hyperlinks defined in the Pages document
* Bookmarks defined in the Pages document
* Hyperlinks from the page numbers in the Table of Contents
* Scalable graphics stays scalable
* Transparency and shadows of graphics
* Well formatted unicode characters (like 日本)

It does not have any of the following features:

* Outlines (as a special side bar in Adobe Reader or Preview)
* Embedded media (sounds or movies)

Note that PDF/X files do not support any active content, like hyperlinks or bookmarks..

For advice about which method to use to create PDF files, see this entry.

Saturday, November 04, 2006

How do I add Greek symbols to my document?

For the most basic characters, use the following keyboard shortcuts (if you have a US keyboard).

∑ - alt-w
π - alt-p
Ω - alt-z
µ - alt-m

For any character beyond that, use the character palette (Edit > Special Characters).

If you want to type long Greek texts, activate a Greek keyboard in System Preferences > International > Input Menu.

The keyboard simply called "Greek" is good if you type in modern Greek.

The keyboard called "Greek Polytonic" works better if you type text in Ancient Greek, which has more accents and some archaic characters like digamma (ϝ), sampi (ϡ) and koppa (ϙ). The polytonic keyboard lacks some mathematical symbols and a few punctuation marks, that can be found in the "Greek" keyboard.

To see the exact differences between the two Greek keyboards, use the Keyboard Viewer.


Greek Polytonic keyboard.

If you type in ancient Greek, you may run into something that looks like a problem. In unicode there are two versions of accented Greek characters - with tonos (τόνος) and with oxia (οξεία). Luckily they look the same in most fonts. Here is epsilon with tonos: έ. And here it is with oxia: έ. However, in some fonts there is a very clear difference, like in Tahoma:

If you use a font with a difference, you should really use the oxia version with the slanted accent for ancient Greek. But Apple's keyboard only allows you to type the tonos version.

The solution is very simple: use a font where even the tonos version has a slanted accent.

Which languages do Pages and Mac OS X support?

Pages has full support for most major languages in the world, including Chinese and Japanese.

Pages does not support right to left writing, like in Arabic and Hebrew. Neither do MS Word 2004 or MS Word 2008 for Macintosh.

Pages also sometimes has problems with contextual forms in non-Latin languages - especially with OpenType fonts.

For certain languages, like Burmese, Pages does not have full support. Some characters, like ႏ, cannot be displayed for some reason.

Pages does not support vertical writing, so Chinese and Japanese have to be written horizontally. OpenOffice and the English and Japanese versions of MS Word 2004 and MS Word 2008 support vertical text. There was a discussion about this limitation in Pages on Japanese Slashdot in August 2007.

Pages does not support ruby/phonetic guides/furigana/振り仮名 [ふりがな]. OpenOffice and the English and Japanese versions of MS Word 2004 and MS Word 2008 support it, but their implementation is not very elegant. The Japanese version of Adobe InDesign also handles Japanese features. A Western version of InDesign is able to display them but not to modify them.

The following applications have Japanese language features, but they save them in a non-standard format, which makes it difficult to exchange documents with other users: LightWayText, iText, iText Pro. The web pages are in Japanese, but some of those applications also have an English user interface.

There are some scripts that Mac OS X supports, even thought fonts and keyboards are not available by default. For example:
  • Bengali/Bangla - free fonts and keyboard available from ekushey.org.
  • Kannada - free fonts and keyboard available from nickshanks.com.
  • Telugu - free font available from nickshanks.com. Keyboard is available from doe.carleton.ca
  • Malayalam - free font available from malayalamlinux. It seems the rendering is not good, however. When you combine the characters ക and െ, the characters should basically switch place, but they do not.
  • Sinhala - free font available from nickshanks.com.
  • Amharic (and Tigrinya) - several links to free fonts at Ethiopian News Headlines, for example senamirmir
Mac OS X 10.5 does not have sufficient support for Lao, Khmer, Burmese or the Indian language Oriya. Neither does it have support for Nastaʿlīq script, which commonly is used to render Urdu. (This means that there are more than 100 million people who currently are unable to write their own language on a Mac, not counting the 150 million Urdu speakers, who can use standard Arabic script, if they have to.)

For more information about typing in foreign languages check this page.

For more information about using foreign languages on a mac check following resources: