summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2014-08-08 21:25:36 +0000
committerKarl Berry <karl@freefriends.org>2014-08-08 21:25:36 +0000
commit89ce9650e79450a5477717072dbd4b19d8bd43ae (patch)
treeb2f531b58b92f28c6eaa69a914533d8544ba4060
parent811a25516a4454cdba0b70f9c45da1552cad1308 (diff)
phonrule (8aug14)
git-svn-id: svn://tug.org/texlive/trunk@34877 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/latex/phonrule/README2
-rw-r--r--Master/texmf-dist/doc/latex/phonrule/phonrule-doc.pdfbin31966 -> 34699 bytes
-rw-r--r--Master/texmf-dist/doc/latex/phonrule/phonrule-doc.tex85
-rw-r--r--Master/texmf-dist/tex/latex/phonrule/phonrule.sty23
4 files changed, 70 insertions, 40 deletions
diff --git a/Master/texmf-dist/doc/latex/phonrule/README b/Master/texmf-dist/doc/latex/phonrule/README
index 5dc36c9d5dd..5dcc5af6467 100644
--- a/Master/texmf-dist/doc/latex/phonrule/README
+++ b/Master/texmf-dist/doc/latex/phonrule/README
@@ -1,4 +1,4 @@
-PhonRule.sty
+PhonRule.sty v1.0.0
(c) Stefano Coretta
diff --git a/Master/texmf-dist/doc/latex/phonrule/phonrule-doc.pdf b/Master/texmf-dist/doc/latex/phonrule/phonrule-doc.pdf
index 724b68f9aa6..aad7c096072 100644
--- a/Master/texmf-dist/doc/latex/phonrule/phonrule-doc.pdf
+++ b/Master/texmf-dist/doc/latex/phonrule/phonrule-doc.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/phonrule/phonrule-doc.tex b/Master/texmf-dist/doc/latex/phonrule/phonrule-doc.tex
index 6555a192e23..cf1e3aada51 100644
--- a/Master/texmf-dist/doc/latex/phonrule/phonrule-doc.tex
+++ b/Master/texmf-dist/doc/latex/phonrule/phonrule-doc.tex
@@ -8,10 +8,7 @@
\usepackage{phonrule}
\usepackage{gb4e}
-\usepackage{natbib}
- \setcitestyle{aysep={},notesep={:}}
-
-\title{The \texttt{phonrule} package}
+\title{The \texttt{phonrule} package (v1.0.0)}
\author{Stefano Coretta \\ \texttt{stefano.coretta@me.com}}
\reversemarginpar
@@ -20,7 +17,7 @@
\maketitle
\section{Purpose}
-This packages provides macros for typesetting phonological rules like those in Sound Pattern of English \citep{chomsky1968sound}.
+This packages provides macros for typesetting phonological rules like those in \textit{Sound Pattern of English} (Chomsky, Noam \& Morris Halle. 1968. \textit{The sound pattern of English}. New York, Evanston, and London: Harper \& Row).
\section{Usage}
\begin{quote}
@@ -55,8 +52,8 @@ The commands \verb+\phonl+, \verb+\phonr+ and \verb+\phonb+ add a place holder l
\begin{exe}
\ex
\begin{xlist}
- \ex \verb+\phonl{k}{t}{t}+
- \ex \phonl{z}{r}{}
+ \ex \verb+\phonl{k}{c}{i}+
+ \ex \phonl{k}{tʃ}{i}
\end{xlist}
\ex
\begin{xlist}
@@ -70,54 +67,86 @@ The commands \verb+\phonl+, \verb+\phonr+ and \verb+\phonb+ add a place holder l
\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+.
+The \verb+\oneof+ command provides the possibility to compile several contexts, one per line, embraced by the left curly bracket. 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}
+\oneof{
+\phold \mbox{i} \\
+\phold \mbox{u}}
}
\end{verbatim}
\ex \phonc{t}{ts}{
-\begin{oneof}
-\placehold \mbox{i} \\
-\placehold \mbox{u}
-\end{oneof}
-}
+\oneof{
+\phold \mbox{i} \\
+\phold \mbox{u}}}
\end{exe}
-\verb+\placehold+ typeset a place holder line with spaces before and after. The \verb+\phonfeat+ environment allows you to insert feature specifications:
+The \verb+\phonfeat+ command allows you to insert feature specifications:
\begin{exe}
\ex
\begin{verbatim}
\phonc{t}{ts}{\phold
-\begin{phonfeat}
+\phonfeat{
\mbox{–consonantal} \\
\mbox{+high} \\
-\mbox{+front}
-\end{phonfeat}
+\mbox{+front}}
}
\end{verbatim}
\ex \phonc{t}{ts}{\phold
-\begin{phonfeat}
+\phonfeat{
\mbox{– consonantal} \\
\mbox{+high} \\
-\mbox{+front}
-\end{phonfeat}
-}
+\mbox{+front}}}
\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.
+\verb+\phold+ typesets a place holder line. You can nest \verb|oneof| and \verb|phonfeat| commands for complex rules.
+\begin{exe}
+\ex
+\begin{verbatim}
+\phonc{x}{y}{\oneof{
+ \phold \mbox{z} \\
+ \phonfeat{
+ +\mbox{feature x} \\
+ -\mbox{feature y}} \phold}}
+\end{verbatim}
+\ex \phonc{x}{y}{\oneof{
+ \ \phold \mbox{z} \\ \\
+ \phonfeat{
+ \mbox{+feature x} \\
+ \mbox{-feature y}} \phold}}
+\end{exe}
+You can use \verb|\env|, \verb|\envl|, \verb|\envr|, \verb|\envb| for rules with more than one output: these command typeset only the different outputs with their respective environments.
+\begin{exe}
+\ex
+\begin{verbatim}
+\phon{x}{\oneof{
+ \envr{w}{\mbox{z}} \\
+ \envl{v}{\phonfeat{
+ +\mbox{feature x} \\
+ -\mbox{feature y}}}}}
+\end{verbatim}
+\ex \phon{x}{\oneof{
+ \envr{\mbox{w}}{\mbox{z}} \\
+ \envl{\mbox{v}}{\phonfeat{
+ +\mbox{feature x} \\
+ -\mbox{feature y}}}}}
+\end{exe}
-\bibliography{linguistics}
-\bibliographystyle{unified}
+\section{Changelog}
+\subsection{v1.0.0}
+\begin{itemize}
+\item new definition of commands with \verb|\ensuremath|
+\item change of environments to commands
+\item definition of new commands \verb|\env| for personalized outputs
+\item updated place holder to 1.5ex length, -1.5pt vertical position
+\item updated curly brackets to only left in \verb|\oneof| command
+\end{itemize}
\end{document} \ No newline at end of file
diff --git a/Master/texmf-dist/tex/latex/phonrule/phonrule.sty b/Master/texmf-dist/tex/latex/phonrule/phonrule.sty
index ce1a557e288..5da7119c269 100644
--- a/Master/texmf-dist/tex/latex/phonrule/phonrule.sty
+++ b/Master/texmf-dist/tex/latex/phonrule/phonrule.sty
@@ -4,21 +4,22 @@
% LPPL LaTeX Public Project License
%
\ProvidesPackage{phonrule}
- [2011/01/11 v0.01 LaTeX package for typesetting phonological rules]
+ [2011/01/11 v1.0.0 LaTeX package for typesetting phonological rules]
\let\myDate\date
\newcommand{\phon} [2] {#1 \ensuremath{\rightarrow} #2}
\newcommand{\phonc} [3] {#1 \ensuremath{\rightarrow} #2 \ensuremath{/} #3}
-\newcommand{\phonr} [3] {#1 \ensuremath{\rightarrow} #2 \ensuremath{/} \rule{1em}{.5pt} #3}
-\newcommand{\phonl} [3] {#1 \ensuremath{\rightarrow} #2 \ensuremath{/} #3 \rule{1em}{.5pt}}
-\newcommand{\phonb} [4] {#1 \ensuremath{\rightarrow} #2 \ensuremath{/} #3 \rule{1em}{.5pt} #4}
-\newcommand{\placehold}{\ \rule{1em}{.5pt}\ } % for place holder with spaces
-\newcommand{\phold}{\rule{1em}{.5pt}} % for place holder without spaces
-\newenvironment{phonfeat}{$\left[\begin{array}{c}}{\end{array}\right]$} % set environment for feature matrix with square brackets; use \mbox{} \\
-\newenvironment{oneof}{$\left\{\begin{array}{c}}{\end{array}\right\}$} % set environment for one of multiple with curly brackets; use \mbox{} \\
-\newenvironment{phonfeatnest}{\left[\begin{array}{c}}{\end{array}\right]} % set nested environment for feature matrix with square brackets; use \mbox{} \\
-\newenvironment{oneofnest}{\left\{\begin{array}{c}}{\end{array}\right\}} % set nested environment for one of multiple with curly brackets; use \mbox{} \\
+\newcommand{\phonr} [3] {#1 \ensuremath{\rightarrow} #2 \ensuremath{/} \rule[-1.5pt]{1.5ex}{.5pt}#3}
+\newcommand{\phonl} [3] {#1 \ensuremath{\rightarrow} #2 \ensuremath{/} #3\rule[-1.5pt]{1.5ex}{.5pt}}
+\newcommand{\phonb} [4] {#1 \ensuremath{\rightarrow} #2 \ensuremath{/} #3\rule[-1.5pt]{1.5ex}{.5pt}#4}
+\newcommand{\phold}{\rule[-1.5pt]{1.5ex}{.5pt}} % for place holder without spaces
+\newcommand{\env} [2] {#1 \ensuremath{/} #2}
+\newcommand{\envr} [2] {#1 \ensuremath{/} \rule[-1.5pt]{1.5ex}{.5pt}#2}
+\newcommand{\envl} [2] {#1 \ensuremath{/} #2\rule[-1.5pt]{1.5ex}{.5pt}}
+\newcommand{\envb} [3] {#1 \ensuremath{/} #2\rule[-1.5pt]{1.5ex}{.5pt}#3}
+\newcommand{\phonfeat}[1]{\ensuremath{\left[\begin{array}{c} #1 \end{array}\right]}} % set environment for feature matrix with square brackets; use \mbox{} \\
+\newcommand{\oneof}[1]{\ensuremath{\left\{\begin{array}{l} #1 \end{array}\right.}} % set environment for one of multiple with curly brackets; use \mbox{} \\
\endinput
%%
-%% End of file `mypackage.sty'. \ No newline at end of file
+%% End of file `phonrule.sty'. \ No newline at end of file