citeproc 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (788) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +19 -13
  3. data/Rakefile +7 -3
  4. data/features/affix/InterveningEmpty.feature +52 -0
  5. data/features/affix/PrefixFullCitationTextOnly.feature +41 -0
  6. data/features/affix/PrefixWithDecorations.feature +41 -0
  7. data/features/affix/SuppressDelimiterCharsWhenFullStopInSuffix.feature +410 -0
  8. data/features/affix/TextNodeWithMacro.feature +40 -0
  9. data/features/affix/WithCommas.feature +987 -0
  10. data/features/affix/WordProcessorAffixNoSpace.feature +41 -0
  11. data/features/api/SuppressAuthor.feature +48 -0
  12. data/features/api/UpdateItemsDelete.feature +44 -0
  13. data/features/api/UpdateItemsDeleteDecrementsByCiteDisambiguation.feature +46 -0
  14. data/features/api/UpdateItemsReshuffle.feature +44 -0
  15. data/features/bibheader/EntryspacingDefaultValueOne.feature +37 -0
  16. data/features/bibheader/EntryspacingExplicitValueZero.feature +38 -0
  17. data/features/bibheader/SecondFieldAlign.feature +38 -0
  18. data/features/bibheader/SecondFieldAlignWithAuthor.feature +40 -0
  19. data/features/bibheader/SecondFieldAlignWithNumber.feature +44 -0
  20. data/features/bibsection/Exclude.feature +47 -0
  21. data/features/bibsection/Include.feature +47 -0
  22. data/features/bibsection/Quash.feature +48 -0
  23. data/features/bibsection/Select.feature +47 -0
  24. data/features/bugreports/Abnt.feature +59 -0
  25. data/features/bugreports/AccidentalAllCaps.feature +813 -0
  26. data/features/bugreports/AllCapsLeakage.feature +818 -0
  27. data/features/bugreports/ApostropheOnParticle.feature +35 -0
  28. data/features/bugreports/AsaSpacing.feature +49 -0
  29. data/features/bugreports/AsmJournals.feature +153 -0
  30. data/features/bugreports/AuthorYear.feature +343 -0
  31. data/features/bugreports/AutomaticallyDeleteItemsFails.feature +154 -0
  32. data/features/bugreports/BadCitationUpdate.feature +39 -0
  33. data/features/bugreports/BrokenInstitutionalName.feature +390 -0
  34. data/features/bugreports/ChicagoAuthorDateLooping.feature +388 -0
  35. data/features/bugreports/ChineseCharactersFamilyOnlyPluralLabel.feature +36 -0
  36. data/features/bugreports/CitationSortsWithEtAl.feature +74 -0
  37. data/features/bugreports/CollapseFailure.feature +72 -0
  38. data/features/bugreports/ContainerTitleShort.feature +45 -0
  39. data/features/bugreports/ContentPunctuationDuplicate1.feature +40 -0
  40. data/features/bugreports/ContextualPluralWithMainItemFields.feature +34 -0
  41. data/features/bugreports/CreepingAddNames.feature +223 -0
  42. data/features/bugreports/DelimiterBug.feature +984 -0
  43. data/features/bugreports/DelimitersOnLocator.feature +322 -0
  44. data/features/bugreports/DemoPageFullCiteCruftOnSubsequent.feature +711 -0
  45. data/features/bugreports/DisambiguationAddNames.feature +233 -0
  46. data/features/bugreports/DisambiguationAddNamesBibliography.feature +235 -0
  47. data/features/bugreports/DroppingGroupDelimiterSpace.feature +37 -0
  48. data/features/bugreports/DuplicateSpaces.feature +151 -0
  49. data/features/bugreports/DuplicateSpaces2.feature +333 -0
  50. data/features/bugreports/DuplicateSpaces3.feature +200 -0
  51. data/features/bugreports/DuplicateTerminalPunctuationInBibliography.feature +227 -0
  52. data/features/bugreports/EmptyIfMatchNoneFail.feature +38 -0
  53. data/features/bugreports/EtAlSubsequent.feature +41 -0
  54. data/features/bugreports/FourAndFour.feature +715 -0
  55. data/features/bugreports/FrenchApostrophe.feature +34 -0
  56. data/features/bugreports/GreekStyleProblems.feature +1201 -0
  57. data/features/bugreports/GreekStyleTwoEditors.feature +1201 -0
  58. data/features/bugreports/IeeePunctuation.feature +151 -0
  59. data/features/bugreports/LabelsOutOfPlace.feature +715 -0
  60. data/features/bugreports/MovePunctuationInsideQuotesForLocator.feature +714 -0
  61. data/features/bugreports/NoEventInNestedMacroWithOldProcessor.feature +120 -0
  62. data/features/bugreports/NoTitle.feature +346 -0
  63. data/features/bugreports/NumberAffixEscape.feature +35 -0
  64. data/features/bugreports/NumberInMacroWithVerticalAlign.feature +36 -0
  65. data/features/bugreports/NumericStyleFirstRefMultipleCiteFailure.feature +148 -0
  66. data/features/bugreports/OldMhraDisambiguationFailure.feature +411 -0
  67. data/features/bugreports/ProcessorHang1.feature +209 -0
  68. data/features/bugreports/SingleQuote.feature +151 -0
  69. data/features/bugreports/SingletonIfMatchNoneFail.feature +38 -0
  70. data/features/bugreports/SortSecondaryKey.feature +233 -0
  71. data/features/bugreports/SortSecondaryKeyBibliography.feature +235 -0
  72. data/features/bugreports/SortedIeeeItalicsFail.feature +296 -0
  73. data/features/bugreports/ThesisUniversityAppearsTwice.feature +715 -0
  74. data/features/bugreports/TitleCase.feature +33 -0
  75. data/features/bugreports/TwoCitesPlusOneBackref.feature +963 -0
  76. data/features/bugreports/TwoFullStops.feature +394 -0
  77. data/features/bugreports/UndefinedInName.feature +199 -0
  78. data/features/bugreports/UndefinedInName2.feature +184 -0
  79. data/features/bugreports/UndefinedInName3.feature +351 -0
  80. data/features/bugreports/UndefinedNotString.feature +144 -0
  81. data/features/bugreports/UndefinedStr.feature +151 -0
  82. data/features/bugreports/UnisaHarvardInitialization.feature +62 -0
  83. data/features/bugreports/YearSuffixInHarvard1.feature +205 -0
  84. data/features/bugreports/YearSuffixLingers.feature +55 -0
  85. data/features/bugreports/disambiguate.feature +343 -0
  86. data/features/bugreports/ikeyOne.feature +277 -0
  87. data/features/bugreports/parenthesis.feature +333 -0
  88. data/features/bugreports/parseName.feature +46 -0
  89. data/features/bugreports/undefinedCrash.feature +150 -0
  90. data/features/collapse/AuthorCollapse.feature +41 -0
  91. data/features/collapse/AuthorCollapseDifferentAuthorsOneWithEtAl.feature +43 -0
  92. data/features/collapse/AuthorCollapseNoDate.feature +41 -0
  93. data/features/collapse/AuthorCollapseNoDateSorted.feature +45 -0
  94. data/features/collapse/CitationNumberRangesInsert.feature +39 -0
  95. data/features/collapse/CitationNumberRangesMixed.feature +39 -0
  96. data/features/collapse/CitationNumberRangesMixed2.feature +39 -0
  97. data/features/collapse/CitationNumberRangesMixed3.feature +39 -0
  98. data/features/collapse/CitationNumberRangesOneOnly.feature +41 -0
  99. data/features/collapse/CitationNumberRangesWithAffixes.feature +35 -0
  100. data/features/collapse/CitationNumberRangesWithAffixesGrouped.feature +51 -0
  101. data/features/collapse/CitationNumberRangesWithAffixesGroupedLocator.feature +51 -0
  102. data/features/collapse/CitationNumberRangesWithAffixesNoCollapse.feature +36 -0
  103. data/features/collapse/NumericDuplicate.feature +37 -0
  104. data/features/collapse/NumericDuplicate2.feature +34 -0
  105. data/features/collapse/TrailingDelimiter.feature +57 -0
  106. data/features/collapse/YearSuffixCollapse.feature +46 -0
  107. data/features/collapse/YearSuffixCollapseNoRange.feature +46 -0
  108. data/features/collapse/YearSuffixCollapseNoYearSuffixDelimiter.feature +45 -0
  109. data/features/collapse/YearSuffixImplicitCollapseNoYearSuffixDelimiter.feature +44 -0
  110. data/features/condition/EmptyDate.feature +42 -0
  111. data/features/condition/EmptyIsNumericFalse.feature +40 -0
  112. data/features/condition/EmptyIsUncertainDateFalse.feature +40 -0
  113. data/features/condition/EmptyShortTitleFalse.feature +40 -0
  114. data/features/condition/FirstNullAny.feature +38 -0
  115. data/features/condition/IsNumeric.feature +49 -0
  116. data/features/condition/LocatorIsFalse.feature +50 -0
  117. data/features/condition/MatchAll.feature +43 -0
  118. data/features/condition/NameAndTextVars.feature +56 -0
  119. data/features/condition/NumberIsNumeric.feature +40 -0
  120. data/features/condition/NumeralIsNumeric.feature +40 -0
  121. data/features/condition/NumeralWithTextIsNumeric.feature +40 -0
  122. data/features/condition/RefTypeBranching.feature +119 -0
  123. data/features/condition/SingletonIfMatchNone.feature +41 -0
  124. data/features/condition/TextIsNotNumeric.feature +40 -0
  125. data/features/condition/VariableAll.feature +41 -0
  126. data/features/condition/VariableAny.feature +41 -0
  127. data/features/condition/VariableNone.feature +41 -0
  128. data/features/date/Accessed.feature +33 -0
  129. data/features/date/DateAD.feature +37 -0
  130. data/features/date/DateBC.feature +37 -0
  131. data/features/date/DateNoDateNoTest.feature +37 -0
  132. data/features/date/DateNoDateWithTest.feature +45 -0
  133. data/features/date/DayOrdinalDayOneOnly.feature +44 -0
  134. data/features/date/IgnoreNonexistentSort.feature +37 -0
  135. data/features/date/InPress.feature +38 -0
  136. data/features/date/January.feature +33 -0
  137. data/features/date/KeyVariable.feature +46 -0
  138. data/features/date/LiteralFailGracefullyIfNoValue.feature +38 -0
  139. data/features/date/LocalizedDateFormats-af-ZA.feature +57 -0
  140. data/features/date/LocalizedDateFormats-ar-AR.feature +57 -0
  141. data/features/date/LocalizedDateFormats-bg-BG.feature +57 -0
  142. data/features/date/LocalizedDateFormats-ca-AD.feature +57 -0
  143. data/features/date/LocalizedDateFormats-cs-CZ.feature +57 -0
  144. data/features/date/LocalizedDateFormats-da-DK.feature +57 -0
  145. data/features/date/LocalizedDateFormats-de-AT.feature +57 -0
  146. data/features/date/LocalizedDateFormats-de-CH.feature +57 -0
  147. data/features/date/LocalizedDateFormats-de-DE.feature +57 -0
  148. data/features/date/LocalizedDateFormats-el-GR.feature +57 -0
  149. data/features/date/LocalizedDateFormats-en-US.feature +57 -0
  150. data/features/date/LocalizedDateFormats-es-ES.feature +57 -0
  151. data/features/date/LocalizedDateFormats-et-EE.feature +57 -0
  152. data/features/date/LocalizedDateFormats-fr-FR.feature +57 -0
  153. data/features/date/LocalizedDateFormats-he-IL.feature +57 -0
  154. data/features/date/LocalizedDateFormats-hu-HU.feature +57 -0
  155. data/features/date/LocalizedDateFormats-is-IS.feature +57 -0
  156. data/features/date/LocalizedDateFormats-it-IT.feature +57 -0
  157. data/features/date/LocalizedDateFormats-ja-JP.feature +57 -0
  158. data/features/date/LocalizedDateFormats-kh-KH.feature +46 -0
  159. data/features/date/LocalizedDateFormats-ko-KR.feature +57 -0
  160. data/features/date/LocalizedDateFormats-mn-MN.feature +57 -0
  161. data/features/date/LocalizedDateFormats-nb-NO.feature +57 -0
  162. data/features/date/LocalizedDateFormats-nl-NL.feature +57 -0
  163. data/features/date/LocalizedDateFormats-pl-PL.feature +57 -0
  164. data/features/date/LocalizedDateFormats-pt-BR.feature +57 -0
  165. data/features/date/LocalizedDateFormats-pt-PT.feature +57 -0
  166. data/features/date/LocalizedDateFormats-ro-RO.feature +57 -0
  167. data/features/date/LocalizedDateFormats-ru-RU.feature +57 -0
  168. data/features/date/LocalizedDateFormats-sk-SK.feature +57 -0
  169. data/features/date/LocalizedDateFormats-sl-SL.feature +57 -0
  170. data/features/date/LocalizedDateFormats-sr-RS.feature +57 -0
  171. data/features/date/LocalizedDateFormats-sv-SE.feature +57 -0
  172. data/features/date/LocalizedDateFormats-th-TH.feature +57 -0
  173. data/features/date/LocalizedDateFormats-tr-TR.feature +57 -0
  174. data/features/date/LocalizedDateFormats-uk-UA.feature +57 -0
  175. data/features/date/LocalizedDateFormats-vi-VN.feature +57 -0
  176. data/features/date/LocalizedDateFormats-zh-CN.feature +57 -0
  177. data/features/date/LocalizedDateFormats-zh-TW.feature +57 -0
  178. data/features/date/LocalizedNumericDefault.feature +33 -0
  179. data/features/date/LocalizedNumericDefaultMissingDay.feature +33 -0
  180. data/features/date/LocalizedNumericDefaultWithAffixes.feature +33 -0
  181. data/features/date/LocalizedNumericYear.feature +33 -0
  182. data/features/date/LocalizedNumericYearMonth.feature +33 -0
  183. data/features/date/LocalizedNumericYearRange.feature +33 -0
  184. data/features/date/LocalizedNumericYearWithAffixes.feature +33 -0
  185. data/features/date/LocalizedTextDefault.feature +33 -0
  186. data/features/date/LocalizedTextDefaultMissingDay.feature +33 -0
  187. data/features/date/LocalizedTextDefaultWithAffixes.feature +33 -0
  188. data/features/date/LocalizedTextInStyleLocaleWithTextCase.feature +42 -0
  189. data/features/date/LocalizedTextMonthFormOverride.feature +35 -0
  190. data/features/date/LocalizedTextYear.feature +33 -0
  191. data/features/date/LocalizedTextYearMonth.feature +33 -0
  192. data/features/date/LocalizedTextYearWithAffixes.feature +33 -0
  193. data/features/date/LocalizedWithInStyleFormatting.feature +35 -0
  194. data/features/date/LoneJapaneseMonth.feature +33 -0
  195. data/features/date/LongMonth.feature +37 -0
  196. data/features/date/LopsidedDataYearSuffixCollapse.feature +43 -0
  197. data/features/date/MaskNonexistentWithCondition.feature +42 -0
  198. data/features/date/NegativeDateSort.feature +40 -0
  199. data/features/date/NegativeDateSortViaMacro.feature +43 -0
  200. data/features/date/NegativeDateSortViaMacroOnYearMonthOnly.feature +53 -0
  201. data/features/date/NoDate.feature +45 -0
  202. data/features/date/NonexistentSortReverseBibliography.feature +47 -0
  203. data/features/date/NonexistentSortReverseCitation.feature +37 -0
  204. data/features/date/OtherAlone.feature +37 -0
  205. data/features/date/OtherWithDate.feature +37 -0
  206. data/features/date/RawParseSimpleDate.feature +37 -0
  207. data/features/date/RawSeasonRange1.feature +33 -0
  208. data/features/date/RawSeasonRange2.feature +33 -0
  209. data/features/date/RawSeasonRange3.feature +33 -0
  210. data/features/date/SeasonSubstituteInGroup.feature +38 -0
  211. data/features/date/SortEmptyDatesBibliography.feature +53 -0
  212. data/features/date/SortEmptyDatesCitation.feature +42 -0
  213. data/features/date/String.feature +36 -0
  214. data/features/date/TextFormFulldateDayRange.feature +37 -0
  215. data/features/date/TextFormFulldateMonthRange.feature +37 -0
  216. data/features/date/TextFormFulldateYearRange.feature +37 -0
  217. data/features/date/TextFormMonthdateMonthRange.feature +37 -0
  218. data/features/date/TextFormMonthdateYearRange.feature +37 -0
  219. data/features/date/TextFormYeardateYearRange.feature +37 -0
  220. data/features/date/TextFormYeardateYearRangeOpen.feature +37 -0
  221. data/features/date/Uncertain.feature +42 -0
  222. data/features/date/VariousInvalidDates.feature +37 -0
  223. data/features/date/YearSuffixDelimiter.feature +44 -0
  224. data/features/date/YearSuffixImplicitWithNoDate.feature +54 -0
  225. data/features/date/YearSuffixImplicitWithNoDateOneOnly.feature +54 -0
  226. data/features/date/YearSuffixWithNoDate.feature +54 -0
  227. data/features/decorations/AndTermUnaffectedByNameDecorations.feature +38 -0
  228. data/features/decorations/Baseline.feature +48 -0
  229. data/features/decorations/NestedQuotes.feature +33 -0
  230. data/features/decorations/NestedQuotesInnerReverse.feature +33 -0
  231. data/features/decorations/NoNormalWithoutDecoration.feature +41 -0
  232. data/features/decorations/SimpleFlipFlop.feature +33 -0
  233. data/features/decorations/SimpleQuotes.feature +33 -0
  234. data/features/disambiguate/AddNamesFailure.feature +43 -0
  235. data/features/disambiguate/AddNamesFailureWithAddGivenname.feature +44 -0
  236. data/features/disambiguate/AddNamesSuccess.feature +43 -0
  237. data/features/disambiguate/AllNamesBaseNameCountOnFailureIfYearSuffixAvailable.feature +55 -0
  238. data/features/disambiguate/AllNamesGenerally.feature +44 -0
  239. data/features/disambiguate/AllNamesSimpleSequence.feature +42 -0
  240. data/features/disambiguate/AllNamesWithInitialsGenerally.feature +44 -0
  241. data/features/disambiguate/AndreaEg1a.feature +47 -0
  242. data/features/disambiguate/AndreaEg1b.feature +48 -0
  243. data/features/disambiguate/AndreaEg1c.feature +47 -0
  244. data/features/disambiguate/AndreaEg2.feature +49 -0
  245. data/features/disambiguate/AndreaEg3.feature +50 -0
  246. data/features/disambiguate/AndreaEg4.feature +52 -0
  247. data/features/disambiguate/AndreaEg5.feature +53 -0
  248. data/features/disambiguate/BasedOnEtAlSubsequent.feature +44 -0
  249. data/features/disambiguate/BasedOnSubsequentFormWithBackref.feature +63 -0
  250. data/features/disambiguate/BasedOnSubsequentFormWithLocator.feature +67 -0
  251. data/features/disambiguate/ByCiteBaseNameCountOnFailureIfYearSuffixAvailable.feature +47 -0
  252. data/features/disambiguate/ByCiteDisambiguateCondition.feature +54 -0
  253. data/features/disambiguate/ByCiteGivennameExpandCrossNestedNames.feature +40 -0
  254. data/features/disambiguate/ByCiteGivennameNoShortFormInitializeWith.feature +39 -0
  255. data/features/disambiguate/ByCiteGivennameShortFormInitializeWith.feature +40 -0
  256. data/features/disambiguate/ByCiteGivennameShortFormNoInitializeWith.feature +39 -0
  257. data/features/disambiguate/ByCiteIncremental1.feature +355 -0
  258. data/features/disambiguate/ByCiteIncremental2.feature +352 -0
  259. data/features/disambiguate/ByCiteIsDefault.feature +250 -0
  260. data/features/disambiguate/ByCiteMinimalGivennameExpandMinimalNames.feature +48 -0
  261. data/features/disambiguate/ByCiteRetainNamesOnFailureIfYearSuffixNotAvailable.feature +46 -0
  262. data/features/disambiguate/ByCiteTwoAuthorsSameCite.feature +38 -0
  263. data/features/disambiguate/ByCiteTwoAuthorsSameFamilyName.feature +44 -0
  264. data/features/disambiguate/CitationLabelDefault.feature +34 -0
  265. data/features/disambiguate/CitationLabelInData.feature +34 -0
  266. data/features/disambiguate/DifferentSpacingInInitials.feature +40 -0
  267. data/features/disambiguate/DisambiguateTrueAndYearSuffixOne.feature +220 -0
  268. data/features/disambiguate/DisambiguateTrueAndYearSuffixTwo.feature +220 -0
  269. data/features/disambiguate/DisambiguateWithThree.feature +48 -0
  270. data/features/disambiguate/DisambiguateWithThree2.feature +91 -0
  271. data/features/disambiguate/DisambiguationHang.feature +48 -0
  272. data/features/disambiguate/ExtraTextCitation.feature +44 -0
  273. data/features/disambiguate/FailWithYearSuffix.feature +390 -0
  274. data/features/disambiguate/FamilyNameOnly.feature +43 -0
  275. data/features/disambiguate/HonorFullnameInBibliography.feature +49 -0
  276. data/features/disambiguate/ImplicitYearSuffixOnceOnly.feature +56 -0
  277. data/features/disambiguate/IncrementalExtraText.feature +55 -0
  278. data/features/disambiguate/InitializeWithButNoDisambiguation.feature +292 -0
  279. data/features/disambiguate/LastOnlyFailWithByCite.feature +49 -0
  280. data/features/disambiguate/NoTextElementUsesYearSuffixVariable.feature +39 -0
  281. data/features/disambiguate/PrimaryNameGenerally.feature +42 -0
  282. data/features/disambiguate/PrimaryNameWithInitialsLimitedToPrimary.feature +46 -0
  283. data/features/disambiguate/SetsOfNames.feature +205 -0
  284. data/features/disambiguate/SkipAccessedYearSuffix.feature +258 -0
  285. data/features/disambiguate/ThreeNoAuthorNoTitleEntries.feature +63 -0
  286. data/features/disambiguate/ToInitialOnly.feature +39 -0
  287. data/features/disambiguate/Trigraph.feature +36 -0
  288. data/features/disambiguate/YearCollapseWithInstitution.feature +51 -0
  289. data/features/disambiguate/YearSuffixAndSort.feature +50 -0
  290. data/features/disambiguate/YearSuffixAtTwoLevels.feature +45 -0
  291. data/features/disambiguate/YearSuffixFiftyTwoEntries.feature +48 -0
  292. data/features/disambiguate/YearSuffixFiftyTwoEntriesByCite.feature +48 -0
  293. data/features/disambiguate/YearSuffixMacroSameYearExplicit.feature +45 -0
  294. data/features/disambiguate/YearSuffixMacroSameYearImplicit.feature +42 -0
  295. data/features/disambiguate/YearSuffixMidInsert.feature +391 -0
  296. data/features/disambiguate/YearSuffixMixedDates.feature +52 -0
  297. data/features/disambiguate/YearSuffixTwoPairsBibliography.feature +63 -0
  298. data/features/disambiguate/YearSuffixTwoPairsFirstNameBibliography.feature +65 -0
  299. data/features/disambiguate/YearSuffixTwoPairsFullNamesBibliography.feature +63 -0
  300. data/features/disambiguate/YearSuffixWithEtAlSubequent.feature +51 -0
  301. data/features/disambiguate/YearSuffixWithMixedCreatorTypes.feature +53 -0
  302. data/features/discretionary/AuthorDateAuthorOnlyThenSuppressAuthor.feature +46 -0
  303. data/features/discretionary/AuthorOnly.feature +42 -0
  304. data/features/discretionary/CitationNumberAuthorOnlyThenSuppressAuthor.feature +41 -0
  305. data/features/discretionary/CitationNumberSuppressAuthor.feature +40 -0
  306. data/features/discretionary/SuppressAuthorSolo.feature +45 -0
  307. data/features/discretionary/SuppressEditorSolo.feature +45 -0
  308. data/features/discretionary/SuppressEditorSubstitute.feature +45 -0
  309. data/features/discretionary/SuppressMultipleAuthors.feature +45 -0
  310. data/features/display/AuthorAsHeading.feature +80 -0
  311. data/features/display/DisplayBlock.feature +54 -0
  312. data/features/display/SecondFieldAlignClone.feature +65 -0
  313. data/features/display/SecondFieldAlignMigratePunctuation.feature +154 -0
  314. data/features/etal/ShortFormOfName.feature +38 -0
  315. data/features/etal/UseZeroFirst.feature +47 -0
  316. data/features/flipflop/Apostrophes.feature +1064 -0
  317. data/features/flipflop/BoldfaceNodeLevelMarkup.feature +33 -0
  318. data/features/flipflop/ItalicsFlipped.feature +35 -0
  319. data/features/flipflop/ItalicsSimple.feature +39 -0
  320. data/features/flipflop/ItalicsWithOk.feature +48 -0
  321. data/features/flipflop/ItalicsWithOkAndTextcase.feature +48 -0
  322. data/features/flipflop/LeadingSingleQuote.feature +33 -0
  323. data/features/flipflop/QuotesInFieldNotOnNode.feature +33 -0
  324. data/features/flipflop/QuotesNodeLevelMarkup.feature +40 -0
  325. data/features/flipflop/SingleQuotesOnItalics.feature +33 -0
  326. data/features/flipflop/SmallCaps.feature +36 -0
  327. data/features/flipflop/StartingApostrophe.feature +33 -0
  328. data/features/form/TitleShort.feature +33 -0
  329. data/features/form/TitleShortNoLong.feature +33 -0
  330. data/features/form/TitleTestNoLongFalse.feature +40 -0
  331. data/features/fullstyles/ABdNT.feature +675 -0
  332. data/features/fullstyles/APA.feature +361 -0
  333. data/features/fullstyles/ChicagoArticleTitleQuestion.feature +390 -0
  334. data/features/fullstyles/ChicagoAuthorDateSimple.feature +394 -0
  335. data/features/fullstyles/ChicagoNoteWithBibliographyWithPublisher.feature +716 -0
  336. data/features/group/ComplexNesting.feature +397 -0
  337. data/features/group/ShortOutputOnly.feature +35 -0
  338. data/features/group/SuppressTermWhenNoOutputFromPartialDate.feature +39 -0
  339. data/features/group/SuppressValueWithEmptySubgroup.feature +46 -0
  340. data/features/group/SuppressWithEmptyNestedDateNode.feature +202 -0
  341. data/features/integration/CitationSort.feature +50 -0
  342. data/features/integration/CitationSortTwice.feature +51 -0
  343. data/features/integration/CrossCitationIbidOnInsert.feature +82 -0
  344. data/features/integration/DeleteName.feature +36 -0
  345. data/features/integration/DisambiguateAddGivenname1.feature +45 -0
  346. data/features/integration/DisambiguateAddGivenname2.feature +45 -0
  347. data/features/integration/DuplicateItem.feature +45 -0
  348. data/features/integration/DuplicateItem2.feature +45 -0
  349. data/features/integration/FirstReferenceNoteNumberPositionChange.feature +62 -0
  350. data/features/integration/IbidOnInsert.feature +50 -0
  351. data/features/integration/IbidWithDifferentLocators.feature +59 -0
  352. data/features/integration/SimpleFirstReferenceNoteNumber.feature +61 -0
  353. data/features/integration/SimpleIbid.feature +57 -0
  354. data/features/integration/SubsequentWhenInterveningFootnote.feature +51 -0
  355. data/features/integration/YearSuffixOnOffOn.feature +46 -0
  356. data/features/label/CollapsedPageNumberPluralDetection.feature +42 -0
  357. data/features/label/EditorTranslator1.feature +556 -0
  358. data/features/label/EmptyLabelVanish.feature +43 -0
  359. data/features/label/ImplicitForm.feature +36 -0
  360. data/features/label/NoFirstCharCapWithInTextClass.feature +38 -0
  361. data/features/label/NonexistentNameVariableLabel.feature +36 -0
  362. data/features/label/PageWithEmbeddedLabel.feature +35 -0
  363. data/features/label/PluralNumberOfVolumes.feature +36 -0
  364. data/features/label/PluralPagesWithAlphaPrefix.feature +37 -0
  365. data/features/locale/EffectOfStyleDefinition.feature +38 -0
  366. data/features/locale/EmptyDate.feature +41 -0
  367. data/features/locale/EmptyPlusOverrideDate.feature +48 -0
  368. data/features/locale/EmptyPlusOverrideStyleOpt.feature +39 -0
  369. data/features/locale/EmptyPlusOverrideTerm.feature +44 -0
  370. data/features/locale/EmptyStyleOpt.feature +36 -0
  371. data/features/locale/EmptyTerm.feature +39 -0
  372. data/features/locale/ForceEmptyAndOthersTerm.feature +41 -0
  373. data/features/locale/ForceEmptyEtAlTerm.feature +40 -0
  374. data/features/locale/NonExistentLocaleDef.feature +48 -0
  375. data/features/locale/OverloadWithEmptyString.feature +46 -0
  376. data/features/locale/PageRangeDelimiterTermDefined.feature +38 -0
  377. data/features/locale/PageRangeDelimiterTermFrenchUndef.feature +34 -0
  378. data/features/locale/PageRangeDelimiterTermUndefined.feature +33 -0
  379. data/features/locale/SpecificDate.feature +41 -0
  380. data/features/locale/SpecificStyleOpt.feature +36 -0
  381. data/features/locale/SpecificTerm.feature +39 -0
  382. data/features/locale/TermInSort.feature +77 -0
  383. data/features/locale/TitleCaseEmptyLangEmptyLocale.feature +33 -0
  384. data/features/locale/TitleCaseEmptyLangNonEnglishLocale.feature +34 -0
  385. data/features/locale/TitleCaseEnglishLangUpperEmptyLocale.feature +33 -0
  386. data/features/locale/TitleCaseGarbageLangEmptyLocale.feature +33 -0
  387. data/features/locale/TitleCaseGarbageLangEnglishLocale.feature +34 -0
  388. data/features/locale/TitleCaseGarbageLangNonEnglishLocale.feature +34 -0
  389. data/features/locale/TitleCaseNonEnglishLangUpperEmptyLocale.feature +33 -0
  390. data/features/locale/UnknownTerm.feature +34 -0
  391. data/features/locator/SimpleLocators.feature +46 -0
  392. data/features/locator/TermSelection.feature +40 -0
  393. data/features/locator/TrickyEntryForPlurals.feature +40 -0
  394. data/features/locator/WorkaroundTestForSubVerbo.feature +47 -0
  395. data/features/magic/AllowRepeatDateRenderings.feature +47 -0
  396. data/features/magic/CapitalizeFirstOccurringNameParticle.feature +35 -0
  397. data/features/magic/CapitalizeFirstOccurringTerm.feature +33 -0
  398. data/features/magic/CitationLabelInBibliography.feature +234 -0
  399. data/features/magic/CitationLabelInCitation.feature +224 -0
  400. data/features/magic/EntrySpacingDouble.feature +52 -0
  401. data/features/magic/HangingIndent.feature +52 -0
  402. data/features/magic/ImplicitYearSuffixDelimiter.feature +38 -0
  403. data/features/magic/ImplicitYearSuffixExplicitDelimiter.feature +52 -0
  404. data/features/magic/LineSpacingDouble.feature +52 -0
  405. data/features/magic/LineSpacingTripleStretch.feature +52 -0
  406. data/features/magic/NameParticle.feature +35 -0
  407. data/features/magic/NameSuffixNoComma.feature +35 -0
  408. data/features/magic/NameSuffixWithComma.feature +35 -0
  409. data/features/magic/NumberRangeEnglish.feature +33 -0
  410. data/features/magic/NumberRangeFrench.feature +34 -0
  411. data/features/magic/PunctuationInQuoteDefaultEnglishDelimiter.feature +41 -0
  412. data/features/magic/PunctuationInQuoteDefaultEnglishSuffix.feature +39 -0
  413. data/features/magic/PunctuationInQuoteDelimiterTrue.feature +44 -0
  414. data/features/magic/PunctuationInQuoteFalse.feature +44 -0
  415. data/features/magic/PunctuationInQuoteFalseSuppressExtra.feature +37 -0
  416. data/features/magic/PunctuationInQuoteNested.feature +47 -0
  417. data/features/magic/PunctuationInQuoteSuffixTrue.feature +42 -0
  418. data/features/magic/PunctuationInQuoteTrueSuppressExtra.feature +37 -0
  419. data/features/magic/QuotesAndBraces1.feature +36 -0
  420. data/features/magic/QuotesAndBraces2.feature +36 -0
  421. data/features/magic/SecondFieldAlign.feature +57 -0
  422. data/features/magic/StripPeriodsExcludeAffixes.feature +44 -0
  423. data/features/magic/StripPeriodsFalse.feature +34 -0
  424. data/features/magic/StripPeriodsTrue.feature +34 -0
  425. data/features/magic/StripPeriodsTrueShortForm.feature +46 -0
  426. data/features/magic/SubsequentAuthorSubstitute.feature +55 -0
  427. data/features/magic/SubsequentAuthorSubstituteNotFooled.feature +497 -0
  428. data/features/magic/SubsequentAuthorSubstituteOfTitleField.feature +55 -0
  429. data/features/magic/SuperscriptChars.feature +241 -0
  430. data/features/magic/SuppressDuplicateVariableRendering.feature +43 -0
  431. data/features/magic/SuppressExtraTerminalPunctuationAfterTerm.feature +410 -0
  432. data/features/magic/SuppressLayoutDelimiterIfPrefixComma.feature +34 -0
  433. data/features/magic/TermCapitalizationWithPrefix.feature +49 -0
  434. data/features/magic/TextRangeEnglish.feature +33 -0
  435. data/features/magic/TextRangeFrench.feature +34 -0
  436. data/features/name/AfterInvertedName.feature +42 -0
  437. data/features/name/AllCapsInitialsUntouched.feature +46 -0
  438. data/features/name/AndTextDelimiterPrecedesLastAlways.feature +35 -0
  439. data/features/name/ArticularNameAsSortOrder.feature +35 -0
  440. data/features/name/ArticularPlain.feature +35 -0
  441. data/features/name/ArticularShortForm.feature +35 -0
  442. data/features/name/ArticularShortFormCommaSuffix.feature +35 -0
  443. data/features/name/ArticularWithComma.feature +35 -0
  444. data/features/name/ArticularWithCommaNameAsSortOrder.feature +35 -0
  445. data/features/name/Asian.feature +35 -0
  446. data/features/name/AsianGlyphs.feature +35 -0
  447. data/features/name/AuthorCount.feature +39 -0
  448. data/features/name/AuthorCountWithMultipleVariables.feature +37 -0
  449. data/features/name/AuthorCountWithSameVarContentAndCombinedTermFail.feature +45 -0
  450. data/features/name/AuthorCountWithSameVarContentAndCombinedTermSucceed.feature +45 -0
  451. data/features/name/AuthorEditorCount.feature +37 -0
  452. data/features/name/CelticClanName.feature +35 -0
  453. data/features/name/CeltsAndToffsCrowdedInitials.feature +35 -0
  454. data/features/name/CeltsAndToffsNoHyphens.feature +36 -0
  455. data/features/name/CeltsAndToffsSpacedInitials.feature +35 -0
  456. data/features/name/CeltsAndToffsWithHyphens.feature +36 -0
  457. data/features/name/CollapseRoleLabels.feature +46 -0
  458. data/features/name/Delimiter.feature +37 -0
  459. data/features/name/EditorTranslatorBoth.feature +189 -0
  460. data/features/name/EditorTranslatorSameEmptyTerm.feature +41 -0
  461. data/features/name/EditorTranslatorSameWithTerm.feature +36 -0
  462. data/features/name/EditorTranslatorWithTranslatorOnly.feature +35 -0
  463. data/features/name/EditorTranslatorWithTranslatorOnlyBib.feature +189 -0
  464. data/features/name/EtAlUseLast.feature +47 -0
  465. data/features/name/FormattingOfParticles.feature +37 -0
  466. data/features/name/GreekSimple.feature +35 -0
  467. data/features/name/HebrewAnd.feature +40 -0
  468. data/features/name/HierarchicalDelimiter.feature +35 -0
  469. data/features/name/HyphenatedFirstName.feature +35 -0
  470. data/features/name/HyphenatedNonDroppingParticle1.feature +51 -0
  471. data/features/name/HyphenatedNonDroppingParticle2.feature +51 -0
  472. data/features/name/InheritAttributesEtAlStyle.feature +37 -0
  473. data/features/name/Institution.feature +35 -0
  474. data/features/name/InstitutionDecoration.feature +45 -0
  475. data/features/name/LabelAfterPlural.feature +36 -0
  476. data/features/name/LabelAfterPluralDecorations.feature +38 -0
  477. data/features/name/LongAbbreviation.feature +35 -0
  478. data/features/name/LowercaseSurnameSuffix.feature +35 -0
  479. data/features/name/MixedFormatsInitialSortOrderAllWithDecorationsEtAl.feature +39 -0
  480. data/features/name/MixedFormatsInitialSortOrderFirstWithDecorationsEtAl.feature +39 -0
  481. data/features/name/MixedFormatsInitialsWithDecorationsEtAl.feature +39 -0
  482. data/features/name/MixedFormatsPrimaryDecorations.feature +37 -0
  483. data/features/name/MixedFormatsWithDecorationsEtAl.feature +39 -0
  484. data/features/name/MixedFormatsWithDecorationsPlusAlternateEtAlDecorations.feature +40 -0
  485. data/features/name/MixedFormatsWithDecorationsPlusEtAlDecorations.feature +40 -0
  486. data/features/name/MultipleLiteral.feature +35 -0
  487. data/features/name/NoNameNode.feature +33 -0
  488. data/features/name/NonDroppingParticleDefault.feature +35 -0
  489. data/features/name/OnlyFamilyname.feature +35 -0
  490. data/features/name/OnlyGivenname.feature +35 -0
  491. data/features/name/OverridingHierarchicalDelimiter.feature +36 -0
  492. data/features/name/ParseNames.feature +39 -0
  493. data/features/name/ParsedCommaDelimitedDroppingParticleNormalOrderingWithAffixes.feature +38 -0
  494. data/features/name/ParsedCommaDelimitedDroppingParticleNormalOrderingWithoutAffixes.feature +36 -0
  495. data/features/name/ParsedCommaDelimitedDroppingParticleSortOrderingWithoutAffixes.feature +38 -0
  496. data/features/name/ParsedDroppingParticleWithAffixes.feature +39 -0
  497. data/features/name/ParsedDroppingParticleWithApostrophe.feature +38 -0
  498. data/features/name/ParsedNonDroppingParticleWithAffixes.feature +39 -0
  499. data/features/name/ParsedNonDroppingParticleWithApostrophe.feature +39 -0
  500. data/features/name/ParsedUpperCaseNonDroppingParticle.feature +39 -0
  501. data/features/name/ParticleCaps1.feature +40 -0
  502. data/features/name/ParticleCaps2.feature +46 -0
  503. data/features/name/ParticleCaps3.feature +47 -0
  504. data/features/name/ParticleFormatting.feature +38 -0
  505. data/features/name/ParticlesDemoteNonDroppingNever.feature +99 -0
  506. data/features/name/PeriodAfterInitials.feature +38 -0
  507. data/features/name/QuashOrdinaryVariableRenderedViaSubstitute.feature +39 -0
  508. data/features/name/RomanianTwo.feature +36 -0
  509. data/features/name/SemicolonWithAnd.feature +38 -0
  510. data/features/name/SplitInitials.feature +35 -0
  511. data/features/name/SubsequentAuthorSubstituteMultipleNames.feature +50 -0
  512. data/features/name/SubstituteInheritLabel.feature +44 -0
  513. data/features/name/SubstituteMacroInheritDecorations.feature +42 -0
  514. data/features/name/SubstituteName.feature +38 -0
  515. data/features/name/SubstituteOnDateGroupSpanFail.feature +45 -0
  516. data/features/name/SubstituteOnGroupSpanGroupSpanFail.feature +46 -0
  517. data/features/name/SubstituteOnMacroGroupSpanFail.feature +46 -0
  518. data/features/name/SubstituteOnNamesSingletonGroupSpanFail.feature +42 -0
  519. data/features/name/SubstituteOnNamesSpanGroupSpanFail.feature +44 -0
  520. data/features/name/SubstituteOnNamesSpanNamesSpanFail.feature +43 -0
  521. data/features/name/SubstituteOnNumberGroupSpanFail.feature +42 -0
  522. data/features/name/TwoRolesSameRenderingSeparateRoleLabels.feature +43 -0
  523. data/features/name/WesternArticularLowercase.feature +35 -0
  524. data/features/name/WesternPrimaryFontStyle.feature +37 -0
  525. data/features/name/WesternPrimaryFontStyleTwoAuthors.feature +37 -0
  526. data/features/name/WesternSimple.feature +35 -0
  527. data/features/name/WesternTwoAuthors.feature +35 -0
  528. data/features/name/namepartAffixes.feature +38 -0
  529. data/features/name/namepartAffixesNameAsSortOrder.feature +39 -0
  530. data/features/name/namepartAffixesNameAsSortOrderDemoteNonDroppingParticle.feature +39 -0
  531. data/features/nameattr/AndOnBibliographyInBibliography.feature +43 -0
  532. data/features/nameattr/AndOnBibliographyInCitation.feature +43 -0
  533. data/features/nameattr/AndOnCitationInBibliography.feature +45 -0
  534. data/features/nameattr/AndOnCitationInCitation.feature +36 -0
  535. data/features/nameattr/AndOnNamesInBibliography.feature +42 -0
  536. data/features/nameattr/AndOnNamesInCitation.feature +35 -0
  537. data/features/nameattr/AndOnStyleInBibliography.feature +43 -0
  538. data/features/nameattr/AndOnStyleInCitation.feature +43 -0
  539. data/features/nameattr/DelimiterPrecedesEtAlOnBibliographyInBibliography.feature +43 -0
  540. data/features/nameattr/DelimiterPrecedesEtAlOnBibliographyInCitation.feature +43 -0
  541. data/features/nameattr/DelimiterPrecedesEtAlOnCitationInBibliography.feature +45 -0
  542. data/features/nameattr/DelimiterPrecedesEtAlOnCitationInCitation.feature +36 -0
  543. data/features/nameattr/DelimiterPrecedesEtAlOnNamesInBibliography.feature +42 -0
  544. data/features/nameattr/DelimiterPrecedesEtAlOnNamesInCitation.feature +35 -0
  545. data/features/nameattr/DelimiterPrecedesEtAlOnStyleInBibliography.feature +43 -0
  546. data/features/nameattr/DelimiterPrecedesEtAlOnStyleInCitation.feature +36 -0
  547. data/features/nameattr/DelimiterPrecedesLastOnBibliographyInBibliography.feature +43 -0
  548. data/features/nameattr/DelimiterPrecedesLastOnBibliographyInCitation.feature +43 -0
  549. data/features/nameattr/DelimiterPrecedesLastOnCitationInBibliography.feature +45 -0
  550. data/features/nameattr/DelimiterPrecedesLastOnCitationInCitation.feature +36 -0
  551. data/features/nameattr/DelimiterPrecedesLastOnNamesInBibliography.feature +42 -0
  552. data/features/nameattr/DelimiterPrecedesLastOnNamesInCitation.feature +35 -0
  553. data/features/nameattr/DelimiterPrecedesLastOnStyleInBibliography.feature +43 -0
  554. data/features/nameattr/DelimiterPrecedesLastOnStyleInCitation.feature +36 -0
  555. data/features/nameattr/EtAlMinOnBibliographyInBibliography.feature +43 -0
  556. data/features/nameattr/EtAlMinOnBibliographyInCitation.feature +43 -0
  557. data/features/nameattr/EtAlMinOnCitationInBibliography.feature +45 -0
  558. data/features/nameattr/EtAlMinOnCitationInCitation.feature +36 -0
  559. data/features/nameattr/EtAlMinOnNamesInBibliography.feature +42 -0
  560. data/features/nameattr/EtAlMinOnNamesInCitation.feature +35 -0
  561. data/features/nameattr/EtAlMinOnStyleInBibliography.feature +42 -0
  562. data/features/nameattr/EtAlMinOnStyleInCitation.feature +35 -0
  563. data/features/nameattr/EtAlSubsequentMinOnBibliographyInBibliography.feature +43 -0
  564. data/features/nameattr/EtAlSubsequentMinOnBibliographyInCitation.feature +43 -0
  565. data/features/nameattr/EtAlSubsequentMinOnCitationInBibliography.feature +45 -0
  566. data/features/nameattr/EtAlSubsequentMinOnCitationInCitation.feature +37 -0
  567. data/features/nameattr/EtAlSubsequentMinOnNamesInBibliography.feature +42 -0
  568. data/features/nameattr/EtAlSubsequentMinOnStyleInBibliography.feature +42 -0
  569. data/features/nameattr/EtAlSubsequentMinOnStyleInCitation.feature +38 -0
  570. data/features/nameattr/EtAlSubsequentUseFirstOnBibliographyInBibliography.feature +43 -0
  571. data/features/nameattr/EtAlSubsequentUseFirstOnBibliographyInCitation.feature +43 -0
  572. data/features/nameattr/EtAlSubsequentUseFirstOnCitationInBibliography.feature +45 -0
  573. data/features/nameattr/EtAlSubsequentUseFirstOnCitationInCitation.feature +44 -0
  574. data/features/nameattr/EtAlSubsequentUseFirstOnStyleInBibliography.feature +43 -0
  575. data/features/nameattr/EtAlSubsequentUseFirstOnStyleInCitation.feature +37 -0
  576. data/features/nameattr/EtAlUseFirstOnBibliographyInBibliography.feature +43 -0
  577. data/features/nameattr/EtAlUseFirstOnBibliographyInCitation.feature +43 -0
  578. data/features/nameattr/EtAlUseFirstOnCitationInBibliography.feature +45 -0
  579. data/features/nameattr/EtAlUseFirstOnCitationInCitation.feature +43 -0
  580. data/features/nameattr/EtAlUseFirstOnNamesInBibliography.feature +42 -0
  581. data/features/nameattr/EtAlUseFirstOnNamesInCitation.feature +35 -0
  582. data/features/nameattr/EtAlUseFirstOnStyleInBibliography.feature +43 -0
  583. data/features/nameattr/EtAlUseFirstOnStyleInCitation.feature +35 -0
  584. data/features/nameattr/InitializeWithOnBibliographyInBibliography.feature +43 -0
  585. data/features/nameattr/InitializeWithOnBibliographyInCitation.feature +43 -0
  586. data/features/nameattr/InitializeWithOnCitationInBibliography.feature +45 -0
  587. data/features/nameattr/InitializeWithOnCitationInCitation.feature +36 -0
  588. data/features/nameattr/InitializeWithOnNamesInBibliography.feature +42 -0
  589. data/features/nameattr/InitializeWithOnNamesInCitation.feature +35 -0
  590. data/features/nameattr/InitializeWithOnStyleInBibliography.feature +43 -0
  591. data/features/nameattr/InitializeWithOnStyleInCitation.feature +36 -0
  592. data/features/nameattr/NameAsSortOrderOnBibliographyInBibliography.feature +43 -0
  593. data/features/nameattr/NameAsSortOrderOnBibliographyInCitation.feature +43 -0
  594. data/features/nameattr/NameAsSortOrderOnCitationInBibliography.feature +45 -0
  595. data/features/nameattr/NameAsSortOrderOnCitationInCitation.feature +36 -0
  596. data/features/nameattr/NameAsSortOrderOnNamesInBibliography.feature +42 -0
  597. data/features/nameattr/NameAsSortOrderOnNamesInCitation.feature +35 -0
  598. data/features/nameattr/NameAsSortOrderOnStyleInBibliography.feature +43 -0
  599. data/features/nameattr/NameAsSortOrderOnStyleInCitation.feature +35 -0
  600. data/features/nameattr/NameDelimiterOnBibliographyInBibliography.feature +43 -0
  601. data/features/nameattr/NameDelimiterOnBibliographyInCitation.feature +43 -0
  602. data/features/nameattr/NameDelimiterOnCitationInBibliography.feature +45 -0
  603. data/features/nameattr/NameDelimiterOnCitationInCitation.feature +43 -0
  604. data/features/nameattr/NameDelimiterOnNamesInBibliography.feature +42 -0
  605. data/features/nameattr/NameDelimiterOnNamesInCitation.feature +42 -0
  606. data/features/nameattr/NameDelimiterOnStyleInBibliography.feature +43 -0
  607. data/features/nameattr/NameDelimiterOnStyleInCitation.feature +43 -0
  608. data/features/nameattr/NameFormOnBibliographyInBibliography.feature +43 -0
  609. data/features/nameattr/NameFormOnBibliographyInCitation.feature +43 -0
  610. data/features/nameattr/NameFormOnCitationInBibliography.feature +45 -0
  611. data/features/nameattr/NameFormOnCitationInCitation.feature +43 -0
  612. data/features/nameattr/NameFormOnNamesInBibliography.feature +42 -0
  613. data/features/nameattr/NameFormOnNamesInCitation.feature +35 -0
  614. data/features/nameattr/NameFormOnStyleInBibliography.feature +43 -0
  615. data/features/nameattr/NameFormOnStyleInCitation.feature +36 -0
  616. data/features/nameattr/NamesDelimiterOnBibliographyInBibliography.feature +43 -0
  617. data/features/nameattr/NamesDelimiterOnBibliographyInCitation.feature +43 -0
  618. data/features/nameattr/NamesDelimiterOnCitationInBibliography.feature +45 -0
  619. data/features/nameattr/NamesDelimiterOnCitationInCitation.feature +36 -0
  620. data/features/nameattr/NamesDelimiterOnNamesInBibliography.feature +42 -0
  621. data/features/nameattr/NamesDelimiterOnNamesInCitation.feature +35 -0
  622. data/features/nameattr/NamesDelimiterOnStyleInBibliography.feature +42 -0
  623. data/features/nameattr/NamesDelimiterOnStyleInCitation.feature +36 -0
  624. data/features/nameattr/SortSeparatorOnBibliographyInBibliography.feature +43 -0
  625. data/features/nameattr/SortSeparatorOnBibliographyInCitation.feature +44 -0
  626. data/features/nameattr/SortSeparatorOnCitationInBibliography.feature +45 -0
  627. data/features/nameattr/SortSeparatorOnCitationInCitation.feature +36 -0
  628. data/features/nameattr/SortSeparatorOnNamesInBibliography.feature +42 -0
  629. data/features/nameattr/SortSeparatorOnNamesInCitation.feature +35 -0
  630. data/features/nameattr/SortSeparatorOnStyleInBibliography.feature +43 -0
  631. data/features/nameattr/SortSeparatorOnStyleInCitation.feature +36 -0
  632. data/features/nameorder/Long.feature +35 -0
  633. data/features/nameorder/LongNameAsSortDemoteDisplayAndSort.feature +36 -0
  634. data/features/nameorder/LongNameAsSortDemoteNever.feature +36 -0
  635. data/features/nameorder/Short.feature +35 -0
  636. data/features/nameorder/ShortDemoteDisplayAndSort.feature +36 -0
  637. data/features/nameorder/ShortNameAsSortDemoteNever.feature +36 -0
  638. data/features/namespaces/NonNada3.feature +33 -0
  639. data/features/number/EditionSort.feature +47 -0
  640. data/features/number/FailingDelimiters.feature +44 -0
  641. data/features/number/IsNumericWithAlpha.feature +40 -0
  642. data/features/number/MixedPageRange.feature +34 -0
  643. data/features/number/MixedText.feature +33 -0
  644. data/features/number/NewOrdinals.feature +64 -0
  645. data/features/number/NewOrdinalsEdition.feature +1044 -0
  646. data/features/number/NewOrdinalsWithGenderChange.feature +45 -0
  647. data/features/number/PageFirst.feature +36 -0
  648. data/features/number/PageRange.feature +33 -0
  649. data/features/number/PlainHyphenOrEnDashAlwaysPlural.feature +42 -0
  650. data/features/number/SeparateOrdinalNamespaces.feature +55 -0
  651. data/features/number/SimpleNumberArabic.feature +33 -0
  652. data/features/number/SimpleNumberOrdinalLong.feature +35 -0
  653. data/features/number/SimpleNumberOrdinalShort.feature +33 -0
  654. data/features/number/SimpleNumberRoman.feature +33 -0
  655. data/features/number/StrangeError.feature +34 -0
  656. data/features/page/Chicago.feature +55 -0
  657. data/features/page/Expand.feature +42 -0
  658. data/features/page/Minimal.feature +55 -0
  659. data/features/page/NoOption.feature +34 -0
  660. data/features/page/NumberPageFirst.feature +33 -0
  661. data/features/page/PluralDetectWithEndash.feature +33 -0
  662. data/features/parallel/Bibliography.feature +87 -0
  663. data/features/parallel/HackedChicago.feature +715 -0
  664. data/features/parallel/JournalArticleReverse.feature +46 -0
  665. data/features/parallel/JournalArticleSimple.feature +46 -0
  666. data/features/parallel/TrailingIbid.feature +69 -0
  667. data/features/plural/LabelForced.feature +37 -0
  668. data/features/plural/NameLabelAlways.feature +36 -0
  669. data/features/plural/NameLabelContextualPlural.feature +36 -0
  670. data/features/plural/NameLabelContextualSingular.feature +36 -0
  671. data/features/plural/NameLabelDefaultPlural.feature +36 -0
  672. data/features/plural/NameLabelDefaultSingular.feature +36 -0
  673. data/features/plural/NameLabelNever.feature +36 -0
  674. data/features/position/FalseInBibliography.feature +47 -0
  675. data/features/position/FirstTrueOnlyOnce.feature +55 -0
  676. data/features/position/IbidInText.feature +51 -0
  677. data/features/position/IbidSeparateCiteSameNote.feature +80 -0
  678. data/features/position/IbidWithLocator.feature +52 -0
  679. data/features/position/IbidWithMultipleSoloCitesInBackref.feature +52 -0
  680. data/features/position/IbidWithPrefixFullStop.feature +44 -0
  681. data/features/position/IbidWithSuffix.feature +54 -0
  682. data/features/position/IfIbidIsTrueThenSubsequentIsTrue.feature +61 -0
  683. data/features/position/IfIbidWithLocatorIsTrueThenIbidIsTrue.feature +58 -0
  684. data/features/position/NearNoteFalse.feature +41 -0
  685. data/features/position/NearNoteSameNote.feature +43 -0
  686. data/features/position/NearNoteTrue.feature +41 -0
  687. data/features/position/NearNoteUnsupported.feature +40 -0
  688. data/features/position/NearNoteWithPlugin.feature +454 -0
  689. data/features/position/ResetNoteNumbers.feature +54 -0
  690. data/features/position/TrueInCitation.feature +45 -0
  691. data/features/punctuation/DateStripPeriods.feature +36 -0
  692. data/features/punctuation/DefaultYearSuffixDelimiter.feature +183 -0
  693. data/features/punctuation/DelimiterWithStripPeriodsAndSubstitute1.feature +53 -0
  694. data/features/punctuation/DelimiterWithStripPeriodsAndSubstitute2.feature +52 -0
  695. data/features/punctuation/DelimiterWithStripPeriodsAndSubstitute3.feature +60 -0
  696. data/features/punctuation/DoNotSuppressColonAfterPeriod.feature +34 -0
  697. data/features/punctuation/FrenchOrthography.feature +33 -0
  698. data/features/punctuation/FullMontyField.feature +230 -0
  699. data/features/punctuation/FullMontyPlain.feature +230 -0
  700. data/features/punctuation/FullMontyQuotesIn.feature +233 -0
  701. data/features/punctuation/FullMontyQuotesOut.feature +233 -0
  702. data/features/punctuation/NoSuppressOfPeriodBeforeSemicolon.feature +36 -0
  703. data/features/punctuation/SemicolonDelimiter.feature +62 -0
  704. data/features/punctuation/SuppressPrefixPeriodForDelimiterSemicolon.feature +715 -0
  705. data/features/quotes/Punctuation.feature +43 -0
  706. data/features/quotes/PunctuationNasty.feature +977 -0
  707. data/features/quotes/PunctuationWithInnerQuote.feature +43 -0
  708. data/features/simplespace/case1.feature +202 -0
  709. data/features/sort/AguStyle.feature +94 -0
  710. data/features/sort/AguStyleReverseGroups.feature +94 -0
  711. data/features/sort/AuthorDateWithYearSuffix.feature +202 -0
  712. data/features/sort/BibliographyCitationNumberDescending.feature +51 -0
  713. data/features/sort/BibliographyCitationNumberDescendingViaMacro.feature +54 -0
  714. data/features/sort/BibliographyNosortOption.feature +44 -0
  715. data/features/sort/CaseInsensitiveBibliography.feature +55 -0
  716. data/features/sort/CaseInsensitiveCitation.feature +36 -0
  717. data/features/sort/ChangeInNameSort.feature +54 -0
  718. data/features/sort/ChicagoYearSuffix1.feature +391 -0
  719. data/features/sort/ChicagoYearSuffix2.feature +391 -0
  720. data/features/sort/Citation.feature +42 -0
  721. data/features/sort/CitationEdit.feature +49 -0
  722. data/features/sort/CitationSecondaryKey.feature +46 -0
  723. data/features/sort/CitationUnsorted.feature +42 -0
  724. data/features/sort/CiteGroupDelimiter.feature +45 -0
  725. data/features/sort/ConditionalMacroDates.feature +64 -0
  726. data/features/sort/DateMacroSortWithSecondFieldAlign.feature +56 -0
  727. data/features/sort/DateVariable.feature +36 -0
  728. data/features/sort/DateVariableMixedElementsAscendingA.feature +36 -0
  729. data/features/sort/DateVariableMixedElementsAscendingB.feature +36 -0
  730. data/features/sort/DateVariableMixedElementsDescendingA.feature +36 -0
  731. data/features/sort/DateVariableMixedElementsDescendingB.feature +36 -0
  732. data/features/sort/DateVariableRange.feature +36 -0
  733. data/features/sort/DateVariableRangeMixed.feature +36 -0
  734. data/features/sort/DropNameLabelInSort.feature +116 -0
  735. data/features/sort/EtAlUseLast.feature +54 -0
  736. data/features/sort/FamilyOnly.feature +45 -0
  737. data/features/sort/GroupedByAuthorstring.feature +50 -0
  738. data/features/sort/LatinUnicode.feature +42 -0
  739. data/features/sort/LeadingApostropheOnNameParticle.feature +55 -0
  740. data/features/sort/LocalizedDateLimitedParts.feature +40 -0
  741. data/features/sort/NameImplicitSortOrderAndForm.feature +51 -0
  742. data/features/sort/NameParticleInNameSortFalse.feature +48 -0
  743. data/features/sort/NameParticleInNameSortTrue.feature +48 -0
  744. data/features/sort/NameVariable.feature +47 -0
  745. data/features/sort/NamesUseLast.feature +64 -0
  746. data/features/sort/NumberOfAuthorsAsKey.feature +68 -0
  747. data/features/sort/SeparateAuthorsAndOthers.feature +127 -0
  748. data/features/sort/StatusFieldAscending.feature +46 -0
  749. data/features/sort/StatusFieldDescending.feature +46 -0
  750. data/features/sort/StripMarkup.feature +39 -0
  751. data/features/sort/SubstituteTitle.feature +398 -0
  752. data/features/sort/VariousNameMacros1.feature +287 -0
  753. data/features/sort/VariousNameMacros2.feature +287 -0
  754. data/features/sort/VariousNameMacros3.feature +288 -0
  755. data/features/sort/WithAndInOneEntry.feature +228 -0
  756. data/features/sortseparator/SortSeparatorEmpty.feature +44 -0
  757. data/features/substitute/RepeatedNamesOk.feature +52 -0
  758. data/features/substitute/SuppressOrdinaryVariable.feature +79 -0
  759. data/features/testers/FirstAutoGeneratedZoteroPluginTest.feature +715 -0
  760. data/features/testers/SecondAutoGeneratedZoteroPluginTest.feature +717 -0
  761. data/features/textcase/CapitalizeAll.feature +33 -0
  762. data/features/textcase/CapitalizeFirst.feature +33 -0
  763. data/features/textcase/CapitalizeFirstWithDecor.feature +33 -0
  764. data/features/textcase/CapitalsUntouched.feature +37 -0
  765. data/features/textcase/Lowercase.feature +33 -0
  766. data/features/textcase/SentenceCapitalization.feature +33 -0
  767. data/features/textcase/SkipNameParticlesInTitleCase.feature +33 -0
  768. data/features/textcase/TitleCapitalization.feature +33 -0
  769. data/features/textcase/TitleCaseNonEnglish.feature +33 -0
  770. data/features/textcase/TitleCaseNonEnglish2.feature +34 -0
  771. data/features/textcase/TitleCaseWithHyphens.feature +33 -0
  772. data/features/textcase/TitleCaseWithInitials.feature +33 -0
  773. data/features/textcase/Uppercase.feature +59 -0
  774. data/features/textcase/UppercaseNumber.feature +33 -0
  775. data/features/unicode/NonBreakingSpace.feature +34 -0
  776. data/features/variables/ShortForm.feature +54 -0
  777. data/features/variables/TitleShortOnAbbrevWithTitle.feature +37 -0
  778. data/features/variables/TitleShortOnAbbrevWithTitleCondition.feature +57 -0
  779. data/features/variables/TitleShortOnAbbrevWithTitleGroup.feature +44 -0
  780. data/features/variables/TitleShortOnShortTitleNoTitle.feature +33 -0
  781. data/features/variables/TitleShortOnShortTitleNoTitleCondition.feature +53 -0
  782. data/features/variables/TitleShortOnShortTitleNoTitleGroup.feature +40 -0
  783. data/features/virtual/PageFirst.feature +37 -0
  784. data/lib/citeproc/attributes.rb +7 -1
  785. data/lib/citeproc/version.rb +1 -1
  786. data/spec/citeproc/attributes_spec.rb +71 -27
  787. data/spec/citeproc/item_spec.rb +12 -0
  788. metadata +1563 -4
