diff options
author | Karl Berry <karl@freefriends.org> | 2013-10-23 00:13:49 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2013-10-23 00:13:49 +0000 |
commit | fc758c5bbb7666b9ac752029277d61adeeaff056 (patch) | |
tree | 1e8167578c5898052baf98006b82f4365f9017ac /Master/texmf-dist/doc/latex/phonrule | |
parent | 679b7aae1d05f86896ae878fc71b4b541fc57d9b (diff) |
phonrule (21oct13)
git-svn-id: svn://tug.org/texlive/trunk@31966 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/phonrule')
-rw-r--r-- | Master/texmf-dist/doc/latex/phonrule/README | 7 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/phonrule/phonrule-doc.pdf | bin | 0 -> 31966 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/phonrule/phonrule-doc.tex | 123 |
3 files changed, 130 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/phonrule/README b/Master/texmf-dist/doc/latex/phonrule/README new file mode 100644 index 00000000000..5dc36c9d5dd --- /dev/null +++ b/Master/texmf-dist/doc/latex/phonrule/README @@ -0,0 +1,7 @@ +PhonRule.sty + +(c) Stefano Coretta + +LPPL LaTeX Public Project License + +This packages provides macros for typesetting phonological rules like those in Sound Pattern of English (Chomsky and Halle 1968). It is indicated for linear phonological works.
\ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/phonrule/phonrule-doc.pdf b/Master/texmf-dist/doc/latex/phonrule/phonrule-doc.pdf Binary files differnew file mode 100644 index 00000000000..724b68f9aa6 --- /dev/null +++ b/Master/texmf-dist/doc/latex/phonrule/phonrule-doc.pdf diff --git a/Master/texmf-dist/doc/latex/phonrule/phonrule-doc.tex b/Master/texmf-dist/doc/latex/phonrule/phonrule-doc.tex new file mode 100644 index 00000000000..6555a192e23 --- /dev/null +++ b/Master/texmf-dist/doc/latex/phonrule/phonrule-doc.tex @@ -0,0 +1,123 @@ +\documentclass[a4paper]{article} + +\usepackage{fontspec} + +\usepackage{polyglossia} + \setmainlanguage{english} + +\usepackage{phonrule} +\usepackage{gb4e} + +\usepackage{natbib} + \setcitestyle{aysep={},notesep={:}} + +\title{The \texttt{phonrule} package} +\author{Stefano Coretta \\ \texttt{stefano.coretta@me.com}} + +\reversemarginpar + +\begin{document} +\maketitle + +\section{Purpose} +This packages provides macros for typesetting phonological rules like those in Sound Pattern of English \citep{chomsky1968sound}. + +\section{Usage} +\begin{quote} +\begin{verbatim} +\phon{〈input〉}{〈output〉} +\end{verbatim} +\end{quote} + +The command \verb+\phon+ has two arguments: the first one is the input of the rule and the second is the output. Here is an example with code and result: + +\begin{exe} +\ex \verb+\phon{z}{r}+ +\ex \phon{z}{r} +\end{exe} + +\section{Usage} +\begin{quote} +\begin{verbatim} +\phonc{〈input〉}{〈output〉}{〈context〉} +\end{verbatim} +\end{quote} + +\verb+\phonc+ adds a third argument for the context: + +\begin{exe} +\ex \verb+\phonc{a}{ə}{[–stressed]}+ +\ex \phonc{a}{ə}{[–stressed]} +\end{exe} + +The commands \verb+\phonl+, \verb+\phonr+ and \verb+\phonb+ add a place holder line and put the context, respectively, on the left (l), on the right (r) and on both sides (b): + +\begin{exe} +\ex + \begin{xlist} + \ex \verb+\phonl{k}{t}{t}+ + \ex \phonl{z}{r}{} + \end{xlist} +\ex + \begin{xlist} + \ex \verb+\phonr{t}{ts}{u}+ + \ex \phonr{t}{ts}{u} + \end{xlist} +\ex + \begin{xlist} + \ex \verb+\phonb{s}{z}{V}{V}+ + \ex \phonb{s}{z}{V}{V} + \end{xlist} +\end{exe} + +The \verb+\oneof+ environment provides the possibility to compile several context, one per line, enclosed in curly brackets. You need to use a \verb+\mbox+. + +\begin{exe} +\ex +\begin{verbatim} +\phonc{t}{ts}{ +\begin{oneof} +\placehold \mbox{i} \\ +\placehold \mbox{u} +\end{oneof} +} +\end{verbatim} +\ex \phonc{t}{ts}{ +\begin{oneof} +\placehold \mbox{i} \\ +\placehold \mbox{u} +\end{oneof} +} +\end{exe} + +\verb+\placehold+ typeset a place holder line with spaces before and after. The \verb+\phonfeat+ environment allows you to insert feature specifications: + +\begin{exe} +\ex +\begin{verbatim} +\phonc{t}{ts}{\phold +\begin{phonfeat} +\mbox{–consonantal} \\ +\mbox{+high} \\ +\mbox{+front} +\end{phonfeat} +} +\end{verbatim} +\ex \phonc{t}{ts}{\phold +\begin{phonfeat} +\mbox{– consonantal} \\ +\mbox{+high} \\ +\mbox{+front} +\end{phonfeat} +} +\end{exe} + +\verb+\phold+ typeset a place holder line without spaces. The environments \verb+\oneofnest+ and \verb+\phonfeatnest+ allows one-of environments (inside curly brackets) and feature specifications (inside square brackets) to be nested inside a \verb+\oneof+ environment. + + + + +\bibliography{linguistics} +\bibliographystyle{unified} + +\end{document}
\ No newline at end of file |