# Typesetting phonetic symbols: Unicode or tipa?

On TeX.SX there are a lot of questions of the form "How do I typeset [some phonetic symbol]?" For example:

One of the issues that often comes up in answers to these questions is whether International Phonetic Alphabet (IPA) symbols should be typeset using

What should a user consider when deciding which of these approaches to use?

This question is related to Is \aa or å preferred?, but I'm focused on the tipa package specifically here, not the broader question of LaTeX-based macros vs. Unicode. This is also related to questions about pdfLaTeX vs. XeLaTeX vs. LuaLaTeX, but again I'm focused on tipa, which can be used with any of those.

• Possible duplicate: tex.stackexchange.com/q/224058 This is the same question in my eyes and my answer would be the same. If you are fully compatible to UTF8 and you find it easy to type such stuff directly, you should do that. Your list of advantages is quite complete so you should make your own decision. Personally, I never use tipa but I am on LuaLaTeX and have never not-found any symbol in the unicode. The question on non unicode symbols in tipa would be answered by its documentation for sure. – LaRiFaRi Jan 21 '15 at 7:02
• @LaRiFaRi, I agree that the question you linked to is related, and certainly the advantages to using Unicode that I mention in my question would be relevant in answering that question. But my question is really about tipa specifically and whether anyone has chosen to use it instead of Unicode on the basis of its technical capabilities. I've edited my question to better reflect this. – Jason Zentz Jan 21 '15 at 15:13
• Both Unicode and tipa lack symbols. But tipa lacks way more -- it doesn't even cover the IPA itself, even though that was the reason tipa was created. But with XeLaTeX/LuaLaTeX, you can always find some font out there that has the extra symbols you need (I do this when I transcribe things with the Norwegian phonetic alphabet, which isn't included by Unicode yet). Doing that is much harder or impossible with LaTeX/tipa. – Sverre Jan 21 '15 at 15:27
• @LaRiFaRi, the tipa manual is a great resource, but it makes no mention of Unicode, let alone provide corresponding Unicode codepoints for each symbol (it was last updated in 2004, so this isn't too surprising). I know that tipa does contain some non-Unicode symbols, but I'm more concerned with whether there are tipa symbols that users have actually needed and haven't been able to find in any Unicode font. – Jason Zentz Jan 21 '15 at 15:35
• I think there are two reasons why tipa is used: (1) Inertia vel sim. I'm lucky that I started using TeX when XeTeX was fairly mature (in 2012). But if I started in 2002, I would probably be a tipa user today. (2). People want to use LaTeX. I sometimes use tipa, and the only reason is that I am writing a document that I wish to compile with LaTeX. LaTeX has some advantages over XeLaTeX (e.g. microtype), but LuaLaTeX will eventually close that gap. – Sverre Jan 21 '15 at 16:14

As I see it, there are many advantages to using a Unicode font with XeLaTeX/LuaLaTeX, some of which are mentioned in answers to the above questions and in other places, notably Alan Munn's answers to How to use phonetic IPA characters in LaTeX and Preparing a text for conversion to LaTeX: How to convert "ejective stops" in TIPA?:

• Code readability. There's no doubt that [ˌɛkspləˈneɪʃən] is easier to (proof)read than \textipa{[""Ekspl@"neIS@n]}.
• No special command/environment. There's no need for \textipa{...}, {\tipaencoding ...}, or \begin{IPA} ... \end{IPA}.
• Cross-application compatibility
• Copy and paste. If you are bringing your data into a .tex file from another application (e.g., Excel, Toolbox, ELAN, FLEx, etc.), Unicode input allows you to simply copy and paste without any conversion to tipa (or other LaTeX) macros. And if you want to take an example from your .tex file and put it in a Word document, email, or webpage, copy and paste works on the way out too.
• Keyboard shortcuts. If you already use a Unicode IPA keyboard layout (or a keyboard layout specific to a language you work on), you can use the same shortcuts you would use in any other Unicode application. See my answer to Accessing IPA characters when using Charis SIL for more about using a keyboard layout for Unicode IPA input.
• PDF usability. When you use a Unicode font, people who only have access to the resulting PDF can search for IPA symbols, and they can copy and paste them out of the document, too. This is only occasionally true for PDFs that use tipa, as discussed at How to use the real letters in a pdf?.
• Flexibility in font selection. You can use any Unicode font that has the characters you need. tipa's options give you symbols designed to match Computer Modern, Times, or Helvetica, and that's it.
• Font consistency. You can choose a font whose IPA symbols were created by the designer of the rest of the font, so they will match the body text. tipa matches Computer Modern quite well, but it merely approximates Times and Helvetica.
• OpenType features. There are several Unicode fonts with full IPA coverage that also have OpenType features that you can make use of using fontspec in XeLaTeX or LuaLaTeX. For example, Charis SIL has alternate glyphs for literacy applications (<ɑɡ> instead of <ag>, etc.) and for localization (e.g., variant glyphs for <Ŋ> and <ʋ>).

## tipa's advantages

There are at least two advantages to tipa, possibly a third:

• Backwards compatibility. It's a lot of work to convert tipa code into Unicode, and it might not be worth it if most of the data you are working with is already coded for tipa.
• Control over microtypography. tipa has commands (section 4 of the manual) that allow you to place diacritics manually and make some other fine adjustments to kerning, etc. Some Unicode fonts allow diacritic stacking and correct placement of modifier letters, but this varies widely across fonts.
• Ease/speed of input. This is frequently mentioned in favor of tipa, but personally I've never found using tipa shortcuts to be any faster than using a Unicode IPA keyboard layout with mnemonic, semantic key assignment.

## Conclusion

The package tipa should be considered a legacy method for using IPA characters in LaTeX, just as other non-Unicode fonts have been phased out (e.g., IPAPhon and the non-Unicode versions of the SIL and LaserIPA fonts). It may be necessary to use tipa in some circumstances for compatibility reasons (using already tipa-coded data, following a publisher's style guide, etc.), but in general users should strongly consider using Unicode with XeLaTeX or LuaLaTeX.

• Still I'd recommend marking the use of IPA symbols as arguments to a macro that sets the T3 encoding (in case you're using pdflatex); you gain in flexibility. – egreg Apr 26 '15 at 9:47
• @Jason Zentz Then what about complex character like t͡ʃʰ, xelatex ignore it most of the time – karu Apr 14 '16 at 14:51
• @karu, that is a font issue. You have to load a font that has the symbols you need and uses diacritics and tie bars correctly. Charis SIL is one example of a font that will typeset t͡ʃʰ correctly. – Jason Zentz Apr 14 '16 at 14:54