Debian Codegraph @

texmf-dist/doc/latex/xsipa/xsipa_doc.tex

raw
1 \documentclass[12pt]{article}
2 \usepackage{xsipa}
3
4 \title{The \texttt{xsipa} Package}
5 \author{Author: \texttt{Akpoué Kouamé Josué}\\ email: \texttt{[email protected]}}
6 \date{\today}
7
8 \begin{document}
9 \maketitle
10
11 \section*{Summary}
12
13 The \texttt{xsipa} package offers a compact and customizable way to transcribe IPA using a modified XSAMPA system. It defines user-friendly commands that shorten the verbose \texttt{tipa} syntax, while remaining compatible with both \LaTeX{} and XeLaTeX{} workflows.
14
15 \section{Loading the Package}
16
17 To use \texttt{xsipa}, add the following line in your preamble:
18
19 \begin{verbatim}
20 \usepackage{xsipa}
21 \end{verbatim}
22
23 If using XeLaTeX{} or LuaLaTeX{}, the package supports Unicode output via \texttt{xunicode} when enabled internally (future versions may expose this as an option).
24
25 \section{Basic Usage}
26
27 \subsection{Single Symbols}
28
29 Commands are based on XSAMPA codes, prefixed with \verb|\xs|. Examples:
30
31 \begin{verbatim}
32 ----------------------------------
33 xsipa % tipa % XSAMPA
34 ----------------------------------
35 \xsE % \textepsilon % E
36 \xsO % \textopeno % O
37 \xs;H{a} % \'a % a_H
38 ----------------------------------
39 \end{verbatim}
40
41 \subsection{Starred Environment: \texttt{\textbackslash xs*...\textasteriskcentered}}
42
43 The command \verb|\xs*...*| expands a custom XSAMPA-like string into a sequence of IPA symbols:
44
45 \begin{verbatim}
46 \xs*EO* % equivalent to \xsE\xsO
47 \xs*; {e}* % nasalized "e", equivalent to \xs;~{e}
48 \end{verbatim}
49
50 Another example:
51 \begin{itemize}
52 \item Input 1: \verb|m\xs;H\xsO d\xsZ\xs;Hukr\xs;Lu| (single symbols mode)
53 \item Item 2: \verb|\xs*m;H{O}dZ;Hukr;Lu*| (starred environment mode)
54 \item Output: \textipa{m\'OdZ\'ukr\`u}
55 \end{itemize}
56
57 \textbf{Note:} Diacritics and modifiers must be placed \emph{before} the segments they modify, and always used with braces: \verb|\xs;{e}|.
58
59 \section{Modifications from XSAMPA}
60
61 Due to LaTeX constraints, the following changes have been made:
62
63 \begin{itemize}
64 \item \verb|{| → \verb|[|, \verb|}| → \verb|]|
65 \item \verb|@| → \verb|\@| (in single symbols commands only)
66 \item \verb|%| → \verb|,|
67 \item \verb|_| → \verb|;|
68 \item \verb|\| → \verb|/|
69 \item Alternative forms: \verb|<| and \verb|>| can be replaced with \verb|(| and \verb|)| (if you don't have access to \verb|<| and \verb|>| on your keyboard)
70 \item So e.g. XSAMPA \verb|;>| may alternatively be typeset as \verb|;)|
71 \end{itemize}
72
73 \section{Known Issues and Warnings}
74
75 \begin{itemize}
76 \item Commands like \verb|\xsd|, \verb|\xsp|, \verb|\xst| require an argument: use \verb|{}| to avoid errors.
77 \item Avoid starting a \verb|\xs*...*| string with \verb|;|, \verb|:|, \verb|?| or \verb+|+; use \verb|{}| to protect them.
78 \item Spaces inside \verb|\xs*...*| are interpreted as nasalization: avoid using them.
79 \end{itemize}
80
81 \section{Limitations}
82
83 Available symbols in single symbols commands include consonnants, vowels, nasalization diacritic and some tone accents only.
84 Tone accents not included are :
85 \begin{itemize}
86 \item Low rising
87 \item High rising
88 \item Rising falling
89 \item Downstep
90 \item Upstep
91 \item Global rise
92 \item Global fall
93 \end{itemize}
94
95 For nasalisation, \verb|;~| is not available. Instead, use \verb|\xs~|, \verb|\xs*...; {<symbol code>}...| or \verb|\xs*... {<symbol code>}...| only (i.e. the space is mandatory).
96 \end{document}