@@ -0,0 +1,33 @@
1
+ Feature: form
2
+ As a CSL cite processor hacker
3
+ I want the test form_TitleShortNoLong to pass
4
+
5
+ @citation @form
6
+ Scenario: Title Short No Long
7
+ Given the following style:
8
+ """
9
+ <style
10
+ xmlns="http://purl.org/net/xbiblio/csl"
11
+ class="note"
12
+ version="1.0">
13
+ <info>
14
+ <id />
15
+ <title />
16
+ <updated>2009-08-10T04:49:00+09:00</updated>
17
+ </info>
18
+ <citation>
19
+ <layout>
20
+ <text variable="title" form="short"/>
21
+ </layout>
22
+ </citation>
23
+ </style>
24
+ """
25
+ And the following input:
26
+ """
27
+ [{"id":"ITEM-1","shortTitle":"Book A","type":"book"}]
28
+ """
29
+ When I cite all items
30
+ Then the result should be:
31
+ """
32
+ Book A
33
+ """
@@ -0,0 +1,40 @@
1
+ Feature: form
2
+ As a CSL cite processor hacker
3
+ I want the test form_TitleTestNoLongFalse to pass
4
+
5
+ @citation @form
6
+ Scenario: Title Test No Long False
7
+ Given the following style:
8
+ """
9
+ <style
10
+ xmlns="http://purl.org/net/xbiblio/csl"
11
+ class="note"
12
+ version="1.0">
13
+ <info>
14
+ <id />
15
+ <title />
16
+ <updated>2009-08-10T04:49:00+09:00</updated>
17
+ </info>
18
+ <citation>
19
+ <layout>
20
+ <choose>
21
+ <if variable="title">
22
+ <text value="true"/>
23
+ </if>
24
+ <else>
25
+ <text value="false"/>
26
+ </else>
27
+ </choose>
28
+ </layout>
29
+ </citation>
30
+ </style>
31
+ """
32
+ And the following input:
33
+ """
34
+ [{"id":"ITEM-1","shortTitle":"Book A","type":"book"}]
35
+ """
36
+ When I cite all items
37
+ Then the result should be:
38
+ """
39
+ false
40
+ """
@@ -0,0 +1,675 @@
1
+ Feature: fullstyles
2
+ As a CSL cite processor hacker
3
+ I want the test fullstyles_ABdNT to pass
4
+
5
+ @bibliography @fullstyles
6
+ Scenario: ABd NT
7
+ Given the following style:
8
+ """
9
+ <?xml version="1.0" encoding="utf-8"?>
10
+ <style xmlns="http://purl.org/net/xbiblio/csl" version="1.0" class="in-text" default-locale="pt-BR">
11
+ <info>
12
+ <title>Associação Brasileira de Normas Técnicas (ABNT)</title>
13
+ <id>http://www.zotero.org/styles/associacao-brasileira-de-normas-tecnicas</id>
14
+ <link href="http://www.zotero.org/styles/associacao-brasileira-de-normas-tecnicas" rel="self"/>
15
+ <author>
16
+ <name>Juliana Geyna Régis</name>
17
+ <email>juliana.regis@ipea.gov.br</email>
18
+ </author>
19
+ <contributor>
20
+ <name>Lucas Mation</name>
21
+ <email>lucas.mation@ipea.gov.br</email>
22
+ </contributor>
23
+ <contributor>
24
+ <name>Eduardo Michelotti Bettoni</name>
25
+ <email>webtur@ufpr.br</email>
26
+ </contributor>
27
+ <contributor>
28
+ <name>Paulo Augusto Nascimento</name>
29
+ <email>paulo.nascimento@ipea.gov.br</email>
30
+ </contributor>
31
+ <contributor>
32
+ <name>José Antonio Meira da Rocha</name>
33
+ <email>joseantoniorocha@gmail.com</email>
34
+ <uri>http://meiradarocha.jor.br</uri>
35
+ </contributor>
36
+ <contributor>
37
+ <name>Mario José</name>
38
+ <email>gnumario [at-mark] gmail [dot-mark] com</email>
39
+ </contributor>
40
+ <category citation-format="author-date"/>
41
+ <category field="generic-base"/>
42
+ <summary>The Brazilian standard style</summary>
43
+ <updated>2012-12-11T02:56:15+00:00</updated>
44
+ <rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
45
+ </info>
46
+ <locale xml:lang="pt-BR">
47
+ <terms>
48
+ <!--Abreviacoes meses "Forma Curta"-->
49
+ <term name="month-01" form="short">jan.</term>
50
+ <term name="month-02" form="short">fev.</term>
51
+ <term name="month-03" form="short">mar.</term>
52
+ <term name="month-04" form="short">abr.</term>
53
+ <term name="month-05" form="short">maio</term>
54
+ <term name="month-06" form="short">jun.</term>
55
+ <term name="month-07" form="short">jul.</term>
56
+ <term name="month-08" form="short">ago.</term>
57
+ <term name="month-09" form="short">set.</term>
58
+ <term name="month-10" form="short">out.</term>
59
+ <term name="month-11" form="short">nov.</term>
60
+ <term name="month-12" form="short">dez.</term>
61
+ <!--Os termos abaixo serao utilizados quando houverem nomes de editores. Apos a citacao dos nomes, eles irao aparecer entre parenteses.-->
62
+ <term name="editor" form="short">
63
+ <single>ed</single>
64
+ <multiple>eds</multiple>
65
+ </term>
66
+ <term name="container-author" form="short">
67
+ <single>ed</single>
68
+ <multiple>eds</multiple>
69
+ </term>
70
+ <term name="collection-editor" form="short">
71
+ <single>ed</single>
72
+ <multiple>eds</multiple>
73
+ </term>
74
+ </terms>
75
+ </locale>
76
+ <!--A macro 'container-contribuitor' e responsavel por mostrar os nomes dos editores, serao apresentados SOBRENOME, INICIAIS PRENOMES
77
+ tendo as inicias separadas por ponto.-->
78
+ <macro name="container-contributors">
79
+ <choose>
80
+ <if type="chapter">
81
+ <names variable="container-author" delimiter=", ">
82
+ <name name-as-sort-order="all" sort-separator=", " initialize-with=". " delimiter="; " delimiter-precedes-last="always">
83
+ <name-part name="family" text-case="uppercase"/>
84
+ <name-part name="given" text-case="uppercase"/>
85
+ </name>
86
+ <et-al prefix=" " font-style="italic"/>
87
+ <label form="short" prefix=" (" suffix=".). " text-case="capitalize-first"/>
88
+ <substitute>
89
+ <names variable="editor"/>
90
+ <names variable="collection-editor"/>
91
+ </substitute>
92
+ </names>
93
+ </if>
94
+ </choose>
95
+ </macro>
96
+ <!--A macro 'secundary-contribuitor' e responsavel por mostrar os nomes dos organizadores, serao apresentados SOBRENOME, INICIAIS PRENOMES
97
+ tendo as inicias separadas por ponto.-->
98
+ <macro name="secondary-contributors">
99
+ <choose>
100
+ <if type="chapter" match="none">
101
+ <names variable="editor" delimiter=", " prefix=" (" suffix=")">
102
+ <name and="symbol" initialize-with=". " delimiter=", "/>
103
+ <label form="short" prefix=", " text-case="capitalize-first" suffix="."/>
104
+ </names>
105
+ </if>
106
+ </choose>
107
+ </macro>
108
+ <!--A macro 'translator' e responsavel por mostrar os nomes dos tradutores, serao apresentados SOBRENOME, INICIAIS PRENOMES
109
+ tendo as inicias separadas por ponto. -->
110
+ <macro name="translator">
111
+ <text value="Traducao "/>
112
+ <names variable="translator" delimiter=", ">
113
+ <name delimiter="; " sort-separator=" " delimiter-precedes-last="always">
114
+ <name-part name="given" text-case="capitalize-first"/>
115
+ <name-part name="family" text-case="capitalize-first"/>
116
+ </name>
117
+ <et-al prefix=" " font-style="italic"/>
118
+ </names>
119
+ </macro>
120
+ <!--A macro 'author' e responsavel por mostrar os nomes dos autores na bibliografia, serao no formato SOBRENOME, INICIAIS PRENOMES, tendo
121
+ as inicias separadas por ponto. Quando houver mais de tres autores, somente o primeiro sera mostrado e no lugar dos outros
122
+ aparecera a expess o 'et. al.'. Na regra da ABNT essa expressao deve aparecer em fonte normal, mas o IPEA utiliza ela em italico.-->
123
+ <macro name="author">
124
+ <names variable="author">
125
+ <name name-as-sort-order="all" sort-separator=", " initialize-with=". " delimiter="; " delimiter-precedes-last="always">
126
+ <name-part name="family" text-case="uppercase"/>
127
+ <name-part name="given" text-case="uppercase"/>
128
+ </name>
129
+ <et-al prefix=" " font-style="italic"/>
130
+ <label form="short" prefix=" (" suffix=".)" text-case="uppercase"/>
131
+ <substitute>
132
+ <names variable="editor"/>
133
+ <names variable="translator"/>
134
+ <text macro="title"/>
135
+ </substitute>
136
+ </names>
137
+ </macro>
138
+ <!--A macro 'author-short' e responsavel por mostrar os nomes dos autores na citacao (no meio do texto). Nela aparecera apenas o ultimo nome
139
+ do autor. Na regra da ABNT o sobrenome deve aparecer com todas as letras em caixa alta, mas o IPEA utiliza ele em caixa baixa tanto para os nomes,
140
+ quanto para as siglas "soletraveis". A regra do 'et. al.' tambem vale para a citacao-->
141
+ <macro name="author-short">
142
+ <names variable="author">
143
+ <name form="short" name-as-sort-order="all" sort-separator=", " and="text" initialize-with=". " delimiter=", " delimiter-precedes-last="never">
144
+ </name>
145
+ <et-al prefix=" " font-style="italic"/>
146
+ <substitute>
147
+ <names variable="editor"/>
148
+ <names variable="translator"/>
149
+ <choose>
150
+ <if type="book">
151
+ <text variable="title" form="short"/>
152
+ </if>
153
+ <else>
154
+ <text variable="title" form="short" quotes="true"/>
155
+ </else>
156
+ </choose>
157
+ </substitute>
158
+ </names>
159
+ </macro>
160
+ <!--A macro 'access' e utilizada em arquivos de paginas da web. Ela e responsavel por mostrar a URL do site pesquisado e a data do acesso-->
161
+ <macro name="access">
162
+ <text variable="URL" prefix="Disponível em: &lt;" suffix="&gt;"/>
163
+ <date variable="accessed" prefix=". Acesso em: ">
164
+ <date-part name="day" suffix=" "/>
165
+ <date-part name="month" form="short" suffix=". " text-case="lowercase"/>
166
+ <date-part name="year"/>
167
+ </date>
168
+ </macro>
169
+ <!--A macro 'title' e responsavel por mostrar o titulo principal do arquivo. Em todos os tipos ele aparecera em negrito logo apos os nomes dos
170
+ autores, exceto em arquivos do tipo 'artigo de jornal, artigo de revista, artigo de periodico', nesses arquivos eles irao aparecer em fonte normal.-->
171
+ <macro name="title">
172
+ <choose>
173
+ <if type="chapter bill" match="any">
174
+ <text variable="title"/>
175
+ </if>
176
+ <else-if type="book thesis" match="any">
177
+ <text variable="title" font-weight="bold"/>
178
+ </else-if>
179
+ <else-if type="article-newspaper article-magazine article-journal" match="any">
180
+ <text variable="title"/>
181
+ </else-if>
182
+ <else>
183
+ <text variable="title" font-weight="bold"/>
184
+ </else>
185
+ </choose>
186
+ </macro>
187
+ <!-- Titulo dos Anais-->
188
+ <macro name="container-title">
189
+ <choose>
190
+ <if type="paper-conference" match="any">
191
+ <text variable="container-title" suffix=". "/>
192
+ <text value="Anais" font-weight="bold"/>
193
+ <text value="..."/>
194
+ </if>
195
+ <else>
196
+ <text variable="container-title" font-weight="bold"/>
197
+ </else>
198
+ </choose>
199
+ </macro>
200
+ <!--A macro 'publisher' e responsavel por mostrar o nome da editora responsavel pela publicacao-->
201
+ <macro name="publisher">
202
+ <choose>
203
+ <if match="any" variable="publisher-place publisher">
204
+ <choose>
205
+ <if variable="publisher-place">
206
+ <text variable="publisher-place" suffix=": "/>
207
+ </if>
208
+ <else-if type="entry-encyclopedia">
209
+ </else-if>
210
+ <else>
211
+ <text value="[s.l.] "/>
212
+ </else>
213
+ </choose>
214
+ <choose>
215
+ <if variable="publisher">
216
+ <text variable="publisher" suffix=", "/>
217
+ <text macro="issued"/>
218
+ </if>
219
+ <else>
220
+ <text value="[s.n.]"/>
221
+ </else>
222
+ </choose>
223
+ </if>
224
+ <else>
225
+ <text value="[s.l: s.n.]"/>
226
+ </else>
227
+ </choose>
228
+ </macro>
229
+ <!--A macro 'event' sera utilizada em arquivos do tipo Evento/Conferencia. Ela e responsavel por mostrar o nome da conferencia, que tera formatacao
230
+ em caixa alta. Utiliza-se antes do nome da conferencia a expressao "In". Segundo a regra da ABNT ela deve ser em fonte normal, mas o IPEA
231
+ a ulitiliza em italico-->
232
+ <macro name="event">
233
+ <choose>
234
+ <if variable="event">
235
+ <choose>
236
+ <if variable="genre" match="none">
237
+ <text term="in" font-style="italic" text-case="capitalize-first" suffix=": "/>
238
+ <text variable="event" text-case="uppercase"/>
239
+ </if>
240
+ <else>
241
+ <group delimiter=" ">
242
+ <text variable="genre" text-case="capitalize-first"/>
243
+ <text term="presented at"/>
244
+ <text variable="event"/>
245
+ </group>
246
+ </else>
247
+ </choose>
248
+ </if>
249
+ </choose>
250
+ </macro>
251
+ <!--A macro 'issued' e utilizada quando devemos mostrar a data completa exemplo: 03 mar. 2011.-->
252
+ <macro name="issued">
253
+ <choose>
254
+ <if variable="issued" match="any">
255
+ <group>
256
+ <choose>
257
+ <if type="book chapter" match="none">
258
+ <date variable="issued">
259
+ <date-part name="day" suffix=" "/>
260
+ <date-part name="month" form="short" suffix=". " strip-periods="true"/>
261
+ </date>
262
+ </if>
263
+ </choose>
264
+ <date variable="issued">
265
+ <date-part name="year"/>
266
+ </date>
267
+ </group>
268
+ </if>
269
+ <else>
270
+ <text value="[s.d.]"/>
271
+ </else>
272
+ </choose>
273
+ </macro>
274
+ <!--A macro 'issued' e utilizada quando desejamos que apareca apenas o ano-->
275
+ <macro name="issued-year">
276
+ <choose>
277
+ <if variable="issued" match="any">
278
+ <date variable="issued">
279
+ <date-part name="year"/>
280
+ </date>
281
+ </if>
282
+ <else>
283
+ <text value="[s.d.]"/>
284
+ </else>
285
+ </choose>
286
+ </macro>
287
+ <!--A macro 'edition' e responsavel por mostrar o numero da edicao.-->
288
+ <macro name="edition">
289
+ <choose>
290
+ <!--Se for capitulo de livro aparecera somente o numero-->
291
+ <if type="book chapter" match="any">
292
+ <choose>
293
+ <if is-numeric="edition">
294
+ <group delimiter=" ">
295
+ <number variable="edition" form="numeric" suffix="."/>
296
+ <text term="edition" form="short" suffix="."/>
297
+ </group>
298
+ </if>
299
+ <else>
300
+ <!--Se for outro tipo de documento aparera o numero e depois a descricao "ed."-->
301
+ <text variable="edition" suffix=" ed."/>
302
+ </else>
303
+ </choose>
304
+ </if>
305
+ </choose>
306
+ </macro>
307
+ <!--A macro 'locators'tem como funcao mostrar os dados complementares do arquivo (paginas, secao, volume, etc)-->
308
+ <macro name="locators">
309
+ <choose>
310
+ <!--Se for projeto de lei mostrara o dia, mes "forma curta", ano, secao "Sec." e pagina "p."-->
311
+ <if type="bill">
312
+ <group prefix=". " suffix="" delimiter=", ">
313
+ <date variable="issued">
314
+ <date-part name="day"/>
315
+ <date-part prefix=" " name="month" form="short"/>
316
+ <date-part prefix=" " name="year"/>
317
+ </date>
318
+ <text variable="section" prefix="Sec. "/>
319
+ <text variable="page" prefix="p. " suffix="."/>
320
+ </group>
321
+ </if>
322
+ <!--Se for artigos de jornal, revista, etc. Aparecera o volume "v.", edicao "n." e a pagina do artigo "p."-->
323
+ <else-if match="any" type="article-journal article-magazine article-newspaper">
324
+ <group delimiter=", ">
325
+ <group delimiter=", ">
326
+ <text variable="volume" prefix="v. "/>
327
+ <text variable="issue" prefix="n. " suffix=""/>
328
+ </group>
329
+ <text variable="page" prefix="p. "/>
330
+ </group>
331
+ </else-if>
332
+ <!--Se for capitulo de livro aparecera o volume "v." e a pagina "p."-->
333
+ <else-if match="any" type="book chapter">
334
+ <group delimiter=", ">
335
+ <group>
336
+ <text variable="volume" prefix="v. "/>
337
+ <text variable="page" prefix="p. "/>
338
+ </group>
339
+ </group>
340
+ </else-if>
341
+ </choose>
342
+ </macro>
343
+ <!--Resumo-->
344
+ <macro name="abstract">
345
+ <text variable="abstract"/>
346
+ </macro>
347
+ <!--Mostra a ISBN-->
348
+ <macro name="ISBN">
349
+ <group>
350
+ <text variable="ISBN" prefix="ISBN "/>
351
+ </group>
352
+ </macro>
353
+ <macro name="collection-title">
354
+ <text variable="collection-title"/>
355
+ <text variable="collection-number" prefix=" "/>
356
+ </macro>
357
+ <!--Citacao-->
358
+ <!--et al. aparece a partir de 04 autores-->
359
+ <citation et-al-min="4" et-al-use-first="1" et-al-subsequent-min="4" et-al-subsequent-use-first="1" collapse="year">
360
+ <sort>
361
+ <key macro="author"/>
362
+ <!--Puxa o autor primeiro-->
363
+ <key variable="issued"/>
364
+ <!--Depois o ano-->
365
+ </sort>
366
+ <layout prefix="(" suffix=")" delimiter="; ">
367
+ <!--Entre parenteses separando os autores com ponto-e-virgula-->
368
+ <group>
369
+ <text suffix=", " macro="author-short"/>
370
+ <!--Seperando os autores das datas usando virgula-->
371
+ <text macro="issued-year"/>
372
+ <text prefix=", " macro="citation-locator"/>
373
+ </group>
374
+ </layout>
375
+ </citation>
376
+ <!--Bibliografia-->
377
+ <!--et al. aparece a partir de 04 autores-->
378
+ <bibliography hanging-indent="false" et-al-min="4" et-al-use-first="1" entry-spacing="0">
379
+ <sort>
380
+ <key macro="author"/>
381
+ <!--Puxa o autor primeiro-->
382
+ <key variable="issued"/>
383
+ <!--Depois o ano-->
384
+ </sort>
385
+ <layout>
386
+ <choose>
387
+ <!--Projeto de lei-->
388
+ <if type="bill">
389
+ <group>
390
+ <text macro="author" suffix=". "/>
391
+ <!--autor-->
392
+ <text variable="number" suffix=". "/>
393
+ <!--Numero da lei-->
394
+ <text macro="title" suffix=". "/>
395
+ <!--Titulo-->
396
+ <text variable="references" font-weight="bold"/>
397
+ <!--Historico em negrito-->
398
+ <text variable="note"/>
399
+ <!--Campo 'extra' caso queira colocar alguma observacao-->
400
+ <text macro="locators" suffix=". "/>
401
+ <!--Dados complementares "secao, pagina"-->
402
+ </group>
403
+ </if>
404
+ <!--Mapa-->
405
+ <else-if type="map">
406
+ <group>
407
+ <text macro="author" suffix=". "/>
408
+ <!--autor-->
409
+ <text macro="title" suffix=", "/>
410
+ <!--Titulo-->
411
+ <text macro="issued" suffix=". "/>
412
+ <!--data-->
413
+ <text variable="note" suffix=". "/>
414
+ <!--Campo 'extra' caso queira colocar alguma observacao-->
415
+ </group>
416
+ </else-if>
417
+ <!--Livro-->
418
+ <else-if type="book">
419
+ <group>
420
+ <text macro="author" suffix=". "/>
421
+ <!--autor-->
422
+ <text macro="title" suffix=". "/>
423
+ <!--Titulo-->
424
+ <text macro="translator" suffix=". "/>
425
+ <!--Traducao-->
426
+ <text macro="edition" suffix=". "/>
427
+ <!--Edicao-->
428
+ <text macro="publisher" suffix=". "/>
429
+ <!--Local, data, etc-->
430
+ <text macro="locators"/>
431
+ <!--Dados complementares "pagina, volume"-->
432
+ </group>
433
+ </else-if>
434
+ <!--Conferencia-->
435
+ <else-if type="chapter">
436
+ <group>
437
+ <text macro="author" suffix=". "/>
438
+ <!--autor-->
439
+ <text macro="title" suffix=". "/>
440
+ <!--Titulo-->
441
+ <text macro="secondary-contributors" suffix=". "/>
442
+ <text term="in" font-style="italic" text-case="capitalize-first" suffix=": "/>
443
+ <!--In:-->
444
+ <text macro="container-contributors" suffix=". "/>
445
+ <!--Nomes de editores-->
446
+ <text macro="container-title" suffix=". "/>
447
+ <!--Titulo da conferencia-->
448
+ <text variable="collection-title" suffix=". "/>
449
+ <text macro="translator" suffix=". "/>
450
+ <!--Traducao-->
451
+ <text macro="edition" suffix=". "/>
452
+ <!--Edicao-->
453
+ <group suffix=". ">
454
+ <text macro="publisher" suffix=". "/>
455
+ <!--Local, data, etc-->
456
+ <text macro="locators"/>
457
+ <!--Dados complementares "pagina, volume"-->
458
+ </group>
459
+ </group>
460
+ </else-if>
461
+ <!--Artigo de revista, jornal, etc-->
462
+ <else-if type="article-newspaper article-magazine article-journal" match="any">
463
+ <group>
464
+ <text macro="author" suffix=". "/>
465
+ <!--Autor-->
466
+ <text macro="title" suffix=". "/>
467
+ <!--Titulo do artigo-->
468
+ <text macro="container-title" suffix=", "/>
469
+ <!--Titulo da publicacao-->
470
+ <text variable="collection-title" suffix=". "/>
471
+ <!--Titulo da serie-->
472
+ <text macro="edition" suffix=", "/>
473
+ <!--Edicao-->
474
+ <text macro="locators" suffix=", "/>
475
+ <!--Dados complementares "pagina, volume"-->
476
+ <text macro="issued" suffix=". "/>
477
+ <!--Data-->
478
+ </group>
479
+ </else-if>
480
+ <!--Tese-->
481
+ <else-if type="thesis">
482
+ <group>
483
+ <text macro="author" suffix=". "/>
484
+ <!--Autor-->
485
+ <text macro="title" suffix=". "/>
486
+ <!--Titulo-->
487
+ <text macro="edition" suffix=". "/>
488
+ <!--Edicao-->
489
+ <text macro="publisher" suffix="."/>
490
+ <!--Local, data, etc-->
491
+ </group>
492
+ </else-if>
493
+ <!-- Nao ha norma ABNT para manuscritos -->
494
+ <else-if type="manuscript">
495
+ <group>
496
+ <text macro="author" suffix=". "/>
497
+ <!--Autor-->
498
+ <text macro="title" suffix=". "/>
499
+ <!--Titulo-->
500
+ <text macro="edition" suffix=". "/>
501
+ <!--Edicao-->
502
+ <text macro="place" suffix=", "/>
503
+ <text macro="issued" suffix=". "/>
504
+ <!--Data-->
505
+ <text macro="access" suffix=". "/>
506
+ <!--URL, data do acesso-->
507
+ <text macro="archive" suffix=". "/>
508
+ <!--Arquive-->
509
+ </group>
510
+ </else-if>
511
+ <!--Pagina da WEB-->
512
+ <else-if type="webpage">
513
+ <group>
514
+ <text macro="author" suffix=". "/>
515
+ <!--Autor-->
516
+ <text macro="title" suffix=". "/>
517
+ <!--Titulo-->
518
+ <text macro="genre" suffix=". "/>
519
+ <text macro="access" suffix=". "/>
520
+ <!--URL, data do acesso-->
521
+ </group>
522
+ </else-if>
523
+ <!--Relatorio-->
524
+ <else-if type="report">
525
+ <group>
526
+ <text macro="author" suffix=". "/>
527
+ <!--Autor-->
528
+ <text macro="title"/>
529
+ <!--Titulo-->
530
+ <text macro="container-contributors"/>
531
+ <!--Nomes de editores-->
532
+ <text macro="secondary-contributors"/>
533
+ <text macro="container-title"/>
534
+ <!--Titulo da publicacao-->
535
+ <text variable="collection-title" prefix=": " suffix=""/>
536
+ <text macro="locators"/>
537
+ <!--Dados complementares "pagina, volume"-->
538
+ <text macro="event"/>
539
+ <!--Nome do evento, conferencia-->
540
+ <text macro="publisher" prefix=". " suffix=". "/>
541
+ <!--Local, data, etc-->
542
+ <text macro="access" suffix="."/>
543
+ <!--URL, data do acesso-->
544
+ </group>
545
+ </else-if>
546
+ <!--Texto para Discussao (Verbete de Dicionario)-->
547
+ <else-if type="entry-dictionary">
548
+ <group>
549
+ <text macro="author" suffix=". "/>
550
+ <!--Autor-->
551
+ <text macro="title"/>
552
+ <!--Titulo-->
553
+ <text macro="container-contributors"/>
554
+ <!--Nomes de editores-->
555
+ <text macro="secondary-contributors"/>
556
+ <text macro="container-title"/>
557
+ <!--Titulo da publicacao-->
558
+ <text variable="collection-title" prefix=": " suffix=". "/>
559
+ <text macro="locators"/>
560
+ <!--Dados complementares "pagina, volume"-->
561
+ <text macro="event"/>
562
+ <!--Nome do evento, conferencia-->
563
+ <text macro="publisher" prefix=". " suffix=". "/>
564
+ <!--Local, data, etc-->
565
+ <text macro="collection-title" prefix="(Texto para discussao, n. " suffix=")."/>
566
+ <text macro="access"/>
567
+ <!--URL, data do acesso-->
568
+ </group>
569
+ </else-if>
570
+ <!--Nota Tecnica (Verbete de Enciclopedia)-->
571
+ <else-if type="entry-encyclopedia">
572
+ <group>
573
+ <text macro="author" suffix=". "/>
574
+ <!--Autor-->
575
+ <text macro="title"/>
576
+ <!--Titulo-->
577
+ <text variable="publisher-place" prefix=". " suffix=": "/>
578
+ <!--Local-->
579
+ <text variable="publisher" suffix=", "/>
580
+ <!--Editor-->
581
+ <text macro="issued" prefix=", " suffix=". (Nota técnica)."/>
582
+ <!--Data-->
583
+ </group>
584
+ </else-if>
585
+ <else-if type="paper-conference">
586
+ <text macro="author" suffix=". "/>
587
+ <!--Autor-->
588
+ <text macro="title"/>
589
+ <!--Titulo-->
590
+ <text macro="container-contributors"/>
591
+ <!--Nomes de editore-->
592
+ <text macro="secondary-contributors"/>
593
+ <text macro="container-title"/>
594
+ <!--Titulo da publicacao-->
595
+ <text variable="collection-title" prefix=": " suffix="."/>
596
+ <text macro="locators"/>
597
+ <!--Dados complementares "pagina, volume"-->
598
+ <group delimiter=". " prefix=". " suffix=". ">
599
+ <text macro="event"/>
600
+ <!--Nome do evento, conferencia-->
601
+ </group>
602
+ <text variable="publisher-place" suffix=": "/>
603
+ <!--Local-->
604
+ <text variable="publisher" suffix=", "/>
605
+ <!--Editor-->
606
+ <text macro="issued"/>
607
+ <!--Data-->
608
+ <text macro="access"/>
609
+ <!--URL, data do acesso-->
610
+ </else-if>
611
+ <else>
612
+ <text macro="author" suffix=". "/>
613
+ <!--Autor-->
614
+ <text macro="title"/>
615
+ <!--Titulo-->
616
+ <text macro="container-contributors"/>
617
+ <!--Nomes de editore-->
618
+ <text macro="secondary-contributors"/>
619
+ <text macro="container-title"/>
620
+ <!--Titulo da publicacao-->
621
+ <text variable="collection-title" prefix=": " suffix="."/>
622
+ <text macro="locators"/>
623
+ <!--Dados complementares "pagina, volume"-->
624
+ <group delimiter=". " prefix=". " suffix=". ">
625
+ <text macro="event"/>
626
+ <!--Nome do evento, conferencia-->
627
+ </group>
628
+ <text variable="publisher-place"/>
629
+ <!--Local-->
630
+ <text variable="publisher" suffix=", "/>
631
+ <!--Editor-->
632
+ <text macro="issued" prefix=", " suffix=". "/>
633
+ <!--Data-->
634
+ <text macro="access"/>
635
+ <!--URL, data do acesso-->
636
+ </else>
637
+ </choose>
638
+ </layout>
639
+ </bibliography>
640
+ <!--As macros abaixo nao foram utilizadas na bibliografia-->
641
+ <macro name="citation-locator">
642
+ <group>
643
+ <label variable="locator" form="short"/>
644
+ <text variable="locator" prefix=" "/>
645
+ </group>
646
+ </macro>
647
+ <macro name="genre">
648
+ <text variable="genre"/>
649
+ </macro>
650
+ <macro name="place">
651
+ <choose>
652
+ <if match="any" variable="publisher-place">
653
+ <text variable="publisher-place"/>
654
+ </if>
655
+ </choose>
656
+ </macro>
657
+ <macro name="archive">
658
+ <group>
659
+ <text variable="archive" prefix=" "/>
660
+ </group>
661
+ </macro>
662
+ </style>
663
+
664
+ """
665
+ And the following input:
666
+ """
667
+ [{"DOI":"10.1016/j.jhydrol.2008.05.025","ISSN":"0022-1694","author":[{"family":"Cole","given":"Steven J."},{"family":"Moore","given":"Robert"}],"container-title":"Journal of Hydrology","id":"ITEM-1","issue":"3-4","issued":{"date-parts":[[2008]]},"page":"159-181","title":"Hydrological modelling using raingauge- and radar-based estimators of areal rainfall","type":"article-journal","url":"http://www.sciencedirect.com/science/article/pii/S0022169408002394","volume":"358"}]
668
+ """
669
+ When I render the entire bibliography
670
+ Then the bibliography should be:
671
+ """
672
+ <div class="csl-bib-body">
673
+ <div class="csl-entry">COLE, S. J.; MOORE, R. Hydrological modelling using raingauge- and radar-based estimators of areal rainfall. <b>Journal of Hydrology</b>, v. 358, n. 3-4, p. 159–181, 2008. </div>
674
+ </div>
675
+ """