File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ fbas {mnameshort}
1515focallength {czoom}
1616folder {mfolder}
1717fldr {mfolder}
18+ foldernum {fprefix;{mfolder};3}
19+ fldn {fprefix;{mfolder};3}
1820height {ch}
1921h {ch}
2022y {ch}
@@ -84,13 +86,15 @@ copyright {mcopyright}
8486copy {mcopyright}
8587source {msource}
8688srce {msource}
89+ description {mdescription}
8790
8891// TIme & Date
8992ampm {tampm}
9093date {tdate}
9194shot {tdate}
9295day {tday}
9396dow {tdayp}
97+ dow3 {fpfx;{tdayp};3}
9498hour {thour12}
9599hour24 {thour}
96100h24 {thour}
@@ -107,6 +111,7 @@ mnap {tmonthps}
107111second {tsecond}
108112sec {tsecond}
109113time {ttime}
114+
110115// Special Variables
111116nl \n
112117
Original file line number Diff line number Diff line change 1+ // Some substitutions that may be useful for a variety of purposes
2+
3+ // Plural detector. Returns "1" if the string that's passed in ends with -es or -s but not -is or -ss. "0" otherwise
4+ ispluralinput [[mheadline]]
5+ // ispluralinput <replace with your input>
6+ isplural [[fOr;
7+ [[\
8+ f=;[[fSfx;[[ispluralinput]];2]];es\
9+ ]];\
10+ [[\
11+ f&&;\
12+ [[f=;[[fSfx;[[ispluralinput]];1]];s]];\
13+ [[f!;[[fAnyEq;[[fSfx;[[ispluralinput]];2]];is;ss]]]]\
14+ ]]\
15+ ]]
16+
17+
18+ // n-inator - returns "n" if the supplied string starts with a vowel. Intended to be used to turn "a" into "an" when the following word dictates.
19+ ninatorinput [[mheadline]]
20+ // ninatorinput <replace with your input>
21+ ninator [[fBch;\
22+ [[fAnyEq;\
23+ [[fPfx;[[ninatorinput]];1]];
24+ \a;e;i;o;u\
25+ ]]\
26+ ;n]]
27+
28+ // an-inator - Returns "a " if the input string is plural or "an " if the input string is plural and starts with a vowel; "" otherwise.
29+ aninatorinput [[mheadline]]
30+ // aninatorinput <replace with your input>
31+ aninator [[fBch;\
32+ // plural checker
33+ [[f!;[[fOr;[[f=;[[fSfx;[[aninatorinput]];2]];es]];[[f&&;[[f=;[[fSfx;[[aninatorinput]];1]];s]];[[f!;[[fAnyEq;[[fSfx;[[aninatorinput]];2]];is;ss]]]]]]]]]];\
34+ // n-inator
35+ a[[fBch;[[fAnyEq;[[fPfx;[[aninatorinput]];1]];a;e;i;o;u]];n]]\
36+ ]]
37+
You can’t perform that action at this time.
0 commit comments