citeproc-ruby 0.0.6 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (186) hide show
  1. checksums.yaml +7 -0
  2. data/.coveralls.yml +1 -0
  3. data/.document +4 -0
  4. data/.gitignore +10 -0
  5. data/.rspec +3 -0
  6. data/.simplecov +4 -0
  7. data/.travis.yml +17 -0
  8. data/.yardopts +2 -0
  9. data/AGPL +662 -0
  10. data/BSDL +29 -0
  11. data/Gemfile +42 -0
  12. data/Guardfile +14 -0
  13. data/README.md +32 -76
  14. data/Rakefile +60 -0
  15. data/citeproc-ruby.gemspec +46 -0
  16. data/cucumber.yml +1 -0
  17. data/features/bibliography.feature +25 -0
  18. data/features/name_options.feature +37 -0
  19. data/features/names.feature +192 -0
  20. data/features/renderer.feature +74 -0
  21. data/features/sort.feature +50 -0
  22. data/features/step_definitions/renderer.rb +80 -0
  23. data/features/support/env.rb +33 -0
  24. data/features/support/hooks.rb +10 -0
  25. data/lib/citeproc/ruby.rb +32 -0
  26. data/lib/citeproc/ruby/engine.rb +122 -0
  27. data/lib/citeproc/ruby/format.rb +303 -0
  28. data/lib/citeproc/ruby/formats/default.rb +25 -0
  29. data/lib/citeproc/ruby/formats/html.rb +221 -0
  30. data/lib/citeproc/ruby/renderer.rb +140 -0
  31. data/lib/citeproc/ruby/renderer/choose.rb +106 -0
  32. data/lib/citeproc/ruby/renderer/date.rb +90 -0
  33. data/lib/citeproc/ruby/renderer/format.rb +129 -0
  34. data/lib/citeproc/ruby/renderer/group.rb +34 -0
  35. data/lib/citeproc/ruby/renderer/history.rb +40 -0
  36. data/lib/citeproc/ruby/renderer/label.rb +66 -0
  37. data/lib/citeproc/ruby/renderer/layout.rb +20 -0
  38. data/lib/citeproc/ruby/renderer/locale.rb +26 -0
  39. data/lib/citeproc/ruby/renderer/macro.rb +20 -0
  40. data/lib/citeproc/ruby/renderer/names.rb +401 -0
  41. data/lib/citeproc/ruby/renderer/number.rb +41 -0
  42. data/lib/citeproc/ruby/renderer/observer.rb +44 -0
  43. data/lib/citeproc/ruby/renderer/state.rb +96 -0
  44. data/lib/citeproc/ruby/renderer/text.rb +62 -0
  45. data/lib/citeproc/ruby/sort.rb +82 -0
  46. data/lib/citeproc/ruby/version.rb +5 -0
  47. data/spec/citeproc/ruby/engine_spec.rb +94 -0
  48. data/spec/citeproc/ruby/formats/default_spec.rb +159 -0
  49. data/spec/citeproc/ruby/formats/html_spec.rb +162 -0
  50. data/spec/citeproc/ruby/renderer/choose_spec.rb +293 -0
  51. data/spec/citeproc/ruby/renderer/date_spec.rb +173 -0
  52. data/spec/citeproc/ruby/renderer/group_spec.rb +88 -0
  53. data/spec/citeproc/ruby/renderer/history_spec.rb +38 -0
  54. data/spec/citeproc/ruby/renderer/label_spec.rb +225 -0
  55. data/spec/citeproc/ruby/renderer/layout_spec.rb +41 -0
  56. data/spec/citeproc/ruby/renderer/macro_spec.rb +31 -0
  57. data/spec/citeproc/ruby/renderer/names_spec.rb +396 -0
  58. data/spec/citeproc/ruby/renderer/number_spec.rb +120 -0
  59. data/spec/citeproc/ruby/renderer/text_spec.rb +120 -0
  60. data/spec/citeproc/ruby/renderer_spec.rb +65 -0
  61. data/spec/fixtures/items.rb +80 -0
  62. data/{resource/locale → spec/fixtures/locales}/locales-en-US.xml +2 -11
  63. data/{resource/locale → spec/fixtures/locales}/locales-fr-FR.xml +77 -66
  64. data/{resource/style → spec/fixtures/styles}/apa.csl +5 -5
  65. data/spec/spec_helper.rb +67 -14
  66. metadata +121 -211
  67. data/lib/citeproc.rb +0 -100
  68. data/lib/citeproc/bibliography.rb +0 -57
  69. data/lib/citeproc/data.rb +0 -149
  70. data/lib/citeproc/date.rb +0 -133
  71. data/lib/citeproc/formatter.rb +0 -38
  72. data/lib/citeproc/item.rb +0 -53
  73. data/lib/citeproc/name.rb +0 -284
  74. data/lib/citeproc/processor.rb +0 -166
  75. data/lib/citeproc/selector.rb +0 -61
  76. data/lib/citeproc/variable.rb +0 -82
  77. data/lib/citeproc/version.rb +0 -3
  78. data/lib/csl/locale.rb +0 -223
  79. data/lib/csl/node.rb +0 -72
  80. data/lib/csl/nodes.rb +0 -1418
  81. data/lib/csl/renderer.rb +0 -88
  82. data/lib/csl/sort.rb +0 -61
  83. data/lib/csl/style.rb +0 -110
  84. data/lib/csl/term.rb +0 -124
  85. data/lib/extensions/core.rb +0 -43
  86. data/lib/plugins/filters/bibtex.rb +0 -12
  87. data/lib/plugins/formats/default.rb +0 -134
  88. data/lib/plugins/formats/html.rb +0 -67
  89. data/lib/support/attributes.rb +0 -99
  90. data/lib/support/compatibility.rb +0 -83
  91. data/lib/support/tree.rb +0 -80
  92. data/resource/locale/locales-af-ZA.xml +0 -305
  93. data/resource/locale/locales-ar-AR.xml +0 -306
  94. data/resource/locale/locales-bg-BG.xml +0 -305
  95. data/resource/locale/locales-ca-AD.xml +0 -305
  96. data/resource/locale/locales-cs-CZ.xml +0 -305
  97. data/resource/locale/locales-da-DK.xml +0 -305
  98. data/resource/locale/locales-de-AT.xml +0 -304
  99. data/resource/locale/locales-de-CH.xml +0 -304
  100. data/resource/locale/locales-de-DE.xml +0 -332
  101. data/resource/locale/locales-el-GR.xml +0 -305
  102. data/resource/locale/locales-en-GB.xml +0 -304
  103. data/resource/locale/locales-es-ES.xml +0 -305
  104. data/resource/locale/locales-et-EE.xml +0 -304
  105. data/resource/locale/locales-eu.xml +0 -305
  106. data/resource/locale/locales-fa-IR.xml +0 -304
  107. data/resource/locale/locales-fi-FI.xml +0 -304
  108. data/resource/locale/locales-fr-CA.xml +0 -306
  109. data/resource/locale/locales-he-IL.xml +0 -304
  110. data/resource/locale/locales-hu-HU.xml +0 -305
  111. data/resource/locale/locales-is-IS.xml +0 -304
  112. data/resource/locale/locales-it-IT.xml +0 -305
  113. data/resource/locale/locales-ja-JP.xml +0 -305
  114. data/resource/locale/locales-kh-KH.xml +0 -303
  115. data/resource/locale/locales-km-KH.xml +0 -304
  116. data/resource/locale/locales-ko-KR.xml +0 -305
  117. data/resource/locale/locales-mn-MN.xml +0 -306
  118. data/resource/locale/locales-nb-NO.xml +0 -304
  119. data/resource/locale/locales-nl-NL.xml +0 -304
  120. data/resource/locale/locales-nn-NO.xml +0 -304
  121. data/resource/locale/locales-pl-PL.xml +0 -305
  122. data/resource/locale/locales-pt-BR.xml +0 -304
  123. data/resource/locale/locales-pt-PT.xml +0 -305
  124. data/resource/locale/locales-ro-RO.xml +0 -305
  125. data/resource/locale/locales-ru-RU.xml +0 -306
  126. data/resource/locale/locales-sk-SK.xml +0 -304
  127. data/resource/locale/locales-sl-SI.xml +0 -305
  128. data/resource/locale/locales-sr-RS.xml +0 -305
  129. data/resource/locale/locales-sv-SE.xml +0 -305
  130. data/resource/locale/locales-th-TH.xml +0 -304
  131. data/resource/locale/locales-tr-TR.xml +0 -305
  132. data/resource/locale/locales-uk-UA.xml +0 -306
  133. data/resource/locale/locales-vi-VN.xml +0 -305
  134. data/resource/locale/locales-zh-CN.xml +0 -304
  135. data/resource/locale/locales-zh-TW.xml +0 -305
  136. data/resource/schema/csl-categories.rnc +0 -39
  137. data/resource/schema/csl-data.rnc +0 -98
  138. data/resource/schema/csl-terms.rnc +0 -106
  139. data/resource/schema/csl-types.rnc +0 -39
  140. data/resource/schema/csl-variables.rnc +0 -182
  141. data/resource/schema/csl.rnc +0 -941
  142. data/resource/style/bibtex.csl +0 -177
  143. data/resource/style/chicago-annotated-bibliography.csl +0 -513
  144. data/resource/style/chicago-author-date-basque.csl +0 -707
  145. data/resource/style/chicago-author-date-de.csl +0 -394
  146. data/resource/style/chicago-author-date-listing.csl +0 -434
  147. data/resource/style/chicago-author-date.csl +0 -425
  148. data/resource/style/chicago-dated-note-biblio-no-ibid.csl +0 -472
  149. data/resource/style/chicago-fullnote-bibliography-bb.csl +0 -928
  150. data/resource/style/chicago-fullnote-bibliography-delimiter-fixes.csl +0 -972
  151. data/resource/style/chicago-fullnote-bibliography-no-ibid-delimiter-fixes.csl +0 -963
  152. data/resource/style/chicago-fullnote-bibliography-no-ibid.csl +0 -785
  153. data/resource/style/chicago-fullnote-bibliography.csl +0 -803
  154. data/resource/style/chicago-library-list.csl +0 -511
  155. data/resource/style/chicago-note-biblio-no-ibid.csl +0 -514
  156. data/resource/style/chicago-note-bibliography.csl +0 -530
  157. data/resource/style/chicago-note.csl +0 -388
  158. data/resource/style/chicago-quick-copy.csl +0 -685
  159. data/resource/style/ieee.csl +0 -299
  160. data/resource/style/mla-notes.csl +0 -796
  161. data/resource/style/mla-underline.csl +0 -175
  162. data/resource/style/mla-url.csl +0 -214
  163. data/resource/style/mla.csl +0 -394
  164. data/resource/style/vancouver-brackets.csl +0 -256
  165. data/resource/style/vancouver-superscript-bracket-only-year.csl +0 -165
  166. data/resource/style/vancouver-superscript.csl +0 -256
  167. data/resource/style/vancouver.csl +0 -256
  168. data/spec/citeproc/bibliography_spec.rb +0 -45
  169. data/spec/citeproc/citeproc_spec.rb +0 -80
  170. data/spec/citeproc/date_spec.rb +0 -89
  171. data/spec/citeproc/formatter_spec.rb +0 -101
  172. data/spec/citeproc/item_spec.rb +0 -71
  173. data/spec/citeproc/name_spec.rb +0 -30
  174. data/spec/citeproc/processor_spec.rb +0 -61
  175. data/spec/citeproc/selector_spec.rb +0 -82
  176. data/spec/citeproc/variable_spec.rb +0 -69
  177. data/spec/csl/locale_spec.rb +0 -208
  178. data/spec/csl/node_spec.rb +0 -25
  179. data/spec/csl/nodes_spec.rb +0 -145
  180. data/spec/csl/style_spec.rb +0 -62
  181. data/spec/csl/term_spec.rb +0 -56
  182. data/spec/fixtures/dates.yaml +0 -80
  183. data/spec/fixtures/names.yaml +0 -115
  184. data/spec/fixtures/nodes.yaml +0 -245
  185. data/spec/support/attributes_spec.rb +0 -39
  186. data/spec/support/tree_spec.rb +0 -163
