citeproc 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +19 -13
- data/Rakefile +7 -3
- data/features/affix/InterveningEmpty.feature +52 -0
- data/features/affix/PrefixFullCitationTextOnly.feature +41 -0
- data/features/affix/PrefixWithDecorations.feature +41 -0
- data/features/affix/SuppressDelimiterCharsWhenFullStopInSuffix.feature +410 -0
- data/features/affix/TextNodeWithMacro.feature +40 -0
- data/features/affix/WithCommas.feature +987 -0
- data/features/affix/WordProcessorAffixNoSpace.feature +41 -0
- data/features/api/SuppressAuthor.feature +48 -0
- data/features/api/UpdateItemsDelete.feature +44 -0
- data/features/api/UpdateItemsDeleteDecrementsByCiteDisambiguation.feature +46 -0
- data/features/api/UpdateItemsReshuffle.feature +44 -0
- data/features/bibheader/EntryspacingDefaultValueOne.feature +37 -0
- data/features/bibheader/EntryspacingExplicitValueZero.feature +38 -0
- data/features/bibheader/SecondFieldAlign.feature +38 -0
- data/features/bibheader/SecondFieldAlignWithAuthor.feature +40 -0
- data/features/bibheader/SecondFieldAlignWithNumber.feature +44 -0
- data/features/bibsection/Exclude.feature +47 -0
- data/features/bibsection/Include.feature +47 -0
- data/features/bibsection/Quash.feature +48 -0
- data/features/bibsection/Select.feature +47 -0
- data/features/bugreports/Abnt.feature +59 -0
- data/features/bugreports/AccidentalAllCaps.feature +813 -0
- data/features/bugreports/AllCapsLeakage.feature +818 -0
- data/features/bugreports/ApostropheOnParticle.feature +35 -0
- data/features/bugreports/AsaSpacing.feature +49 -0
- data/features/bugreports/AsmJournals.feature +153 -0
- data/features/bugreports/AuthorYear.feature +343 -0
- data/features/bugreports/AutomaticallyDeleteItemsFails.feature +154 -0
- data/features/bugreports/BadCitationUpdate.feature +39 -0
- data/features/bugreports/BrokenInstitutionalName.feature +390 -0
- data/features/bugreports/ChicagoAuthorDateLooping.feature +388 -0
- data/features/bugreports/ChineseCharactersFamilyOnlyPluralLabel.feature +36 -0
- data/features/bugreports/CitationSortsWithEtAl.feature +74 -0
- data/features/bugreports/CollapseFailure.feature +72 -0
- data/features/bugreports/ContainerTitleShort.feature +45 -0
- data/features/bugreports/ContentPunctuationDuplicate1.feature +40 -0
- data/features/bugreports/ContextualPluralWithMainItemFields.feature +34 -0
- data/features/bugreports/CreepingAddNames.feature +223 -0
- data/features/bugreports/DelimiterBug.feature +984 -0
- data/features/bugreports/DelimitersOnLocator.feature +322 -0
- data/features/bugreports/DemoPageFullCiteCruftOnSubsequent.feature +711 -0
- data/features/bugreports/DisambiguationAddNames.feature +233 -0
- data/features/bugreports/DisambiguationAddNamesBibliography.feature +235 -0
- data/features/bugreports/DroppingGroupDelimiterSpace.feature +37 -0
- data/features/bugreports/DuplicateSpaces.feature +151 -0
- data/features/bugreports/DuplicateSpaces2.feature +333 -0
- data/features/bugreports/DuplicateSpaces3.feature +200 -0
- data/features/bugreports/DuplicateTerminalPunctuationInBibliography.feature +227 -0
- data/features/bugreports/EmptyIfMatchNoneFail.feature +38 -0
- data/features/bugreports/EtAlSubsequent.feature +41 -0
- data/features/bugreports/FourAndFour.feature +715 -0
- data/features/bugreports/FrenchApostrophe.feature +34 -0
- data/features/bugreports/GreekStyleProblems.feature +1201 -0
- data/features/bugreports/GreekStyleTwoEditors.feature +1201 -0
- data/features/bugreports/IeeePunctuation.feature +151 -0
- data/features/bugreports/LabelsOutOfPlace.feature +715 -0
- data/features/bugreports/MovePunctuationInsideQuotesForLocator.feature +714 -0
- data/features/bugreports/NoEventInNestedMacroWithOldProcessor.feature +120 -0
- data/features/bugreports/NoTitle.feature +346 -0
- data/features/bugreports/NumberAffixEscape.feature +35 -0
- data/features/bugreports/NumberInMacroWithVerticalAlign.feature +36 -0
- data/features/bugreports/NumericStyleFirstRefMultipleCiteFailure.feature +148 -0
- data/features/bugreports/OldMhraDisambiguationFailure.feature +411 -0
- data/features/bugreports/ProcessorHang1.feature +209 -0
- data/features/bugreports/SingleQuote.feature +151 -0
- data/features/bugreports/SingletonIfMatchNoneFail.feature +38 -0
- data/features/bugreports/SortSecondaryKey.feature +233 -0
- data/features/bugreports/SortSecondaryKeyBibliography.feature +235 -0
- data/features/bugreports/SortedIeeeItalicsFail.feature +296 -0
- data/features/bugreports/ThesisUniversityAppearsTwice.feature +715 -0
- data/features/bugreports/TitleCase.feature +33 -0
- data/features/bugreports/TwoCitesPlusOneBackref.feature +963 -0
- data/features/bugreports/TwoFullStops.feature +394 -0
- data/features/bugreports/UndefinedInName.feature +199 -0
- data/features/bugreports/UndefinedInName2.feature +184 -0
- data/features/bugreports/UndefinedInName3.feature +351 -0
- data/features/bugreports/UndefinedNotString.feature +144 -0
- data/features/bugreports/UndefinedStr.feature +151 -0
- data/features/bugreports/UnisaHarvardInitialization.feature +62 -0
- data/features/bugreports/YearSuffixInHarvard1.feature +205 -0
- data/features/bugreports/YearSuffixLingers.feature +55 -0
- data/features/bugreports/disambiguate.feature +343 -0
- data/features/bugreports/ikeyOne.feature +277 -0
- data/features/bugreports/parenthesis.feature +333 -0
- data/features/bugreports/parseName.feature +46 -0
- data/features/bugreports/undefinedCrash.feature +150 -0
- data/features/collapse/AuthorCollapse.feature +41 -0
- data/features/collapse/AuthorCollapseDifferentAuthorsOneWithEtAl.feature +43 -0
- data/features/collapse/AuthorCollapseNoDate.feature +41 -0
- data/features/collapse/AuthorCollapseNoDateSorted.feature +45 -0
- data/features/collapse/CitationNumberRangesInsert.feature +39 -0
- data/features/collapse/CitationNumberRangesMixed.feature +39 -0
- data/features/collapse/CitationNumberRangesMixed2.feature +39 -0
- data/features/collapse/CitationNumberRangesMixed3.feature +39 -0
- data/features/collapse/CitationNumberRangesOneOnly.feature +41 -0
- data/features/collapse/CitationNumberRangesWithAffixes.feature +35 -0
- data/features/collapse/CitationNumberRangesWithAffixesGrouped.feature +51 -0
- data/features/collapse/CitationNumberRangesWithAffixesGroupedLocator.feature +51 -0
- data/features/collapse/CitationNumberRangesWithAffixesNoCollapse.feature +36 -0
- data/features/collapse/NumericDuplicate.feature +37 -0
- data/features/collapse/NumericDuplicate2.feature +34 -0
- data/features/collapse/TrailingDelimiter.feature +57 -0
- data/features/collapse/YearSuffixCollapse.feature +46 -0
- data/features/collapse/YearSuffixCollapseNoRange.feature +46 -0
- data/features/collapse/YearSuffixCollapseNoYearSuffixDelimiter.feature +45 -0
- data/features/collapse/YearSuffixImplicitCollapseNoYearSuffixDelimiter.feature +44 -0
- data/features/condition/EmptyDate.feature +42 -0
- data/features/condition/EmptyIsNumericFalse.feature +40 -0
- data/features/condition/EmptyIsUncertainDateFalse.feature +40 -0
- data/features/condition/EmptyShortTitleFalse.feature +40 -0
- data/features/condition/FirstNullAny.feature +38 -0
- data/features/condition/IsNumeric.feature +49 -0
- data/features/condition/LocatorIsFalse.feature +50 -0
- data/features/condition/MatchAll.feature +43 -0
- data/features/condition/NameAndTextVars.feature +56 -0
- data/features/condition/NumberIsNumeric.feature +40 -0
- data/features/condition/NumeralIsNumeric.feature +40 -0
- data/features/condition/NumeralWithTextIsNumeric.feature +40 -0
- data/features/condition/RefTypeBranching.feature +119 -0
- data/features/condition/SingletonIfMatchNone.feature +41 -0
- data/features/condition/TextIsNotNumeric.feature +40 -0
- data/features/condition/VariableAll.feature +41 -0
- data/features/condition/VariableAny.feature +41 -0
- data/features/condition/VariableNone.feature +41 -0
- data/features/date/Accessed.feature +33 -0
- data/features/date/DateAD.feature +37 -0
- data/features/date/DateBC.feature +37 -0
- data/features/date/DateNoDateNoTest.feature +37 -0
- data/features/date/DateNoDateWithTest.feature +45 -0
- data/features/date/DayOrdinalDayOneOnly.feature +44 -0
- data/features/date/IgnoreNonexistentSort.feature +37 -0
- data/features/date/InPress.feature +38 -0
- data/features/date/January.feature +33 -0
- data/features/date/KeyVariable.feature +46 -0
- data/features/date/LiteralFailGracefullyIfNoValue.feature +38 -0
- data/features/date/LocalizedDateFormats-af-ZA.feature +57 -0
- data/features/date/LocalizedDateFormats-ar-AR.feature +57 -0
- data/features/date/LocalizedDateFormats-bg-BG.feature +57 -0
- data/features/date/LocalizedDateFormats-ca-AD.feature +57 -0
- data/features/date/LocalizedDateFormats-cs-CZ.feature +57 -0
- data/features/date/LocalizedDateFormats-da-DK.feature +57 -0
- data/features/date/LocalizedDateFormats-de-AT.feature +57 -0
- data/features/date/LocalizedDateFormats-de-CH.feature +57 -0
- data/features/date/LocalizedDateFormats-de-DE.feature +57 -0
- data/features/date/LocalizedDateFormats-el-GR.feature +57 -0
- data/features/date/LocalizedDateFormats-en-US.feature +57 -0
- data/features/date/LocalizedDateFormats-es-ES.feature +57 -0
- data/features/date/LocalizedDateFormats-et-EE.feature +57 -0
- data/features/date/LocalizedDateFormats-fr-FR.feature +57 -0
- data/features/date/LocalizedDateFormats-he-IL.feature +57 -0
- data/features/date/LocalizedDateFormats-hu-HU.feature +57 -0
- data/features/date/LocalizedDateFormats-is-IS.feature +57 -0
- data/features/date/LocalizedDateFormats-it-IT.feature +57 -0
- data/features/date/LocalizedDateFormats-ja-JP.feature +57 -0
- data/features/date/LocalizedDateFormats-kh-KH.feature +46 -0
- data/features/date/LocalizedDateFormats-ko-KR.feature +57 -0
- data/features/date/LocalizedDateFormats-mn-MN.feature +57 -0
- data/features/date/LocalizedDateFormats-nb-NO.feature +57 -0
- data/features/date/LocalizedDateFormats-nl-NL.feature +57 -0
- data/features/date/LocalizedDateFormats-pl-PL.feature +57 -0
- data/features/date/LocalizedDateFormats-pt-BR.feature +57 -0
- data/features/date/LocalizedDateFormats-pt-PT.feature +57 -0
- data/features/date/LocalizedDateFormats-ro-RO.feature +57 -0
- data/features/date/LocalizedDateFormats-ru-RU.feature +57 -0
- data/features/date/LocalizedDateFormats-sk-SK.feature +57 -0
- data/features/date/LocalizedDateFormats-sl-SL.feature +57 -0
- data/features/date/LocalizedDateFormats-sr-RS.feature +57 -0
- data/features/date/LocalizedDateFormats-sv-SE.feature +57 -0
- data/features/date/LocalizedDateFormats-th-TH.feature +57 -0
- data/features/date/LocalizedDateFormats-tr-TR.feature +57 -0
- data/features/date/LocalizedDateFormats-uk-UA.feature +57 -0
- data/features/date/LocalizedDateFormats-vi-VN.feature +57 -0
- data/features/date/LocalizedDateFormats-zh-CN.feature +57 -0
- data/features/date/LocalizedDateFormats-zh-TW.feature +57 -0
- data/features/date/LocalizedNumericDefault.feature +33 -0
- data/features/date/LocalizedNumericDefaultMissingDay.feature +33 -0
- data/features/date/LocalizedNumericDefaultWithAffixes.feature +33 -0
- data/features/date/LocalizedNumericYear.feature +33 -0
- data/features/date/LocalizedNumericYearMonth.feature +33 -0
- data/features/date/LocalizedNumericYearRange.feature +33 -0
- data/features/date/LocalizedNumericYearWithAffixes.feature +33 -0
- data/features/date/LocalizedTextDefault.feature +33 -0
- data/features/date/LocalizedTextDefaultMissingDay.feature +33 -0
- data/features/date/LocalizedTextDefaultWithAffixes.feature +33 -0
- data/features/date/LocalizedTextInStyleLocaleWithTextCase.feature +42 -0
- data/features/date/LocalizedTextMonthFormOverride.feature +35 -0
- data/features/date/LocalizedTextYear.feature +33 -0
- data/features/date/LocalizedTextYearMonth.feature +33 -0
- data/features/date/LocalizedTextYearWithAffixes.feature +33 -0
- data/features/date/LocalizedWithInStyleFormatting.feature +35 -0
- data/features/date/LoneJapaneseMonth.feature +33 -0
- data/features/date/LongMonth.feature +37 -0
- data/features/date/LopsidedDataYearSuffixCollapse.feature +43 -0
- data/features/date/MaskNonexistentWithCondition.feature +42 -0
- data/features/date/NegativeDateSort.feature +40 -0
- data/features/date/NegativeDateSortViaMacro.feature +43 -0
- data/features/date/NegativeDateSortViaMacroOnYearMonthOnly.feature +53 -0
- data/features/date/NoDate.feature +45 -0
- data/features/date/NonexistentSortReverseBibliography.feature +47 -0
- data/features/date/NonexistentSortReverseCitation.feature +37 -0
- data/features/date/OtherAlone.feature +37 -0
- data/features/date/OtherWithDate.feature +37 -0
- data/features/date/RawParseSimpleDate.feature +37 -0
- data/features/date/RawSeasonRange1.feature +33 -0
- data/features/date/RawSeasonRange2.feature +33 -0
- data/features/date/RawSeasonRange3.feature +33 -0
- data/features/date/SeasonSubstituteInGroup.feature +38 -0
- data/features/date/SortEmptyDatesBibliography.feature +53 -0
- data/features/date/SortEmptyDatesCitation.feature +42 -0
- data/features/date/String.feature +36 -0
- data/features/date/TextFormFulldateDayRange.feature +37 -0
- data/features/date/TextFormFulldateMonthRange.feature +37 -0
- data/features/date/TextFormFulldateYearRange.feature +37 -0
- data/features/date/TextFormMonthdateMonthRange.feature +37 -0
- data/features/date/TextFormMonthdateYearRange.feature +37 -0
- data/features/date/TextFormYeardateYearRange.feature +37 -0
- data/features/date/TextFormYeardateYearRangeOpen.feature +37 -0
- data/features/date/Uncertain.feature +42 -0
- data/features/date/VariousInvalidDates.feature +37 -0
- data/features/date/YearSuffixDelimiter.feature +44 -0
- data/features/date/YearSuffixImplicitWithNoDate.feature +54 -0
- data/features/date/YearSuffixImplicitWithNoDateOneOnly.feature +54 -0
- data/features/date/YearSuffixWithNoDate.feature +54 -0
- data/features/decorations/AndTermUnaffectedByNameDecorations.feature +38 -0
- data/features/decorations/Baseline.feature +48 -0
- data/features/decorations/NestedQuotes.feature +33 -0
- data/features/decorations/NestedQuotesInnerReverse.feature +33 -0
- data/features/decorations/NoNormalWithoutDecoration.feature +41 -0
- data/features/decorations/SimpleFlipFlop.feature +33 -0
- data/features/decorations/SimpleQuotes.feature +33 -0
- data/features/disambiguate/AddNamesFailure.feature +43 -0
- data/features/disambiguate/AddNamesFailureWithAddGivenname.feature +44 -0
- data/features/disambiguate/AddNamesSuccess.feature +43 -0
- data/features/disambiguate/AllNamesBaseNameCountOnFailureIfYearSuffixAvailable.feature +55 -0
- data/features/disambiguate/AllNamesGenerally.feature +44 -0
- data/features/disambiguate/AllNamesSimpleSequence.feature +42 -0
- data/features/disambiguate/AllNamesWithInitialsGenerally.feature +44 -0
- data/features/disambiguate/AndreaEg1a.feature +47 -0
- data/features/disambiguate/AndreaEg1b.feature +48 -0
- data/features/disambiguate/AndreaEg1c.feature +47 -0
- data/features/disambiguate/AndreaEg2.feature +49 -0
- data/features/disambiguate/AndreaEg3.feature +50 -0
- data/features/disambiguate/AndreaEg4.feature +52 -0
- data/features/disambiguate/AndreaEg5.feature +53 -0
- data/features/disambiguate/BasedOnEtAlSubsequent.feature +44 -0
- data/features/disambiguate/BasedOnSubsequentFormWithBackref.feature +63 -0
- data/features/disambiguate/BasedOnSubsequentFormWithLocator.feature +67 -0
- data/features/disambiguate/ByCiteBaseNameCountOnFailureIfYearSuffixAvailable.feature +47 -0
- data/features/disambiguate/ByCiteDisambiguateCondition.feature +54 -0
- data/features/disambiguate/ByCiteGivennameExpandCrossNestedNames.feature +40 -0
- data/features/disambiguate/ByCiteGivennameNoShortFormInitializeWith.feature +39 -0
- data/features/disambiguate/ByCiteGivennameShortFormInitializeWith.feature +40 -0
- data/features/disambiguate/ByCiteGivennameShortFormNoInitializeWith.feature +39 -0
- data/features/disambiguate/ByCiteIncremental1.feature +355 -0
- data/features/disambiguate/ByCiteIncremental2.feature +352 -0
- data/features/disambiguate/ByCiteIsDefault.feature +250 -0
- data/features/disambiguate/ByCiteMinimalGivennameExpandMinimalNames.feature +48 -0
- data/features/disambiguate/ByCiteRetainNamesOnFailureIfYearSuffixNotAvailable.feature +46 -0
- data/features/disambiguate/ByCiteTwoAuthorsSameCite.feature +38 -0
- data/features/disambiguate/ByCiteTwoAuthorsSameFamilyName.feature +44 -0
- data/features/disambiguate/CitationLabelDefault.feature +34 -0
- data/features/disambiguate/CitationLabelInData.feature +34 -0
- data/features/disambiguate/DifferentSpacingInInitials.feature +40 -0
- data/features/disambiguate/DisambiguateTrueAndYearSuffixOne.feature +220 -0
- data/features/disambiguate/DisambiguateTrueAndYearSuffixTwo.feature +220 -0
- data/features/disambiguate/DisambiguateWithThree.feature +48 -0
- data/features/disambiguate/DisambiguateWithThree2.feature +91 -0
- data/features/disambiguate/DisambiguationHang.feature +48 -0
- data/features/disambiguate/ExtraTextCitation.feature +44 -0
- data/features/disambiguate/FailWithYearSuffix.feature +390 -0
- data/features/disambiguate/FamilyNameOnly.feature +43 -0
- data/features/disambiguate/HonorFullnameInBibliography.feature +49 -0
- data/features/disambiguate/ImplicitYearSuffixOnceOnly.feature +56 -0
- data/features/disambiguate/IncrementalExtraText.feature +55 -0
- data/features/disambiguate/InitializeWithButNoDisambiguation.feature +292 -0
- data/features/disambiguate/LastOnlyFailWithByCite.feature +49 -0
- data/features/disambiguate/NoTextElementUsesYearSuffixVariable.feature +39 -0
- data/features/disambiguate/PrimaryNameGenerally.feature +42 -0
- data/features/disambiguate/PrimaryNameWithInitialsLimitedToPrimary.feature +46 -0
- data/features/disambiguate/SetsOfNames.feature +205 -0
- data/features/disambiguate/SkipAccessedYearSuffix.feature +258 -0
- data/features/disambiguate/ThreeNoAuthorNoTitleEntries.feature +63 -0
- data/features/disambiguate/ToInitialOnly.feature +39 -0
- data/features/disambiguate/Trigraph.feature +36 -0
- data/features/disambiguate/YearCollapseWithInstitution.feature +51 -0
- data/features/disambiguate/YearSuffixAndSort.feature +50 -0
- data/features/disambiguate/YearSuffixAtTwoLevels.feature +45 -0
- data/features/disambiguate/YearSuffixFiftyTwoEntries.feature +48 -0
- data/features/disambiguate/YearSuffixFiftyTwoEntriesByCite.feature +48 -0
- data/features/disambiguate/YearSuffixMacroSameYearExplicit.feature +45 -0
- data/features/disambiguate/YearSuffixMacroSameYearImplicit.feature +42 -0
- data/features/disambiguate/YearSuffixMidInsert.feature +391 -0
- data/features/disambiguate/YearSuffixMixedDates.feature +52 -0
- data/features/disambiguate/YearSuffixTwoPairsBibliography.feature +63 -0
- data/features/disambiguate/YearSuffixTwoPairsFirstNameBibliography.feature +65 -0
- data/features/disambiguate/YearSuffixTwoPairsFullNamesBibliography.feature +63 -0
- data/features/disambiguate/YearSuffixWithEtAlSubequent.feature +51 -0
- data/features/disambiguate/YearSuffixWithMixedCreatorTypes.feature +53 -0
- data/features/discretionary/AuthorDateAuthorOnlyThenSuppressAuthor.feature +46 -0
- data/features/discretionary/AuthorOnly.feature +42 -0
- data/features/discretionary/CitationNumberAuthorOnlyThenSuppressAuthor.feature +41 -0
- data/features/discretionary/CitationNumberSuppressAuthor.feature +40 -0
- data/features/discretionary/SuppressAuthorSolo.feature +45 -0
- data/features/discretionary/SuppressEditorSolo.feature +45 -0
- data/features/discretionary/SuppressEditorSubstitute.feature +45 -0
- data/features/discretionary/SuppressMultipleAuthors.feature +45 -0
- data/features/display/AuthorAsHeading.feature +80 -0
- data/features/display/DisplayBlock.feature +54 -0
- data/features/display/SecondFieldAlignClone.feature +65 -0
- data/features/display/SecondFieldAlignMigratePunctuation.feature +154 -0
- data/features/etal/ShortFormOfName.feature +38 -0
- data/features/etal/UseZeroFirst.feature +47 -0
- data/features/flipflop/Apostrophes.feature +1064 -0
- data/features/flipflop/BoldfaceNodeLevelMarkup.feature +33 -0
- data/features/flipflop/ItalicsFlipped.feature +35 -0
- data/features/flipflop/ItalicsSimple.feature +39 -0
- data/features/flipflop/ItalicsWithOk.feature +48 -0
- data/features/flipflop/ItalicsWithOkAndTextcase.feature +48 -0
- data/features/flipflop/LeadingSingleQuote.feature +33 -0
- data/features/flipflop/QuotesInFieldNotOnNode.feature +33 -0
- data/features/flipflop/QuotesNodeLevelMarkup.feature +40 -0
- data/features/flipflop/SingleQuotesOnItalics.feature +33 -0
- data/features/flipflop/SmallCaps.feature +36 -0
- data/features/flipflop/StartingApostrophe.feature +33 -0
- data/features/form/TitleShort.feature +33 -0
- data/features/form/TitleShortNoLong.feature +33 -0
- data/features/form/TitleTestNoLongFalse.feature +40 -0
- data/features/fullstyles/ABdNT.feature +675 -0
- data/features/fullstyles/APA.feature +361 -0
- data/features/fullstyles/ChicagoArticleTitleQuestion.feature +390 -0
- data/features/fullstyles/ChicagoAuthorDateSimple.feature +394 -0
- data/features/fullstyles/ChicagoNoteWithBibliographyWithPublisher.feature +716 -0
- data/features/group/ComplexNesting.feature +397 -0
- data/features/group/ShortOutputOnly.feature +35 -0
- data/features/group/SuppressTermWhenNoOutputFromPartialDate.feature +39 -0
- data/features/group/SuppressValueWithEmptySubgroup.feature +46 -0
- data/features/group/SuppressWithEmptyNestedDateNode.feature +202 -0
- data/features/integration/CitationSort.feature +50 -0
- data/features/integration/CitationSortTwice.feature +51 -0
- data/features/integration/CrossCitationIbidOnInsert.feature +82 -0
- data/features/integration/DeleteName.feature +36 -0
- data/features/integration/DisambiguateAddGivenname1.feature +45 -0
- data/features/integration/DisambiguateAddGivenname2.feature +45 -0
- data/features/integration/DuplicateItem.feature +45 -0
- data/features/integration/DuplicateItem2.feature +45 -0
- data/features/integration/FirstReferenceNoteNumberPositionChange.feature +62 -0
- data/features/integration/IbidOnInsert.feature +50 -0
- data/features/integration/IbidWithDifferentLocators.feature +59 -0
- data/features/integration/SimpleFirstReferenceNoteNumber.feature +61 -0
- data/features/integration/SimpleIbid.feature +57 -0
- data/features/integration/SubsequentWhenInterveningFootnote.feature +51 -0
- data/features/integration/YearSuffixOnOffOn.feature +46 -0
- data/features/label/CollapsedPageNumberPluralDetection.feature +42 -0
- data/features/label/EditorTranslator1.feature +556 -0
- data/features/label/EmptyLabelVanish.feature +43 -0
- data/features/label/ImplicitForm.feature +36 -0
- data/features/label/NoFirstCharCapWithInTextClass.feature +38 -0
- data/features/label/NonexistentNameVariableLabel.feature +36 -0
- data/features/label/PageWithEmbeddedLabel.feature +35 -0
- data/features/label/PluralNumberOfVolumes.feature +36 -0
- data/features/label/PluralPagesWithAlphaPrefix.feature +37 -0
- data/features/locale/EffectOfStyleDefinition.feature +38 -0
- data/features/locale/EmptyDate.feature +41 -0
- data/features/locale/EmptyPlusOverrideDate.feature +48 -0
- data/features/locale/EmptyPlusOverrideStyleOpt.feature +39 -0
- data/features/locale/EmptyPlusOverrideTerm.feature +44 -0
- data/features/locale/EmptyStyleOpt.feature +36 -0
- data/features/locale/EmptyTerm.feature +39 -0
- data/features/locale/ForceEmptyAndOthersTerm.feature +41 -0
- data/features/locale/ForceEmptyEtAlTerm.feature +40 -0
- data/features/locale/NonExistentLocaleDef.feature +48 -0
- data/features/locale/OverloadWithEmptyString.feature +46 -0
- data/features/locale/PageRangeDelimiterTermDefined.feature +38 -0
- data/features/locale/PageRangeDelimiterTermFrenchUndef.feature +34 -0
- data/features/locale/PageRangeDelimiterTermUndefined.feature +33 -0
- data/features/locale/SpecificDate.feature +41 -0
- data/features/locale/SpecificStyleOpt.feature +36 -0
- data/features/locale/SpecificTerm.feature +39 -0
- data/features/locale/TermInSort.feature +77 -0
- data/features/locale/TitleCaseEmptyLangEmptyLocale.feature +33 -0
- data/features/locale/TitleCaseEmptyLangNonEnglishLocale.feature +34 -0
- data/features/locale/TitleCaseEnglishLangUpperEmptyLocale.feature +33 -0
- data/features/locale/TitleCaseGarbageLangEmptyLocale.feature +33 -0
- data/features/locale/TitleCaseGarbageLangEnglishLocale.feature +34 -0
- data/features/locale/TitleCaseGarbageLangNonEnglishLocale.feature +34 -0
- data/features/locale/TitleCaseNonEnglishLangUpperEmptyLocale.feature +33 -0
- data/features/locale/UnknownTerm.feature +34 -0
- data/features/locator/SimpleLocators.feature +46 -0
- data/features/locator/TermSelection.feature +40 -0
- data/features/locator/TrickyEntryForPlurals.feature +40 -0
- data/features/locator/WorkaroundTestForSubVerbo.feature +47 -0
- data/features/magic/AllowRepeatDateRenderings.feature +47 -0
- data/features/magic/CapitalizeFirstOccurringNameParticle.feature +35 -0
- data/features/magic/CapitalizeFirstOccurringTerm.feature +33 -0
- data/features/magic/CitationLabelInBibliography.feature +234 -0
- data/features/magic/CitationLabelInCitation.feature +224 -0
- data/features/magic/EntrySpacingDouble.feature +52 -0
- data/features/magic/HangingIndent.feature +52 -0
- data/features/magic/ImplicitYearSuffixDelimiter.feature +38 -0
- data/features/magic/ImplicitYearSuffixExplicitDelimiter.feature +52 -0
- data/features/magic/LineSpacingDouble.feature +52 -0
- data/features/magic/LineSpacingTripleStretch.feature +52 -0
- data/features/magic/NameParticle.feature +35 -0
- data/features/magic/NameSuffixNoComma.feature +35 -0
- data/features/magic/NameSuffixWithComma.feature +35 -0
- data/features/magic/NumberRangeEnglish.feature +33 -0
- data/features/magic/NumberRangeFrench.feature +34 -0
- data/features/magic/PunctuationInQuoteDefaultEnglishDelimiter.feature +41 -0
- data/features/magic/PunctuationInQuoteDefaultEnglishSuffix.feature +39 -0
- data/features/magic/PunctuationInQuoteDelimiterTrue.feature +44 -0
- data/features/magic/PunctuationInQuoteFalse.feature +44 -0
- data/features/magic/PunctuationInQuoteFalseSuppressExtra.feature +37 -0
- data/features/magic/PunctuationInQuoteNested.feature +47 -0
- data/features/magic/PunctuationInQuoteSuffixTrue.feature +42 -0
- data/features/magic/PunctuationInQuoteTrueSuppressExtra.feature +37 -0
- data/features/magic/QuotesAndBraces1.feature +36 -0
- data/features/magic/QuotesAndBraces2.feature +36 -0
- data/features/magic/SecondFieldAlign.feature +57 -0
- data/features/magic/StripPeriodsExcludeAffixes.feature +44 -0
- data/features/magic/StripPeriodsFalse.feature +34 -0
- data/features/magic/StripPeriodsTrue.feature +34 -0
- data/features/magic/StripPeriodsTrueShortForm.feature +46 -0
- data/features/magic/SubsequentAuthorSubstitute.feature +55 -0
- data/features/magic/SubsequentAuthorSubstituteNotFooled.feature +497 -0
- data/features/magic/SubsequentAuthorSubstituteOfTitleField.feature +55 -0
- data/features/magic/SuperscriptChars.feature +241 -0
- data/features/magic/SuppressDuplicateVariableRendering.feature +43 -0
- data/features/magic/SuppressExtraTerminalPunctuationAfterTerm.feature +410 -0
- data/features/magic/SuppressLayoutDelimiterIfPrefixComma.feature +34 -0
- data/features/magic/TermCapitalizationWithPrefix.feature +49 -0
- data/features/magic/TextRangeEnglish.feature +33 -0
- data/features/magic/TextRangeFrench.feature +34 -0
- data/features/name/AfterInvertedName.feature +42 -0
- data/features/name/AllCapsInitialsUntouched.feature +46 -0
- data/features/name/AndTextDelimiterPrecedesLastAlways.feature +35 -0
- data/features/name/ArticularNameAsSortOrder.feature +35 -0
- data/features/name/ArticularPlain.feature +35 -0
- data/features/name/ArticularShortForm.feature +35 -0
- data/features/name/ArticularShortFormCommaSuffix.feature +35 -0
- data/features/name/ArticularWithComma.feature +35 -0
- data/features/name/ArticularWithCommaNameAsSortOrder.feature +35 -0
- data/features/name/Asian.feature +35 -0
- data/features/name/AsianGlyphs.feature +35 -0
- data/features/name/AuthorCount.feature +39 -0
- data/features/name/AuthorCountWithMultipleVariables.feature +37 -0
- data/features/name/AuthorCountWithSameVarContentAndCombinedTermFail.feature +45 -0
- data/features/name/AuthorCountWithSameVarContentAndCombinedTermSucceed.feature +45 -0
- data/features/name/AuthorEditorCount.feature +37 -0
- data/features/name/CelticClanName.feature +35 -0
- data/features/name/CeltsAndToffsCrowdedInitials.feature +35 -0
- data/features/name/CeltsAndToffsNoHyphens.feature +36 -0
- data/features/name/CeltsAndToffsSpacedInitials.feature +35 -0
- data/features/name/CeltsAndToffsWithHyphens.feature +36 -0
- data/features/name/CollapseRoleLabels.feature +46 -0
- data/features/name/Delimiter.feature +37 -0
- data/features/name/EditorTranslatorBoth.feature +189 -0
- data/features/name/EditorTranslatorSameEmptyTerm.feature +41 -0
- data/features/name/EditorTranslatorSameWithTerm.feature +36 -0
- data/features/name/EditorTranslatorWithTranslatorOnly.feature +35 -0
- data/features/name/EditorTranslatorWithTranslatorOnlyBib.feature +189 -0
- data/features/name/EtAlUseLast.feature +47 -0
- data/features/name/FormattingOfParticles.feature +37 -0
- data/features/name/GreekSimple.feature +35 -0
- data/features/name/HebrewAnd.feature +40 -0
- data/features/name/HierarchicalDelimiter.feature +35 -0
- data/features/name/HyphenatedFirstName.feature +35 -0
- data/features/name/HyphenatedNonDroppingParticle1.feature +51 -0
- data/features/name/HyphenatedNonDroppingParticle2.feature +51 -0
- data/features/name/InheritAttributesEtAlStyle.feature +37 -0
- data/features/name/Institution.feature +35 -0
- data/features/name/InstitutionDecoration.feature +45 -0
- data/features/name/LabelAfterPlural.feature +36 -0
- data/features/name/LabelAfterPluralDecorations.feature +38 -0
- data/features/name/LongAbbreviation.feature +35 -0
- data/features/name/LowercaseSurnameSuffix.feature +35 -0
- data/features/name/MixedFormatsInitialSortOrderAllWithDecorationsEtAl.feature +39 -0
- data/features/name/MixedFormatsInitialSortOrderFirstWithDecorationsEtAl.feature +39 -0
- data/features/name/MixedFormatsInitialsWithDecorationsEtAl.feature +39 -0
- data/features/name/MixedFormatsPrimaryDecorations.feature +37 -0
- data/features/name/MixedFormatsWithDecorationsEtAl.feature +39 -0
- data/features/name/MixedFormatsWithDecorationsPlusAlternateEtAlDecorations.feature +40 -0
- data/features/name/MixedFormatsWithDecorationsPlusEtAlDecorations.feature +40 -0
- data/features/name/MultipleLiteral.feature +35 -0
- data/features/name/NoNameNode.feature +33 -0
- data/features/name/NonDroppingParticleDefault.feature +35 -0
- data/features/name/OnlyFamilyname.feature +35 -0
- data/features/name/OnlyGivenname.feature +35 -0
- data/features/name/OverridingHierarchicalDelimiter.feature +36 -0
- data/features/name/ParseNames.feature +39 -0
- data/features/name/ParsedCommaDelimitedDroppingParticleNormalOrderingWithAffixes.feature +38 -0
- data/features/name/ParsedCommaDelimitedDroppingParticleNormalOrderingWithoutAffixes.feature +36 -0
- data/features/name/ParsedCommaDelimitedDroppingParticleSortOrderingWithoutAffixes.feature +38 -0
- data/features/name/ParsedDroppingParticleWithAffixes.feature +39 -0
- data/features/name/ParsedDroppingParticleWithApostrophe.feature +38 -0
- data/features/name/ParsedNonDroppingParticleWithAffixes.feature +39 -0
- data/features/name/ParsedNonDroppingParticleWithApostrophe.feature +39 -0
- data/features/name/ParsedUpperCaseNonDroppingParticle.feature +39 -0
- data/features/name/ParticleCaps1.feature +40 -0
- data/features/name/ParticleCaps2.feature +46 -0
- data/features/name/ParticleCaps3.feature +47 -0
- data/features/name/ParticleFormatting.feature +38 -0
- data/features/name/ParticlesDemoteNonDroppingNever.feature +99 -0
- data/features/name/PeriodAfterInitials.feature +38 -0
- data/features/name/QuashOrdinaryVariableRenderedViaSubstitute.feature +39 -0
- data/features/name/RomanianTwo.feature +36 -0
- data/features/name/SemicolonWithAnd.feature +38 -0
- data/features/name/SplitInitials.feature +35 -0
- data/features/name/SubsequentAuthorSubstituteMultipleNames.feature +50 -0
- data/features/name/SubstituteInheritLabel.feature +44 -0
- data/features/name/SubstituteMacroInheritDecorations.feature +42 -0
- data/features/name/SubstituteName.feature +38 -0
- data/features/name/SubstituteOnDateGroupSpanFail.feature +45 -0
- data/features/name/SubstituteOnGroupSpanGroupSpanFail.feature +46 -0
- data/features/name/SubstituteOnMacroGroupSpanFail.feature +46 -0
- data/features/name/SubstituteOnNamesSingletonGroupSpanFail.feature +42 -0
- data/features/name/SubstituteOnNamesSpanGroupSpanFail.feature +44 -0
- data/features/name/SubstituteOnNamesSpanNamesSpanFail.feature +43 -0
- data/features/name/SubstituteOnNumberGroupSpanFail.feature +42 -0
- data/features/name/TwoRolesSameRenderingSeparateRoleLabels.feature +43 -0
- data/features/name/WesternArticularLowercase.feature +35 -0
- data/features/name/WesternPrimaryFontStyle.feature +37 -0
- data/features/name/WesternPrimaryFontStyleTwoAuthors.feature +37 -0
- data/features/name/WesternSimple.feature +35 -0
- data/features/name/WesternTwoAuthors.feature +35 -0
- data/features/name/namepartAffixes.feature +38 -0
- data/features/name/namepartAffixesNameAsSortOrder.feature +39 -0
- data/features/name/namepartAffixesNameAsSortOrderDemoteNonDroppingParticle.feature +39 -0
- data/features/nameattr/AndOnBibliographyInBibliography.feature +43 -0
- data/features/nameattr/AndOnBibliographyInCitation.feature +43 -0
- data/features/nameattr/AndOnCitationInBibliography.feature +45 -0
- data/features/nameattr/AndOnCitationInCitation.feature +36 -0
- data/features/nameattr/AndOnNamesInBibliography.feature +42 -0
- data/features/nameattr/AndOnNamesInCitation.feature +35 -0
- data/features/nameattr/AndOnStyleInBibliography.feature +43 -0
- data/features/nameattr/AndOnStyleInCitation.feature +43 -0
- data/features/nameattr/DelimiterPrecedesEtAlOnBibliographyInBibliography.feature +43 -0
- data/features/nameattr/DelimiterPrecedesEtAlOnBibliographyInCitation.feature +43 -0
- data/features/nameattr/DelimiterPrecedesEtAlOnCitationInBibliography.feature +45 -0
- data/features/nameattr/DelimiterPrecedesEtAlOnCitationInCitation.feature +36 -0
- data/features/nameattr/DelimiterPrecedesEtAlOnNamesInBibliography.feature +42 -0
- data/features/nameattr/DelimiterPrecedesEtAlOnNamesInCitation.feature +35 -0
- data/features/nameattr/DelimiterPrecedesEtAlOnStyleInBibliography.feature +43 -0
- data/features/nameattr/DelimiterPrecedesEtAlOnStyleInCitation.feature +36 -0
- data/features/nameattr/DelimiterPrecedesLastOnBibliographyInBibliography.feature +43 -0
- data/features/nameattr/DelimiterPrecedesLastOnBibliographyInCitation.feature +43 -0
- data/features/nameattr/DelimiterPrecedesLastOnCitationInBibliography.feature +45 -0
- data/features/nameattr/DelimiterPrecedesLastOnCitationInCitation.feature +36 -0
- data/features/nameattr/DelimiterPrecedesLastOnNamesInBibliography.feature +42 -0
- data/features/nameattr/DelimiterPrecedesLastOnNamesInCitation.feature +35 -0
- data/features/nameattr/DelimiterPrecedesLastOnStyleInBibliography.feature +43 -0
- data/features/nameattr/DelimiterPrecedesLastOnStyleInCitation.feature +36 -0
- data/features/nameattr/EtAlMinOnBibliographyInBibliography.feature +43 -0
- data/features/nameattr/EtAlMinOnBibliographyInCitation.feature +43 -0
- data/features/nameattr/EtAlMinOnCitationInBibliography.feature +45 -0
- data/features/nameattr/EtAlMinOnCitationInCitation.feature +36 -0
- data/features/nameattr/EtAlMinOnNamesInBibliography.feature +42 -0
- data/features/nameattr/EtAlMinOnNamesInCitation.feature +35 -0
- data/features/nameattr/EtAlMinOnStyleInBibliography.feature +42 -0
- data/features/nameattr/EtAlMinOnStyleInCitation.feature +35 -0
- data/features/nameattr/EtAlSubsequentMinOnBibliographyInBibliography.feature +43 -0
- data/features/nameattr/EtAlSubsequentMinOnBibliographyInCitation.feature +43 -0
- data/features/nameattr/EtAlSubsequentMinOnCitationInBibliography.feature +45 -0
- data/features/nameattr/EtAlSubsequentMinOnCitationInCitation.feature +37 -0
- data/features/nameattr/EtAlSubsequentMinOnNamesInBibliography.feature +42 -0
- data/features/nameattr/EtAlSubsequentMinOnStyleInBibliography.feature +42 -0
- data/features/nameattr/EtAlSubsequentMinOnStyleInCitation.feature +38 -0
- data/features/nameattr/EtAlSubsequentUseFirstOnBibliographyInBibliography.feature +43 -0
- data/features/nameattr/EtAlSubsequentUseFirstOnBibliographyInCitation.feature +43 -0
- data/features/nameattr/EtAlSubsequentUseFirstOnCitationInBibliography.feature +45 -0
- data/features/nameattr/EtAlSubsequentUseFirstOnCitationInCitation.feature +44 -0
- data/features/nameattr/EtAlSubsequentUseFirstOnStyleInBibliography.feature +43 -0
- data/features/nameattr/EtAlSubsequentUseFirstOnStyleInCitation.feature +37 -0
- data/features/nameattr/EtAlUseFirstOnBibliographyInBibliography.feature +43 -0
- data/features/nameattr/EtAlUseFirstOnBibliographyInCitation.feature +43 -0
- data/features/nameattr/EtAlUseFirstOnCitationInBibliography.feature +45 -0
- data/features/nameattr/EtAlUseFirstOnCitationInCitation.feature +43 -0
- data/features/nameattr/EtAlUseFirstOnNamesInBibliography.feature +42 -0
- data/features/nameattr/EtAlUseFirstOnNamesInCitation.feature +35 -0
- data/features/nameattr/EtAlUseFirstOnStyleInBibliography.feature +43 -0
- data/features/nameattr/EtAlUseFirstOnStyleInCitation.feature +35 -0
- data/features/nameattr/InitializeWithOnBibliographyInBibliography.feature +43 -0
- data/features/nameattr/InitializeWithOnBibliographyInCitation.feature +43 -0
- data/features/nameattr/InitializeWithOnCitationInBibliography.feature +45 -0
- data/features/nameattr/InitializeWithOnCitationInCitation.feature +36 -0
- data/features/nameattr/InitializeWithOnNamesInBibliography.feature +42 -0
- data/features/nameattr/InitializeWithOnNamesInCitation.feature +35 -0
- data/features/nameattr/InitializeWithOnStyleInBibliography.feature +43 -0
- data/features/nameattr/InitializeWithOnStyleInCitation.feature +36 -0
- data/features/nameattr/NameAsSortOrderOnBibliographyInBibliography.feature +43 -0
- data/features/nameattr/NameAsSortOrderOnBibliographyInCitation.feature +43 -0
- data/features/nameattr/NameAsSortOrderOnCitationInBibliography.feature +45 -0
- data/features/nameattr/NameAsSortOrderOnCitationInCitation.feature +36 -0
- data/features/nameattr/NameAsSortOrderOnNamesInBibliography.feature +42 -0
- data/features/nameattr/NameAsSortOrderOnNamesInCitation.feature +35 -0
- data/features/nameattr/NameAsSortOrderOnStyleInBibliography.feature +43 -0
- data/features/nameattr/NameAsSortOrderOnStyleInCitation.feature +35 -0
- data/features/nameattr/NameDelimiterOnBibliographyInBibliography.feature +43 -0
- data/features/nameattr/NameDelimiterOnBibliographyInCitation.feature +43 -0
- data/features/nameattr/NameDelimiterOnCitationInBibliography.feature +45 -0
- data/features/nameattr/NameDelimiterOnCitationInCitation.feature +43 -0
- data/features/nameattr/NameDelimiterOnNamesInBibliography.feature +42 -0
- data/features/nameattr/NameDelimiterOnNamesInCitation.feature +42 -0
- data/features/nameattr/NameDelimiterOnStyleInBibliography.feature +43 -0
- data/features/nameattr/NameDelimiterOnStyleInCitation.feature +43 -0
- data/features/nameattr/NameFormOnBibliographyInBibliography.feature +43 -0
- data/features/nameattr/NameFormOnBibliographyInCitation.feature +43 -0
- data/features/nameattr/NameFormOnCitationInBibliography.feature +45 -0
- data/features/nameattr/NameFormOnCitationInCitation.feature +43 -0
- data/features/nameattr/NameFormOnNamesInBibliography.feature +42 -0
- data/features/nameattr/NameFormOnNamesInCitation.feature +35 -0
- data/features/nameattr/NameFormOnStyleInBibliography.feature +43 -0
- data/features/nameattr/NameFormOnStyleInCitation.feature +36 -0
- data/features/nameattr/NamesDelimiterOnBibliographyInBibliography.feature +43 -0
- data/features/nameattr/NamesDelimiterOnBibliographyInCitation.feature +43 -0
- data/features/nameattr/NamesDelimiterOnCitationInBibliography.feature +45 -0
- data/features/nameattr/NamesDelimiterOnCitationInCitation.feature +36 -0
- data/features/nameattr/NamesDelimiterOnNamesInBibliography.feature +42 -0
- data/features/nameattr/NamesDelimiterOnNamesInCitation.feature +35 -0
- data/features/nameattr/NamesDelimiterOnStyleInBibliography.feature +42 -0
- data/features/nameattr/NamesDelimiterOnStyleInCitation.feature +36 -0
- data/features/nameattr/SortSeparatorOnBibliographyInBibliography.feature +43 -0
- data/features/nameattr/SortSeparatorOnBibliographyInCitation.feature +44 -0
- data/features/nameattr/SortSeparatorOnCitationInBibliography.feature +45 -0
- data/features/nameattr/SortSeparatorOnCitationInCitation.feature +36 -0
- data/features/nameattr/SortSeparatorOnNamesInBibliography.feature +42 -0
- data/features/nameattr/SortSeparatorOnNamesInCitation.feature +35 -0
- data/features/nameattr/SortSeparatorOnStyleInBibliography.feature +43 -0
- data/features/nameattr/SortSeparatorOnStyleInCitation.feature +36 -0
- data/features/nameorder/Long.feature +35 -0
- data/features/nameorder/LongNameAsSortDemoteDisplayAndSort.feature +36 -0
- data/features/nameorder/LongNameAsSortDemoteNever.feature +36 -0
- data/features/nameorder/Short.feature +35 -0
- data/features/nameorder/ShortDemoteDisplayAndSort.feature +36 -0
- data/features/nameorder/ShortNameAsSortDemoteNever.feature +36 -0
- data/features/namespaces/NonNada3.feature +33 -0
- data/features/number/EditionSort.feature +47 -0
- data/features/number/FailingDelimiters.feature +44 -0
- data/features/number/IsNumericWithAlpha.feature +40 -0
- data/features/number/MixedPageRange.feature +34 -0
- data/features/number/MixedText.feature +33 -0
- data/features/number/NewOrdinals.feature +64 -0
- data/features/number/NewOrdinalsEdition.feature +1044 -0
- data/features/number/NewOrdinalsWithGenderChange.feature +45 -0
- data/features/number/PageFirst.feature +36 -0
- data/features/number/PageRange.feature +33 -0
- data/features/number/PlainHyphenOrEnDashAlwaysPlural.feature +42 -0
- data/features/number/SeparateOrdinalNamespaces.feature +55 -0
- data/features/number/SimpleNumberArabic.feature +33 -0
- data/features/number/SimpleNumberOrdinalLong.feature +35 -0
- data/features/number/SimpleNumberOrdinalShort.feature +33 -0
- data/features/number/SimpleNumberRoman.feature +33 -0
- data/features/number/StrangeError.feature +34 -0
- data/features/page/Chicago.feature +55 -0
- data/features/page/Expand.feature +42 -0
- data/features/page/Minimal.feature +55 -0
- data/features/page/NoOption.feature +34 -0
- data/features/page/NumberPageFirst.feature +33 -0
- data/features/page/PluralDetectWithEndash.feature +33 -0
- data/features/parallel/Bibliography.feature +87 -0
- data/features/parallel/HackedChicago.feature +715 -0
- data/features/parallel/JournalArticleReverse.feature +46 -0
- data/features/parallel/JournalArticleSimple.feature +46 -0
- data/features/parallel/TrailingIbid.feature +69 -0
- data/features/plural/LabelForced.feature +37 -0
- data/features/plural/NameLabelAlways.feature +36 -0
- data/features/plural/NameLabelContextualPlural.feature +36 -0
- data/features/plural/NameLabelContextualSingular.feature +36 -0
- data/features/plural/NameLabelDefaultPlural.feature +36 -0
- data/features/plural/NameLabelDefaultSingular.feature +36 -0
- data/features/plural/NameLabelNever.feature +36 -0
- data/features/position/FalseInBibliography.feature +47 -0
- data/features/position/FirstTrueOnlyOnce.feature +55 -0
- data/features/position/IbidInText.feature +51 -0
- data/features/position/IbidSeparateCiteSameNote.feature +80 -0
- data/features/position/IbidWithLocator.feature +52 -0
- data/features/position/IbidWithMultipleSoloCitesInBackref.feature +52 -0
- data/features/position/IbidWithPrefixFullStop.feature +44 -0
- data/features/position/IbidWithSuffix.feature +54 -0
- data/features/position/IfIbidIsTrueThenSubsequentIsTrue.feature +61 -0
- data/features/position/IfIbidWithLocatorIsTrueThenIbidIsTrue.feature +58 -0
- data/features/position/NearNoteFalse.feature +41 -0
- data/features/position/NearNoteSameNote.feature +43 -0
- data/features/position/NearNoteTrue.feature +41 -0
- data/features/position/NearNoteUnsupported.feature +40 -0
- data/features/position/NearNoteWithPlugin.feature +454 -0
- data/features/position/ResetNoteNumbers.feature +54 -0
- data/features/position/TrueInCitation.feature +45 -0
- data/features/punctuation/DateStripPeriods.feature +36 -0
- data/features/punctuation/DefaultYearSuffixDelimiter.feature +183 -0
- data/features/punctuation/DelimiterWithStripPeriodsAndSubstitute1.feature +53 -0
- data/features/punctuation/DelimiterWithStripPeriodsAndSubstitute2.feature +52 -0
- data/features/punctuation/DelimiterWithStripPeriodsAndSubstitute3.feature +60 -0
- data/features/punctuation/DoNotSuppressColonAfterPeriod.feature +34 -0
- data/features/punctuation/FrenchOrthography.feature +33 -0
- data/features/punctuation/FullMontyField.feature +230 -0
- data/features/punctuation/FullMontyPlain.feature +230 -0
- data/features/punctuation/FullMontyQuotesIn.feature +233 -0
- data/features/punctuation/FullMontyQuotesOut.feature +233 -0
- data/features/punctuation/NoSuppressOfPeriodBeforeSemicolon.feature +36 -0
- data/features/punctuation/SemicolonDelimiter.feature +62 -0
- data/features/punctuation/SuppressPrefixPeriodForDelimiterSemicolon.feature +715 -0
- data/features/quotes/Punctuation.feature +43 -0
- data/features/quotes/PunctuationNasty.feature +977 -0
- data/features/quotes/PunctuationWithInnerQuote.feature +43 -0
- data/features/simplespace/case1.feature +202 -0
- data/features/sort/AguStyle.feature +94 -0
- data/features/sort/AguStyleReverseGroups.feature +94 -0
- data/features/sort/AuthorDateWithYearSuffix.feature +202 -0
- data/features/sort/BibliographyCitationNumberDescending.feature +51 -0
- data/features/sort/BibliographyCitationNumberDescendingViaMacro.feature +54 -0
- data/features/sort/BibliographyNosortOption.feature +44 -0
- data/features/sort/CaseInsensitiveBibliography.feature +55 -0
- data/features/sort/CaseInsensitiveCitation.feature +36 -0
- data/features/sort/ChangeInNameSort.feature +54 -0
- data/features/sort/ChicagoYearSuffix1.feature +391 -0
- data/features/sort/ChicagoYearSuffix2.feature +391 -0
- data/features/sort/Citation.feature +42 -0
- data/features/sort/CitationEdit.feature +49 -0
- data/features/sort/CitationSecondaryKey.feature +46 -0
- data/features/sort/CitationUnsorted.feature +42 -0
- data/features/sort/CiteGroupDelimiter.feature +45 -0
- data/features/sort/ConditionalMacroDates.feature +64 -0
- data/features/sort/DateMacroSortWithSecondFieldAlign.feature +56 -0
- data/features/sort/DateVariable.feature +36 -0
- data/features/sort/DateVariableMixedElementsAscendingA.feature +36 -0
- data/features/sort/DateVariableMixedElementsAscendingB.feature +36 -0
- data/features/sort/DateVariableMixedElementsDescendingA.feature +36 -0
- data/features/sort/DateVariableMixedElementsDescendingB.feature +36 -0
- data/features/sort/DateVariableRange.feature +36 -0
- data/features/sort/DateVariableRangeMixed.feature +36 -0
- data/features/sort/DropNameLabelInSort.feature +116 -0
- data/features/sort/EtAlUseLast.feature +54 -0
- data/features/sort/FamilyOnly.feature +45 -0
- data/features/sort/GroupedByAuthorstring.feature +50 -0
- data/features/sort/LatinUnicode.feature +42 -0
- data/features/sort/LeadingApostropheOnNameParticle.feature +55 -0
- data/features/sort/LocalizedDateLimitedParts.feature +40 -0
- data/features/sort/NameImplicitSortOrderAndForm.feature +51 -0
- data/features/sort/NameParticleInNameSortFalse.feature +48 -0
- data/features/sort/NameParticleInNameSortTrue.feature +48 -0
- data/features/sort/NameVariable.feature +47 -0
- data/features/sort/NamesUseLast.feature +64 -0
- data/features/sort/NumberOfAuthorsAsKey.feature +68 -0
- data/features/sort/SeparateAuthorsAndOthers.feature +127 -0
- data/features/sort/StatusFieldAscending.feature +46 -0
- data/features/sort/StatusFieldDescending.feature +46 -0
- data/features/sort/StripMarkup.feature +39 -0
- data/features/sort/SubstituteTitle.feature +398 -0
- data/features/sort/VariousNameMacros1.feature +287 -0
- data/features/sort/VariousNameMacros2.feature +287 -0
- data/features/sort/VariousNameMacros3.feature +288 -0
- data/features/sort/WithAndInOneEntry.feature +228 -0
- data/features/sortseparator/SortSeparatorEmpty.feature +44 -0
- data/features/substitute/RepeatedNamesOk.feature +52 -0
- data/features/substitute/SuppressOrdinaryVariable.feature +79 -0
- data/features/testers/FirstAutoGeneratedZoteroPluginTest.feature +715 -0
- data/features/testers/SecondAutoGeneratedZoteroPluginTest.feature +717 -0
- data/features/textcase/CapitalizeAll.feature +33 -0
- data/features/textcase/CapitalizeFirst.feature +33 -0
- data/features/textcase/CapitalizeFirstWithDecor.feature +33 -0
- data/features/textcase/CapitalsUntouched.feature +37 -0
- data/features/textcase/Lowercase.feature +33 -0
- data/features/textcase/SentenceCapitalization.feature +33 -0
- data/features/textcase/SkipNameParticlesInTitleCase.feature +33 -0
- data/features/textcase/TitleCapitalization.feature +33 -0
- data/features/textcase/TitleCaseNonEnglish.feature +33 -0
- data/features/textcase/TitleCaseNonEnglish2.feature +34 -0
- data/features/textcase/TitleCaseWithHyphens.feature +33 -0
- data/features/textcase/TitleCaseWithInitials.feature +33 -0
- data/features/textcase/Uppercase.feature +59 -0
- data/features/textcase/UppercaseNumber.feature +33 -0
- data/features/unicode/NonBreakingSpace.feature +34 -0
- data/features/variables/ShortForm.feature +54 -0
- data/features/variables/TitleShortOnAbbrevWithTitle.feature +37 -0
- data/features/variables/TitleShortOnAbbrevWithTitleCondition.feature +57 -0
- data/features/variables/TitleShortOnAbbrevWithTitleGroup.feature +44 -0
- data/features/variables/TitleShortOnShortTitleNoTitle.feature +33 -0
- data/features/variables/TitleShortOnShortTitleNoTitleCondition.feature +53 -0
- data/features/variables/TitleShortOnShortTitleNoTitleGroup.feature +40 -0
- data/features/virtual/PageFirst.feature +37 -0
- data/lib/citeproc/attributes.rb +7 -1
- data/lib/citeproc/version.rb +1 -1
- data/spec/citeproc/attributes_spec.rb +71 -27
- data/spec/citeproc/item_spec.rb +12 -0
- metadata +1563 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b89224670504d01dbc64326c2b5d2e61d1e100a3
|
4
|
+
data.tar.gz: 82b418d1deaa37b4cbf14067f7c600fafea02806
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a35de704e987dbc28155e7fea788013495341d15c45a1d147512372a287dc43f7b547a1df731fdb87383acad782f77772f1d397d3cf3cf70d3a11d38ea1f95d
|
7
|
+
data.tar.gz: 4ad442f23a473e166dd4c33446fb840ac27216a2f05dfc458f8639e3fe86e5eb9d838a7e233737ed4e75a8ea52748f55592990427c127ad6a2ea1ba472058f42
|
data/Gemfile
CHANGED
@@ -17,39 +17,45 @@ end
|
|
17
17
|
group :optional do
|
18
18
|
gem 'nokogiri', '~>1.6'
|
19
19
|
gem 'chronic', '~>0.10', :require => false
|
20
|
-
|
20
|
+
if RUBY_VERSION >= '2.2.2'
|
21
|
+
gem 'edtf', '~>3.0'
|
22
|
+
else
|
23
|
+
gem 'edtf', '~>2.0'
|
24
|
+
end
|
21
25
|
|
22
26
|
gem 'bibtex-ruby', '~>4.0', :require => 'bibtex'
|
23
27
|
|
24
|
-
gem 'guard', '~>2.2'
|
25
|
-
gem 'guard-rspec', '~>4.2'
|
26
|
-
gem 'guard-cucumber', '~>2.0'
|
27
|
-
|
28
28
|
gem 'pry'
|
29
29
|
|
30
|
-
gem 'unicode', '
|
30
|
+
gem 'unicode', '>=0.4', '<1.0', :platforms => [:ruby, :mswin, :mingw]
|
31
31
|
|
32
32
|
gem 'citeproc-ruby', :github => 'inukshuk/citeproc-ruby'
|
33
33
|
#gem 'csl', :github => 'inukshuk/csl-ruby'
|
34
34
|
end
|
35
35
|
|
36
36
|
group :development do
|
37
|
-
gem 'rake'
|
37
|
+
gem 'rake', '~>10.0'
|
38
38
|
gem 'cucumber'
|
39
39
|
gem 'rspec', '~>3.0'
|
40
|
+
gem 'csl-styles', '~>1.0.1', :require => false
|
41
|
+
end
|
42
|
+
|
43
|
+
group :coverage do
|
44
|
+
gem 'coveralls', :require => false
|
40
45
|
gem 'simplecov', '~>0.8', :require => false
|
41
46
|
gem 'rubinius-coverage', :platform => :rbx
|
42
|
-
gem 'coveralls', :require => false
|
43
|
-
gem 'csl-styles', '~>1.0.1', :require => false
|
44
47
|
end
|
45
48
|
|
46
49
|
group :extra do
|
47
50
|
gem 'yard', '~>0.8', :platforms => :ruby
|
48
51
|
gem 'redcarpet', '~>3.0', :platform => :mri
|
52
|
+
gem 'guard', '~>2.2'
|
53
|
+
gem 'guard-rspec', '~>4.2'
|
54
|
+
gem 'guard-cucumber', '~>2.0'
|
49
55
|
end
|
50
56
|
|
51
|
-
|
52
|
-
gem 'rubysl',
|
53
|
-
gem '
|
54
|
-
gem '
|
57
|
+
group :rbx do
|
58
|
+
gem 'rubysl', :platforms => :rbx
|
59
|
+
gem 'racc', :platforms => :rbx
|
60
|
+
gem 'json', '~>1.8', :platforms => :rbx
|
55
61
|
end
|
data/Rakefile
CHANGED
@@ -37,9 +37,13 @@ end
|
|
37
37
|
require 'cucumber/rake/task'
|
38
38
|
Cucumber::Rake::Task.new(:cucumber)
|
39
39
|
|
40
|
-
|
41
|
-
|
42
|
-
|
40
|
+
begin
|
41
|
+
require 'coveralls/rake/task'
|
42
|
+
Coveralls::RakeTask.new
|
43
|
+
task :test_with_coveralls => [:spec, 'coveralls:push']
|
44
|
+
rescue LoadError => e
|
45
|
+
# ignore
|
46
|
+
end
|
43
47
|
|
44
48
|
task :release do |t|
|
45
49
|
system "gem build citeproc.gemspec"
|
@@ -0,0 +1,52 @@
|
|
1
|
+
Feature: affix
|
2
|
+
As a CSL cite processor hacker
|
3
|
+
I want the test affix_InterveningEmpty to pass
|
4
|
+
|
5
|
+
@citation @affix
|
6
|
+
Scenario: Intervening Empty
|
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
|
+
<macro name="author">
|
19
|
+
<names variable="author">
|
20
|
+
<name/>
|
21
|
+
</names>
|
22
|
+
</macro>
|
23
|
+
<macro name="title">
|
24
|
+
<text variable="title"/>
|
25
|
+
</macro>
|
26
|
+
<macro name="journal">
|
27
|
+
<text variable="container-title"/>
|
28
|
+
</macro>
|
29
|
+
<macro name="date">
|
30
|
+
<date variable="issued">
|
31
|
+
<date-part name="year"/>
|
32
|
+
</date>
|
33
|
+
</macro>
|
34
|
+
<citation>
|
35
|
+
<layout suffix=".">
|
36
|
+
<text macro="author"/>
|
37
|
+
<text macro="title" prefix=". "/>
|
38
|
+
<text macro="journal"/>
|
39
|
+
<text macro="date" prefix=". "/>
|
40
|
+
</layout>
|
41
|
+
</citation>
|
42
|
+
</style>
|
43
|
+
"""
|
44
|
+
And the following input:
|
45
|
+
"""
|
46
|
+
[{"author":[{"family":"Doe","given":"John"}],"id":"ITEM-1","issued":{"date-parts":[["1965","6","1"]]},"title":"His Anonymous Life","type":"book"}]
|
47
|
+
"""
|
48
|
+
When I cite all items
|
49
|
+
Then the result should be:
|
50
|
+
"""
|
51
|
+
John Doe. His Anonymous Life. 1965.
|
52
|
+
"""
|
@@ -0,0 +1,41 @@
|
|
1
|
+
Feature: affix
|
2
|
+
As a CSL cite processor hacker
|
3
|
+
I want the test affix_PrefixFullCitationTextOnly to pass
|
4
|
+
|
5
|
+
@citation @affix @citation-items
|
6
|
+
Scenario: Prefix Full Citation Text Only
|
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>2007-10-26T21:32:52+02:00</updated>
|
17
|
+
</info>
|
18
|
+
<citation>
|
19
|
+
<layout prefix="(" suffix=")">
|
20
|
+
<group delimiter=" ">
|
21
|
+
<names variable="author">
|
22
|
+
<name form="short" />
|
23
|
+
</names>
|
24
|
+
<date variable="issued">
|
25
|
+
<date-part name="year" />
|
26
|
+
</date>
|
27
|
+
</group>
|
28
|
+
</layout>
|
29
|
+
</citation>
|
30
|
+
</style>
|
31
|
+
"""
|
32
|
+
And the following input:
|
33
|
+
"""
|
34
|
+
[{"author":[{"family":"Smith","given":"John","static-ordering":false}],"id":"ITEM-1","issued":{"date-parts":[["2000","2","15"]]},"title":"Book C","type":"book"}]
|
35
|
+
"""
|
36
|
+
When I cite the following items:
|
37
|
+
"""
|
38
|
+
[[{"id":"ITEM-1","prefix":"As written in"}]]
|
39
|
+
"""
|
40
|
+
Then the results should be:
|
41
|
+
| (As written in Smith 2000) |
|
@@ -0,0 +1,41 @@
|
|
1
|
+
Feature: affix
|
2
|
+
As a CSL cite processor hacker
|
3
|
+
I want the test affix_PrefixWithDecorations to pass
|
4
|
+
|
5
|
+
@citation @affix @citation-items
|
6
|
+
Scenario: Prefix With Decorations
|
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>2007-10-26T21:32:52+02:00</updated>
|
17
|
+
</info>
|
18
|
+
<citation>
|
19
|
+
<layout prefix="(" suffix=")">
|
20
|
+
<group delimiter=" ">
|
21
|
+
<names variable="author">
|
22
|
+
<name form="short" />
|
23
|
+
</names>
|
24
|
+
<date variable="issued">
|
25
|
+
<date-part name="year" />
|
26
|
+
</date>
|
27
|
+
</group>
|
28
|
+
</layout>
|
29
|
+
</citation>
|
30
|
+
</style>
|
31
|
+
"""
|
32
|
+
And the following input:
|
33
|
+
"""
|
34
|
+
[{"author":[{"family":"Smith","given":"John","static-ordering":false}],"id":"ITEM-1","issued":{"date-parts":[["2000","2","15"]]},"title":"Book C","type":"book"}]
|
35
|
+
"""
|
36
|
+
When I cite the following items:
|
37
|
+
"""
|
38
|
+
[[{"id":"ITEM-1","prefix":"<sc>See</sc> "}]]
|
39
|
+
"""
|
40
|
+
Then the results should be:
|
41
|
+
| (<span style="font-variant:small-caps;">See</span> Smith 2000) |
|
@@ -0,0 +1,410 @@
|
|
1
|
+
Feature: affix
|
2
|
+
As a CSL cite processor hacker
|
3
|
+
I want the test affix_SuppressDelimiterCharsWhenFullStopInSuffix to pass
|
4
|
+
|
5
|
+
@citation @affix @citations
|
6
|
+
Scenario: Suppress Delimiter Chars When Full Stop In Suffix
|
7
|
+
Given the following style:
|
8
|
+
"""
|
9
|
+
<style
|
10
|
+
xmlns="http://purl.org/net/xbiblio/csl"
|
11
|
+
class="note"
|
12
|
+
version="1.1mlz1"
|
13
|
+
page-range-format="chicago">
|
14
|
+
<info>
|
15
|
+
<title>Bluebook (demo-x)</title>
|
16
|
+
<id>http://gsl-nagoya-u.net/http/pub/bluebook-demo-x</id>
|
17
|
+
<link rel="self" href="http://gsl-nagoya-u.net/http/pub/bluebook-demo-x.csl" />
|
18
|
+
<link href="http://www.legalbluebook.com/" rel="documentation" />
|
19
|
+
<author>
|
20
|
+
<name>Frank Bennett</name>
|
21
|
+
<email>biercenator@gmail.com</email>
|
22
|
+
</author>
|
23
|
+
<summary>Bluebook Style for legal materials (CSL 1.0 experimental)</summary>
|
24
|
+
<category field="generic-base" />
|
25
|
+
<category citation-format="note" />
|
26
|
+
<updated>2010-04-24T04:49:00+09:00</updated>
|
27
|
+
</info>
|
28
|
+
<locale>
|
29
|
+
<terms>
|
30
|
+
<term name="ibid">id.</term>
|
31
|
+
</terms>
|
32
|
+
</locale>
|
33
|
+
|
34
|
+
<!-- ### BLUEBOOK AUTHOR ### -->
|
35
|
+
<macro name="bb-author">
|
36
|
+
<names variable="author">
|
37
|
+
<name/>
|
38
|
+
</names>
|
39
|
+
</macro>
|
40
|
+
<macro name="bb-author-short">
|
41
|
+
<names variable="author">
|
42
|
+
<name form="short"/>
|
43
|
+
</names>
|
44
|
+
</macro>
|
45
|
+
|
46
|
+
<!-- ### BLUEBOOK ISSUED ### -->
|
47
|
+
<macro name="bb-issued">
|
48
|
+
<group prefix="(" suffix=")">
|
49
|
+
<date variable="issued" form="text" date-parts="year"/>
|
50
|
+
</group>
|
51
|
+
</macro>
|
52
|
+
|
53
|
+
<!-- ### ID BACKREFERENCES ### -->
|
54
|
+
<macro name="bb-ibid">
|
55
|
+
<choose>
|
56
|
+
<if position="ibid-with-locator">
|
57
|
+
<text term="ibid" font-style="italic"/>
|
58
|
+
<group delimiter=" ">
|
59
|
+
<choose>
|
60
|
+
<if locator="page">
|
61
|
+
<text value=" at"/>
|
62
|
+
</if>
|
63
|
+
<else>
|
64
|
+
<text value=", "/>
|
65
|
+
<label form="short" variable="locator"/>
|
66
|
+
</else>
|
67
|
+
</choose>
|
68
|
+
<text variable="locator"/>
|
69
|
+
</group>
|
70
|
+
</if>
|
71
|
+
<else-if position="ibid">
|
72
|
+
<text term="ibid" font-style="italic"/>
|
73
|
+
</else-if>
|
74
|
+
</choose>
|
75
|
+
</macro>
|
76
|
+
|
77
|
+
<!-- ### POINT LOCATORS -->
|
78
|
+
<macro name="bb-point-locator-comma">
|
79
|
+
<group delimiter=" ">
|
80
|
+
<choose>
|
81
|
+
<if variable="number page" position="ibid" match="any">
|
82
|
+
<text value=","/>
|
83
|
+
</if>
|
84
|
+
</choose>
|
85
|
+
<choose>
|
86
|
+
<if locator="page" match="none">
|
87
|
+
<label form="symbol" variable="locator" suffix=" "/>
|
88
|
+
</if>
|
89
|
+
</choose>
|
90
|
+
<text variable="locator"/>
|
91
|
+
</group>
|
92
|
+
</macro>
|
93
|
+
<macro name="bb-point-locator-base">
|
94
|
+
<choose>
|
95
|
+
<if locator="page" match="none">
|
96
|
+
<label form="symbol" variable="locator" suffix=" "/>
|
97
|
+
</if>
|
98
|
+
</choose>
|
99
|
+
<text variable="locator"/>
|
100
|
+
</macro>
|
101
|
+
|
102
|
+
<!-- ### LEGAL CASE ### -->
|
103
|
+
<macro name="bb-legal-case">
|
104
|
+
<choose>
|
105
|
+
<if position="first">
|
106
|
+
<text macro="bb-legal-case-first"/>
|
107
|
+
</if>
|
108
|
+
<else-if position="ibid">
|
109
|
+
<text macro="bb-ibid"/>
|
110
|
+
</else-if>
|
111
|
+
<else-if position="near-note">
|
112
|
+
<text macro="bb-legal-case-subsequent"/>
|
113
|
+
</else-if>
|
114
|
+
<else>
|
115
|
+
<text macro="bb-legal-case-first"/>
|
116
|
+
</else>
|
117
|
+
</choose>
|
118
|
+
</macro>
|
119
|
+
<macro name="bb-legal-case-first">
|
120
|
+
<choose>
|
121
|
+
<if variable="title">
|
122
|
+
<!-- Common law cases -->
|
123
|
+
<group delimiter=", ">
|
124
|
+
<text variable="title"/>
|
125
|
+
<group delimiter=" ">
|
126
|
+
<choose>
|
127
|
+
<if variable="issue">
|
128
|
+
<text variable="volume" prefix="[" suffix="]"/>
|
129
|
+
<text variable="issue"/>
|
130
|
+
</if>
|
131
|
+
<else>
|
132
|
+
<text variable="volume"/>
|
133
|
+
</else>
|
134
|
+
</choose>
|
135
|
+
<text variable="container-title" form="short"/>
|
136
|
+
<group>
|
137
|
+
<text variable="page"/>
|
138
|
+
<text macro="bb-point-locator-comma"/>
|
139
|
+
</group>
|
140
|
+
<group prefix="(" suffix=")" delimiter=" ">
|
141
|
+
<text variable="authority" form="short"/>
|
142
|
+
<date variable="issued">
|
143
|
+
<date-part name="year"/>
|
144
|
+
</date>
|
145
|
+
</group>
|
146
|
+
</group>
|
147
|
+
</group>
|
148
|
+
</if>
|
149
|
+
<else>
|
150
|
+
<!-- Civil law cases -->
|
151
|
+
<group delimiter=", ">
|
152
|
+
<text variable="authority"/>
|
153
|
+
<text variable="title" form="short"/>
|
154
|
+
<date variable="issued" form="text"/>
|
155
|
+
<text variable="container-title" font-style="italic" strip-periods="true"/>
|
156
|
+
<text variable="volume"/>
|
157
|
+
<group delimiter=" ">
|
158
|
+
<text variable="section"/>
|
159
|
+
<label variable="page" form="short"/>
|
160
|
+
<text variable="page"/>
|
161
|
+
</group>
|
162
|
+
<text variable="number"/>
|
163
|
+
<group delimiter=" ">
|
164
|
+
<text variable="genre"/>
|
165
|
+
<names variable="author">
|
166
|
+
<name initialize-with="." font-variant="small-caps"/>
|
167
|
+
</names>
|
168
|
+
</group>
|
169
|
+
</group>
|
170
|
+
</else>
|
171
|
+
</choose>
|
172
|
+
</macro>
|
173
|
+
<macro name="bb-legal-case-subsequent">
|
174
|
+
<group delimiter=", ">
|
175
|
+
<text variable="title" form="short"/>
|
176
|
+
<group delimiter=" ">
|
177
|
+
<choose>
|
178
|
+
<if variable="issue">
|
179
|
+
<text variable="volume" prefix="[" suffix="]"/>
|
180
|
+
<text variable="issue"/>
|
181
|
+
</if>
|
182
|
+
<else>
|
183
|
+
<text variable="volume"/>
|
184
|
+
</else>
|
185
|
+
</choose>
|
186
|
+
<text variable="container-title" form="short"/>
|
187
|
+
<choose>
|
188
|
+
<if variable="locator">
|
189
|
+
<text macro="bb-point-locator-base"/>
|
190
|
+
</if>
|
191
|
+
<else>
|
192
|
+
<text variable="page"/>
|
193
|
+
</else>
|
194
|
+
</choose>
|
195
|
+
</group>
|
196
|
+
</group>
|
197
|
+
</macro>
|
198
|
+
|
199
|
+
<!-- ### LEGISLATION ### -->
|
200
|
+
<macro name="bb-legislation">
|
201
|
+
<choose>
|
202
|
+
<if position="first">
|
203
|
+
<text macro="bb-legislation-first"/>
|
204
|
+
</if>
|
205
|
+
<else-if position="near-note">
|
206
|
+
<text macro="bb-legislation-subsequent"/>
|
207
|
+
</else-if>
|
208
|
+
<else>
|
209
|
+
<text macro="bb-legislation-first"/>
|
210
|
+
</else>
|
211
|
+
</choose>
|
212
|
+
</macro>
|
213
|
+
<macro name="bb-legislation-first">
|
214
|
+
<choose>
|
215
|
+
<if variable="container-title">
|
216
|
+
<text macro="bb-statute-first"/>
|
217
|
+
</if>
|
218
|
+
<else>
|
219
|
+
<text macro="bb-code-first"/>
|
220
|
+
</else>
|
221
|
+
</choose>
|
222
|
+
</macro>
|
223
|
+
<macro name="bb-legislation-subsequent">
|
224
|
+
<choose>
|
225
|
+
<if variable="container-title">
|
226
|
+
<text macro="bb-statute-subsequent"/>
|
227
|
+
</if>
|
228
|
+
<else>
|
229
|
+
<text macro="bb-code-subsequent"/>
|
230
|
+
</else>
|
231
|
+
</choose>
|
232
|
+
</macro>
|
233
|
+
<macro name="bb-statute-first">
|
234
|
+
<group delimiter=", ">
|
235
|
+
<text variable="title"/>
|
236
|
+
<text macro="bb-statute-subsequent"/>
|
237
|
+
</group>
|
238
|
+
</macro>
|
239
|
+
<macro name="bb-statute-subsequent">
|
240
|
+
<group delimiter="">
|
241
|
+
<group delimiter=" ">
|
242
|
+
<text variable="volume"/>
|
243
|
+
<text variable="container-title"/>
|
244
|
+
<text variable="number"/>
|
245
|
+
<text variable="page"/>
|
246
|
+
<choose>
|
247
|
+
<if is-numeric="section">
|
248
|
+
<text term="section" form="symbol"/>
|
249
|
+
<text variable="section"/>
|
250
|
+
</if>
|
251
|
+
</choose>
|
252
|
+
</group>
|
253
|
+
<text macro="bb-point-locator-comma"/>
|
254
|
+
<date prefix=" (" variable="issued" date-parts="year" form="text" suffix=")"/>
|
255
|
+
</group>
|
256
|
+
</macro>
|
257
|
+
<macro name="bb-code-first">
|
258
|
+
<group delimiter=" ">
|
259
|
+
<text variable="title" font-variant="small-caps"/>
|
260
|
+
<group delimiter=" ">
|
261
|
+
<label variable="locator" form="symbol"/>
|
262
|
+
<text variable="locator"/>
|
263
|
+
</group>
|
264
|
+
</group>
|
265
|
+
</macro>
|
266
|
+
<macro name="bb-code-subsequent">
|
267
|
+
<group delimiter=" ">
|
268
|
+
<text variable="title" form="short" font-variant="small-caps"/>
|
269
|
+
<group delimiter=" ">
|
270
|
+
<label variable="locator" form="symbol"/>
|
271
|
+
<text variable="locator"/>
|
272
|
+
</group>
|
273
|
+
</group>
|
274
|
+
</macro>
|
275
|
+
|
276
|
+
<!-- ### BOOK ### -->
|
277
|
+
<macro name="bb-book">
|
278
|
+
<choose>
|
279
|
+
<if position="first">
|
280
|
+
<text macro="bb-book-first"/>
|
281
|
+
</if>
|
282
|
+
<else-if position="ibid">
|
283
|
+
<text macro="bb-ibid"/>
|
284
|
+
</else-if>
|
285
|
+
<else-if position="subsequent">
|
286
|
+
<text macro="bb-book-subsequent"/>
|
287
|
+
</else-if>
|
288
|
+
</choose>
|
289
|
+
</macro>
|
290
|
+
<macro name="bb-book-first">
|
291
|
+
<group delimiter=", ">
|
292
|
+
<text macro="bb-author" font-variant="small-caps"/>
|
293
|
+
<group delimiter=" ">
|
294
|
+
<text variable="title" font-variant="small-caps"/>
|
295
|
+
<group delimiter=" ">
|
296
|
+
<choose>
|
297
|
+
<if locator="page" match="none">
|
298
|
+
<label variable="locator" form="symbol"/>
|
299
|
+
</if>
|
300
|
+
</choose>
|
301
|
+
<text variable="locator"/>
|
302
|
+
</group>
|
303
|
+
<text macro="bb-issued"/>
|
304
|
+
</group>
|
305
|
+
</group>
|
306
|
+
<text variable="references" prefix=" [" suffix="]"/>
|
307
|
+
</macro>
|
308
|
+
<macro name="bb-book-subsequent">
|
309
|
+
<group delimiter=", ">
|
310
|
+
<text macro="bb-author-short" font-variant="small-caps"/>
|
311
|
+
<choose>
|
312
|
+
<if disambiguate="true">
|
313
|
+
<text variable="title" font-variant="small-caps"/>
|
314
|
+
</if>
|
315
|
+
</choose>
|
316
|
+
<group delimiter="">
|
317
|
+
<group delimiter=" ">
|
318
|
+
<text value="supra" font-style="italic"/>
|
319
|
+
<choose>
|
320
|
+
<if variable="first-reference-note-number">
|
321
|
+
<text value="note"/>
|
322
|
+
<text variable="first-reference-note-number"/>
|
323
|
+
</if>
|
324
|
+
</choose>
|
325
|
+
</group>
|
326
|
+
<group delimiter=" ">
|
327
|
+
<choose>
|
328
|
+
<if locator="page">
|
329
|
+
<text value=","/>
|
330
|
+
<text value="at"/>
|
331
|
+
</if>
|
332
|
+
<else>
|
333
|
+
<label variable="locator"/>
|
334
|
+
</else>
|
335
|
+
</choose>
|
336
|
+
<text variable="locator"/>
|
337
|
+
</group>
|
338
|
+
</group>
|
339
|
+
</group>
|
340
|
+
</macro>
|
341
|
+
|
342
|
+
<!-- ### PERIODICAL ### -->
|
343
|
+
<macro name="bb-periodical">
|
344
|
+
<choose>
|
345
|
+
<if position="first">
|
346
|
+
<text macro="bb-periodical-first"/>
|
347
|
+
</if>
|
348
|
+
<else-if position="ibid">
|
349
|
+
<text term="ibid" font-style="italic"/>
|
350
|
+
</else-if>
|
351
|
+
<else-if position="subsequent">
|
352
|
+
<text macro="bb-periodical-subsequent"/>
|
353
|
+
</else-if>
|
354
|
+
</choose>
|
355
|
+
</macro>
|
356
|
+
<macro name="bb-periodical-first">
|
357
|
+
<group delimiter=" ">
|
358
|
+
<group delimiter=", ">
|
359
|
+
<names variable="author">
|
360
|
+
<name/>
|
361
|
+
</names>
|
362
|
+
<text variable="title" font-style="italic"/>
|
363
|
+
<group delimiter=" ">
|
364
|
+
<text variable="volume"/>
|
365
|
+
<text variable="container-title" form="short" font-variant="small-caps"/>
|
366
|
+
<text variable="page-first"/>
|
367
|
+
</group>
|
368
|
+
</group>
|
369
|
+
<text macro="bb-issued"/>
|
370
|
+
</group>
|
371
|
+
</macro>
|
372
|
+
<macro name="bb-periodical-subsequent">
|
373
|
+
<text value="bb-periodical-subsequent"/>
|
374
|
+
</macro>
|
375
|
+
<citation
|
376
|
+
near-note-distance="5"
|
377
|
+
et-al-min="2"
|
378
|
+
et-al-subsequent-min="4"
|
379
|
+
et-al-subsequent-use-first="2"
|
380
|
+
et-al-use-first="1">
|
381
|
+
<layout delimiter="; " suffix=".">
|
382
|
+
<choose>
|
383
|
+
<if type="legal_case">
|
384
|
+
<text macro="bb-legal-case"/>
|
385
|
+
</if>
|
386
|
+
<else-if type="legislation">
|
387
|
+
<text macro="bb-legislation"/>
|
388
|
+
</else-if>
|
389
|
+
<else-if type="book" match="any">
|
390
|
+
<text macro="bb-book"/>
|
391
|
+
</else-if>
|
392
|
+
<else>
|
393
|
+
<text macro="bb-periodical"/>
|
394
|
+
</else>
|
395
|
+
</choose>
|
396
|
+
</layout>
|
397
|
+
</citation>
|
398
|
+
</style>
|
399
|
+
|
400
|
+
"""
|
401
|
+
And the following input:
|
402
|
+
"""
|
403
|
+
[{"author":[{"family":"Smith","given":"John"}],"id":"ITEM-1","issued":{"date-parts":[["1990"]]},"title":"First Book","type":"book"},{"author":[{"family":"Brown","given":"John"}],"id":"ITEM-2","issued":{"date-parts":[["2010"]]},"title":"Second Book","type":"book"},{"author":[{"family":"Green","given":"John"}],"id":"ITEM-3","issued":{"date-parts":[["2010"]]},"title":"Third Book","type":"book"}]
|
404
|
+
"""
|
405
|
+
And I have a citations input
|
406
|
+
When I cite all items
|
407
|
+
Then the result should be:
|
408
|
+
"""
|
409
|
+
>>[0] See <span style="font-variant:small-caps;">John Smith</span>, <span style="font-variant:small-caps;">First Book</span> (1990) for a detailed discussion. See also <span style="font-variant:small-caps;">John Brown</span>, <span style="font-variant:small-caps;">Second Book</span> (2010); <span style="font-variant:small-caps;">John Green</span>, <span style="font-variant:small-caps;">Third Book</span> (2010).
|
410
|
+
"""
|