-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathverb-prefixes-colours.tex
97 lines (86 loc) · 3.92 KB
/
verb-prefixes-colours.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
%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode
%%%
%%% Colour macrology.
%%%
\RequirePackage{xcolor}
% Colour definitions.
% qualifiers
\definecolor{Qcolor}{rgb}{0.00,0.33,0.33}
% irrealis
\definecolor{Rcolor}{rgb}{0.90,0.50,0.50}
% irrealis coalescence
\definecolor{rcolor}{rgb}{1.00,0.95,0.95}
% aspect/conjugation
\definecolor{Acolor}{rgb}{0.70,0.40,0.00}
% aspect/conjugation coalescence
\definecolor{acolor}{rgb}{1.00,1.00,0.85}
% modality
\definecolor{Mcolor}{rgb}{0.00,0.66,0.66}
% modality coalescence
\definecolor{mcolor}{rgb}{0.90,1.00,1.00}
% subject
\definecolor{Scolor}{rgb}{0.50,0.00,0.66}
% d- prefix
\definecolor{Dcolor}{rgb}{0.00,0.00,0.75}
% d- prefix deletion
\definecolor{dcolor}{rgb}{0.90,0.90,1.00}
% s-/l-/sh- prefix
\definecolor{Fcolor}{rgb}{0.00,0.50,0.00}
% i- prefix
\definecolor{Icolor}{rgb}{0.75,0.00,0.00}
% epenthesis
\definecolor{Ecolor}{rgb}{0.75,0.75,0.75}
% deletion or coalescence
\definecolor{Xcolor}{rgb}{0.97,0.97,0.97}
% Uncomment to make everything black.
%\definecolor{Qcolor}{rgb}{0.00,0.00,0.00}
%\definecolor{Rcolor}{rgb}{0.00,0.00,0.00}
%\definecolor{Acolor}{rgb}{0.00,0.00,0.00}
%\definecolor{Mcolor}{rgb}{0.00,0.00,0.00}
%\definecolor{Scolor}{rgb}{0.00,0.00,0.00}
%\definecolor{Dcolor}{rgb}{0.00,0.00,0.00}
%\definecolor{Fcolor}{rgb}{0.00,0.00,0.00}
%\definecolor{Icolor}{rgb}{0.00,0.00,0.00}
%\definecolor{Ecolor}{rgb}{0.00,0.00,0.00}
% Uncomment to make everything light grey.
%\definecolor{Qcolor}{rgb}{0.90,0.90,0.90}
%\definecolor{Rcolor}{rgb}{0.90,0.90,0.90}
%\definecolor{Acolor}{rgb}{0.90,0.90,0.90}
%\definecolor{Mcolor}{rgb}{0.90,0.90,0.90}
%\definecolor{Scolor}{rgb}{0.90,0.90,0.90}
%\definecolor{Dcolor}{rgb}{0.90,0.90,0.90}
%\definecolor{Fcolor}{rgb}{0.90,0.90,0.90}
%\definecolor{Icolor}{rgb}{0.90,0.90,0.90}
%\definecolor{Ecolor}{rgb}{0.90,0.90,0.90}
%% A strut with 90 percent of normal height and width for the colorbox.
%% See http://tex.stackexchange.com/questions/74459/remove-space-before-colorbox
\ProvideDocumentCommand \colorboxstrut {} {\vrule width 0pt height 0.9\ht\strutbox depth 0.9\dp\strutbox\relax}
\ProvideDocumentCommand \Qf {m} {\textcolor{Qcolor}{\colorboxstrut{}#1}}
\ProvideDocumentCommand \Rf {m} {\textcolor{Rcolor}{\colorboxstrut{}#1}}
\ProvideDocumentCommand \rf {m} {\setlength{\fboxsep}{0pt}\colorbox{rcolor}{\colorboxstrut{}#1}}
\ProvideDocumentCommand \Af {m} {\textcolor{Acolor}{\colorboxstrut{}#1}}
\ProvideDocumentCommand \af {m} {\setlength{\fboxsep}{0pt}\colorbox{acolor}{\colorboxstrut{}#1}}
\ProvideDocumentCommand \Mf {m} {\textcolor{Mcolor}{\colorboxstrut{}#1}}
\ProvideDocumentCommand \mf {m} {\setlength{\fboxsep}{0pt}\colorbox{mcolor}{\colorboxstrut{}#1}}
\ProvideDocumentCommand \Sf {m} {\textcolor{Scolor}{\colorboxstrut{}#1}}
\ProvideDocumentCommand \Df {m} {\textcolor{Dcolor}{\colorboxstrut{}#1}}
\ProvideDocumentCommand \Ff {m} {\textcolor{Fcolor}{\colorboxstrut{}#1}}
\ProvideDocumentCommand \If {m} {\textcolor{Icolor}{\colorboxstrut{}#1}}
\ProvideDocumentCommand \Xf {m} {\setlength{\fboxsep}{0pt}\colorbox{Xcolor}{\colorboxstrut{}#1}}
\ProvideDocumentCommand \df {m} {\setlength{\fboxsep}{0pt}\colorbox{dcolor}{\colorboxstrut{}#1}}
\ProvideDocumentCommand \Ef {m} {\textcolor{Ecolor}{\colorboxstrut{}#1}}
%% Questionable form marker.
%%
%% Annotates a questionable form with a superscript question mark.
%% This overwrites the original \? command (for ¿) which we don’t need.
%% This command is just the superscript question mark.
\DeclareDocumentCommand \supques {} {\textsuperscript*{\textbf{?}}}
%% Adds the superscript question mark at the end.
%% The argument should be the contents of the cell, minus tabs.
\DeclareDocumentCommand \? {m} {#1\rlap{\supques}}
%% Alternative that hides the data.
%% This just prints nothing, making the data disappear.
%\DeclareDocumentCommand \? {m} {}
%% Alternative that puts the text in a grey background (Xf colour).
%\DeclareDocumentCommand \? {m} {\setlength{\fboxsep}{0pt}\colorbox{Xcolor}{\colorboxstrut{}#1\rlap{\supques}}}