@@ -1,175 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only">
3
- <info>
4
- <title>Modern Language Association (underline)</title>
5
- <id>http://www.zotero.org/styles/mla-underline</id>
6
- <link href="http://www.zotero.org/styles/mla-underline" rel="self"/>
7
- <author>
8
- <name>Simon Kornblith</name>
9
- <email>simon@simonster.com</email>
10
- </author>
11
- <category field="generic-base"/>
12
- <category citation-format="author"/>
13
- <updated>2012-01-01T00:00:00+00:00</updated>
14
- <rights>This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License: http://creativecommons.org/licenses/by-sa/3.0/</rights>
15
- </info>
16
- <macro name="editor-translator">
17
- <names variable="editor translator" delimiter=". ">
18
- <label form="verb-short" text-case="capitalize-first" suffix=". " strip-periods="true"/>
19
- <name and="symbol" delimiter=", "/>
20
- </names>
21
- </macro>
22
- <macro name="author">
23
- <names variable="author">
24
- <name name-as-sort-order="first" and="text" sort-separator=", " delimiter=", " delimiter-precedes-last="always"/>
25
- <label form="short" prefix=", " suffix="." strip-periods="true"/>
26
- <substitute>
27
- <names variable="editor"/>
28
- <names variable="translator"/>
29
- <text macro="title"/>
30
- </substitute>
31
- </names>
32
- </macro>
33
- <macro name="author-short">
34
- <names variable="author">
35
- <name form="short" and="symbol" delimiter=", " initialize-with=". "/>
36
- <substitute>
37
- <names variable="editor"/>
38
- <names variable="translator"/>
39
- <text macro="title-short"/>
40
- </substitute>
41
- </names>
42
- </macro>
43
- <macro name="access">
44
- <group delimiter=" ">
45
- <date variable="accessed">
46
- <date-part name="day" suffix=" "/>
47
- <date-part name="month" form="short" suffix=" "/>
48
- <date-part name="year"/>
49
- </date>
50
- <text variable="URL" prefix="&lt;" suffix="&gt;"/>
51
- </group>
52
- </macro>
53
- <macro name="title">
54
- <choose>
55
- <if type="bill book graphic legal_case legislation motion_picture report song" match="any">
56
- <text variable="title" text-decoration="underline"/>
57
- </if>
58
- <else>
59
- <text variable="title" quotes="true"/>
60
- </else>
61
- </choose>
62
- </macro>
63
- <macro name="title-short">
64
- <choose>
65
- <if type="bill book graphic legal_case legislation motion_picture report song" match="any">
66
- <text variable="title" form="short" text-decoration="underline"/>
67
- </if>
68
- <else>
69
- <text variable="title" form="short" quotes="true"/>
70
- </else>
71
- </choose>
72
- </macro>
73
- <macro name="edition">
74
- <choose>
75
- <if is-numeric="edition">
76
- <group delimiter=" ">
77
- <number variable="edition" form="ordinal"/>
78
- <text term="edition" form="short" suffix="." strip-periods="true"/>
79
- </group>
80
- </if>
81
- <else>
82
- <text variable="edition"/>
83
- </else>
84
- </choose>
85
- </macro>
86
- <macro name="publisher-year">
87
- <group delimiter=", ">
88
- <group delimiter=": ">
89
- <text variable="publisher-place"/>
90
- <text variable="publisher"/>
91
- </group>
92
- <date variable="issued">
93
- <date-part name="year"/>
94
- </date>
95
- </group>
96
- </macro>
97
- <citation et-al-min="4" et-al-use-first="1" disambiguate-add-names="true" disambiguate-add-givenname="true">
98
- <layout prefix="(" suffix=")" delimiter="; ">
99
- <group delimiter=" ">
100
- <choose>
101
- <if variable="author editor translator" match="any">
102
- <group delimiter=", ">
103
- <text macro="author-short"/>
104
- <choose>
105
- <if disambiguate="true">
106
- <text macro="title-short"/>
107
- </if>
108
- </choose>
109
- </group>
110
- </if>
111
- <else>
112
- <text macro="title-short"/>
113
- </else>
114
- </choose>
115
- <text variable="locator"/>
116
- </group>
117
- </layout>
118
- </citation>
119
- <bibliography hanging-indent="true" et-al-min="4" et-al-use-first="1" line-spacing="2" subsequent-author-substitute="---">
120
- <sort>
121
- <key macro="author"/>
122
- <key variable="title"/>
123
- </sort>
124
- <layout>
125
- <text macro="author" suffix="."/>
126
- <text macro="title" prefix=" " suffix="."/>
127
- <choose>
128
- <if type="bill book graphic legal_case legislation motion_picture report song" match="any">
129
- <text macro="edition" prefix=" " suffix="."/>
130
- <text macro="editor-translator" prefix=" " suffix="."/>
131
- <text macro="publisher-year" prefix=" " suffix="."/>
132
- </if>
133
- <else-if type="chapter paper-conference" match="any">
134
- <group>
135
- <text variable="container-title" text-decoration="underline" prefix=" " suffix="."/>
136
- <text macro="edition" prefix=" " suffix="."/>
137
- <text macro="editor-translator" prefix=" " suffix="."/>
138
- <text macro="publisher-year" prefix=" " suffix="."/>
139
- </group>
140
- <text variable="page" prefix=" " suffix="."/>
141
- </else-if>
142
- <else>
143
- <group prefix=" " suffix="." delimiter=": ">
144
- <group delimiter=" ">
145
- <text macro="editor-translator" suffix="."/>
146
- <text variable="container-title" text-decoration="underline"/>
147
- <choose>
148
- <if type="article-journal">
149
- <group delimiter=" ">
150
- <group delimiter=".">
151
- <text variable="volume"/>
152
- <text variable="issue"/>
153
- </group>
154
- <date variable="issued" prefix="(" suffix=")">
155
- <date-part name="year"/>
156
- </date>
157
- </group>
158
- </if>
159
- <else>
160
- <date variable="issued">
161
- <date-part name="day" suffix=" "/>
162
- <date-part name="month" form="short" suffix=" "/>
163
- <date-part name="year"/>
164
- </date>
165
- </else>
166
- </choose>
167
- </group>
168
- <text variable="page"/>
169
- </group>
170
- </else>
171
- </choose>
172
- <text prefix=" " suffix="." macro="access"/>
173
- </layout>
174
- </bibliography>
175
- </style>
@@ -1,214 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only">
3
- <info>
4
- <title>Modern Language Association with URL</title>
5
- <id>http://www.zotero.org/styles/mla-url</id>
6
- <link href="http://www.zotero.org/styles/mla-url" rel="self"/>
7
- <author>
8
- <name>Simon Kornblith</name>
9
- <email>simon@simonster.com</email>
10
- </author>
11
- <contributor>
12
- <name>Christian Werthschulte</name>
13
- <email>Christian.Werthschulte@rub.de</email>
14
- </contributor>
15
- <contributor>
16
- <name>Sebastian Karcher</name>
17
- <email>karcher@u.northwestern.edu</email>
18
- </contributor>
19
- <summary>The 2009 MLA Style for purposes where the URL is still required</summary>
20
- <category field="generic-base"/>
21
- <category citation-format="author"/>
22
- <updated>2009-11-10T07:33:51+00:00</updated>
23
- <rights>This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License: http://creativecommons.org/licenses/by-sa/3.0/</rights>
24
- </info>
25
- <macro name="editor-translator">
26
- <names variable="editor translator" delimiter=". ">
27
- <label form="verb-short" text-case="capitalize-first" suffix=". " strip-periods="true"/>
28
- <name and="symbol" delimiter=", "/>
29
- </names>
30
- </macro>
31
- <macro name="author">
32
- <names variable="author">
33
- <name name-as-sort-order="first" and="text" sort-separator=", " delimiter=", " delimiter-precedes-last="always"/>
34
- <label form="short" prefix=", " suffix="." strip-periods="true"/>
35
- <substitute>
36
- <names variable="editor"/>
37
- <names variable="translator"/>
38
- <text macro="title"/>
39
- </substitute>
40
- </names>
41
- </macro>
42
- <macro name="author-short">
43
- <names variable="author">
44
- <name form="short" and="symbol" delimiter=", " initialize-with=". "/>
45
- <substitute>
46
- <names variable="editor"/>
47
- <names variable="translator"/>
48
- <text macro="title-short"/>
49
- </substitute>
50
- </names>
51
- </macro>
52
- <macro name="access">
53
- <group delimiter=" ">
54
- <date variable="accessed">
55
- <date-part name="day" suffix=" "/>
56
- <date-part name="month" form="short" suffix=" "/>
57
- <date-part name="year"/>
58
- </date>
59
- </group>
60
- <text variable="URL" prefix=". &lt;" suffix="&gt;"/>
61
- </macro>
62
- <macro name="medium">
63
- <choose>
64
- <if variable="URL DOI" match="any">
65
- <text variable="archive" prefix=" " suffix=". "/>
66
- <text value="Web" prefix=" "/>
67
- </if>
68
- <else>
69
- <text value="Print" prefix=" "/>
70
- </else>
71
- </choose>
72
- </macro>
73
- <macro name="title">
74
- <choose>
75
- <if type="bill book graphic legal_case legislation motion_picture report song" match="any">
76
- <text variable="title" font-style="italic" text-case="title"/>
77
- </if>
78
- <else>
79
- <text variable="title" quotes="true" text-case="title"/>
80
- </else>
81
- </choose>
82
- </macro>
83
- <macro name="title-short">
84
- <choose>
85
- <if type="bill book graphic legal_case legislation motion_picture report song" match="any">
86
- <text variable="title" form="short" font-style="italic" text-case="title"/>
87
- </if>
88
- <else>
89
- <text variable="title" form="short" quotes="true" text-case="title"/>
90
- </else>
91
- </choose>
92
- </macro>
93
- <macro name="pages">
94
- <choose>
95
- <if variable="page">
96
- <text variable="page"/>
97
- </if>
98
- <else>
99
- <text value="n. pag"/>
100
- </else>
101
- </choose>
102
- </macro>
103
- <macro name="edition">
104
- <choose>
105
- <if is-numeric="edition">
106
- <group delimiter=" ">
107
- <number variable="edition" form="ordinal"/>
108
- <text term="edition" form="short" suffix="." strip-periods="true"/>
109
- </group>
110
- </if>
111
- <else>
112
- <text variable="edition"/>
113
- </else>
114
- </choose>
115
- </macro>
116
- <macro name="publisher-year">
117
- <group delimiter=", ">
118
- <group delimiter=": ">
119
- <text variable="publisher-place"/>
120
- <text variable="publisher"/>
121
- </group>
122
- <date variable="issued">
123
- <date-part name="year"/>
124
- </date>
125
- </group>
126
- </macro>
127
- <citation et-al-min="4" et-al-use-first="1" disambiguate-add-names="true" disambiguate-add-givenname="true">
128
- <layout prefix="(" suffix=")" delimiter="; ">
129
- <group delimiter=" ">
130
- <choose>
131
- <if variable="author editor translator" match="any">
132
- <group delimiter=", ">
133
- <text macro="author-short"/>
134
- <choose>
135
- <if disambiguate="true">
136
- <text macro="title-short"/>
137
- </if>
138
- </choose>
139
- </group>
140
- </if>
141
- <else>
142
- <text macro="title-short"/>
143
- </else>
144
- </choose>
145
- <text variable="locator"/>
146
- </group>
147
- </layout>
148
- </citation>
149
- <bibliography hanging-indent="true" et-al-min="4" et-al-use-first="1" line-spacing="2" subsequent-author-substitute="---">
150
- <sort>
151
- <key macro="author"/>
152
- <key variable="title"/>
153
- </sort>
154
- <layout suffix=".">
155
- <text macro="author" suffix="."/>
156
- <text macro="title" prefix=" " suffix="."/>
157
- <choose>
158
- <if type="bill book graphic legal_case legislation motion_picture report song" match="any">
159
- <text macro="edition" prefix=" " suffix="."/>
160
- <text macro="editor-translator" prefix=" " suffix="."/>
161
- <text macro="publisher-year" prefix=" " suffix="."/>
162
- </if>
163
- <else-if type="chapter paper-conference" match="any">
164
- <group>
165
- <text variable="container-title" font-style="italic" text-case="title" prefix=" " suffix="."/>
166
- <text macro="edition" prefix=" " suffix="."/>
167
- <text macro="editor-translator" prefix=" " suffix="."/>
168
- <text macro="publisher-year" prefix=" " suffix="."/>
169
- </group>
170
- <text variable="page" prefix=" " suffix="."/>
171
- </else-if>
172
- <else>
173
- <group prefix=" " suffix="." delimiter=": ">
174
- <group delimiter=" ">
175
- <text macro="editor-translator" suffix="."/>
176
- <text variable="container-title" font-style="italic" text-case="title"/>
177
- <choose>
178
- <if type="article-journal">
179
- <group delimiter=" ">
180
- <group delimiter=".">
181
- <text variable="volume"/>
182
- <text variable="issue"/>
183
- </group>
184
- <date variable="issued" prefix="(" suffix=")">
185
- <date-part name="year"/>
186
- </date>
187
- </group>
188
- <text macro="pages" prefix=": "/>
189
- </if>
190
- <else>
191
- <date variable="issued">
192
- <date-part name="day" suffix=" "/>
193
- <date-part name="month" form="short" suffix=" "/>
194
- <date-part name="year"/>
195
- </date>
196
- <choose>
197
- <if variable="URL DOI" match="any">
198
- <text variable="page"/>
199
- </if>
200
- <else>
201
- <text macro="pages"/>
202
- </else>
203
- </choose>
204
- </else>
205
- </choose>
206
- </group>
207
- </group>
208
- </else>
209
- </choose>
210
- <text macro="medium"/>
211
- <text prefix=". " suffix="." macro="access"/>
212
- </layout>
213
- </bibliography>
214
- </style>
@@ -1,394 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only">
3
- <info>
4
- <title>Modern Language Association</title>
5
- <id>http://www.zotero.org/styles/mla</id>
6
- <link href="http://www.zotero.org/styles/mla" rel="self"/>
7
- <author>
8
- <name>Ilouise S. Bradford</name>
9
- <email>isbradford@gmail.com</email>
10
- </author>
11
- <contributor>
12
- <name>Sarah Ficke</name>
13
- <email>sficke@email.unc.edu</email>
14
- </contributor>
15
- <contributor>
16
- <name>Sebastian Karcher</name>
17
- <email>karcher@u.northwestern.edu</email>
18
- </contributor>
19
- <contributor>
20
- <name>Christian Werthschulte</name>
21
- <email>Christian.Werthschulte@rub.de</email>
22
- </contributor>
23
- <contributor>
24
- <name>Simon Kornblith</name>
25
- <email>simon@simonster.com</email>
26
- </contributor>
27
- <contributor>
28
- <name>James Johnston</name>
29
- <email>thejamesjohnston@gmail.com</email>
30
- </contributor>
31
- <category field="generic-base"/>
32
- <category citation-format="author"/>
33
- <link href="http://owl.english.purdue.edu/owl/section/2/11/" rel="documentation"/>
34
- <updated>2011-05-28T18:16:02+00:00</updated>
35
- <summary>This style adheres to the MLA 7th edition handbook and contains modifications to these types of sources: e-mail, forum posts, interviews, manuscripts, maps, presentations, TV broadcasts, and web pages.</summary>
36
- <rights>This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License: http://creativecommons.org/licenses/by-sa/3.0/</rights>
37
- </info>
38
- <locale xml:lang="en">
39
- <terms>
40
- <term name="month-01" form="short">Jan.</term>
41
- <term name="month-02" form="short">Feb.</term>
42
- <term name="month-03" form="short">Mar.</term>
43
- <term name="month-04" form="short">Apr.</term>
44
- <term name="month-05" form="short">May</term>
45
- <term name="month-06" form="short">June</term>
46
- <term name="month-07" form="short">July</term>
47
- <term name="month-08" form="short">Aug.</term>
48
- <term name="month-09" form="short">Sept.</term>
49
- <term name="month-10" form="short">Oct.</term>
50
- <term name="month-11" form="short">Nov.</term>
51
- <term name="month-12" form="short">Dec.</term>
52
- <term name="volume" form="short">
53
- <single>Vol.</single>
54
- <multiple>vols</multiple>
55
- </term>
56
- <term name="edition" form="short">ed</term>
57
- </terms>
58
- </locale>
59
- <macro name="editor-translator">
60
- <names variable="editor translator" delimiter=". ">
61
- <label form="verb-short" text-case="capitalize-first" suffix=". " strip-periods="true"/>
62
- <name and="symbol" delimiter=", "/>
63
- </names>
64
- </macro>
65
- <macro name="author">
66
- <names variable="author">
67
- <name name-as-sort-order="first" and="text" sort-separator=", " delimiter=", " delimiter-precedes-last="always"/>
68
- <label form="short" prefix=", " suffix="." strip-periods="true"/>
69
- <substitute>
70
- <names variable="editor"/>
71
- <names variable="translator"/>
72
- <text macro="title"/>
73
- </substitute>
74
- </names>
75
- </macro>
76
- <macro name="author-short">
77
- <names variable="author">
78
- <name form="short" and="text" delimiter=", " initialize-with=". "/>
79
- <substitute>
80
- <names variable="editor"/>
81
- <names variable="translator"/>
82
- <text macro="title-short"/>
83
- </substitute>
84
- </names>
85
- </macro>
86
- <macro name="access">
87
- <group delimiter=" ">
88
- <date variable="accessed">
89
- <date-part name="day" suffix=" "/>
90
- <date-part name="month" form="short" suffix=" " strip-periods="false"/>
91
- <date-part name="year"/>
92
- </date>
93
- </group>
94
- </macro>
95
- <macro name="medium">
96
- <choose>
97
- <if type="motion_picture">
98
- <choose>
99
- <if variable="medium">
100
- <text variable="medium" prefix=" "/>
101
- </if>
102
- <else>
103
- <text value="Film" prefix=" "/>
104
- </else>
105
- </choose>
106
- </if>
107
- <else-if type="broadcast">
108
- <choose>
109
- <if variable="medium">
110
- <text variable="medium" prefix=" "/>
111
- </if>
112
- <else>
113
- <text value="Television" prefix=" "/>
114
- </else>
115
- </choose>
116
- </else-if>
117
- <else-if type="manuscript">
118
- <text value=""/>
119
- </else-if>
120
- <else-if type="personal_communication" match="any">
121
- <text value="" prefix=" "/>
122
- </else-if>
123
- <else-if type="speech" match="any">
124
- <text value=""/>
125
- </else-if>
126
- <else-if type="interview">
127
- <text variable="medium" prefix=" "/>
128
- </else-if>
129
- <else-if type="song">
130
- <choose>
131
- <if variable="medium">
132
- <text variable="medium" prefix=" "/>
133
- </if>
134
- <else>
135
- <text value="Audio Recording" prefix=" "/>
136
- </else>
137
- </choose>
138
- </else-if>
139
- <else>
140
- <choose>
141
- <if variable="URL DOI" match="any">
142
- <text variable="archive" prefix=" " suffix=". "/>
143
- <text value="Web" prefix=" "/>
144
- <text prefix=". " suffix="." macro="access"/>
145
- </if>
146
- <else>
147
- <text value="Print" prefix=" "/>
148
- </else>
149
- </choose>
150
- </else>
151
- </choose>
152
- </macro>
153
- <macro name="title">
154
- <choose>
155
- <if type="bill book graphic legal_case legislation manuscript motion_picture report song" match="any">
156
- <text variable="title" font-style="italic" text-case="title"/>
157
- </if>
158
- <else-if type="interview personal_communication" match="any">
159
- <text variable="title" text-case="title" quotes="false"/>
160
- </else-if>
161
- <else>
162
- <text variable="title" text-case="title" quotes="true"/>
163
- </else>
164
- </choose>
165
- </macro>
166
- <macro name="title-short">
167
- <choose>
168
- <if type="bill book graphic legal_case legislation manuscript motion_picture report song" match="any">
169
- <text variable="title" text-case="title" form="short" font-style="italic"/>
170
- </if>
171
- <else>
172
- <text variable="title" text-case="title" form="short" quotes="true"/>
173
- </else>
174
- </choose>
175
- </macro>
176
- <macro name="pages">
177
- <choose>
178
- <if variable="page">
179
- <text variable="page"/>
180
- </if>
181
- <else-if type="personal_communication interview" match="any">
182
- <text value=""/>
183
- </else-if>
184
- <else>
185
- <text value="n. pag"/>
186
- </else>
187
- </choose>
188
- </macro>
189
- <macro name="edition">
190
- <choose>
191
- <if is-numeric="edition">
192
- <group delimiter=" ">
193
- <number variable="edition" form="ordinal"/>
194
- <text term="edition" form="short" suffix="." strip-periods="true"/>
195
- </group>
196
- </if>
197
- <else>
198
- <text variable="edition"/>
199
- </else>
200
- </choose>
201
- </macro>
202
- <macro name="volume">
203
- <choose>
204
- <if is-numeric="volume">
205
- <group delimiter=" ">
206
- <text term="volume" form="short" strip-periods="false"/>
207
- <number variable="volume"/>
208
- </group>
209
- </if>
210
- <else>
211
- <text variable="volume"/>
212
- </else>
213
- </choose>
214
- </macro>
215
- <macro name="number-of-volumes">
216
- <choose>
217
- <if is-numeric="number-of-volumes">
218
- <group delimiter=" ">
219
- <number variable="number-of-volumes"/>
220
- <text term="volume" form="short" plural="true" strip-periods="true"/>
221
- </group>
222
- </if>
223
- <else>
224
- <text variable="number-of-volumes"/>
225
- </else>
226
- </choose>
227
- </macro>
228
- <macro name="collection-title">
229
- <text variable="collection-title" text-case="title" prefix=" "/>
230
- </macro>
231
- <macro name="collection-number">
232
- <text variable="collection-number" prefix=" " suffix="."/>
233
- </macro>
234
- <macro name="publisher-year">
235
- <group delimiter=", ">
236
- <group delimiter=": ">
237
- <text variable="publisher-place"/>
238
- <text variable="publisher"/>
239
- </group>
240
- <date variable="issued">
241
- <date-part name="year"/>
242
- </date>
243
- </group>
244
- </macro>
245
- <citation et-al-min="4" et-al-use-first="1" disambiguate-add-names="true" disambiguate-add-givenname="true">
246
- <layout prefix="(" suffix=")" delimiter="; ">
247
- <group delimiter=" ">
248
- <choose>
249
- <if variable="author editor translator" match="any">
250
- <group delimiter=", ">
251
- <text macro="author-short"/>
252
- <choose>
253
- <if disambiguate="true">
254
- <text macro="title-short"/>
255
- </if>
256
- </choose>
257
- </group>
258
- </if>
259
- <else>
260
- <text macro="title-short"/>
261
- </else>
262
- </choose>
263
- <text variable="locator"/>
264
- </group>
265
- </layout>
266
- </citation>
267
- <bibliography hanging-indent="true" et-al-min="4" et-al-use-first="1" line-spacing="2" entry-spacing="0" subsequent-author-substitute="---">
268
- <sort>
269
- <key macro="author"/>
270
- <key variable="title"/>
271
- </sort>
272
- <layout suffix=".">
273
- <text macro="author" suffix="."/>
274
- <text macro="title" prefix=" " suffix="."/>
275
- <choose>
276
- <if type="bill book graphic legal_case legislation motion_picture report song" match="any">
277
- <text macro="edition" prefix=" " suffix="."/>
278
- <text macro="editor-translator" prefix=" " suffix="."/>
279
- <text macro="volume" prefix=" " suffix="."/>
280
- <text macro="number-of-volumes" prefix=" " suffix="."/>
281
- <text macro="publisher-year" prefix=" " suffix="."/>
282
- </if>
283
- <else-if type="chapter paper-conference" match="any">
284
- <group>
285
- <text variable="container-title" text-case="title" font-style="italic" prefix=" " suffix="."/>
286
- <text macro="edition" prefix=" " suffix="."/>
287
- <text macro="editor-translator" prefix=" " suffix="."/>
288
- <text macro="volume" prefix=" " suffix="."/>
289
- <text macro="number-of-volumes" prefix=" " suffix="."/>
290
- <text macro="publisher-year" prefix=" " suffix="."/>
291
- </group>
292
- <text variable="page" prefix=" " suffix="."/>
293
- </else-if>
294
- <else-if type="manuscript">
295
- <date variable="issued" prefix=" " suffix=".">
296
- <date-part name="year"/>
297
- </date>
298
- <text variable="genre" prefix=" " suffix="."/>
299
- <text variable="archive_location" prefix=" " suffix="."/>
300
- <text variable="publisher-place" prefix=" "/>
301
- </else-if>
302
- <else-if type="personal_communication">
303
- <date variable="issued" prefix=" " suffix=".">
304
- <date-part name="day" suffix=" "/>
305
- <date-part name="month" form="short" suffix=" "/>
306
- <date-part name="year"/>
307
- </date>
308
- <choose>
309
- <if variable="genre">
310
- <text prefix=" " suffix="." variable="genre"/>
311
- </if>
312
- <else>
313
- <text prefix=" " suffix="." value="E-mail"/>
314
- </else>
315
- </choose>
316
- </else-if>
317
- <else-if type="map">
318
- <text variable="genre" prefix=" " suffix="."/>
319
- <text variable="publisher-place" prefix=" " suffix=":"/>
320
- <text variable="publisher" prefix=" "/>
321
- <date variable="issued" prefix=" " suffix=",">
322
- <date-part name="year"/>
323
- </date>
324
- </else-if>
325
- <else-if type="speech">
326
- <text variable="event" prefix=" " suffix="."/>
327
- <text variable="publisher-place" prefix=" " suffix="."/>
328
- <date variable="issued" prefix=" " suffix=".">
329
- <date-part name="year"/>
330
- </date>
331
- <text variable="genre" prefix=" " suffix="."/>
332
- </else-if>
333
- <else-if type="webpage">
334
- <text variable="container-title" font-style="italic" prefix=" " suffix="."/>
335
- <text variable="genre" prefix=" " suffix="."/>
336
- <date variable="issued" prefix=" " suffix=".">
337
- <date-part name="day" suffix=" "/>
338
- <date-part name="month" form="short" suffix=" " strip-periods="false"/>
339
- <date-part name="year"/>
340
- </date>
341
- </else-if>
342
- <else-if type="broadcast">
343
- <text variable="container-title" font-style="italic" prefix=" " suffix="."/>
344
- <text variable="publisher" prefix=" " suffix=","/>
345
- <date variable="issued" prefix=" " suffix=".">
346
- <date-part name="day" suffix=" "/>
347
- <date-part name="month" form="short" suffix=" " strip-periods="false"/>
348
- <date-part name="year"/>
349
- </date>
350
- </else-if>
351
- <else>
352
- <group prefix=" " suffix="." delimiter=": ">
353
- <group delimiter=" ">
354
- <text macro="editor-translator" suffix="."/>
355
- <text variable="container-title" font-style="italic"/>
356
- <choose>
357
- <if type="article-journal">
358
- <group delimiter=" ">
359
- <group delimiter=".">
360
- <text variable="volume"/>
361
- <text variable="issue"/>
362
- </group>
363
- <date variable="issued" prefix="(" suffix="):">
364
- <date-part name="year"/>
365
- </date>
366
- </group>
367
- <text macro="pages" prefix=" "/>
368
- </if>
369
- <else>
370
- <date variable="issued">
371
- <date-part name="day" suffix=" "/>
372
- <date-part name="month" form="short" suffix=" " strip-periods="false"/>
373
- <date-part name="year"/>
374
- </date>
375
- <choose>
376
- <if variable="URL DOI" match="any">
377
- <text variable="page" prefix=": "/>
378
- </if>
379
- <else>
380
- <text macro="pages" prefix=": "/>
381
- </else>
382
- </choose>
383
- </else>
384
- </choose>
385
- </group>
386
- </group>
387
- </else>
388
- </choose>
389
- <text macro="medium" suffix="."/>
390
- <text macro="collection-title"/>
391
- <text macro="collection-number"/>
392
- </layout>
393
- </bibliography>
394
- </style>