Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

When using Charis SIL, how do I access IPA characters? Are there handy macros, as with tipa.sty? If I have to set up my own encoding using unicode numbers, how is this best done? (Code from those who have done this already?)


Here’s how I’m getting Charis SIL:

\documentclass[12pt]{article}
\usepackage{fontspec}
\setmainfont{Charis SIL}
\begin{document}
Blowzy DJ frumps vex a knight QC

\it 
Blowzy DJ frumps vex a knight QC 
\end{document}

And here’s the result:

enter image description here


This question arises from a response to another question of mine.

share|improve this question
    
I use a combination of an input aid (blugs.com/IPA) and my own macros. –  Alan Munn Jan 6 '13 at 16:35
    
@AlanMunn Thanks for the link. It looks useful. –  Daniel Harbour Jan 6 '13 at 18:24
    
westonruter.github.com/ipa-chart/keyboard is an online alternative the eofflin Mac-only tool @AlanMunn suggested. –  doncherry Jan 6 '13 at 19:14
    
@doncherry Here's another one: people.w3.org/rishida/scripts/pickers/ipa –  Alan Munn Jan 6 '13 at 19:42
    
@doncherry, AlanMunn: thanks for both of those. The escape option on Alan’s second link looks useful. –  Daniel Harbour Jan 7 '13 at 8:56
add comment

2 Answers 2

up vote 4 down vote accepted

You can use the IPA characters (of course you need that your file is encoded as UTF-8)

% -*- coding: utf-8 -*-
\documentclass[12pt]{article}
\usepackage{fontspec}
\setmainfont{Charis SIL}
\begin{document}
Blowzy DJ frumps vex a knight QC

ɳ (U+0273), ɲ (U+0272), ʁ (U+0281), ɱ (U+0271), ə (U+0259)

\end{document}

enter image description here

share|improve this answer
    
Aha, I didn’t think to check my encoding. Thanks, that works perfectly, and, moreover, gives me long-sought-after italics. –  Daniel Harbour Jan 6 '13 at 16:52
add comment

xunicode (loaded by fontspec) contains the definitions of tipa.sty:

\documentclass[12pt]{article}
\usepackage{fontspec}

\setmainfont{Charis SIL}
\begin{document}
Blowzy DJ frumps vex a knight QC

\textturna

\textipa{[\!b] [\:r] [\;B]}
\end{document}
share|improve this answer
    
To get this to compile, I need to add \usepackage{tipa}—maybe my fontspec is an older version. When it compiles, the IPA characters are Computer Modern rather than Charis SIL, and they don't respond to \it or \emph. (egreg's solution responds to \it by producing italic Charis IPA characters.) Are there ways round this? –  Daniel Harbour Jan 6 '13 at 18:23
    
You need xunicode not tipa. Older versions of fontspec didn't load xunicode. Load xunicode always after fontspec!! –  Ulrike Fischer Jan 6 '13 at 20:02
    
Thanks. That now works very nicely too. Unfortunately, both this and @egreg ’s solution—maybe XeLaTeX in general—appear to be incompatible with expex, which I’m reluctant to give up, as some of features are unique to that glossing package... Hopefully there’s a way round this. –  Daniel Harbour Jan 6 '13 at 20:26
1  
@DanielHarbour ExPex should be compatible with XeLaTeX. See e.g. my answer to Doing an interlinear text. –  Alan Munn Jan 6 '13 at 20:35
    
@AlanMunn Sorry, wasn't thinking clearly. The problem's less drastic. If lingset includes glneveryline=\em, (or \it or \itshape), then each foreign word (in the top line of the gloss) appears as it. I could drop italics if there's no work around. –  Daniel Harbour Jan 6 '13 at 21:55
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.