summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Master/texmf-dist/doc/latex/phonrule/README7
-rw-r--r--Master/texmf-dist/doc/latex/phonrule/phonrule-doc.pdfbin0 -> 31966 bytes
-rw-r--r--Master/texmf-dist/doc/latex/phonrule/phonrule-doc.tex123
-rw-r--r--Master/texmf-dist/tex/latex/phonrule/phonrule.sty24
-rwxr-xr-xMaster/tlpkg/bin/tlpkg-ctan-check2
-rw-r--r--Master/tlpkg/tlpsrc/collection-humanities.tlpsrc1
-rw-r--r--Master/tlpkg/tlpsrc/phonrule.tlpsrc0
7 files changed, 156 insertions, 1 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
new file mode 100644
index 00000000000..724b68f9aa6
--- /dev/null
+++ 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
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
diff --git a/Master/texmf-dist/tex/latex/phonrule/phonrule.sty b/Master/texmf-dist/tex/latex/phonrule/phonrule.sty
new file mode 100644
index 00000000000..ce1a557e288
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/phonrule/phonrule.sty
@@ -0,0 +1,24 @@
+% PhonRule
+%
+% (c) Stefano Coretta
+% LPPL LaTeX Public Project License
+%
+\ProvidesPackage{phonrule}
+ [2011/01/11 v0.01 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{} \\
+
+\endinput
+%%
+%% End of file `mypackage.sty'. \ No newline at end of file
diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check
index d8ff8daab31..ae61dfecf01 100755
--- a/Master/tlpkg/bin/tlpkg-ctan-check
+++ b/Master/tlpkg/bin/tlpkg-ctan-check
@@ -354,7 +354,7 @@ my @TLP_working = qw(
pgf pgf-blur pgf-soroban pgf-umlsd pgfgantt pgfkeyx pgfmolbio
pgfopts pgfplots
phaistos philex philokalia philosophersimprint
- phonetic photo physics physymb piano picinpar pict2e
+ phonetic phonrule photo physics physymb piano picinpar pict2e
pictex pictex2 pictexsum piechartmp piff pigpen
pinlabel pitex pittetd pkfix pkfix-helper pkuthss placeins placeins-plain
plain-doc plainpkg plari plantslabels plates play plipsum
diff --git a/Master/tlpkg/tlpsrc/collection-humanities.tlpsrc b/Master/tlpkg/tlpsrc/collection-humanities.tlpsrc
index e72b206ce9f..d69d263e719 100644
--- a/Master/tlpkg/tlpsrc/collection-humanities.tlpsrc
+++ b/Master/tlpkg/tlpsrc/collection-humanities.tlpsrc
@@ -34,6 +34,7 @@ depend liturg
depend metrix
depend parallel
depend parrun
+depend phonrule
depend plari
depend play
depend poemscol
diff --git a/Master/tlpkg/tlpsrc/phonrule.tlpsrc b/Master/tlpkg/tlpsrc/phonrule.tlpsrc
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/Master/tlpkg/tlpsrc/phonrule.tlpsrc