summaryrefslogtreecommitdiff
path: root/macros/xetex/latex/langsci/langsci-lgr.sty
blob: 25710fed5bd638f0818e23f9f8282022d24b3078 (plain)
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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%      File: langsci-lgr.sty
%%    Author: Language Science Press (http://langsci-press.org)
%%      Date: 2022-02-16 16:47:43 UTC
%%   Purpose: This file contains shortcuts for the Leipzig Glossing
%%            Rules.
%%  Language: LaTeX
%%   Licence:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%

\usepackage{etoolbox}

\newtoggle{danger}
\togglefalse{danger}
\DeclareOption{danger}{\toggletrue{danger}}
\DeclareOption*{\PackageWarning{langsci-lgr}{Unknown option ‘\CurrentOption’}}
\ProcessOptions\relax

\iftoggle{danger}{\newcommand{\A}{\textsc{a}\xspace}}{}
\newcommand{\ABL}{\textsc{abl}{}\xspace}	%ablative
\newcommand{\ABS}{\textsc{abs}{}\xspace}	%absolutive
\newcommand{\ACC}{\textsc{acc}{}\xspace}	%accusative
\newcommand{\ADJ}{\textsc{adj}{}\xspace}	%adjective
\newcommand{\ADV}{\textsc{adv}{}\xspace}	%adverb(ial)
\newcommand{\AGR}{\textsc{agr}{}\xspace}	%agreement
\newcommand{\ALL}{\textsc{all}{}\xspace}	%allative
\newcommand{\ANTIP}{\textsc{antip}{}\xspace}	%antipassive
\newcommand{\APPL}{\textsc{appl}{}\xspace}	%applicative
\newcommand{\ART}{\textsc{art}{}\xspace}	%article
\newcommand{\AUX}{\textsc{aux}{}\xspace}	%auxiliary
\newcommand{\BEN}{\textsc{ben}{}\xspace}	%benefactive
\newcommand{\CAUS}{\textsc{caus}{}\xspace}	%causative
\newcommand{\CLF}{\textsc{clf}{}\xspace}	%classifier
\newcommand{\COM}{\textsc{com}{}\xspace}	%comitative
\newcommand{\COMP}{\textsc{comp}{}\xspace}	%complementizer
\newcommand{\COMPL}{\textsc{compl}{}\xspace}	%completive
\newcommand{\COND}{\textsc{cond}{}\xspace}	%conditional
\newcommand{\COP}{\textsc{cop}{}\xspace}	%copula
\newcommand{\CVB}{\textsc{cvb}{}\xspace}	%converb
\newcommand{\DAT}{\textsc{dat}{}\xspace}	%dative
\newcommand{\DECL}{\textsc{decl}{}\xspace}	%declarative
\newcommand{\DEM}{\textsc{dem}{}\xspace}	%demonstrative
\newcommand{\DEF}{\textsc{def}{}\xspace}
\newcommand{\DET}{\textsc{det}{}\xspace}
\newcommand{\DIST}{\textsc{dist}{}\xspace}	%distal
\newcommand{\DISTR}{\textsc{distr}{}\xspace}	%distributive
\newcommand{\DU}{\textsc{du}{}\xspace}	%dual
\newcommand{\DUR}{\textsc{dur}{}\xspace}	%durative
\newcommand{\ERG}{\textsc{erg}{}\xspace}	%ergative
\newcommand{\EXCL}{\textsc{excl}{}\xspace}	%exclusive
\iftoggle{danger}{\newcommand{\F}{\textsc{f}\xspace}}{}
\newcommand{\FOC}{\textsc{foc}{}\xspace}	%focus
\newcommand{\FUT}{\textsc{fut}{}\xspace}	%future
\newcommand{\GEN}{\textsc{gen}{}\xspace}	%genitive
\newcommand{\IMP}{\textsc{imp}{}\xspace}	%imperative
\newcommand{\INCL}{\textsc{incl}{}\xspace}	%inclusive
\newcommand{\IND}{\textsc{ind}{}\xspace}	%indicative
\newcommand{\INDF}{\textsc{indf}{}\xspace}	%indefinite
\newcommand{\INF}{\textsc{inf}{}\xspace}	%infinitive
\newcommand{\INS}{\textsc{ins}{}\xspace}	%instrumental
\newcommand{\INTR}{\textsc{intr}{}\xspace}	%intransitive
\newcommand{\IPFV}{\textsc{ipfv}{}\xspace}	%imperfective
\newcommand{\IRR}{\textsc{irr}{}\xspace}	%irrealis
\newcommand{\LOC}{\textsc{loc}{}\xspace}	%locative
\iftoggle{danger}{\newcommand{\M}{\textsc{m}\xspace}}{}
\iftoggle{danger}{\newcommand{\N}{\textsc{n}\xspace}}{}
\newcommand{\NEG}{\textsc{neg}{}\xspace}
\newcommand{\NMLZ}{\textsc{nmlz}{}\xspace}	%nominalizer/nominalization
\newcommand{\NOM}{\textsc{nom}{}\xspace}	%nominative
\newcommand{\OBJ}{\textsc{obj}{}\xspace}	%object
\newcommand{\OBL}{\textsc{obl}{}\xspace}	%oblique
\iftoggle{danger}{\renewcommand{\P}{\textsc{p}\xspace}}{} %originally pilcrow
\newcommand{\PASS}{\textsc{pass}{}\xspace}	%passive
\newcommand{\PFV}{\textsc{pfv}{}\xspace}	%perfective
\newcommand{\PL}{\textsc{pl}{}\xspace}	%plural
\newcommand{\POSS}{\textsc{poss}{}\xspace}	%possessive
\newcommand{\PRED}{\textsc{pred}{}\xspace}	%predicative
\newcommand{\PRF}{\textsc{prf}{}\xspace}	%perfect
\newcommand{\PRS}{\textsc{prs}{}\xspace}	%present
\newcommand{\PROG}{\textsc{prog}{}\xspace}	%progressive
\newcommand{\PROH}{\textsc{proh}{}\xspace}	%prohibitive
\newcommand{\PROX}{\textsc{prox}{}\xspace}	%proximal/proximate
\newcommand{\PST}{\textsc{pst}{}\xspace}	%past
\newcommand{\PTCP}{\textsc{ptcp}{}\xspace}	%participle
\newcommand{\PURP}{\textsc{purp}{}\xspace}	%purposive
\iftoggle{danger}{\newcommand{\Q}{\textsc{q}\xspace}}{}
\newcommand{\QUOT}{\textsc{quot}{}\xspace}	%quotative
\newcommand{\RECP}{\textsc{recp}{}\xspace}	%reciprocal
\newcommand{\REFL}{\textsc{refl}{}\xspace}	%reflexive
\newcommand{\REL}{\textsc{rel}{}\xspace}	%relative
\newcommand{\RES}{\textsc{res}{}\xspace}	%resultative
\iftoggle{danger}{\renewcommand{\S}{\textsc{s}\xspace}}{}
\newcommand{\SBJ}{\textsc{sbj}{}\xspace}	%subject
\newcommand{\SBJV}{\textsc{sbjv}{}\xspace}	%subjunctive
\newcommand{\SG}{\textsc{sg}{}\xspace}	%singular
\newcommand{\TOP}{\textsc{top}{}\xspace}
\newcommand{\TR}{\textsc{tr}{}\xspace}	%transitive
\newcommand{\VOC}{\textsc{voc}{}\xspace}	%vocative