2

Introductory explanation

An umlaut is a German vowel, represented in writing as a letter with two dots (diaeresis) over the basic vowel. Examples of umlauts are ä, ö, and ü.

These three letters can be represented in text either as one single character – for example, ü as Unicode U+00FC – or as two characters: the basic vowel (e.g. u, U+0075) and the combining diaeresis ( ¨, U+0308).

Both the single character umlaut and the two-character umlaut look the same in a PDF document, but their underlying code is different. This animation shows text copied from the same (!) PDF file opened in Firefox (top) and Preview (bottom) into a plain text editor (BBEdit) and then deleting individual letters:

enter image description here

When the umlaut is represented as one character, and you search for a German word with an umlaut, e.g. Tür "door", in a text, you will find that word if it is there. If on the other hand the umlaut is represented as two characters and you search for Tür, you will not find it:

Die Tür ist offen.  <= you will find "Tür" in this text
Die Tu¨r ist offen. <= you will not find "Tür" in this text

Question

In Apple's Preview and Safari, but also in the latest version of Adobe Acrobat Reader DC (18.011.20058), umlauts in PDF documents are represented as two characters (vowel plus diaeresis), while in the same PDF document, when I open it in Firefox, Chrome, or an older version of Adobe Acrobat X Pro (10.1.16), they are represented as a single character.

Why is that so, and how can I avoid two-character umlauts when I create PDF documents?

5
  • Hello Walter, welcome to Ask Different. When you write "If on the other hand the umlaut is represented as two characters and you search for Tür, you will not find it", do you mean within the app (Preview, Adobe Reader, etc), or with Spotlight, or with Terminal?
    – jaume
    Commented Aug 31, 2018 at 9:49
  • @jaume In app. Search in Spotlight works fine (as it is not the PDF file that has the wrong characters).
    – Walter T
    Commented Aug 31, 2018 at 10:08
  • When I type ü it is just one character. It must be the application used to initially write the test or maybe I don't understand the well-stated problem. This is entirely possible. Umlauts created by my Mac seem to be one character in examples I've tried. Notes, Textedit, Preview, and Pages. I don't even know how to create 2-character umlauts. Hope this helps a little.
    – Natsfan
    Commented Aug 31, 2018 at 18:02
  • @jmh You can create two character umlauts (and tons of similar stuff) by using the ABC extended keyboard to add combining diacritics to base letters. Commented Aug 31, 2018 at 18:07
  • Hello Walter, which is the macOS version running on your Mac? Can you upload such a PDF document to OneDrive or Dropbox and share the link? I haven't been able to reproduce the issue with a PDF document.
    – jaume
    Commented Sep 4, 2018 at 12:09

1 Answer 1

3

Whether you wind up with 1 or 2 characters depends on how Unicode Normalization is applied by the apps and processes you are using.

I don't know if there is any way to guarantee one or the other except perhaps via a utility like UnicodeChecker.

Since the two forms are equivalent, a competent search system should find either of them.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .