-
Notifications
You must be signed in to change notification settings - Fork 2
/
jm-indigobook-catsort-bib.csl
2022 lines (2006 loc) · 72.1 KB
/
jm-indigobook-catsort-bib.csl
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
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" page-range-format="chicago" version="1.1mlz1" year-range-format="expanded">
<info>
<title>JM Indigo Book (with category sorted bibliography)</title>
<id>http://juris-m.github.io/styles/jm-indigobook-catsort-bib</id>
<link href="http://juris-m.github.io/styles/jm-indigobook-catsort-bib" rel="self"/>
<link href="https://law.resource.org/pub/us/code/blue/IndigoBook.html" rel="documentation"/>
<author>
<name>Frank Bennett</name>
<email>[email protected]</email>
</author>
<category citation-format="note"/>
<category field="law"/>
<updated>2010-04-24T04:49:00+09:00</updated>
<rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
</info>
<locale>
<style-options skip-words="about,above,across,afore,after,against,along,alongside,amid,amidst,among,amongst,anenst,apropos,apud,around,as,aside,astride,at,athwart,atop,barring,before,behind,below,beneath,beside,besides,between,beyond,but,by,circa,despite,down,during,except,for,forenenst,from,given,in,inside,into,lest,like,modulo,near,next,notwithstanding,of,off,on,onto,out,over,per,plus,pro,qua,sans,since,than,through,thru,throughout,thruout,till,to,toward,towards,under,underneath,until,unto,up,upon,versus,vs.,v.,vs,v,via,vis-à-vis,with,within,without,according to,ahead of,apart from,as for,as of,as per,as regards,aside from,back to,because of,close to,due to,except for,far from,inside of,instead of,near to,next to,on to,out from,out of,outside of,prior to,pursuant to,rather than,regardless of,such as,that of,up to,where as,or,yet,so,for,and,nor,a,an,the,de,d',von,van,c,et,ca,is,this,that" jurisdiction-preference="IndigoTemp"/>
<terms>
<term name="and" form="symbol">&</term>
<term name="article">article</term>
<term name="director">director</term>
<term form="short" name="director">dir.</term>
<term form="short" name="article">
<single>art.</single>
<multiple>arts.</multiple>
</term>
<term name="rule"/>
<term name="title">title</term>
<term form="short" name="title">tit.</term>
<term form="short" name="chapter">ch.</term>
<term form="short" name="column">col.</term>
<term form="short" name="figure">fig.</term>
<term form="short" name="issue">no.</term>
<term form="short" name="line">
<single>l.</single>
<multiple>ll.</multiple>
</term>
<term form="short" name="note">
<single>n.</single>
<multiple>nn.</multiple>
</term>
<term form="short" name="opus">op.</term>
<term form="short" name="page">
<single>p.</single>
<multiple>pp.</multiple>
</term>
<term form="short" name="paragraph">
<single>para.</single>
<multiple>paras.</multiple>
</term>
<term form="short" name="part">pt.</term>
<term form="short" name="section">
<single>sec.</single>
<multiple>secs.</multiple>
</term>
<term form="symbol" name="section">
<single>§</single>
<multiple>§§</multiple>
</term>
<term form="short" name="sub verbo">s.v.</term>
<term form="short" name="verse">vrs.</term>
<term form="short" name="volume">vol.</term>
<term form="short" name="edition">
<single>ed.</single>
<multiple>eds.</multiple>
</term>
<term form="short" name="supplement">
<single>supp.</single>
<multiple>supps.</multiple>
</term>
<term name="ibid">id.</term>
<term form="verb" name="interview">interview by</term>
<term form="short" name="translator">trans.</term>
<term name="ordinal">th</term>
<term name="ordinal-01">st</term>
<term name="ordinal-02">d</term>
<term name="ordinal-03">d</term>
<term name="ordinal-11">th</term>
<term name="ordinal-12">th</term>
<term name="ordinal-13">th</term>
<term name="month-09" form="short">Sept.</term>
</terms>
<date form="text">
<date-part form="short" name="month" suffix=" "/>
<date-part form="numeric" name="day" suffix=", "/>
<date-part name="year"/>
</date>
</locale>
<macro name="std-authority-full">
<group delimiter=" ">
<choose>
<if subjurisdictions="2">
<text form="short" variable="jurisdiction"/>
</if>
<else>
<text form="short" variable="jurisdiction"/>
<text macro="std-authority-child"/>
</else>
</choose>
</group>
</macro>
<macro name="std-authority-child">
<names variable="authority">
<name/>
<institution institution-parts="short" use-first="1"/>
</names>
</macro>
<macro name="std-locator-label">
<group delimiter=" ">
<label form="short" variable="locator"/>
<number variable="locator"/>
</group>
</macro>
<macro name="std-locator-paragraph-bracket-at">
<group delimiter=" ">
<choose>
<if locator="page paragraph" match="none">
<label form="short" variable="locator"/>
</if>
<else-if locator="page paragraph" match="any">
<text term="at"/>
</else-if>
</choose>
<choose>
<if locator="paragraph">
<number prefix="[" suffix="]" variable="locator"/>
</if>
<else>
<number variable="locator"/>
</else>
</choose>
</group>
</macro>
<macro name="std-locator-paragraph-bracket">
<group delimiter=" ">
<choose>
<if locator="page paragraph" match="none">
<label form="short" variable="locator"/>
</if>
</choose>
<choose>
<if locator="paragraph">
<number prefix="[" suffix="]" variable="locator"/>
</if>
<else>
<number variable="locator"/>
</else>
</choose>
</group>
</macro>
<macro name="std-patent-detail">
<group delimiter=", ">
<text variable="title"/>
<group delimiter=" ">
<text form="short" variable="jurisdiction"/>
<choose>
<if variable="genre">
<text variable="genre"/>
<text value="no."/>
</if>
<else>
<text value="Patent No."/>
</else>
</choose>
<number variable="number"/>
</group>
</group>
</macro>
<macro name="std-inventor-label">
<choose>
<if is-plural="author">
<text value="inventors"/>
</if>
<else>
<text value="inventor"/>
</else>
</choose>
</macro>
<macro name="std-assignee-label">
<choose>
<if is-plural="recipient">
<text value="assignees"/>
</if>
<else>
<text value="assignee"/>
</else>
</choose>
</macro>
<macro name="babyblue-interview-author">
<choose>
<if type="interview">
<group delimiter=" ">
<group delimiter=" ">
<choose>
<if match="all" variable="medium title">
<group delimiter=" ">
<text variable="medium"/>
<text form="verb" term="interview"/>
</group>
</if>
<else-if match="all" variable="medium">
<group delimiter=" ">
<text text-case="capitalize-first" variable="medium"/>
<text form="verb" term="interview"/>
</group>
</else-if>
<else-if match="all" variable="title">
<text form="verb" term="interview"/>
</else-if>
<else>
<text form="verb" term="interview" text-case="capitalize-first"/>
</else>
</choose>
<choose>
<if position="subsequent">
<names variable="interviewer">
<name and="symbol" delimiter-precedes-last="never" form="short" initialize="false" initialize-with="."/>
<institution institution-parts="short" substitute-use-first="1"/>
</names>
</if>
<else>
<names variable="interviewer">
<name and="symbol" delimiter-precedes-last="never" form="long" initialize="false" initialize-with="."/>
<institution institution-parts="short" use-first="1" use-last="1"/>
</names>
</else>
</choose>
</group>
<group delimiter=" ">
<text value="with"/>
<choose>
<if position="subsequent">
<text macro="babyblue-author-only-short-render"/>
</if>
<else>
<text macro="babyblue-author-only-render"/>
</else>
</choose>
</group>
</group>
</if>
</choose>
</macro>
<macro name="babyblue-author">
<choose>
<if type="broadcast"/>
<else-if type="interview" match="all">
<text macro="babyblue-interview-author"/>
</else-if>
<else-if>
<conditions match="any">
<condition type="book" variable="version" match="all"/>
<condition type="song" variable="version" match="all"/>
<condition type="chapter" variable="author" match="all"/>
<condition type="video"/>
</conditions>
<choose>
<if position="subsequent">
<text macro="babyblue-author-short-render"/>
</if>
<else>
<text macro="babyblue-author-render"/>
</else>
</choose>
</else-if>
<else-if>
<conditions match="any">
<condition type="book" match="all"/>
<condition type="song" match="all"/>
<condition type="chapter" match="all"/>
</conditions>
<choose>
<if position="subsequent">
<text font-variant="small-caps" macro="babyblue-author-short-render"/>
</if>
<else>
<text font-variant="small-caps" macro="babyblue-author-render"/>
</else>
</choose>
</else-if>
<else-if type="personal_communication" match="all">
<group delimiter=" ">
<choose>
<if variable="genre">
<text text-case="capitalize-first" variable="genre"/>
</if>
<else>
<text term="letter" text-case="capitalize-first"/>
</else>
</choose>
<group delimiter=" ">
<group delimiter=" ">
<text term="from"/>
<choose>
<if position="subsequent">
<text macro="babyblue-author-only-short-render"/>
</if>
<else>
<text macro="babyblue-author-only-render"/>
</else>
</choose>
</group>
<group delimiter=" ">
<text value="to"/>
<choose>
<if position="subsequent">
<names variable="recipient">
<name and="symbol" delimiter-precedes-last="never" form="short" initialize="false" initialize-with="."/>
<institution institution-parts="short" substitute-use-first="1"/>
</names>
</if>
<else>
<names variable="recipient">
<name and="symbol" delimiter-precedes-last="never" form="long" initialize="false" initialize-with="."/>
<institution institution-parts="short" use-first="1" use-last="1"/>
</names>
</else>
</choose>
</group>
</group>
</group>
</else-if>
<else>
<choose>
<if position="subsequent">
<text macro="babyblue-author-short-render"/>
</if>
<else>
<text macro="babyblue-author-render"/>
</else>
</choose>
</else>
</choose>
</macro>
<macro name="babyblue-author-for-hereinafter">
<choose>
<if type="broadcast"/>
<else-if type="interview" position="subsequent" match="all">
<text macro="babyblue-interview-author"/>
</else-if>
<else-if>
<conditions match="any">
<condition type="book" variable="version" match="all"/>
<condition type="song" variable="version" match="all"/>
<condition type="chapter" variable="author" match="all"/>
<condition type="video"/>
</conditions>
<text macro="babyblue-author-short-render"/>
</else-if>
<else-if>
<conditions match="any">
<condition type="book" match="all"/>
<condition type="song" match="all"/>
<condition type="chapter" match="all"/>
</conditions>
<text font-variant="small-caps" macro="babyblue-author-short-render"/>
</else-if>
<else-if type="personal_communication" match="all">
<group delimiter=" ">
<choose>
<if variable="genre">
<text text-case="capitalize-first" variable="genre"/>
</if>
<else>
<text term="letter" text-case="capitalize-first"/>
</else>
</choose>
<group delimiter=" ">
<group delimiter=" ">
<text term="from"/>
<text macro="babyblue-author-only-short-render"/>
</group>
<group delimiter=" ">
<text value="to"/>
<names variable="recipient">
<name and="symbol" delimiter-precedes-last="never" form="short" initialize="false" initialize-with="."/>
<institution institution-parts="short" substitute-use-first="1"/>
</names>
</group>
</group>
</group>
</else-if>
<else>
<text macro="babyblue-author-short-render"/>
</else>
</choose>
</macro>
<macro name="babyblue-author-render">
<names variable="author">
<name and="symbol" delimiter-precedes-last="never" form="long" initialize="false" initialize-with="."/>
<institution institution-parts="short" use-first="1" use-last="1"/>
<substitute>
<names variable="container-author"/>
<names variable="composer"/>
</substitute>
</names>
</macro>
<macro name="babyblue-author-short-render">
<names variable="author">
<name and="symbol" delimiter-precedes-last="never" form="short" initialize="false" initialize-with="."/>
<institution institution-parts="short" substitute-use-first="1" use-last="1"/>
<substitute>
<names variable="container-author"/>
<names variable="composer"/>
</substitute>
</names>
</macro>
<macro name="babyblue-author-only-render">
<names variable="author">
<name and="symbol" delimiter-precedes-last="never" form="long" initialize="false" initialize-with="."/>
<institution institution-parts="short" use-first="1" use-last="1"/>
</names>
</macro>
<macro name="babyblue-author-only-short-render">
<names variable="author">
<name and="symbol" delimiter-precedes-last="never" form="short" initialize="false" initialize-with="."/>
<institution institution-parts="short" substitute-use-first="1"/>
</names>
</macro>
<macro name="us-container-author">
<names variable="container-author">
<name and="symbol" delimiter-precedes-last="never" initialize="false" initialize-with="."/>
<institution institution-parts="short" use-first="1" use-last="1"/>
</names>
</macro>
<macro name="us-editor">
<choose>
<if type="broadcast">
<group delimiter=" ">
<names delimiter=", " variable="author">
<name and="symbol" delimiter-precedes-last="never"/>
</names>
<text term="director" form="short"/>
</group>
</if>
<else>
<names delimiter=", " variable="director editor translator">
<name and="symbol" delimiter-precedes-last="never"/>
<label form="short" prefix=" "/>
</names>
</else>
</choose>
</macro>
<macro name="babyblue-title">
<choose>
<if>
<!-- Subsequent form for versioned items -->
<conditions match="all">
<condition type="book song motion_picture" match="any"/>
<condition variable="title version" match="all"/>
<condition position="first" context="bibliography" match="none"/>
</conditions>
<choose>
<if variable="hereinafter">
<text text-case="title" variable="hereinafter"/>
</if>
<else-if>
<conditions match="any">
<condition disambiguate="true"/>
<condition variable="author" match="none"/>
</conditions>
<text text-case="title" variable="title" form="short"/>
</else-if>
</choose>
</if>
<else-if>
<!-- First-reference form for versioned items -->
<conditions match="all">
<condition type="book song motion_picture" match="any"/>
<condition variable="title version" match="all"/>
</conditions>
<group delimiter=", ">
<text text-case="title" variable="title"/>
<choose>
<if is-numeric="version">
<group delimiter=" ">
<text value="ver."/>
<text variable="version"/>
</group>
</if>
<else>
<text quotes="true" variable="version"/>
</else>
</choose>
<text form="short" variable="medium"/>
</group>
</else-if>
<else-if>
<!-- Subsequent form for untitled or unversioned standalone items -->
<conditions match="all">
<condition type="book song motion_picture" match="any"/>
<condition variable="title version" match="nand"/>
<condition variable="container-title" match="none"/>
<condition type="song" variable="collection-title" match="nand"/>
<condition position="first" context="bibliography" match="none"/>
</conditions>
<choose>
<if variable="hereinafter">
<text font-variant="small-caps" text-case="title" variable="hereinafter"/>
</if>
<else-if>
<conditions match="any">
<condition disambiguate="true"/>
<condition variable="author" match="none"/>
</conditions>
<text font-variant="small-caps" text-case="title" variable="title" form="short"/>
</else-if>
</choose>
</else-if>
<else-if>
<!-- First-reference form for untitled or unversioned standalone items -->
<conditions match="all">
<condition type="book song motion_picture" match="any"/>
<condition variable="title version" match="nand"/>
<condition variable="container-title" match="none"/>
<condition type="song" variable="collection-title" match="nand"/>
</conditions>
<text font-variant="small-caps" text-case="title" variable="title"/>
</else-if>
<else-if>
<!-- Subsequent and first-reference forms for music albums and collections of scores -->
<conditions match="any">
<condition type="song" variable="collection-title" match="all"/>
<condition type="song" variable="container-title composer" match="all"/>
<condition type="song" variable="container-title author" match="all"/>
</conditions>
<choose>
<if position="first" context="bibliography" match="none">
<!-- Subsequent -->
<choose>
<if variable="hereinafter" match="all">
<text font-style="italic" text-case="title" variable="hereinafter"/>
</if>
<else-if>
<conditions match="any">
<condition disambiguate="true"/>
<condition variable="author composer" match="none"/>
</conditions>
<text font-style="italic" text-case="title" variable="title" form="short"/>
</else-if>
</choose>
</if>
<else>
<!-- First-reference-->
<group delimiter=" ">
<text font-style="italic" text-case="title" variable="title"/>
<names prefix="[" suffix="]" variable="composer">
<name form="short" initialize-with="."/>
</names>
</group>
</else>
</choose>
</else-if>
<else-if>
<!-- Subsequent forms for the remainder of standalone items -->
<conditions match="all">
<condition type="book song motion_picture" match="any"/>
<condition position="first" context="bibliography" match="none"/>
</conditions>
<choose>
<if variable="hereinafter">
<text font-variant="small-caps" text-case="title" variable="hereinafter"/>
</if>
<else-if>
<conditions match="any">
<condition disambiguate="true"/>
<condition variable="author" match="none"/>
</conditions>
<text font-variant="small-caps" text-case="title" variable="title" form="short"/>
</else-if>
</choose>
</else-if>
<else-if type="book song motion_picture" match="any">
<!-- First-reference form for the remainder of standalone items -->
<text font-variant="small-caps" text-case="title" variable="title"/>
</else-if>
<else-if>
<!-- Subsequent and first-reference forms for broadcasts (same for both) -->
<conditions match="any">
<condition type="broadcast" variable="container-title publisher" match="all"/>
<condition type="video" variable="container-title publisher" match="all"/>
</conditions>
<group delimiter=": " font-style="italic">
<text form="short" text-case="title" variable="container-title"/>
<text form="short" text-case="title" variable="title"/>
</group>
</else-if>
<else-if>
<!-- Subsequent and first-reference forms for mezzanine output -->
<conditions match="any">
<condition type="video" variable="container-title URL" match="all"/>
<condition type="post" variable="container-title URL" match="all"/>
<condition type="post-weblog" variable="container-title URL" match="all"/>
<condition type="webpage" variable="container-title URL" match="all"/>
<condition type="interview"/>
</conditions>
<choose>
<if position="first" context="bibliography" match="none">
<!-- Subsequent -->
<choose>
<if variable="hereinafter">
<text font-style="italic" variable="hereinafter"/>
</if>
<else-if>
<conditions match="any">
<condition disambiguate="true"/>
<condition variable="author" match="none"/>
</conditions>
<text font-style="italic" variable="title" form="short"/>
</else-if>
</choose>
</if>
<else>
<!-- First-reference -->
<text font-style="italic" variable="title"/>
</else>
</choose>
</else-if>
<else-if>
<!-- Subsequent and first-reference forms for articles and the like -->
<conditions match="any">
<condition type="song" variable="collection-title" match="all"/>
<condition type="broadcast" variable="container-title" match="all"/>
<condition type="video" variable="container-title" match="all"/>
<condition type="post" variable="container-title" match="all"/>
<condition type="post-weblog" variable="container-title" match="all"/>
<condition type="webpage" variable="container-title" match="all"/>
<condition type="paper-conference" variable="container-title" match="all"/>
<condition type="article-magazine graphic article-journal article-newspaper chapter" match="any"/>
<condition type="entry-encyclopedia"/>
<condition type="entry-dictionary"/>
<condition type="report"/>
</conditions>
<choose>
<if position="first" context="bibliography" match="none">
<!-- Subsequent -->
<choose>
<if variable="hereinafter">
<text font-style="italic" text-case="title" variable="hereinafter"/>
</if>
<else-if>
<conditions match="any">
<condition disambiguate="true"/>
<condition variable="author" match="none"/>
</conditions>
<text font-style="italic" text-case="title" variable="title" form="short"/>
</else-if>
</choose>
</if>
<else>
<!-- First-reference -->
<text font-style="italic" text-case="title" variable="title"/>
</else>
</choose>
</else-if>
<else-if>
<!-- Subsequent and first-reference forms for ephemera -->
<conditions match="any">
<condition type="video" variable="URL" match="all"/>
<condition type="post" match="all"/>
<condition type="post-weblog" match="all"/>
<condition type="webpage" match="all"/>
<condition type="personal_communication" match="all"/>
</conditions>
<choose>
<if position="first" context="bibliography" match="none">
<!-- Subsequent -->
<choose>
<if variable="hereinafter">
<text variable="hereinafter"/>
</if>
<else-if>
<conditions match="any">
<condition disambiguate="true"/>
<condition variable="author" match="none"/>
</conditions>
<text variable="title" form="short"/>
</else-if>
</choose>
</if>
<else>
<!-- First-reference -->
<text variable="title"/>
</else>
</choose>
</else-if>
<else-if>
<conditions match="all">
<condition type="legal_case"/>
<condition position="first" context="bibliography" match="none"/>
</conditions>
<!-- Subsequent forms for legal cases -->
<!-- Note that form="short" works differently for this type -->
<choose>
<if variable="hereinafter">
<text font-style="italic" variable="hereinafter"/>
</if>
<else-if variable="title-short">
<text form="short" font-style="italic" variable="title-short"/>
</else-if>
<else>
<text form="short" font-style="italic" variable="title"/>
</else>
</choose>
</else-if>
<else-if type="legal_case">
<!-- First-reference form for legal cases -->
<text form="short" variable="title"/>
</else-if>
<else-if position="first" context="bibliography" match="none">
<!-- Subsequent forms for everything else -->
<choose>
<if variable="hereinafter">
<text variable="hereinafter"/>
</if>
<else-if>
<conditions match="any">
<condition disambiguate="true"/>
<condition variable="author" match="none"/>
</conditions>
<text variable="title" form="short"/>
</else-if>
</choose>
</else-if>
<else>
<!-- First-reference form for everything else -->
<text form="short" text-case="title" variable="title"/>
</else>
</choose>
</macro>
<macro name="babyblue-title-for-hereinafter">
<choose>
<if>
<!-- Subsequent form for versioned items -->
<conditions match="all">
<condition type="book song motion_picture" match="any"/>
<condition variable="title version" match="all"/>
</conditions>
<choose>
<if variable="hereinafter">
<text text-case="title" variable="hereinafter"/>
</if>
<else-if>
<conditions match="any">
<condition disambiguate="true"/>
<condition variable="author" match="none"/>
</conditions>
<text text-case="title" variable="title" form="short"/>
</else-if>
</choose>
</if>
<else-if>
<!-- Subsequent form for untitled or unversioned standalone items -->
<conditions match="all">
<condition type="book song motion_picture" match="any"/>
<condition variable="title version" match="nand"/>
<condition variable="container-title" match="none"/>
<condition type="song" variable="collection-title" match="nand"/>
</conditions>
<choose>
<if variable="hereinafter">
<text font-variant="small-caps" text-case="title" variable="hereinafter"/>
</if>
<else-if>
<conditions match="any">
<condition disambiguate="true"/>
<condition variable="author" match="none"/>
</conditions>
<text font-variant="small-caps" text-case="title" variable="title" form="short"/>
</else-if>
</choose>
</else-if>
<else-if>
<!-- Subsequent form for music albums and collections of scores -->
<conditions match="any">
<condition type="song" variable="collection-title" match="all"/>
<condition type="song" variable="container-title composer" match="all"/>
<condition type="song" variable="container-title author" match="all"/>
</conditions>
<choose>
<if variable="hereinafter" match="all">
<text font-style="italic" text-case="title" variable="hereinafter"/>
</if>
<else-if>
<conditions match="any">
<condition disambiguate="true"/>
<condition variable="author composer" match="none"/>
</conditions>
<text font-style="italic" text-case="title" variable="title" form="short"/>
</else-if>
</choose>
</else-if>
<else-if>
<!-- Subsequent forms for the remainder of standalone items -->
<conditions match="all">
<condition type="book song motion_picture" match="any"/>
</conditions>
<choose>
<if variable="hereinafter">
<text font-variant="small-caps" text-case="title" variable="hereinafter"/>
</if>
<else-if>
<conditions match="any">
<condition disambiguate="true"/>
<condition variable="author" match="none"/>
</conditions>
<text font-variant="small-caps" text-case="title" variable="title" form="short"/>
</else-if>
</choose>
</else-if>
<else-if>
<!-- Subsequent form for broadcasts -->
<conditions match="any">
<condition type="broadcast" variable="container-title publisher" match="all"/>
<condition type="video" variable="container-title publisher" match="all"/>
</conditions>
<group delimiter=": " font-style="italic">
<text form="short" text-case="title" variable="container-title"/>
<text form="short" text-case="title" variable="title"/>
</group>
</else-if>
<else-if>
<!-- Subsequent form for mezzanine output -->
<conditions match="any">
<condition type="video" variable="container-title URL" match="all"/>
<condition type="post" variable="container-title URL" match="all"/>
<condition type="post-weblog" variable="container-title URL" match="all"/>
<condition type="webpage" variable="container-title URL" match="all"/>
<condition type="interview"/>
</conditions>
<choose>
<if variable="hereinafter">
<text font-style="italic" variable="hereinafter"/>
</if>
<else-if>
<conditions match="any">
<condition disambiguate="true"/>
<condition variable="author" match="none"/>
</conditions>
<text font-style="italic" variable="title" form="short"/>
</else-if>
</choose>
</else-if>
<else-if>
<!-- Subsequent form for articles and the like -->
<conditions match="any">
<condition type="song" variable="collection-title" match="all"/>
<condition type="broadcast" variable="container-title" match="all"/>
<condition type="video" variable="container-title" match="all"/>
<condition type="post" variable="container-title" match="all"/>
<condition type="post-weblog" variable="container-title" match="all"/>
<condition type="webpage" variable="container-title" match="all"/>
<condition type="paper-conference" variable="container-title" match="all"/>
<condition type="article-magazine graphic article-journal article-newspaper chapter" match="any"/>
<condition type="entry-encyclopedia"/>
<condition type="entry-dictionary"/>
<condition type="report"/>
</conditions>
<choose>
<if variable="hereinafter">
<text font-style="italic" text-case="title" variable="hereinafter"/>
</if>
<else-if>
<conditions match="any">
<condition disambiguate="true"/>
<condition variable="author" match="none"/>
</conditions>
<text font-style="italic" text-case="title" variable="title" form="short"/>
</else-if>
<else>
<text value="WTF?"/>
</else>
</choose>
</else-if>
<else-if>
<!-- Subsequent form for ephemera -->
<conditions match="any">
<condition type="video" variable="URL" match="all"/>
<condition type="post" match="all"/>
<condition type="post-weblog" match="all"/>
<condition type="webpage" match="all"/>
<condition type="personal_communication" match="all"/>
</conditions>
<choose>
<if variable="hereinafter">
<text variable="hereinafter"/>
</if>
<else-if>
<conditions match="any">
<condition disambiguate="true"/>
<condition variable="author" match="none"/>
</conditions>
<text variable="title" form="short"/>
</else-if>
</choose>
</else-if>
<else-if>
<conditions match="all">
<condition type="legal_case"/>
</conditions>
<!-- Subsequent forms for legal cases -->
<!-- We supply only hereinafter in this macro, because it is used only for non-standard backreference short forms -->
<choose>
<if variable="hereinafter">
<text font-style="italic" variable="hereinafter"/>
</if>
</choose>
</else-if>
<else>
<!-- Subsequent forms for everything else -->
<choose>
<if variable="hereinafter">
<text variable="hereinafter"/>
</if>
<else-if>
<conditions match="any">
<condition disambiguate="true"/>
<condition variable="author" match="none"/>
</conditions>
<text variable="title" form="short"/>
</else-if>
</choose>
</else>
</choose>
</macro>
<macro name="us-edition">
<group delimiter=" ">
<number form="ordinal" variable="edition"/>
<text form="short" term="edition"/>
</group>
</macro>
<macro name="us-issued">
<group delimiter=" ">
<choose>
<if type="classic"/>
<else-if type="manuscript">
<group delimiter=", ">
<text macro="us-issued-content"/>
</group>
</else-if>
<else>
<group delimiter=", ">
<group delimiter=", " prefix="(" suffix=")">
<text macro="us-issued-content"/>
</group>
<choose>
<if>
<conditions match="all">
<condition has-day="issued" has-to-month-or-season="issued" match="any"/>
<condition type="report"/>
</conditions>
<date form="text" variable="issued" date-parts="year-month-day"/>
</if>
</choose>
</group>
</else>
</choose>
</group>
</macro>
<macro name="us-issued-content">
<group delimiter=", ">
<choose>
<if type="graphic song broadcast">
<text variable="medium"/>
</if>
</choose>
<choose>
<if type="graphic">
<text variable="dimensions"/>
</if>
<else-if type="song broadcast video">
<text variable="genre"/>
</else-if>
</choose>
<text macro="us-editor"/>
<choose>
<if type="song"/>
<else-if variable="collection-title">
<text variable="collection-title"/>
<group delimiter=" ">
<choose>
<if is-numeric="collection-number">
<label form="long" variable="volume"/>
</if>
</choose>
<number label-form="short" variable="collection-number"/>
</group>