-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgrammar.tex
886 lines (765 loc) · 25.6 KB
/
grammar.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
% arara: xelatex
% arara: biber
% arara: makeglossaries
% arara: makeindex
% arara: xelatex
\documentclass[
a4paper,
11pt,
openany,
twoside,
oldfontcommands, % Compatibility with expex, which still uses \rm
% showtrims
]{memoir}
% Helps alleviate \write limit problems
\usepackage{scrwfile}
% Lulu.com's "Royal" format
% h = 234 mm
% w = 156 mm
% 1/8 * h = 29.25 mm
% 1/8 * w = 19.50 mm
\setstocksize{234mm}{156mm}
\settrimmedsize{234mm}{156mm}{*}
\setulmarginsandblock{.111\paperheight}{*}{1.0}
\setlrmarginsandblock{.111\paperwidth}{*}{1.0}
\setheaderspaces{*}{\onelineskip}{*}
\checkandfixthelayout
% \sloppybottom % Occasionally produces an extra line to avoid an orphan/widow
\author{Carsten Becker}
\title{A Grammar of Ayeri: Documenting a Fictional Language}
\date{\today}
% Layout for title page, cf. titlepages package
\newlength\drop
\makeatletter
\newcommand*{\titleS}{\begingroup% Scripts, T&H p 151
\drop = 0.1\textheight
\centering
\vspace*{\drop}
{\large Carsten Becker}\\[2\baselineskip]
{\Huge A Grammar of Ayeri}\\[\baselineskip]
{\Large\scshape Documenting a Fictional Language}\\[\baselineskip]
\vfill
%{\large\itshape Benung.\ The Ayeri Language Resource}\\
%\rule{0.5\textwidth}{0.4pt}\smallskip\\
{Carsten Becker\\ Marburg · 2018}\par
\vspace*{\drop}
\endgroup}
\makeatother
% Layout for running page titles
\nouppercaseheads
\copypagestyle{sfheaders}{headings}
\makeevenhead{sfheaders}{\sffamily{\bfseries\thepage}\quad{\itshape\leftmark}}{}{}
\makeoddhead{sfheaders}{}{}{\sffamily{\itshape\rightmark}\quad\bfseries\thepage}
% \makeheadrule{headings}{\textwidth}{0.3pt}
\pagestyle{sfheaders}
% Layout for Notes pages
\copypagestyle{notes}{headings}
\makeevenhead{notes}{}{\sffamily{\bfseries Notes}}{}
\makeoddhead{notes}{}{\sffamily{\bfseries Notes}}{}
% Layout for chapter headers
\chapterstyle{southall}
\renewcommand*{\chaptitlefont}{\huge\sffamily\raggedright}
% Sectioning depth
% \setcounter{secnumdepth}{2} % doesn't work for some reason
\setsecnumdepth{subsection}
\settocdepth{subsection}
% Space requirements
\usepackage{needspace}
% Calculation stuff
\usepackage{calc}
% Load fonts for XeTeX, including support for Unicode etc.
% Mathspec makes it possible to redefine *all* the fonts used for math stuff,
% however, it contains a stupid bug in dependency checking, see
% <http://tex.stackexchange.com/a/85700>.
\usepackage{mathspec}
\makeatletter
% undo the wrong changes made by mathspec
\let\RequirePackage\original@RequirePackage
\let\usepackage\RequirePackage
% use alternative epsilon shape instead of default
\let\epsilon\original@epsilon
\let\epsilon\varepsilon
\makeatother
\usepackage{mathtools}
\usepackage{amsmath}
\usepackage{xunicode}
\usepackage{xltxtra}
% Handle language and quotation marks
\usepackage{polyglossia}
\setdefaultlanguage[variant=american]{english}
\usepackage[
style=american,
english=american,
autopunct,
]{csquotes} % Put quotations in \enquote{} or \textquote{}!
\SetBlockEnvironment{quote}
\renewcommand*{\mkccitation}[1]{ (#1)}
% Fontawesome icons
% \usepackage{fontawesome}
% Date and time
\usepackage[useregional]{datetime2}
% Extended formatting of lists
\usepackage{enumitem}
\newlist{glossdefs}{itemize}{1}
\setlist[glossdefs]{nosep, leftmargin=4.5em, labelwidth=4em, align=left}
\setlist[itemize]{noitemsep}
\setlist[description]{font=\sffamily\bfseries}
% Make multiple columns available in single-column document
\usepackage{multicol}
% Make text colors and color names available
\usepackage[xetex]{xcolor}
% Set main fonts
\usepackage[config=mt-Junicode]{microtype}
% Since Ubuntu 16.04 comes with an old and buggy version of Junicode, I had to
% install the current version in a different directory to keep the system from
% defaulting to the one installed in /usr/share/fonts (LaTeX seems to prefer
% looking there over looking in ~/.fonts)
\setmainfont{Junicode.ttf}[
Ligatures=TeX,
Numbers=Lowercase,
Path=fonts/,
BoldFont={*-Bold},
ItalicFont={*-Italic},
BoldItalicFont={*-BoldItalic},
]
\setsansfont{Fira Sans}[
Ligatures=TeX,
Numbers=Lowercase,
Scale=MatchLowercase,
BoldFont={* SemiBold},
]
\setmonofont{DejaVu Sans Mono}[
Ligatures=TeX,
Scale=MatchLowercase,
]
\setmathsfont(Digits,Latin)[
Ligatures=TeX,
Numbers=Lowercase,
]{Junicode}
\newfontfamily{\FS}[
Ligatures=TeX,
Script=Devanagari,
Scale=MatchLowercase,
]{FreeSerif}
\newfontfamily{\Tagati}[
Renderer=Graphite,
Scale=0.9,
BoldFont={* Italic},
HyphenChar=·,
]{Tagati Book G}
% Relative font sizes
\usepackage{relsize}
% Set fonts for section headers
\setsecheadstyle{\sffamily\Large\raggedright}
\setsubsecheadstyle{\sffamily\bfseries\normalsize\raggedright}
\setsubsubsecheadstyle{\sffamily\itshape\normalsize\raggedright}
% Nicer footnotes
\usepackage[bottom,hang,norule]{footmisc}
\setlength{\footnotesep}{0.75\baselineskip}
% Load BibLaTeX (using Biber), configure citation styles
\usepackage[
authordate-trad,
maxcitenames=2,
maxbibnames=2,
minbibnames=1,
backend=biber,
safeinputenc,
natbib,
]{biblatex-chicago}
\addbibresource{bibliography.bib}
% To make \textcite look like "Doe (2014: 213)"
\renewcommand*{\postnotedelim}{\addcolon\addspace}
\DeclareFieldFormat{postnote}{#1}
\DeclareFieldFormat{multipostnote}{#1}
% Print "~f." and "~ff." for \psq and \psqq, respectively
\DefineBibliographyStrings{english}{%
sequens = {f.},
sequentes = {ff.},
}
% Possessive citations like "Doe's (1992)"
% https://tex.stackexchange.com/a/307461
\DeclareNameFormat{labelname:poss}{% Based on labelname from biblatex.def
\nameparts{#1}% Not needed if using Biblatex 3.4
\ifcase\value{uniquename}%
\usebibmacro{name:family}{\namepartfamily}{\namepartgiven}{\namepartprefix}{\namepartsuffix}%
\or
\ifuseprefix
{\usebibmacro{name:first-last}{\namepartfamily}{\namepartgiveni}{\namepartprefix}{\namepartsuffixi}}
{\usebibmacro{name:first-last}{\namepartfamily}{\namepartgiveni}{\namepartprefixi}{\namepartsuffixi}}%
\or
\usebibmacro{name:first-last}{\namepartfamily}{\namepartgiven}{\namepartprefix}{\namepartsuffix}%
\fi
\usebibmacro{name:andothers}%
\ifnumequal{\value{listcount}}{\value{liststop}}{'s}{}}
\DeclareFieldFormat{shorthand:poss}{%
\ifnameundef{labelname}{#1's}{#1}}
\DeclareFieldFormat{citetitle:poss}{\mkbibemph{#1}'s}
\DeclareFieldFormat{label:poss}{#1's}
\newrobustcmd*{\posscitealias}{%
\AtNextCite{%
\DeclareNameAlias{labelname}{labelname:poss}%
\DeclareFieldAlias{shorthand}{shorthand:poss}%
\DeclareFieldAlias{citetitle}{citetitle:poss}%
\DeclareFieldAlias{label}{label:poss}}}
\newrobustcmd*{\posscite}{%
\posscitealias%
\textcite}
\newrobustcmd*{\Posscite}{\bibsentence\posscite}
\newrobustcmd*{\posscites}{%
\posscitealias%
\textcites}
% Things for tables; needs to be loaded *before* hyperref if footnotes in
% tables are supposed to work (bug in tabu where they still don't?)
\usepackage{longtable}
\usepackage{tabu}
\usepackage{booktabs}
\usepackage{bigstrut}
\usepackage{array}
\usepackage{adjustbox}
\usepackage{makecell}
% \AtBeginEnvironment{tabu}{\smaller}
% \usepackage{rotating}
% \usepackage{multirow}
\tabulinesep = .5\itemsep
\newenvironment{morphlex}{%
\tabulinesep = 0pt%
}{%
\ignorespacesafterend%
}
% Dealing with page-size tables in landscape format
% http://tex.stackexchange.com/a/19021, and hat tip to Git user Zoqaeski:
\usepackage{pdflscape} % alternative to rotating; rotates pages on screen
\usepackage{afterpage} % put things after the page they're defined on
% Appendices
\usepackage{appendix}
% Custom column types
\newcolumntype{B}{>{\bfseries}X}
\newcolumntype{I}{>{\itshape}X}
\newcolumntype{H}{>{\bfseries\footnotesize}X}
\newcolumntype{S}{>{\footnotesize}X}
\newcolumntype{C}{>{\scshape}X}
% Table header font
\newcommand{\tableheaderfont}{\rowfont{\upshape\bfseries}}
\newcommand{\tablesubheaderfont}{\rowfont{\upshape\bfseries\footnotesize}}
% Clickable links in footnotes, TOC, etc.
\usepackage[
xetex,
pdfusetitle,
bookmarks,
linktoc=section,
colorlinks=false,
hidelinks,
]{hyperref}
% Write "section" instead of "subsection", "subsubsection" etc.
\let\subsectionautorefname\sectionautorefname
\let\subsubsectionautorefname\sectionautorefname
% Formatting of URLs
% \DeclareFieldFormat{url}{\href{#1}{\itshape #1}}
% \def\UrlNoBreaks{\do\(\do\[\do\{\do\<\do\:}
\urlstyle{same}
% Ability to include graphics and dealing with footnotes in descriptions
\usepackage{graphicx}
\usepackage[
font={small,sf},
labelfont={small,sf},
format=plain,
skip=.25\baselineskip
]{caption}
% Increase rubber between a float and text. Otherwise, we may get up to a
% line's worth of whitespace between paragraphs when a float is at the top.
% (https://tex.stackexchange.com/a/26522)
\setlength{\textfloatsep}{20pt plus 8pt minus 4pt}
% Throughout the book, examples are wrapped in floats to dynamically position
% them. By default, LaTeX tries to put floats at the top of pages, disrupting
% the reading flow. For examples especially, thus, we want them to be placed
% 'here', if possible, or at the top of the next page (cf. 'memoir' package
% manual, p. 177f.)
\setfloatlocations{figure}{htbp}
\usepackage{subcaption}
\usepackage{wrapfig}
\setlength{\columnsep}{2\baselineskip}
\usepackage{tikz}
\usetikzlibrary{decorations}
\usetikzlibrary{quotes}
% cf. http://tex.stackexchange.com/a/1912
\tikzstyle{na} = [shape=rectangle,inner sep=0pt,text depth=0pt]
\tikzstyle{haspanno} = [font=\scriptsize,below=.75em, align=center, text width=2.5em, text=black]
\tikzstyle{haspanno2} = [font=\scriptsize\sffamily\bfseries, align=left]
% Ability to draw tree diagrams
\usepackage[linguistics]{forest}
\usetikzlibrary{positioning}
\usetikzlibrary{tikzmark}
% Alias for tikzmark's \subnode[]{}{} to spare lots of empty brackets for nodes
% not containing any text anyway
\newcommand{\mysn}[1]{\subnode{#1}{}}
\forestset{shorter edges/.style={
for tree={l sep-=.5em}
}}
\forestset{narrower nodes/.style={
for tree={s sep-=1em,s=0}
}}
\forestset{italic leaves/.style={
where n children=0{font=\itshape}{}
}}
% Definition copied from pgfsys-common-pdf-via-dvi.def
% Compare http://tex.stackexchange.com/q/229500 and comments!
% This is currently needed to make tikzmark compile with xelatex
\makeatletter
\def\pgfsys@hboxsynced#1{%
{%
\pgfsys@beginscope%
\setbox\pgf@hbox=\hbox{%
\hskip\pgf@pt@x%
\raise\pgf@pt@y\hbox{%
\pgf@pt@x=0pt%
\pgf@pt@y=0pt%
\special{pdf: content q}%
\pgflowlevelsynccm%
\pgfsys@invoke{q -1 0 0 -1 0 0 cm}%
\special{pdf: content -1 0 0 -1 0 0 cm q}% translate to original coordinate system
\pgfsys@invoke{0 J [] 0 d}% reset line cap and dash
\wd#1=0pt%
\ht#1=0pt%
\dp#1=0pt%
\box#1%
\pgfsys@invoke{n Q Q Q}%
}%
\hss%
}%
\wd\pgf@hbox=0pt%
\ht\pgf@hbox=0pt%
\dp\pgf@hbox=0pt%
\pgfsys@hbox\pgf@hbox%
\pgfsys@endscope%
}%
}
\makeatother
% Ability to draw AVMs
% (Requires avm.sty from http://nlp.stanford.edu/manning/tex/)
\usepackage{avm}
\avmfont{\scshape}
\avmvalfont{\normalfont}
% \AtBeginEnvironment{avm}{\smaller}
% Formatting of table of glossing abbreviations inspired by the example from
% the leipzig package manual; here changed to use a user-defined list
% environment, 'glossdefs' (see above).
\usepackage[acronym,nomain,nonumberlist,nopostdot]{glossaries}
\usepackage{glossary-inline}%
\setglossarysection{section}
\newglossarystyle{mysuper}{%
\renewenvironment{theglossary}{%
\begin{multicols}{2}
\begin{glossdefs}%
}{%
\end{glossdefs}%
\end{multicols}%
}%
\renewcommand*{\glossaryheader}{}%
\renewcommand*{\glsgroupheading}[1]{}%
\renewcommand*{\glossaryentryfield}[5]{%
\item[\glsentryitem{##1}\glstarget{##1}{##2}]
% \makefirstuc{##3}\glspostdescription{}
##3\glspostdescription{}
}%
\renewcommand*{\glsgroupskip}{}%
}%
% Formatting of glosses
\usepackage{expex}
\pretocmd{\chapter}{\excnt=1}{}{}
\lingset{Everyex=\smaller\citereset,aboveglftskip=0pt}
% Third-level enumeration for expex examples,
% cf. http://tex.stackexchange.com/a/77941
\def\beginsubsub{%
\par
\begingroup
\advance\leftskip by 2em
\def\b##1{\par\leavevmode\llap{\hbox to 2em{##1\hfil}}\ignorespaces}}
\def\endsubsub{\par\endgroup}
% Glosses in footnotes
\newcounter{fnexno}
\setcounter{fnexno}{1}
\definelingstyle{fnex}{
% exno=\footnotesize\roman{fnexno}\stepcounter{fnexno},
exno=\roman{fnexno}\stepcounter{fnexno},
% everyex=\footnotesize,
numoffset=\footnotemargin,
aboveexskip=2ex,
belowglpreambleskip=-1ex,
interpartskip=0.5ex,
aboveglftskip=-1ex,
belowexskip=0ex,
}
% Tahano Hikamu examples in the Writing System chapter
\definelingstyle{thex}{
everygla=\upshape\Large,
glwordalign=center,
aboveglbskip=0.5em,
}
% Calculate remaining space in line for ex and pex,
% cf. https://tex.stackexchange.com/a/376534
\newlength{\remaining}
\newlength{\exoffset}
\newcommand{\remainpex}{%
\setlength{\remaining}{\linewidth-\lingtextoffset-\linglabelwidth-
\lingnumoffset-\linglabeloffset-\widthof{\exnoprint}}%
\setlength{\exoffset}{\linewidth-\remaining}
}
\newcommand{\remainex}{%
\setlength{\remaining}{\linewidth-\lingnumoffset-
\lingtextoffset-\widthof{\exnoprint}}%
\setlength{\exoffset}{\linewidth-\remaining}
}
\pretocmd{\pex}{\remainpex}{}{}
\pretocmd{\ex}{\remainex}{}{}
% Glossing abbreviations
\usepackage[glosses]{leipzig}
\newleipzig{AgtT}{at}{agent topic}
\newleipzig{PatT}{pt}{patient topic}
\newleipzig{DatT}{datt}{dative topic}
\newleipzig{GenT}{gent}{genitive topic}
\newleipzig{LocT}{loct}{locative topic}
\newleipzig{InsT}{inst}{instrumental topic}
\newleipzig{CauT}{caut}{causative topic}
\newleipzig{Pri}{pri}{primary}
\newleipzig{An}{an}{animate}
\newleipzig{Inan}{inan}{inanimate}
\newleipzig{Hab}{hab}{habitative}
\newleipzig{Ayr}{ayr}{Ayeri}
\newleipzig{Prt}{prt}{preterite}
\newleipzig{NPst}{npst}{near past}
\newleipzig{RPst}{rpst}{remote past}
\newleipzig{NFut}{nfut}{near future}
\newleipzig{RFut}{rfut}{remote future}
\newleipzig{Agtz}{agtz}{agentizer}
\newleipzig{Dim}{dim}{diminutive}
\newleipzig{Pos}{pos}{positive}
\newleipzig{Comp}{comp}{comparative}
\newleipzig{Supl}{supl}{superlative}
\newleipzig{Evid}{evid}{evidential}
\newleipzig{St}{st}{strong}
\newleipzig{Wk}{wk}{weak}
\newleipzig{Ptcl}{ptcl}{particle}
\newleipzig{Av}{av}{active voice}
\newleipzig{Ov}{ov}{objective voice}
\newleipzig{Dv}{dv}{dative voice}
\newleipzig{Iv}{iv}{instrumental voice}
\newleipzig{Vol}{vol}{volitive}
\newleipzig{Nvol}{nvol}{non-volitive}
\newleipzig{Impf}{impf}{imperfective}
\newleipzig{Dir}{dir}{directional}
\newleipzig{Hort}{hort}{hortative}
\newleipzig{Iter}{iter}{iterative}
\newleipzig{Aff}{aff}{affirmative}
\newleipzig{Int}{int}{intensifier}
\newleipzig{Adj}{adj}{adjective}
\newleipzig{Adp}{adp}{adposition}
\newleipzig{Lnk}{lnk}{linker}
\newleipzig{Nn}{nn}{noun}
\newleipzig{Post}{post}{postposition}
\newleipzig{Prep}{prep}{preposition}
\newleipzig{Sat}{sat}{satellite}
\newleipzig{Vb}{vb}{verb}
% LFG
\newglossary[alg]{lfg}{ald}{adn}{}
\newleipzig[type=lfg]{AF}{af}{argument function}
\newleipzig[type=lfg]{CF}{cf}{complement function}
\newleipzig[type=lfg]{DF}{df}{discourse function}
\newleipzig[type=lfg]{GF}{gf}{grammatical function}
\newleipzig[type=lfg]{Adjc}{adj}{adjunct}
\newleipzig[type=lfg]{Anim}{anim}{animacy}
\newleipzig[type=lfg]{Asp}{asp}{aspect}
\newleipzig[type=lfg]{Case}{case}{case}
\newleipzig[type=lfg]{Deg}{deg}{degree}
\newleipzig[type=lfg]{Degdim}{deg-dim}{degree polarity}
\newleipzig[type=lfg]{Compl}{comp}{complement}
\newleipzig[type=lfg]{Concord}{concord}{concord}
\newleipzig[type=lfg]{Conj}{conj}{conjunction}
\newleipzig[type=lfg]{Deix}{deix}{deixis}
\newleipzig[type=lfg]{Gend}{gend}{gender}
\newleipzig[type=lfg]{Index}{index}{index}
\newleipzig[type=lfg]{Mod}{mod}{modality}
\newleipzig[type=lfg]{Mood}{mood}{mood}
\newleipzig[type=lfg]{Num}{num}{number}
\newleipzig[type=lfg]{Obj}{obj}{object}
\newleipzig[type=lfg]{Quant}{quant}{quantifier}
\newleipzig[type=lfg]{SObj}{obj$_\theta$}{secondary object}
\newleipzig[type=lfg]{Oblique}{obl$_\theta$}{oblique constituent}
\newleipzig[type=lfg]{PCase}{pcase}{prepositional case}
\newleipzig[type=lfg]{Pers}{pers}{person}
\newleipzig[type=lfg]{Possr}{poss}{possessor}
\newleipzig[type=lfg]{Pred}{pred}{predicator}
\newleipzig[type=lfg]{Plink}{predlink}{predicative complement}
\newleipzig[type=lfg]{Prontype}{prontype}{pronoun type}
\newleipzig[type=lfg]{PSem}{psem}{prepositional semantics}
\newleipzig[type=lfg]{Q}{q}{question particle}
\newleipzig[type=lfg]{Simp}{simp}{simple aspect}
\newleipzig[type=lfg]{Spec}{spec}{specifier}
\newleipzig[type=lfg]{Specif}{specif}{specificity}
\newleipzig[type=lfg]{Subj}{subj}{subject}
\newleipzig[type=lfg]{Tel}{tel}{telic}
\newleipzig[type=lfg]{Tense}{tense}{tense}
\newleipzig[type=lfg]{XCompl}{xcomp}{open complement}
\newleipzig[type=lfg]{VType}{vtype}{verb type}
\makeglossaries
\newcommand{\AargI}{{\Aarg}.{\Inan}}
\newcommand{\PargI}{{\Parg}.{\Inan}}
\newcommand{\AgtTI}{{\AgtT}.{\Inan}}
\newcommand{\PatTI}{{\PatT}.{\Inan}}
\newcommand{\TsgM}{{\Tsg}.{\M}}
\newcommand{\TsgF}{{\Tsg}.{\F}}
\newcommand{\TsgN}{{\Tsg}.{\N}}
\newcommand{\TsgI}{{\Tsg}.{\Inan}}
\newcommand{\TplM}{{\Tpl}.{\M}}
\newcommand{\TplF}{{\Tpl}.{\F}}
\newcommand{\TplN}{{\Tpl}.{\N}}
\newcommand{\TplI}{{\Tpl}.{\Inan}}
\newcommand{\SObjc}[1]{\Obj\fakesubscript{\normalfont\itshape #1}}
\newcommand{\Oblq}[1]{\Obl\fakesubscript{\normalfont\itshape #1}}
% Keyword index
\usepackage{imakeidx}
\indexsetup{
level=\chapter,
toclevel=chapter,
}
\makeindex
% Smaller font in block quotes
\AtBeginEnvironment{quote}{\noindent\smaller}
\AtBeginEnvironment{quotation}{\smaller}
% No extra space around expex examples in figures
\AtBeginEnvironment{figure}{%
\lingset{exskip=0pt}%
}
% Macros
\newcommand{\CB}{\textsc{cb}} % `CB' to mark author's comments in quotes
\newcommand{\chk}{\FS ✓} % Check mark
\newcommand{\cnum}{\addfontfeature{RawFeature=-onum}} % Prints numbers as caps
\newcommand{\err}{\raisebox{-.75ex}{\includegraphics{images/faicon-bolt-300dpi.png}}} % FontAwesome icon `bolt'
\newcommand{\excl}{\fakesuperscript{!}} % raised exclamation mark
\newcommand{\fw}[1]{\textit{#1}} % Foreign Word
\newcommand{\hash}{\fakesuperscript{\#}} % raised pound
\newcommand{\logand}{\textsc{and}} % logical "AND"
\newcommand{\logor}{\textsc{or}} % logical "OR"
\newcommand{\orth}[1]{⟨#1⟩} % Orthography brackets
\newcommand{\pct}{\scalebox{.85}{ \%}} % Percent sign with half space before it
\newcommand{\ques}{\fakesuperscript{?}} % raised question mark
\newcommand{\rc}[1]{\rightcomment{[#1]}} % \rightcomment from expex in examples
\newcommand{\sic}{[{\itshape sic}]} % [sic]
\newcommand{\tc}[1]{\trailingcitation{#1}} % \trailingcitation from expex in examples
\newcommand{\thafterdot}{̒{\rmfamily }}%{\raisebox{.25em}{\zwsp F}{\rmfamily }}
\newcommand{\til}{$\sim$} %{\textasciitilde{}} % Tilde shortcut
\newcommand{\tit}[1]{\textit{#1}} % Title of a work
\newcommand{\tsub}[1]{\fakesubscript{#1}} % Subscript
\newcommand{\tsup}[1]{\fakesuperscript{#1}} % Superscript
\newcommand{\zero}{\textsc{ø}} % Small-caps Ø
\newcommand{\zwsp}{\mbox{}} % Zero-width space (ZWSP)
\newcommand{\ten}{\textsc{a}} % Numeral A
\newcommand{\elv}{\textsc{b}} % Numeral B
\newcommand{\ayr}[1]{\zwsp\smash{{\Tagati #1}}} % Plain Ayeri orthography
\newcommand{\rayr}[2]{\zwsp\smash{{\Tagati #1}} \emph{#2}} % Ayeri orthography + *r*omanization
\newcommand{\tayr}[2]{\emph{#1} `#2'} % Romanization + *t*ranslation
\newcommand{\xayr}[3]{\zwsp\smash{\Tagati #1} \emph{#2} `#3'} % Ayeri orthography + romanization + translation
\usepackage{suffix}
\WithSuffix\newcommand{\ayr}*[1]{{\Tagati #1}} % Plain Ayeri orthography
\WithSuffix\newcommand{\rayr}*[2]{{\Tagati #1} \emph{#2}} % Ayeri orthography + *r*omanization
\WithSuffix\newcommand{\xayr}*[3]{{\Tagati #1} \emph{#2} `#3'} % Ayeri orthography + romanization + translation
% LFG annotation stuff
\newcommand{\Avm}{\textsc{avm}}
\newcommand{\Lfg}{\textsc{lfg}}
\newcommand{\thetaroof}{$\hat{\theta}$}
\newcommand{\downfeat}[2]{(↓~{#1})~=~{#2}} % (↓X) = Y
\newcommand{\downs}[1]{(↓~{#1})} % (↓X)
\newcommand{\elem}[1]{↓~$\in$~(↑~{#1})} % ↓ ∊ (↑X)
\newcommand{\pass}[1]{(↑~{#1})~=~↓} % (↑X) = ↓
\newcommand{\req}{=\textit{\fakesubscript{c}}} % =_c
\newcommand{\uncertain}[2]{((#1~↑)~{#2})} % ((X↑) Y)
\newcommand{\updown}{↑~=~↓} % ↑ = ↓
\newcommand{\upfeat}[2]{(↑~{#1})~=~{#2}} % (↑X) = Y
\newcommand{\ups}[1]{(↑~{#1})} % (↑X)
\newcommand{\xbar}[1]{#1′} % X'
\newcommand{\xhead}[1]{#1⁰} % X⁰
% A-structure rules: \astruct[1]{2}{3} > '2 <3> 1'
\newcommand{\astruct}[3][]{`\emph{#2}~⟨#3⟩%
\notblank{#1}{%
\enspace#1'}{%
'}%
}
% Feature annotation above (for use in TREES); no value in [] prints ↑ = ↓
\newcommand{\anno}[2][\updown{}]{%
\text{%
\tabulinesep = 0pt
\begin{tabu}[m]{c}%
\begin{tabular}[t]{@{} >{\smaller\smaller}c @{}}%
#1%
\end{tabular}\\[0.125\baselineskip]%
#2
\end{tabu}%
}%
}
% Feature annotation below (for use in PHRASE-STRUCTURE RULES); no value in []
% prints ↑ = ↓
\WithSuffix\newcommand{\anno}*[2][\updown{}]{%
\text{%
\tabulinesep = 0pt
\begin{tabu}[m]{@{} c @{}}%
#2\\[-0.33\baselineskip]%
\begin{tabular}[t]{@{} >{\smaller\smaller}c @{}}%
#1%
\end{tabular}%
\end{tabu}%
} %
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
%% HALF TITLE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\frontmatter
\begin{titlingpage*}
\begin{center}
{\Huge A Grammar of Ayeri}
\end{center}
\clearpage
{\Large Benung.\ The Ayeri Language Resource}
\end{titlingpage*}
%% TITLE PAGE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{titlingpage*}
\titleS
\clearpage
\input{./chapters/colophon.tex}
\end{titlingpage*}
%% FRONT MATTER %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{KeepFromToc}
\tableofcontents
\end{KeepFromToc}
\clearpage
\listoffigures
\clearpage
\listoftables
\chapter{List of Abbreviations}
\begingroup\multicolsep=0pt
\printglossary[style=mysuper, type=leipzig, title={Glossing abbreviations}]
\printglossary[style=mysuper, type=lfg, title={\Lfg{}-specific abbreviations}]
\endgroup
\bigskip
\section*{Grammaticality judgments}
\noindent \begin{tabular}[t]{@{} l l}
* & ungrammatical or undocumented \\
\ques & questionable \\
\excl & running counter to expectation \\
\hash & marked \\
\end{tabular}
\cleartorecto
\input{./chapters/preface.tex}
\cleartorecto
%% MAIN MATTER %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\mainmatter
% Index: see ...
\index{accusative-and-infinitive|see{verbs}}
\index{adjunct|see{grammatical function}}
\index{AdvP|see{phrase types}}
\index{agent|see{case, semantic role}}
\index{AP|see{phrase types}}
\index{beneficiary|see{semantic role}}
\index{causative|see{case}}
\index{causer|see{semantic role}}
\index{comparative|see{comparison, verbs}}
\index{complement|see{grammatical function}}
\index{control|see{verbs}}
\index{dative|see{case}}
\index{depictive|see{adjectives}}
\index{DP|see{phrase types}}
\index{exceptional case-marking|see{verbs}}
\index{experiencer|see{semantic role}}
\index{focus|see{grammatical function}}
\index{future|see{tense}}
\index{genitive|see{case}}
\index{goal|see{semantic role}}
\index{habitual|see{aspect}}
\index{hortative|see{mood}}
\index{imperative|see{mood}}
\index{indicative|see{mood}}
\index{instrumental|see{case}}
\index{instrument|see{semantic role}}
\index{IP|see{phrase types}}
\index{irrealis|see{mood}}
\index{iterative|see{aspect}}
\index{location|see{semantic role}}
\index{locative|see{case}}
\index{names|see{nouns}}
\index{negative|see{mood}}
\index{NP|see{phrase types}}
\index{object|see{grammatical function}}
\index{oblique|see{grammatical function}}
\index{past|see{tense}}
\index{patient|see{case, semantic role}}
\index{plural|see{number}}
\index{possessor|see{semantic role}}
\index{postpositions|see{adpositions}}
\index{PP|see{phrase types}}
\index{predicative|see{adjectives, grammatical function}}
\index{prepositions|see{adpositions}}
\index{present|see{tense}}
\index{progressive|see{aspect}}
\index{raising|see{verbs}}
\index{recipient|see{semantic role}}
\index{resultative|see{adjectives}}
\index{secondary predication|see{adjectives}}
\index{singular|see{number}}
\index{source|see{semantic role}}
\index{subject|see{grammatical function}}
\index{S|see{phrase types}}
\index{theme|see{semantic role}}
\index{topic|see{grammatical function}}
\index{trigger@`trigger'|see{grammatical function}}
\index{VP|see{phrase types}}
% Index: see also ...
\index{case!agent|seealso{semantic role}}
\index{case!patient|seealso{semantic role}}
\index{comparison|seealso{verbs}}
\index{mood!negative|seealso{negation}}
\index{negation|seealso{mood}}
\index{questions|seealso{pronouns}}
\index{semantic role!agent|seealso{case}}
\index{semantic role!patient|seealso{case}}
\input{./chapters/introduction.tex}
\cleartorecto
\input{./chapters/phonology.tex}
\cleartorecto
\input{./chapters/writing.tex}
\cleartorecto
\input{./chapters/morphtyp.tex}
\cleartorecto
\input{./chapters/gramcat.tex}
\cleartorecto
\input{./chapters/syntyp.tex}
\cleartorecto
\input{./chapters/syntax.tex}
\cleartorecto
%% APPENDIX %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\appendix
\cleartorecto
\input{./chapters/names.tex}
\cleartorecto
\input{./chapters/examples.tex}
\cleartorecto
%% BIBLIOGRAPHY %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\printbibliography
\cleartorecto
%% BACK MATTER %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\backmatter
\begingroup\multicolsep=0pt
\printindex
\endgroup
%% EMPTY PAGES %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Lulu.com requires a completely empty last page; the total page number must be
% divisible by 4; multiple blank pages must be labeled.
\cleartorecto
\pagestyle{notes}
~{}
\clearpage
~{}
\clearpage
~{}
\clearpage
\pagestyle{empty}
~{}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{document}