citeproc 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +0 -3
- data/lib/citeproc/version.rb +1 -1
- metadata +4 -1606
- data/.rspec +0 -3
- data/.simplecov +0 -4
- data/Guardfile +0 -14
- data/cucumber.yml +0 -1
- data/features/affix/InterveningEmpty.feature +0 -52
- data/features/affix/PrefixFullCitationTextOnly.feature +0 -41
- data/features/affix/PrefixWithDecorations.feature +0 -41
- data/features/affix/SuppressDelimiterCharsWhenFullStopInSuffix.feature +0 -410
- data/features/affix/TextNodeWithMacro.feature +0 -40
- data/features/affix/WithCommas.feature +0 -987
- data/features/affix/WordProcessorAffixNoSpace.feature +0 -41
- data/features/api/SuppressAuthor.feature +0 -48
- data/features/api/UpdateItemsDelete.feature +0 -44
- data/features/api/UpdateItemsDeleteDecrementsByCiteDisambiguation.feature +0 -46
- data/features/api/UpdateItemsReshuffle.feature +0 -44
- data/features/bibheader/EntryspacingDefaultValueOne.feature +0 -37
- data/features/bibheader/EntryspacingExplicitValueZero.feature +0 -38
- data/features/bibheader/SecondFieldAlign.feature +0 -38
- data/features/bibheader/SecondFieldAlignWithAuthor.feature +0 -40
- data/features/bibheader/SecondFieldAlignWithNumber.feature +0 -44
- data/features/bibsection/Exclude.feature +0 -47
- data/features/bibsection/Include.feature +0 -47
- data/features/bibsection/Quash.feature +0 -48
- data/features/bibsection/Select.feature +0 -47
- data/features/bugreports/Abnt.feature +0 -59
- data/features/bugreports/AccidentalAllCaps.feature +0 -813
- data/features/bugreports/AllCapsLeakage.feature +0 -818
- data/features/bugreports/ApostropheOnParticle.feature +0 -35
- data/features/bugreports/AsaSpacing.feature +0 -49
- data/features/bugreports/AsmJournals.feature +0 -153
- data/features/bugreports/AuthorYear.feature +0 -343
- data/features/bugreports/AutomaticallyDeleteItemsFails.feature +0 -154
- data/features/bugreports/BadCitationUpdate.feature +0 -39
- data/features/bugreports/BrokenInstitutionalName.feature +0 -390
- data/features/bugreports/ChicagoAuthorDateLooping.feature +0 -388
- data/features/bugreports/ChineseCharactersFamilyOnlyPluralLabel.feature +0 -36
- data/features/bugreports/CitationSortsWithEtAl.feature +0 -74
- data/features/bugreports/CollapseFailure.feature +0 -72
- data/features/bugreports/ContainerTitleShort.feature +0 -45
- data/features/bugreports/ContentPunctuationDuplicate1.feature +0 -40
- data/features/bugreports/ContextualPluralWithMainItemFields.feature +0 -34
- data/features/bugreports/CreepingAddNames.feature +0 -223
- data/features/bugreports/DelimiterBug.feature +0 -984
- data/features/bugreports/DelimitersOnLocator.feature +0 -322
- data/features/bugreports/DemoPageFullCiteCruftOnSubsequent.feature +0 -711
- data/features/bugreports/DisambiguationAddNames.feature +0 -233
- data/features/bugreports/DisambiguationAddNamesBibliography.feature +0 -235
- data/features/bugreports/DroppingGroupDelimiterSpace.feature +0 -37
- data/features/bugreports/DuplicateSpaces.feature +0 -151
- data/features/bugreports/DuplicateSpaces2.feature +0 -333
- data/features/bugreports/DuplicateSpaces3.feature +0 -200
- data/features/bugreports/DuplicateTerminalPunctuationInBibliography.feature +0 -227
- data/features/bugreports/EmptyIfMatchNoneFail.feature +0 -38
- data/features/bugreports/EtAlSubsequent.feature +0 -41
- data/features/bugreports/FourAndFour.feature +0 -715
- data/features/bugreports/FrenchApostrophe.feature +0 -34
- data/features/bugreports/GreekStyleProblems.feature +0 -1201
- data/features/bugreports/GreekStyleTwoEditors.feature +0 -1201
- data/features/bugreports/IeeePunctuation.feature +0 -151
- data/features/bugreports/LabelsOutOfPlace.feature +0 -715
- data/features/bugreports/MovePunctuationInsideQuotesForLocator.feature +0 -714
- data/features/bugreports/NoEventInNestedMacroWithOldProcessor.feature +0 -120
- data/features/bugreports/NoTitle.feature +0 -346
- data/features/bugreports/NumberAffixEscape.feature +0 -35
- data/features/bugreports/NumberInMacroWithVerticalAlign.feature +0 -36
- data/features/bugreports/NumericStyleFirstRefMultipleCiteFailure.feature +0 -148
- data/features/bugreports/OldMhraDisambiguationFailure.feature +0 -411
- data/features/bugreports/ProcessorHang1.feature +0 -209
- data/features/bugreports/SingleQuote.feature +0 -151
- data/features/bugreports/SingletonIfMatchNoneFail.feature +0 -38
- data/features/bugreports/SortSecondaryKey.feature +0 -233
- data/features/bugreports/SortSecondaryKeyBibliography.feature +0 -235
- data/features/bugreports/SortedIeeeItalicsFail.feature +0 -296
- data/features/bugreports/ThesisUniversityAppearsTwice.feature +0 -715
- data/features/bugreports/TitleCase.feature +0 -33
- data/features/bugreports/TwoCitesPlusOneBackref.feature +0 -963
- data/features/bugreports/TwoFullStops.feature +0 -394
- data/features/bugreports/UndefinedInName.feature +0 -199
- data/features/bugreports/UndefinedInName2.feature +0 -184
- data/features/bugreports/UndefinedInName3.feature +0 -351
- data/features/bugreports/UndefinedNotString.feature +0 -144
- data/features/bugreports/UndefinedStr.feature +0 -151
- data/features/bugreports/UnisaHarvardInitialization.feature +0 -62
- data/features/bugreports/YearSuffixInHarvard1.feature +0 -205
- data/features/bugreports/YearSuffixLingers.feature +0 -55
- data/features/bugreports/disambiguate.feature +0 -343
- data/features/bugreports/ikeyOne.feature +0 -277
- data/features/bugreports/parenthesis.feature +0 -333
- data/features/bugreports/parseName.feature +0 -46
- data/features/bugreports/undefinedCrash.feature +0 -150
- data/features/collapse/AuthorCollapse.feature +0 -41
- data/features/collapse/AuthorCollapseDifferentAuthorsOneWithEtAl.feature +0 -43
- data/features/collapse/AuthorCollapseNoDate.feature +0 -41
- data/features/collapse/AuthorCollapseNoDateSorted.feature +0 -45
- data/features/collapse/CitationNumberRangesInsert.feature +0 -39
- data/features/collapse/CitationNumberRangesMixed.feature +0 -39
- data/features/collapse/CitationNumberRangesMixed2.feature +0 -39
- data/features/collapse/CitationNumberRangesMixed3.feature +0 -39
- data/features/collapse/CitationNumberRangesOneOnly.feature +0 -41
- data/features/collapse/CitationNumberRangesWithAffixes.feature +0 -35
- data/features/collapse/CitationNumberRangesWithAffixesGrouped.feature +0 -51
- data/features/collapse/CitationNumberRangesWithAffixesGroupedLocator.feature +0 -51
- data/features/collapse/CitationNumberRangesWithAffixesNoCollapse.feature +0 -36
- data/features/collapse/NumericDuplicate.feature +0 -37
- data/features/collapse/NumericDuplicate2.feature +0 -34
- data/features/collapse/TrailingDelimiter.feature +0 -57
- data/features/collapse/YearSuffixCollapse.feature +0 -46
- data/features/collapse/YearSuffixCollapseNoRange.feature +0 -46
- data/features/collapse/YearSuffixCollapseNoYearSuffixDelimiter.feature +0 -45
- data/features/collapse/YearSuffixImplicitCollapseNoYearSuffixDelimiter.feature +0 -44
- data/features/condition/EmptyDate.feature +0 -42
- data/features/condition/EmptyIsNumericFalse.feature +0 -40
- data/features/condition/EmptyIsUncertainDateFalse.feature +0 -40
- data/features/condition/EmptyShortTitleFalse.feature +0 -40
- data/features/condition/FirstNullAny.feature +0 -38
- data/features/condition/IsNumeric.feature +0 -49
- data/features/condition/LocatorIsFalse.feature +0 -50
- data/features/condition/MatchAll.feature +0 -43
- data/features/condition/NameAndTextVars.feature +0 -56
- data/features/condition/NumberIsNumeric.feature +0 -40
- data/features/condition/NumeralIsNumeric.feature +0 -40
- data/features/condition/NumeralWithTextIsNumeric.feature +0 -40
- data/features/condition/RefTypeBranching.feature +0 -119
- data/features/condition/SingletonIfMatchNone.feature +0 -41
- data/features/condition/TextIsNotNumeric.feature +0 -40
- data/features/condition/VariableAll.feature +0 -41
- data/features/condition/VariableAny.feature +0 -41
- data/features/condition/VariableNone.feature +0 -41
- data/features/date/Accessed.feature +0 -33
- data/features/date/DateAD.feature +0 -37
- data/features/date/DateBC.feature +0 -37
- data/features/date/DateNoDateNoTest.feature +0 -37
- data/features/date/DateNoDateWithTest.feature +0 -45
- data/features/date/DayOrdinalDayOneOnly.feature +0 -44
- data/features/date/IgnoreNonexistentSort.feature +0 -37
- data/features/date/InPress.feature +0 -38
- data/features/date/January.feature +0 -33
- data/features/date/KeyVariable.feature +0 -46
- data/features/date/LiteralFailGracefullyIfNoValue.feature +0 -38
- data/features/date/LocalizedDateFormats-af-ZA.feature +0 -57
- data/features/date/LocalizedDateFormats-ar-AR.feature +0 -57
- data/features/date/LocalizedDateFormats-bg-BG.feature +0 -57
- data/features/date/LocalizedDateFormats-ca-AD.feature +0 -57
- data/features/date/LocalizedDateFormats-cs-CZ.feature +0 -57
- data/features/date/LocalizedDateFormats-da-DK.feature +0 -57
- data/features/date/LocalizedDateFormats-de-AT.feature +0 -57
- data/features/date/LocalizedDateFormats-de-CH.feature +0 -57
- data/features/date/LocalizedDateFormats-de-DE.feature +0 -57
- data/features/date/LocalizedDateFormats-el-GR.feature +0 -57
- data/features/date/LocalizedDateFormats-en-US.feature +0 -57
- data/features/date/LocalizedDateFormats-es-ES.feature +0 -57
- data/features/date/LocalizedDateFormats-et-EE.feature +0 -57
- data/features/date/LocalizedDateFormats-fr-FR.feature +0 -57
- data/features/date/LocalizedDateFormats-he-IL.feature +0 -57
- data/features/date/LocalizedDateFormats-hu-HU.feature +0 -57
- data/features/date/LocalizedDateFormats-is-IS.feature +0 -57
- data/features/date/LocalizedDateFormats-it-IT.feature +0 -57
- data/features/date/LocalizedDateFormats-ja-JP.feature +0 -57
- data/features/date/LocalizedDateFormats-kh-KH.feature +0 -46
- data/features/date/LocalizedDateFormats-ko-KR.feature +0 -57
- data/features/date/LocalizedDateFormats-mn-MN.feature +0 -57
- data/features/date/LocalizedDateFormats-nb-NO.feature +0 -57
- data/features/date/LocalizedDateFormats-nl-NL.feature +0 -57
- data/features/date/LocalizedDateFormats-pl-PL.feature +0 -57
- data/features/date/LocalizedDateFormats-pt-BR.feature +0 -57
- data/features/date/LocalizedDateFormats-pt-PT.feature +0 -57
- data/features/date/LocalizedDateFormats-ro-RO.feature +0 -57
- data/features/date/LocalizedDateFormats-ru-RU.feature +0 -57
- data/features/date/LocalizedDateFormats-sk-SK.feature +0 -57
- data/features/date/LocalizedDateFormats-sl-SL.feature +0 -57
- data/features/date/LocalizedDateFormats-sr-RS.feature +0 -57
- data/features/date/LocalizedDateFormats-sv-SE.feature +0 -57
- data/features/date/LocalizedDateFormats-th-TH.feature +0 -57
- data/features/date/LocalizedDateFormats-tr-TR.feature +0 -57
- data/features/date/LocalizedDateFormats-uk-UA.feature +0 -57
- data/features/date/LocalizedDateFormats-vi-VN.feature +0 -57
- data/features/date/LocalizedDateFormats-zh-CN.feature +0 -57
- data/features/date/LocalizedDateFormats-zh-TW.feature +0 -57
- data/features/date/LocalizedNumericDefault.feature +0 -33
- data/features/date/LocalizedNumericDefaultMissingDay.feature +0 -33
- data/features/date/LocalizedNumericDefaultWithAffixes.feature +0 -33
- data/features/date/LocalizedNumericYear.feature +0 -33
- data/features/date/LocalizedNumericYearMonth.feature +0 -33
- data/features/date/LocalizedNumericYearRange.feature +0 -33
- data/features/date/LocalizedNumericYearWithAffixes.feature +0 -33
- data/features/date/LocalizedTextDefault.feature +0 -33
- data/features/date/LocalizedTextDefaultMissingDay.feature +0 -33
- data/features/date/LocalizedTextDefaultWithAffixes.feature +0 -33
- data/features/date/LocalizedTextInStyleLocaleWithTextCase.feature +0 -42
- data/features/date/LocalizedTextMonthFormOverride.feature +0 -35
- data/features/date/LocalizedTextYear.feature +0 -33
- data/features/date/LocalizedTextYearMonth.feature +0 -33
- data/features/date/LocalizedTextYearWithAffixes.feature +0 -33
- data/features/date/LocalizedWithInStyleFormatting.feature +0 -35
- data/features/date/LoneJapaneseMonth.feature +0 -33
- data/features/date/LongMonth.feature +0 -37
- data/features/date/LopsidedDataYearSuffixCollapse.feature +0 -43
- data/features/date/MaskNonexistentWithCondition.feature +0 -42
- data/features/date/NegativeDateSort.feature +0 -40
- data/features/date/NegativeDateSortViaMacro.feature +0 -43
- data/features/date/NegativeDateSortViaMacroOnYearMonthOnly.feature +0 -53
- data/features/date/NoDate.feature +0 -45
- data/features/date/NonexistentSortReverseBibliography.feature +0 -47
- data/features/date/NonexistentSortReverseCitation.feature +0 -37
- data/features/date/OtherAlone.feature +0 -37
- data/features/date/OtherWithDate.feature +0 -37
- data/features/date/RawParseSimpleDate.feature +0 -37
- data/features/date/RawSeasonRange1.feature +0 -33
- data/features/date/RawSeasonRange2.feature +0 -33
- data/features/date/RawSeasonRange3.feature +0 -33
- data/features/date/SeasonSubstituteInGroup.feature +0 -38
- data/features/date/SortEmptyDatesBibliography.feature +0 -53
- data/features/date/SortEmptyDatesCitation.feature +0 -42
- data/features/date/String.feature +0 -36
- data/features/date/TextFormFulldateDayRange.feature +0 -37
- data/features/date/TextFormFulldateMonthRange.feature +0 -37
- data/features/date/TextFormFulldateYearRange.feature +0 -37
- data/features/date/TextFormMonthdateMonthRange.feature +0 -37
- data/features/date/TextFormMonthdateYearRange.feature +0 -37
- data/features/date/TextFormYeardateYearRange.feature +0 -37
- data/features/date/TextFormYeardateYearRangeOpen.feature +0 -37
- data/features/date/Uncertain.feature +0 -42
- data/features/date/VariousInvalidDates.feature +0 -37
- data/features/date/YearSuffixDelimiter.feature +0 -44
- data/features/date/YearSuffixImplicitWithNoDate.feature +0 -54
- data/features/date/YearSuffixImplicitWithNoDateOneOnly.feature +0 -54
- data/features/date/YearSuffixWithNoDate.feature +0 -54
- data/features/decorations/AndTermUnaffectedByNameDecorations.feature +0 -38
- data/features/decorations/Baseline.feature +0 -48
- data/features/decorations/NestedQuotes.feature +0 -33
- data/features/decorations/NestedQuotesInnerReverse.feature +0 -33
- data/features/decorations/NoNormalWithoutDecoration.feature +0 -41
- data/features/decorations/SimpleFlipFlop.feature +0 -33
- data/features/decorations/SimpleQuotes.feature +0 -33
- data/features/disambiguate/AddNamesFailure.feature +0 -43
- data/features/disambiguate/AddNamesFailureWithAddGivenname.feature +0 -44
- data/features/disambiguate/AddNamesSuccess.feature +0 -43
- data/features/disambiguate/AllNamesBaseNameCountOnFailureIfYearSuffixAvailable.feature +0 -55
- data/features/disambiguate/AllNamesGenerally.feature +0 -44
- data/features/disambiguate/AllNamesSimpleSequence.feature +0 -42
- data/features/disambiguate/AllNamesWithInitialsGenerally.feature +0 -44
- data/features/disambiguate/AndreaEg1a.feature +0 -47
- data/features/disambiguate/AndreaEg1b.feature +0 -48
- data/features/disambiguate/AndreaEg1c.feature +0 -47
- data/features/disambiguate/AndreaEg2.feature +0 -49
- data/features/disambiguate/AndreaEg3.feature +0 -50
- data/features/disambiguate/AndreaEg4.feature +0 -52
- data/features/disambiguate/AndreaEg5.feature +0 -53
- data/features/disambiguate/BasedOnEtAlSubsequent.feature +0 -44
- data/features/disambiguate/BasedOnSubsequentFormWithBackref.feature +0 -63
- data/features/disambiguate/BasedOnSubsequentFormWithLocator.feature +0 -67
- data/features/disambiguate/ByCiteBaseNameCountOnFailureIfYearSuffixAvailable.feature +0 -47
- data/features/disambiguate/ByCiteDisambiguateCondition.feature +0 -54
- data/features/disambiguate/ByCiteGivennameExpandCrossNestedNames.feature +0 -40
- data/features/disambiguate/ByCiteGivennameNoShortFormInitializeWith.feature +0 -39
- data/features/disambiguate/ByCiteGivennameShortFormInitializeWith.feature +0 -40
- data/features/disambiguate/ByCiteGivennameShortFormNoInitializeWith.feature +0 -39
- data/features/disambiguate/ByCiteIncremental1.feature +0 -355
- data/features/disambiguate/ByCiteIncremental2.feature +0 -352
- data/features/disambiguate/ByCiteIsDefault.feature +0 -250
- data/features/disambiguate/ByCiteMinimalGivennameExpandMinimalNames.feature +0 -48
- data/features/disambiguate/ByCiteRetainNamesOnFailureIfYearSuffixNotAvailable.feature +0 -46
- data/features/disambiguate/ByCiteTwoAuthorsSameCite.feature +0 -38
- data/features/disambiguate/ByCiteTwoAuthorsSameFamilyName.feature +0 -44
- data/features/disambiguate/CitationLabelDefault.feature +0 -34
- data/features/disambiguate/CitationLabelInData.feature +0 -34
- data/features/disambiguate/DifferentSpacingInInitials.feature +0 -40
- data/features/disambiguate/DisambiguateTrueAndYearSuffixOne.feature +0 -220
- data/features/disambiguate/DisambiguateTrueAndYearSuffixTwo.feature +0 -220
- data/features/disambiguate/DisambiguateWithThree.feature +0 -48
- data/features/disambiguate/DisambiguateWithThree2.feature +0 -91
- data/features/disambiguate/DisambiguationHang.feature +0 -48
- data/features/disambiguate/ExtraTextCitation.feature +0 -44
- data/features/disambiguate/FailWithYearSuffix.feature +0 -390
- data/features/disambiguate/FamilyNameOnly.feature +0 -43
- data/features/disambiguate/HonorFullnameInBibliography.feature +0 -49
- data/features/disambiguate/ImplicitYearSuffixOnceOnly.feature +0 -56
- data/features/disambiguate/IncrementalExtraText.feature +0 -55
- data/features/disambiguate/InitializeWithButNoDisambiguation.feature +0 -292
- data/features/disambiguate/LastOnlyFailWithByCite.feature +0 -49
- data/features/disambiguate/NoTextElementUsesYearSuffixVariable.feature +0 -39
- data/features/disambiguate/PrimaryNameGenerally.feature +0 -42
- data/features/disambiguate/PrimaryNameWithInitialsLimitedToPrimary.feature +0 -46
- data/features/disambiguate/SetsOfNames.feature +0 -205
- data/features/disambiguate/SkipAccessedYearSuffix.feature +0 -258
- data/features/disambiguate/ThreeNoAuthorNoTitleEntries.feature +0 -63
- data/features/disambiguate/ToInitialOnly.feature +0 -39
- data/features/disambiguate/Trigraph.feature +0 -36
- data/features/disambiguate/YearCollapseWithInstitution.feature +0 -51
- data/features/disambiguate/YearSuffixAndSort.feature +0 -50
- data/features/disambiguate/YearSuffixAtTwoLevels.feature +0 -45
- data/features/disambiguate/YearSuffixFiftyTwoEntries.feature +0 -48
- data/features/disambiguate/YearSuffixFiftyTwoEntriesByCite.feature +0 -48
- data/features/disambiguate/YearSuffixMacroSameYearExplicit.feature +0 -45
- data/features/disambiguate/YearSuffixMacroSameYearImplicit.feature +0 -42
- data/features/disambiguate/YearSuffixMidInsert.feature +0 -391
- data/features/disambiguate/YearSuffixMixedDates.feature +0 -52
- data/features/disambiguate/YearSuffixTwoPairsBibliography.feature +0 -63
- data/features/disambiguate/YearSuffixTwoPairsFirstNameBibliography.feature +0 -65
- data/features/disambiguate/YearSuffixTwoPairsFullNamesBibliography.feature +0 -63
- data/features/disambiguate/YearSuffixWithEtAlSubequent.feature +0 -51
- data/features/disambiguate/YearSuffixWithMixedCreatorTypes.feature +0 -53
- data/features/discretionary/AuthorDateAuthorOnlyThenSuppressAuthor.feature +0 -46
- data/features/discretionary/AuthorOnly.feature +0 -42
- data/features/discretionary/CitationNumberAuthorOnlyThenSuppressAuthor.feature +0 -41
- data/features/discretionary/CitationNumberSuppressAuthor.feature +0 -40
- data/features/discretionary/SuppressAuthorSolo.feature +0 -45
- data/features/discretionary/SuppressEditorSolo.feature +0 -45
- data/features/discretionary/SuppressEditorSubstitute.feature +0 -45
- data/features/discretionary/SuppressMultipleAuthors.feature +0 -45
- data/features/display/AuthorAsHeading.feature +0 -80
- data/features/display/DisplayBlock.feature +0 -54
- data/features/display/SecondFieldAlignClone.feature +0 -65
- data/features/display/SecondFieldAlignMigratePunctuation.feature +0 -154
- data/features/etal/ShortFormOfName.feature +0 -38
- data/features/etal/UseZeroFirst.feature +0 -47
- data/features/flipflop/Apostrophes.feature +0 -1064
- data/features/flipflop/BoldfaceNodeLevelMarkup.feature +0 -33
- data/features/flipflop/ItalicsFlipped.feature +0 -35
- data/features/flipflop/ItalicsSimple.feature +0 -39
- data/features/flipflop/ItalicsWithOk.feature +0 -48
- data/features/flipflop/ItalicsWithOkAndTextcase.feature +0 -48
- data/features/flipflop/LeadingSingleQuote.feature +0 -33
- data/features/flipflop/QuotesInFieldNotOnNode.feature +0 -33
- data/features/flipflop/QuotesNodeLevelMarkup.feature +0 -40
- data/features/flipflop/SingleQuotesOnItalics.feature +0 -33
- data/features/flipflop/SmallCaps.feature +0 -36
- data/features/flipflop/StartingApostrophe.feature +0 -33
- data/features/form/TitleShort.feature +0 -33
- data/features/form/TitleShortNoLong.feature +0 -33
- data/features/form/TitleTestNoLongFalse.feature +0 -40
- data/features/fullstyles/ABdNT.feature +0 -675
- data/features/fullstyles/APA.feature +0 -361
- data/features/fullstyles/ChicagoArticleTitleQuestion.feature +0 -390
- data/features/fullstyles/ChicagoAuthorDateSimple.feature +0 -394
- data/features/fullstyles/ChicagoNoteWithBibliographyWithPublisher.feature +0 -716
- data/features/group/ComplexNesting.feature +0 -397
- data/features/group/ShortOutputOnly.feature +0 -35
- data/features/group/SuppressTermWhenNoOutputFromPartialDate.feature +0 -39
- data/features/group/SuppressValueWithEmptySubgroup.feature +0 -46
- data/features/group/SuppressWithEmptyNestedDateNode.feature +0 -202
- data/features/integration/CitationSort.feature +0 -50
- data/features/integration/CitationSortTwice.feature +0 -51
- data/features/integration/CrossCitationIbidOnInsert.feature +0 -82
- data/features/integration/DeleteName.feature +0 -36
- data/features/integration/DisambiguateAddGivenname1.feature +0 -45
- data/features/integration/DisambiguateAddGivenname2.feature +0 -45
- data/features/integration/DuplicateItem.feature +0 -45
- data/features/integration/DuplicateItem2.feature +0 -45
- data/features/integration/FirstReferenceNoteNumberPositionChange.feature +0 -62
- data/features/integration/IbidOnInsert.feature +0 -50
- data/features/integration/IbidWithDifferentLocators.feature +0 -59
- data/features/integration/SimpleFirstReferenceNoteNumber.feature +0 -61
- data/features/integration/SimpleIbid.feature +0 -57
- data/features/integration/SubsequentWhenInterveningFootnote.feature +0 -51
- data/features/integration/YearSuffixOnOffOn.feature +0 -46
- data/features/label/CollapsedPageNumberPluralDetection.feature +0 -42
- data/features/label/EditorTranslator1.feature +0 -556
- data/features/label/EmptyLabelVanish.feature +0 -43
- data/features/label/ImplicitForm.feature +0 -36
- data/features/label/NoFirstCharCapWithInTextClass.feature +0 -38
- data/features/label/NonexistentNameVariableLabel.feature +0 -36
- data/features/label/PageWithEmbeddedLabel.feature +0 -35
- data/features/label/PluralNumberOfVolumes.feature +0 -36
- data/features/label/PluralPagesWithAlphaPrefix.feature +0 -37
- data/features/locale/EffectOfStyleDefinition.feature +0 -38
- data/features/locale/EmptyDate.feature +0 -41
- data/features/locale/EmptyPlusOverrideDate.feature +0 -48
- data/features/locale/EmptyPlusOverrideStyleOpt.feature +0 -39
- data/features/locale/EmptyPlusOverrideTerm.feature +0 -44
- data/features/locale/EmptyStyleOpt.feature +0 -36
- data/features/locale/EmptyTerm.feature +0 -39
- data/features/locale/ForceEmptyAndOthersTerm.feature +0 -41
- data/features/locale/ForceEmptyEtAlTerm.feature +0 -40
- data/features/locale/NonExistentLocaleDef.feature +0 -48
- data/features/locale/OverloadWithEmptyString.feature +0 -46
- data/features/locale/PageRangeDelimiterTermDefined.feature +0 -38
- data/features/locale/PageRangeDelimiterTermFrenchUndef.feature +0 -34
- data/features/locale/PageRangeDelimiterTermUndefined.feature +0 -33
- data/features/locale/SpecificDate.feature +0 -41
- data/features/locale/SpecificStyleOpt.feature +0 -36
- data/features/locale/SpecificTerm.feature +0 -39
- data/features/locale/TermInSort.feature +0 -77
- data/features/locale/TitleCaseEmptyLangEmptyLocale.feature +0 -33
- data/features/locale/TitleCaseEmptyLangNonEnglishLocale.feature +0 -34
- data/features/locale/TitleCaseEnglishLangUpperEmptyLocale.feature +0 -33
- data/features/locale/TitleCaseGarbageLangEmptyLocale.feature +0 -33
- data/features/locale/TitleCaseGarbageLangEnglishLocale.feature +0 -34
- data/features/locale/TitleCaseGarbageLangNonEnglishLocale.feature +0 -34
- data/features/locale/TitleCaseNonEnglishLangUpperEmptyLocale.feature +0 -33
- data/features/locale/UnknownTerm.feature +0 -34
- data/features/locator/SimpleLocators.feature +0 -46
- data/features/locator/TermSelection.feature +0 -40
- data/features/locator/TrickyEntryForPlurals.feature +0 -40
- data/features/locator/WorkaroundTestForSubVerbo.feature +0 -47
- data/features/magic/AllowRepeatDateRenderings.feature +0 -47
- data/features/magic/CapitalizeFirstOccurringNameParticle.feature +0 -35
- data/features/magic/CapitalizeFirstOccurringTerm.feature +0 -33
- data/features/magic/CitationLabelInBibliography.feature +0 -234
- data/features/magic/CitationLabelInCitation.feature +0 -224
- data/features/magic/EntrySpacingDouble.feature +0 -52
- data/features/magic/HangingIndent.feature +0 -52
- data/features/magic/ImplicitYearSuffixDelimiter.feature +0 -38
- data/features/magic/ImplicitYearSuffixExplicitDelimiter.feature +0 -52
- data/features/magic/LineSpacingDouble.feature +0 -52
- data/features/magic/LineSpacingTripleStretch.feature +0 -52
- data/features/magic/NameParticle.feature +0 -35
- data/features/magic/NameSuffixNoComma.feature +0 -35
- data/features/magic/NameSuffixWithComma.feature +0 -35
- data/features/magic/NumberRangeEnglish.feature +0 -33
- data/features/magic/NumberRangeFrench.feature +0 -34
- data/features/magic/PunctuationInQuoteDefaultEnglishDelimiter.feature +0 -41
- data/features/magic/PunctuationInQuoteDefaultEnglishSuffix.feature +0 -39
- data/features/magic/PunctuationInQuoteDelimiterTrue.feature +0 -44
- data/features/magic/PunctuationInQuoteFalse.feature +0 -44
- data/features/magic/PunctuationInQuoteFalseSuppressExtra.feature +0 -37
- data/features/magic/PunctuationInQuoteNested.feature +0 -47
- data/features/magic/PunctuationInQuoteSuffixTrue.feature +0 -42
- data/features/magic/PunctuationInQuoteTrueSuppressExtra.feature +0 -37
- data/features/magic/QuotesAndBraces1.feature +0 -36
- data/features/magic/QuotesAndBraces2.feature +0 -36
- data/features/magic/SecondFieldAlign.feature +0 -57
- data/features/magic/StripPeriodsExcludeAffixes.feature +0 -44
- data/features/magic/StripPeriodsFalse.feature +0 -34
- data/features/magic/StripPeriodsTrue.feature +0 -34
- data/features/magic/StripPeriodsTrueShortForm.feature +0 -46
- data/features/magic/SubsequentAuthorSubstitute.feature +0 -55
- data/features/magic/SubsequentAuthorSubstituteNotFooled.feature +0 -497
- data/features/magic/SubsequentAuthorSubstituteOfTitleField.feature +0 -55
- data/features/magic/SuperscriptChars.feature +0 -241
- data/features/magic/SuppressDuplicateVariableRendering.feature +0 -43
- data/features/magic/SuppressExtraTerminalPunctuationAfterTerm.feature +0 -410
- data/features/magic/SuppressLayoutDelimiterIfPrefixComma.feature +0 -34
- data/features/magic/TermCapitalizationWithPrefix.feature +0 -49
- data/features/magic/TextRangeEnglish.feature +0 -33
- data/features/magic/TextRangeFrench.feature +0 -34
- data/features/name/AfterInvertedName.feature +0 -42
- data/features/name/AllCapsInitialsUntouched.feature +0 -46
- data/features/name/AndTextDelimiterPrecedesLastAlways.feature +0 -35
- data/features/name/ArticularNameAsSortOrder.feature +0 -35
- data/features/name/ArticularPlain.feature +0 -35
- data/features/name/ArticularShortForm.feature +0 -35
- data/features/name/ArticularShortFormCommaSuffix.feature +0 -35
- data/features/name/ArticularWithComma.feature +0 -35
- data/features/name/ArticularWithCommaNameAsSortOrder.feature +0 -35
- data/features/name/Asian.feature +0 -35
- data/features/name/AsianGlyphs.feature +0 -35
- data/features/name/AuthorCount.feature +0 -39
- data/features/name/AuthorCountWithMultipleVariables.feature +0 -37
- data/features/name/AuthorCountWithSameVarContentAndCombinedTermFail.feature +0 -45
- data/features/name/AuthorCountWithSameVarContentAndCombinedTermSucceed.feature +0 -45
- data/features/name/AuthorEditorCount.feature +0 -37
- data/features/name/CelticClanName.feature +0 -35
- data/features/name/CeltsAndToffsCrowdedInitials.feature +0 -35
- data/features/name/CeltsAndToffsNoHyphens.feature +0 -36
- data/features/name/CeltsAndToffsSpacedInitials.feature +0 -35
- data/features/name/CeltsAndToffsWithHyphens.feature +0 -36
- data/features/name/CollapseRoleLabels.feature +0 -46
- data/features/name/Delimiter.feature +0 -37
- data/features/name/EditorTranslatorBoth.feature +0 -189
- data/features/name/EditorTranslatorSameEmptyTerm.feature +0 -41
- data/features/name/EditorTranslatorSameWithTerm.feature +0 -36
- data/features/name/EditorTranslatorWithTranslatorOnly.feature +0 -35
- data/features/name/EditorTranslatorWithTranslatorOnlyBib.feature +0 -189
- data/features/name/EtAlUseLast.feature +0 -47
- data/features/name/FormattingOfParticles.feature +0 -37
- data/features/name/GreekSimple.feature +0 -35
- data/features/name/HebrewAnd.feature +0 -40
- data/features/name/HierarchicalDelimiter.feature +0 -35
- data/features/name/HyphenatedFirstName.feature +0 -35
- data/features/name/HyphenatedNonDroppingParticle1.feature +0 -51
- data/features/name/HyphenatedNonDroppingParticle2.feature +0 -51
- data/features/name/InheritAttributesEtAlStyle.feature +0 -37
- data/features/name/Institution.feature +0 -35
- data/features/name/InstitutionDecoration.feature +0 -45
- data/features/name/LabelAfterPlural.feature +0 -36
- data/features/name/LabelAfterPluralDecorations.feature +0 -38
- data/features/name/LongAbbreviation.feature +0 -35
- data/features/name/LowercaseSurnameSuffix.feature +0 -35
- data/features/name/MixedFormatsInitialSortOrderAllWithDecorationsEtAl.feature +0 -39
- data/features/name/MixedFormatsInitialSortOrderFirstWithDecorationsEtAl.feature +0 -39
- data/features/name/MixedFormatsInitialsWithDecorationsEtAl.feature +0 -39
- data/features/name/MixedFormatsPrimaryDecorations.feature +0 -37
- data/features/name/MixedFormatsWithDecorationsEtAl.feature +0 -39
- data/features/name/MixedFormatsWithDecorationsPlusAlternateEtAlDecorations.feature +0 -40
- data/features/name/MixedFormatsWithDecorationsPlusEtAlDecorations.feature +0 -40
- data/features/name/MultipleLiteral.feature +0 -35
- data/features/name/NoNameNode.feature +0 -33
- data/features/name/NonDroppingParticleDefault.feature +0 -35
- data/features/name/OnlyFamilyname.feature +0 -35
- data/features/name/OnlyGivenname.feature +0 -35
- data/features/name/OverridingHierarchicalDelimiter.feature +0 -36
- data/features/name/ParseNames.feature +0 -39
- data/features/name/ParsedCommaDelimitedDroppingParticleNormalOrderingWithAffixes.feature +0 -38
- data/features/name/ParsedCommaDelimitedDroppingParticleNormalOrderingWithoutAffixes.feature +0 -36
- data/features/name/ParsedCommaDelimitedDroppingParticleSortOrderingWithoutAffixes.feature +0 -38
- data/features/name/ParsedDroppingParticleWithAffixes.feature +0 -39
- data/features/name/ParsedDroppingParticleWithApostrophe.feature +0 -38
- data/features/name/ParsedNonDroppingParticleWithAffixes.feature +0 -39
- data/features/name/ParsedNonDroppingParticleWithApostrophe.feature +0 -39
- data/features/name/ParsedUpperCaseNonDroppingParticle.feature +0 -39
- data/features/name/ParticleCaps1.feature +0 -40
- data/features/name/ParticleCaps2.feature +0 -46
- data/features/name/ParticleCaps3.feature +0 -47
- data/features/name/ParticleFormatting.feature +0 -38
- data/features/name/ParticlesDemoteNonDroppingNever.feature +0 -99
- data/features/name/PeriodAfterInitials.feature +0 -38
- data/features/name/QuashOrdinaryVariableRenderedViaSubstitute.feature +0 -39
- data/features/name/RomanianTwo.feature +0 -36
- data/features/name/SemicolonWithAnd.feature +0 -38
- data/features/name/SplitInitials.feature +0 -35
- data/features/name/SubsequentAuthorSubstituteMultipleNames.feature +0 -50
- data/features/name/SubstituteInheritLabel.feature +0 -44
- data/features/name/SubstituteMacroInheritDecorations.feature +0 -42
- data/features/name/SubstituteName.feature +0 -38
- data/features/name/SubstituteOnDateGroupSpanFail.feature +0 -45
- data/features/name/SubstituteOnGroupSpanGroupSpanFail.feature +0 -46
- data/features/name/SubstituteOnMacroGroupSpanFail.feature +0 -46
- data/features/name/SubstituteOnNamesSingletonGroupSpanFail.feature +0 -42
- data/features/name/SubstituteOnNamesSpanGroupSpanFail.feature +0 -44
- data/features/name/SubstituteOnNamesSpanNamesSpanFail.feature +0 -43
- data/features/name/SubstituteOnNumberGroupSpanFail.feature +0 -42
- data/features/name/TwoRolesSameRenderingSeparateRoleLabels.feature +0 -43
- data/features/name/WesternArticularLowercase.feature +0 -35
- data/features/name/WesternPrimaryFontStyle.feature +0 -37
- data/features/name/WesternPrimaryFontStyleTwoAuthors.feature +0 -37
- data/features/name/WesternSimple.feature +0 -35
- data/features/name/WesternTwoAuthors.feature +0 -35
- data/features/name/namepartAffixes.feature +0 -38
- data/features/name/namepartAffixesNameAsSortOrder.feature +0 -39
- data/features/name/namepartAffixesNameAsSortOrderDemoteNonDroppingParticle.feature +0 -39
- data/features/nameattr/AndOnBibliographyInBibliography.feature +0 -43
- data/features/nameattr/AndOnBibliographyInCitation.feature +0 -43
- data/features/nameattr/AndOnCitationInBibliography.feature +0 -45
- data/features/nameattr/AndOnCitationInCitation.feature +0 -36
- data/features/nameattr/AndOnNamesInBibliography.feature +0 -42
- data/features/nameattr/AndOnNamesInCitation.feature +0 -35
- data/features/nameattr/AndOnStyleInBibliography.feature +0 -43
- data/features/nameattr/AndOnStyleInCitation.feature +0 -43
- data/features/nameattr/DelimiterPrecedesEtAlOnBibliographyInBibliography.feature +0 -43
- data/features/nameattr/DelimiterPrecedesEtAlOnBibliographyInCitation.feature +0 -43
- data/features/nameattr/DelimiterPrecedesEtAlOnCitationInBibliography.feature +0 -45
- data/features/nameattr/DelimiterPrecedesEtAlOnCitationInCitation.feature +0 -36
- data/features/nameattr/DelimiterPrecedesEtAlOnNamesInBibliography.feature +0 -42
- data/features/nameattr/DelimiterPrecedesEtAlOnNamesInCitation.feature +0 -35
- data/features/nameattr/DelimiterPrecedesEtAlOnStyleInBibliography.feature +0 -43
- data/features/nameattr/DelimiterPrecedesEtAlOnStyleInCitation.feature +0 -36
- data/features/nameattr/DelimiterPrecedesLastOnBibliographyInBibliography.feature +0 -43
- data/features/nameattr/DelimiterPrecedesLastOnBibliographyInCitation.feature +0 -43
- data/features/nameattr/DelimiterPrecedesLastOnCitationInBibliography.feature +0 -45
- data/features/nameattr/DelimiterPrecedesLastOnCitationInCitation.feature +0 -36
- data/features/nameattr/DelimiterPrecedesLastOnNamesInBibliography.feature +0 -42
- data/features/nameattr/DelimiterPrecedesLastOnNamesInCitation.feature +0 -35
- data/features/nameattr/DelimiterPrecedesLastOnStyleInBibliography.feature +0 -43
- data/features/nameattr/DelimiterPrecedesLastOnStyleInCitation.feature +0 -36
- data/features/nameattr/EtAlMinOnBibliographyInBibliography.feature +0 -43
- data/features/nameattr/EtAlMinOnBibliographyInCitation.feature +0 -43
- data/features/nameattr/EtAlMinOnCitationInBibliography.feature +0 -45
- data/features/nameattr/EtAlMinOnCitationInCitation.feature +0 -36
- data/features/nameattr/EtAlMinOnNamesInBibliography.feature +0 -42
- data/features/nameattr/EtAlMinOnNamesInCitation.feature +0 -35
- data/features/nameattr/EtAlMinOnStyleInBibliography.feature +0 -42
- data/features/nameattr/EtAlMinOnStyleInCitation.feature +0 -35
- data/features/nameattr/EtAlSubsequentMinOnBibliographyInBibliography.feature +0 -43
- data/features/nameattr/EtAlSubsequentMinOnBibliographyInCitation.feature +0 -43
- data/features/nameattr/EtAlSubsequentMinOnCitationInBibliography.feature +0 -45
- data/features/nameattr/EtAlSubsequentMinOnCitationInCitation.feature +0 -37
- data/features/nameattr/EtAlSubsequentMinOnNamesInBibliography.feature +0 -42
- data/features/nameattr/EtAlSubsequentMinOnStyleInBibliography.feature +0 -42
- data/features/nameattr/EtAlSubsequentMinOnStyleInCitation.feature +0 -38
- data/features/nameattr/EtAlSubsequentUseFirstOnBibliographyInBibliography.feature +0 -43
- data/features/nameattr/EtAlSubsequentUseFirstOnBibliographyInCitation.feature +0 -43
- data/features/nameattr/EtAlSubsequentUseFirstOnCitationInBibliography.feature +0 -45
- data/features/nameattr/EtAlSubsequentUseFirstOnCitationInCitation.feature +0 -44
- data/features/nameattr/EtAlSubsequentUseFirstOnStyleInBibliography.feature +0 -43
- data/features/nameattr/EtAlSubsequentUseFirstOnStyleInCitation.feature +0 -37
- data/features/nameattr/EtAlUseFirstOnBibliographyInBibliography.feature +0 -43
- data/features/nameattr/EtAlUseFirstOnBibliographyInCitation.feature +0 -43
- data/features/nameattr/EtAlUseFirstOnCitationInBibliography.feature +0 -45
- data/features/nameattr/EtAlUseFirstOnCitationInCitation.feature +0 -43
- data/features/nameattr/EtAlUseFirstOnNamesInBibliography.feature +0 -42
- data/features/nameattr/EtAlUseFirstOnNamesInCitation.feature +0 -35
- data/features/nameattr/EtAlUseFirstOnStyleInBibliography.feature +0 -43
- data/features/nameattr/EtAlUseFirstOnStyleInCitation.feature +0 -35
- data/features/nameattr/InitializeWithOnBibliographyInBibliography.feature +0 -43
- data/features/nameattr/InitializeWithOnBibliographyInCitation.feature +0 -43
- data/features/nameattr/InitializeWithOnCitationInBibliography.feature +0 -45
- data/features/nameattr/InitializeWithOnCitationInCitation.feature +0 -36
- data/features/nameattr/InitializeWithOnNamesInBibliography.feature +0 -42
- data/features/nameattr/InitializeWithOnNamesInCitation.feature +0 -35
- data/features/nameattr/InitializeWithOnStyleInBibliography.feature +0 -43
- data/features/nameattr/InitializeWithOnStyleInCitation.feature +0 -36
- data/features/nameattr/NameAsSortOrderOnBibliographyInBibliography.feature +0 -43
- data/features/nameattr/NameAsSortOrderOnBibliographyInCitation.feature +0 -43
- data/features/nameattr/NameAsSortOrderOnCitationInBibliography.feature +0 -45
- data/features/nameattr/NameAsSortOrderOnCitationInCitation.feature +0 -36
- data/features/nameattr/NameAsSortOrderOnNamesInBibliography.feature +0 -42
- data/features/nameattr/NameAsSortOrderOnNamesInCitation.feature +0 -35
- data/features/nameattr/NameAsSortOrderOnStyleInBibliography.feature +0 -43
- data/features/nameattr/NameAsSortOrderOnStyleInCitation.feature +0 -35
- data/features/nameattr/NameDelimiterOnBibliographyInBibliography.feature +0 -43
- data/features/nameattr/NameDelimiterOnBibliographyInCitation.feature +0 -43
- data/features/nameattr/NameDelimiterOnCitationInBibliography.feature +0 -45
- data/features/nameattr/NameDelimiterOnCitationInCitation.feature +0 -43
- data/features/nameattr/NameDelimiterOnNamesInBibliography.feature +0 -42
- data/features/nameattr/NameDelimiterOnNamesInCitation.feature +0 -42
- data/features/nameattr/NameDelimiterOnStyleInBibliography.feature +0 -43
- data/features/nameattr/NameDelimiterOnStyleInCitation.feature +0 -43
- data/features/nameattr/NameFormOnBibliographyInBibliography.feature +0 -43
- data/features/nameattr/NameFormOnBibliographyInCitation.feature +0 -43
- data/features/nameattr/NameFormOnCitationInBibliography.feature +0 -45
- data/features/nameattr/NameFormOnCitationInCitation.feature +0 -43
- data/features/nameattr/NameFormOnNamesInBibliography.feature +0 -42
- data/features/nameattr/NameFormOnNamesInCitation.feature +0 -35
- data/features/nameattr/NameFormOnStyleInBibliography.feature +0 -43
- data/features/nameattr/NameFormOnStyleInCitation.feature +0 -36
- data/features/nameattr/NamesDelimiterOnBibliographyInBibliography.feature +0 -43
- data/features/nameattr/NamesDelimiterOnBibliographyInCitation.feature +0 -43
- data/features/nameattr/NamesDelimiterOnCitationInBibliography.feature +0 -45
- data/features/nameattr/NamesDelimiterOnCitationInCitation.feature +0 -36
- data/features/nameattr/NamesDelimiterOnNamesInBibliography.feature +0 -42
- data/features/nameattr/NamesDelimiterOnNamesInCitation.feature +0 -35
- data/features/nameattr/NamesDelimiterOnStyleInBibliography.feature +0 -42
- data/features/nameattr/NamesDelimiterOnStyleInCitation.feature +0 -36
- data/features/nameattr/SortSeparatorOnBibliographyInBibliography.feature +0 -43
- data/features/nameattr/SortSeparatorOnBibliographyInCitation.feature +0 -44
- data/features/nameattr/SortSeparatorOnCitationInBibliography.feature +0 -45
- data/features/nameattr/SortSeparatorOnCitationInCitation.feature +0 -36
- data/features/nameattr/SortSeparatorOnNamesInBibliography.feature +0 -42
- data/features/nameattr/SortSeparatorOnNamesInCitation.feature +0 -35
- data/features/nameattr/SortSeparatorOnStyleInBibliography.feature +0 -43
- data/features/nameattr/SortSeparatorOnStyleInCitation.feature +0 -36
- data/features/nameorder/Long.feature +0 -35
- data/features/nameorder/LongNameAsSortDemoteDisplayAndSort.feature +0 -36
- data/features/nameorder/LongNameAsSortDemoteNever.feature +0 -36
- data/features/nameorder/Short.feature +0 -35
- data/features/nameorder/ShortDemoteDisplayAndSort.feature +0 -36
- data/features/nameorder/ShortNameAsSortDemoteNever.feature +0 -36
- data/features/namespaces/NonNada3.feature +0 -33
- data/features/number/EditionSort.feature +0 -47
- data/features/number/FailingDelimiters.feature +0 -44
- data/features/number/IsNumericWithAlpha.feature +0 -40
- data/features/number/MixedPageRange.feature +0 -34
- data/features/number/MixedText.feature +0 -33
- data/features/number/NewOrdinals.feature +0 -64
- data/features/number/NewOrdinalsEdition.feature +0 -1044
- data/features/number/NewOrdinalsWithGenderChange.feature +0 -45
- data/features/number/PageFirst.feature +0 -36
- data/features/number/PageRange.feature +0 -33
- data/features/number/PlainHyphenOrEnDashAlwaysPlural.feature +0 -42
- data/features/number/SeparateOrdinalNamespaces.feature +0 -55
- data/features/number/SimpleNumberArabic.feature +0 -33
- data/features/number/SimpleNumberOrdinalLong.feature +0 -35
- data/features/number/SimpleNumberOrdinalShort.feature +0 -33
- data/features/number/SimpleNumberRoman.feature +0 -33
- data/features/number/StrangeError.feature +0 -34
- data/features/page/Chicago.feature +0 -55
- data/features/page/Expand.feature +0 -42
- data/features/page/Minimal.feature +0 -55
- data/features/page/NoOption.feature +0 -34
- data/features/page/NumberPageFirst.feature +0 -33
- data/features/page/PluralDetectWithEndash.feature +0 -33
- data/features/parallel/Bibliography.feature +0 -87
- data/features/parallel/HackedChicago.feature +0 -715
- data/features/parallel/JournalArticleReverse.feature +0 -46
- data/features/parallel/JournalArticleSimple.feature +0 -46
- data/features/parallel/TrailingIbid.feature +0 -69
- data/features/plural/LabelForced.feature +0 -37
- data/features/plural/NameLabelAlways.feature +0 -36
- data/features/plural/NameLabelContextualPlural.feature +0 -36
- data/features/plural/NameLabelContextualSingular.feature +0 -36
- data/features/plural/NameLabelDefaultPlural.feature +0 -36
- data/features/plural/NameLabelDefaultSingular.feature +0 -36
- data/features/plural/NameLabelNever.feature +0 -36
- data/features/position/FalseInBibliography.feature +0 -47
- data/features/position/FirstTrueOnlyOnce.feature +0 -55
- data/features/position/IbidInText.feature +0 -51
- data/features/position/IbidSeparateCiteSameNote.feature +0 -80
- data/features/position/IbidWithLocator.feature +0 -52
- data/features/position/IbidWithMultipleSoloCitesInBackref.feature +0 -52
- data/features/position/IbidWithPrefixFullStop.feature +0 -44
- data/features/position/IbidWithSuffix.feature +0 -54
- data/features/position/IfIbidIsTrueThenSubsequentIsTrue.feature +0 -61
- data/features/position/IfIbidWithLocatorIsTrueThenIbidIsTrue.feature +0 -58
- data/features/position/NearNoteFalse.feature +0 -41
- data/features/position/NearNoteSameNote.feature +0 -43
- data/features/position/NearNoteTrue.feature +0 -41
- data/features/position/NearNoteUnsupported.feature +0 -40
- data/features/position/NearNoteWithPlugin.feature +0 -454
- data/features/position/ResetNoteNumbers.feature +0 -54
- data/features/position/TrueInCitation.feature +0 -45
- data/features/punctuation/DateStripPeriods.feature +0 -36
- data/features/punctuation/DefaultYearSuffixDelimiter.feature +0 -183
- data/features/punctuation/DelimiterWithStripPeriodsAndSubstitute1.feature +0 -53
- data/features/punctuation/DelimiterWithStripPeriodsAndSubstitute2.feature +0 -52
- data/features/punctuation/DelimiterWithStripPeriodsAndSubstitute3.feature +0 -60
- data/features/punctuation/DoNotSuppressColonAfterPeriod.feature +0 -34
- data/features/punctuation/FrenchOrthography.feature +0 -33
- data/features/punctuation/FullMontyField.feature +0 -230
- data/features/punctuation/FullMontyPlain.feature +0 -230
- data/features/punctuation/FullMontyQuotesIn.feature +0 -233
- data/features/punctuation/FullMontyQuotesOut.feature +0 -233
- data/features/punctuation/NoSuppressOfPeriodBeforeSemicolon.feature +0 -36
- data/features/punctuation/SemicolonDelimiter.feature +0 -62
- data/features/punctuation/SuppressPrefixPeriodForDelimiterSemicolon.feature +0 -715
- data/features/quotes/Punctuation.feature +0 -43
- data/features/quotes/PunctuationNasty.feature +0 -977
- data/features/quotes/PunctuationWithInnerQuote.feature +0 -43
- data/features/simplespace/case1.feature +0 -202
- data/features/sort/AguStyle.feature +0 -94
- data/features/sort/AguStyleReverseGroups.feature +0 -94
- data/features/sort/AuthorDateWithYearSuffix.feature +0 -202
- data/features/sort/BibliographyCitationNumberDescending.feature +0 -51
- data/features/sort/BibliographyCitationNumberDescendingViaMacro.feature +0 -54
- data/features/sort/BibliographyNosortOption.feature +0 -44
- data/features/sort/CaseInsensitiveBibliography.feature +0 -55
- data/features/sort/CaseInsensitiveCitation.feature +0 -36
- data/features/sort/ChangeInNameSort.feature +0 -54
- data/features/sort/ChicagoYearSuffix1.feature +0 -391
- data/features/sort/ChicagoYearSuffix2.feature +0 -391
- data/features/sort/Citation.feature +0 -42
- data/features/sort/CitationEdit.feature +0 -49
- data/features/sort/CitationSecondaryKey.feature +0 -46
- data/features/sort/CitationUnsorted.feature +0 -42
- data/features/sort/CiteGroupDelimiter.feature +0 -45
- data/features/sort/ConditionalMacroDates.feature +0 -64
- data/features/sort/DateMacroSortWithSecondFieldAlign.feature +0 -56
- data/features/sort/DateVariable.feature +0 -36
- data/features/sort/DateVariableMixedElementsAscendingA.feature +0 -36
- data/features/sort/DateVariableMixedElementsAscendingB.feature +0 -36
- data/features/sort/DateVariableMixedElementsDescendingA.feature +0 -36
- data/features/sort/DateVariableMixedElementsDescendingB.feature +0 -36
- data/features/sort/DateVariableRange.feature +0 -36
- data/features/sort/DateVariableRangeMixed.feature +0 -36
- data/features/sort/DropNameLabelInSort.feature +0 -116
- data/features/sort/EtAlUseLast.feature +0 -54
- data/features/sort/FamilyOnly.feature +0 -45
- data/features/sort/GroupedByAuthorstring.feature +0 -50
- data/features/sort/LatinUnicode.feature +0 -42
- data/features/sort/LeadingApostropheOnNameParticle.feature +0 -55
- data/features/sort/LocalizedDateLimitedParts.feature +0 -40
- data/features/sort/NameImplicitSortOrderAndForm.feature +0 -51
- data/features/sort/NameParticleInNameSortFalse.feature +0 -48
- data/features/sort/NameParticleInNameSortTrue.feature +0 -48
- data/features/sort/NameVariable.feature +0 -47
- data/features/sort/NamesUseLast.feature +0 -64
- data/features/sort/NumberOfAuthorsAsKey.feature +0 -68
- data/features/sort/SeparateAuthorsAndOthers.feature +0 -127
- data/features/sort/StatusFieldAscending.feature +0 -46
- data/features/sort/StatusFieldDescending.feature +0 -46
- data/features/sort/StripMarkup.feature +0 -39
- data/features/sort/SubstituteTitle.feature +0 -398
- data/features/sort/VariousNameMacros1.feature +0 -287
- data/features/sort/VariousNameMacros2.feature +0 -287
- data/features/sort/VariousNameMacros3.feature +0 -288
- data/features/sort/WithAndInOneEntry.feature +0 -228
- data/features/sortseparator/SortSeparatorEmpty.feature +0 -44
- data/features/step_definitions/processor.rb +0 -59
- data/features/substitute/RepeatedNamesOk.feature +0 -52
- data/features/substitute/SuppressOrdinaryVariable.feature +0 -79
- data/features/support/env.rb +0 -49
- data/features/testers/FirstAutoGeneratedZoteroPluginTest.feature +0 -715
- data/features/testers/SecondAutoGeneratedZoteroPluginTest.feature +0 -717
- data/features/textcase/CapitalizeAll.feature +0 -33
- data/features/textcase/CapitalizeFirst.feature +0 -33
- data/features/textcase/CapitalizeFirstWithDecor.feature +0 -33
- data/features/textcase/CapitalsUntouched.feature +0 -37
- data/features/textcase/Lowercase.feature +0 -33
- data/features/textcase/SentenceCapitalization.feature +0 -33
- data/features/textcase/SkipNameParticlesInTitleCase.feature +0 -33
- data/features/textcase/TitleCapitalization.feature +0 -33
- data/features/textcase/TitleCaseNonEnglish.feature +0 -33
- data/features/textcase/TitleCaseNonEnglish2.feature +0 -34
- data/features/textcase/TitleCaseWithHyphens.feature +0 -33
- data/features/textcase/TitleCaseWithInitials.feature +0 -33
- data/features/textcase/Uppercase.feature +0 -59
- data/features/textcase/UppercaseNumber.feature +0 -33
- data/features/unicode/NonBreakingSpace.feature +0 -34
- data/features/variables/ShortForm.feature +0 -54
- data/features/variables/TitleShortOnAbbrevWithTitle.feature +0 -37
- data/features/variables/TitleShortOnAbbrevWithTitleCondition.feature +0 -57
- data/features/variables/TitleShortOnAbbrevWithTitleGroup.feature +0 -44
- data/features/variables/TitleShortOnShortTitleNoTitle.feature +0 -33
- data/features/variables/TitleShortOnShortTitleNoTitleCondition.feature +0 -53
- data/features/variables/TitleShortOnShortTitleNoTitleGroup.feature +0 -40
- data/features/virtual/PageFirst.feature +0 -37
- data/spec/citeproc/abbreviate_spec.rb +0 -37
- data/spec/citeproc/assets_spec.rb +0 -72
- data/spec/citeproc/attributes_spec.rb +0 -97
- data/spec/citeproc/bibliography_spec.rb +0 -72
- data/spec/citeproc/citation_data_spec.rb +0 -94
- data/spec/citeproc/date_spec.rb +0 -423
- data/spec/citeproc/engine_spec.rb +0 -19
- data/spec/citeproc/extensions_spec.rb +0 -89
- data/spec/citeproc/item_spec.rb +0 -91
- data/spec/citeproc/names_spec.rb +0 -646
- data/spec/citeproc/processor_spec.rb +0 -127
- data/spec/citeproc/selector_spec.rb +0 -90
- data/spec/citeproc/utilities_spec.rb +0 -12
- data/spec/citeproc/variable_spec.rb +0 -196
- data/spec/fixtures/locales/locales-en-US.xml +0 -304
- data/spec/spec_helper.rb +0 -42
- data/tasks/testsuite.rb +0 -206
@@ -1,127 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
module CiteProc
|
4
|
-
describe Processor do
|
5
|
-
let(:p) { Processor.new }
|
6
|
-
|
7
|
-
let(:palefire) { Item.new(:id => 'palefire', :type => :book, :title => 'Pale Fire') }
|
8
|
-
let(:despair) { Item.new(:id => 'despair', :type => :book, :title => 'Despair') }
|
9
|
-
|
10
|
-
it { is_expected.not_to be nil }
|
11
|
-
|
12
|
-
it { expect(p.engine).not_to be nil }
|
13
|
-
it { expect(p.engine.name).to eq('citeproc-ruby') }
|
14
|
-
|
15
|
-
describe '#register' do
|
16
|
-
|
17
|
-
it 'adds the passed-in item to the items hash' do
|
18
|
-
expect { p.register(palefire) }.to change { p.items.length }.by(1)
|
19
|
-
end
|
20
|
-
|
21
|
-
it 'register the item with its id' do
|
22
|
-
expect { p.register(palefire) }.to change { p.has_key?('palefire') }
|
23
|
-
end
|
24
|
-
|
25
|
-
end
|
26
|
-
|
27
|
-
describe '#<<' do
|
28
|
-
|
29
|
-
it 'registers the passed in item' do
|
30
|
-
expect { p << palefire }.to change { p.has_key?('palefire') }
|
31
|
-
end
|
32
|
-
|
33
|
-
it 'returns the processor' do
|
34
|
-
expect(p << palefire).to be_equal(p)
|
35
|
-
end
|
36
|
-
|
37
|
-
end
|
38
|
-
|
39
|
-
describe '#[]' do
|
40
|
-
|
41
|
-
describe 'when there is no item with the passed-in id' do
|
42
|
-
it 'returns nil' do
|
43
|
-
expect(p[:palefire]).to be nil
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
|
-
describe 'when there is an item with the passed-in id' do
|
48
|
-
before(:each) { p.register(palefire) }
|
49
|
-
|
50
|
-
it 'returns the item' do
|
51
|
-
expect(p[:palefire]).to equal(palefire)
|
52
|
-
end
|
53
|
-
end
|
54
|
-
end
|
55
|
-
|
56
|
-
describe '#update' do
|
57
|
-
|
58
|
-
it 'accepts a single item and adds it to the item hash' do
|
59
|
-
expect { p.update(palefire) }.to change { p.items.length }.by(1)
|
60
|
-
end
|
61
|
-
|
62
|
-
it 'registers the passed-in item with its id' do
|
63
|
-
expect { p.update(palefire) }.to change { p[:palefire] }.from(nil).to(palefire)
|
64
|
-
end
|
65
|
-
|
66
|
-
describe 'when passed a hash' do
|
67
|
-
it 'registers the value with the key as id' do
|
68
|
-
expect(p.update(:foo => palefire)[:foo]).to equal(palefire)
|
69
|
-
end
|
70
|
-
|
71
|
-
it 'converts the value to an item' do
|
72
|
-
expect(p.update(:foo => { :title => 'The Story of Foo' })[:foo]).to be_a(Item)
|
73
|
-
end
|
74
|
-
end
|
75
|
-
|
76
|
-
it 'adds all items in the array when passed an array' do
|
77
|
-
expect { p.update([palefire, despair]) }.to change { p.items.length }.by(2)
|
78
|
-
end
|
79
|
-
|
80
|
-
it 'adds all items in when passed multiple items' do
|
81
|
-
expect { p.update(palefire, despair) }.to change { p.items.length }.by(2)
|
82
|
-
end
|
83
|
-
|
84
|
-
end
|
85
|
-
|
86
|
-
describe '#bibliography (generates the bibliography)' do
|
87
|
-
|
88
|
-
describe 'when no items have been processed' do
|
89
|
-
|
90
|
-
it 'returns an empty bibliography' do
|
91
|
-
expect(p.bibliography).to be_empty
|
92
|
-
end
|
93
|
-
|
94
|
-
# it 'returns a bibliography of all registered items if invoked with :all'
|
95
|
-
|
96
|
-
end
|
97
|
-
|
98
|
-
describe 'when items have been processed' do
|
99
|
-
|
100
|
-
it 'returns a bibliography containing all cited items'
|
101
|
-
|
102
|
-
# it 'returns a bibliography of all registered items if invoked with :all'
|
103
|
-
|
104
|
-
describe 'when invoked with a block as filter' do
|
105
|
-
|
106
|
-
it 'returns an empty bibliography if the block always returns false'
|
107
|
-
|
108
|
-
it 'returns the full bibliography if the block always returns true'
|
109
|
-
|
110
|
-
it 'returns a bibliography with all items for which the block returns true'
|
111
|
-
|
112
|
-
end
|
113
|
-
|
114
|
-
describe 'when passed a hash as argument' do
|
115
|
-
|
116
|
-
it 'fails if the hash is no valid selector'
|
117
|
-
|
118
|
-
it 'creates a selector from the hash and returns a bibliography containing all matching items'
|
119
|
-
|
120
|
-
end
|
121
|
-
|
122
|
-
end
|
123
|
-
|
124
|
-
end
|
125
|
-
|
126
|
-
end
|
127
|
-
end
|
@@ -1,90 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
module CiteProc
|
4
|
-
|
5
|
-
describe Selector do
|
6
|
-
|
7
|
-
let(:select_books) { Selector.new(:all => { :type => :book }) }
|
8
|
-
|
9
|
-
it { is_expected.not_to be nil }
|
10
|
-
it { is_expected.to be_empty }
|
11
|
-
|
12
|
-
|
13
|
-
it 'should have no skip_condtions by default' do
|
14
|
-
expect(Selector.new.skip_conditions).to be_empty
|
15
|
-
end
|
16
|
-
|
17
|
-
it 'should have no condtions by default' do
|
18
|
-
expect(Selector.new.conditions).to be_empty
|
19
|
-
end
|
20
|
-
|
21
|
-
describe 'constructing' do
|
22
|
-
|
23
|
-
%w{ all none any skip }.each do |matcher|
|
24
|
-
it "accepts the ruby style matcher '#{matcher}'" do
|
25
|
-
expect(Selector.new(matcher => {})).not_to be nil
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
%w{ include exclude select quash }.each do |matcher|
|
30
|
-
it "accepts the citeproc-js style matcher '#{matcher}'" do
|
31
|
-
expect(Selector.new(matcher => {})).not_to be nil
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
# it 'fails if the hash contains more than two elements'
|
36
|
-
# it 'fails if the hash contains unknown keys'
|
37
|
-
|
38
|
-
# it 'accepts a citeproc json style hash'
|
39
|
-
|
40
|
-
it 'accepts a json object (select)' do
|
41
|
-
expect(Selector.new(
|
42
|
-
"select" => [
|
43
|
-
{
|
44
|
-
"field" => "type",
|
45
|
-
"value" => "book"
|
46
|
-
},
|
47
|
-
{ "field" => "categories",
|
48
|
-
"value" => "1990s"
|
49
|
-
}
|
50
|
-
]
|
51
|
-
).conditions.size).to eq(2)
|
52
|
-
end
|
53
|
-
end
|
54
|
-
|
55
|
-
describe '#to_proc' do
|
56
|
-
end
|
57
|
-
|
58
|
-
describe '#to_citeproc' do
|
59
|
-
|
60
|
-
it 'returns nil by default' do
|
61
|
-
expect(Selector.new.to_citeproc).to be nil
|
62
|
-
end
|
63
|
-
|
64
|
-
it 'converts all matcher to select' do
|
65
|
-
expect(Selector.new(:all => { :a => 'b' }).to_citeproc).to eq({ 'select' => [{ 'field' => 'a', 'value' => 'b' }]})
|
66
|
-
end
|
67
|
-
|
68
|
-
it 'converts any matcher to include' do
|
69
|
-
expect(Selector.new(:any => { :a => 'b' }).to_citeproc).to eq({ 'include' => [{ 'field' => 'a', 'value' => 'b' }]})
|
70
|
-
end
|
71
|
-
|
72
|
-
it 'converts none matcher to exclude' do
|
73
|
-
expect(Selector.new(:none => { :a => 'b' }).to_citeproc).to eq({ 'exclude' => [{ 'field' => 'a', 'value' => 'b' }]})
|
74
|
-
end
|
75
|
-
end
|
76
|
-
|
77
|
-
describe '#matches?' do
|
78
|
-
it 'always matches by default' do
|
79
|
-
expect(Selector.new.matches?(nil)).to be_truthy
|
80
|
-
end
|
81
|
-
end
|
82
|
-
|
83
|
-
describe '#skip?' do
|
84
|
-
it 'never skips when by default' do
|
85
|
-
expect(Selector.new.skip?(nil)).to be_falsey
|
86
|
-
end
|
87
|
-
end
|
88
|
-
end
|
89
|
-
|
90
|
-
end
|
@@ -1,196 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
module CiteProc
|
4
|
-
describe Variable do
|
5
|
-
|
6
|
-
describe '.new' do
|
7
|
-
it { is_expected.to be_an_instance_of(Variable) }
|
8
|
-
|
9
|
-
it 'is empty by default' do
|
10
|
-
expect(Variable.new).to be_empty
|
11
|
-
end
|
12
|
-
|
13
|
-
it 'equals an empty string (==) by default' do
|
14
|
-
expect(Variable.new).to eq('')
|
15
|
-
end
|
16
|
-
|
17
|
-
it 'matches an empty pattern by default' do
|
18
|
-
expect(Variable.new).to match(/^$/)
|
19
|
-
end
|
20
|
-
|
21
|
-
it 'accepts a string value' do
|
22
|
-
expect(Variable.new('test')).to eq('test')
|
23
|
-
end
|
24
|
-
|
25
|
-
it 'accepts a numeric value' do
|
26
|
-
expect(Variable.new(23)).to eq('23')
|
27
|
-
end
|
28
|
-
|
29
|
-
it 'accepts a floating point value' do
|
30
|
-
expect(Variable.new(23.12)).to eq('23.12')
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
|
-
describe '.fields' do
|
35
|
-
it 'contains :names fields' do
|
36
|
-
expect(Variable.fields[:names]).not_to be_empty
|
37
|
-
expect(Variable.fields[:name]).to equal Variable.fields[:names]
|
38
|
-
end
|
39
|
-
|
40
|
-
it 'contains :date fields' do
|
41
|
-
expect(Variable.fields[:date]).not_to be_empty
|
42
|
-
expect(Variable.fields[:dates]).to equal Variable.fields[:date]
|
43
|
-
end
|
44
|
-
|
45
|
-
it 'contains :text fields' do
|
46
|
-
expect(Variable.fields[:text]).not_to be_empty
|
47
|
-
end
|
48
|
-
|
49
|
-
it 'contains :number fields' do
|
50
|
-
expect(Variable.fields[:numbers]).not_to be_empty
|
51
|
-
expect(Variable.fields[:number]).not_to be_empty
|
52
|
-
end
|
53
|
-
|
54
|
-
it 'accepts either string or symbol input' do
|
55
|
-
expect(Variable.fields[:names]).to equal Variable.fields['names']
|
56
|
-
end
|
57
|
-
end
|
58
|
-
|
59
|
-
describe '.types' do
|
60
|
-
it 'given a field name returns the corresponding type' do
|
61
|
-
expect(Variable.types.values_at(:author, :issued, :abstract, :issue)).to eq([:names, :date, :text, :number])
|
62
|
-
end
|
63
|
-
|
64
|
-
it 'accepts either string or symbol input' do
|
65
|
-
expect(Variable.types).to have_key(:author)
|
66
|
-
expect(Variable.types['author']).to equal Variable.types[:author]
|
67
|
-
end
|
68
|
-
end
|
69
|
-
|
70
|
-
describe '#to_s' do
|
71
|
-
it 'displays the value' do
|
72
|
-
expect(Variable.new('test').to_s).to eq('test')
|
73
|
-
end
|
74
|
-
end
|
75
|
-
|
76
|
-
describe '#to_i' do
|
77
|
-
it 'returns zero by default' do
|
78
|
-
expect(Variable.new.to_i).to eq(0)
|
79
|
-
end
|
80
|
-
|
81
|
-
context 'when the value is numeric' do
|
82
|
-
%w{ -23 -1 0 1 23 }.each do |value|
|
83
|
-
it "returns the integer value (#{value})" do
|
84
|
-
expect(Variable.new(value).to_i).to equal(value.to_i)
|
85
|
-
end
|
86
|
-
end
|
87
|
-
|
88
|
-
it 'returns only the first numeric value if there are several' do
|
89
|
-
expect(Variable.new('testing 1, 2, 3...').to_i).to eq(1)
|
90
|
-
end
|
91
|
-
end
|
92
|
-
end
|
93
|
-
|
94
|
-
describe '#to_f' do
|
95
|
-
it 'returns zero by default' do
|
96
|
-
expect(Variable.new.to_f).to eq(0.0)
|
97
|
-
end
|
98
|
-
|
99
|
-
context 'when the value is numeric' do
|
100
|
-
%w{ -23.2 -1.45 0.2 1.733 23 }.each do |value|
|
101
|
-
it "returns the integer value (#{value})" do
|
102
|
-
expect(Variable.new(value).to_f).to eq(value.to_f)
|
103
|
-
end
|
104
|
-
end
|
105
|
-
|
106
|
-
it 'returns only the first numeric value if there are several' do
|
107
|
-
expect(Variable.new('testing 1, 2, 3...').to_f).to eq(1.0)
|
108
|
-
end
|
109
|
-
|
110
|
-
it 'works with dot and comma separators' do
|
111
|
-
expect(Variable.new('1,23').to_f).to eq(Variable.new('1.23').to_f)
|
112
|
-
end
|
113
|
-
end
|
114
|
-
end
|
115
|
-
|
116
|
-
describe '#numeric?' do
|
117
|
-
it 'returns false by default' do
|
118
|
-
expect(Variable.new).not_to be_numeric
|
119
|
-
end
|
120
|
-
|
121
|
-
context 'variable contains a number' do
|
122
|
-
it 'returns true (string initialized)' do
|
123
|
-
expect(Variable.new('23')).to be_numeric
|
124
|
-
expect(Variable.new('X23')).to be_numeric
|
125
|
-
expect(Variable.new('23rd')).to be_numeric
|
126
|
-
end
|
127
|
-
it 'returns true (integer initialized)' do
|
128
|
-
expect(Variable.new(23)).to be_numeric
|
129
|
-
end
|
130
|
-
end
|
131
|
-
|
132
|
-
context 'variable does not contain a number' do
|
133
|
-
it 'returns false for strings' do
|
134
|
-
expect(Variable.new('test')).not_to be_numeric
|
135
|
-
end
|
136
|
-
end
|
137
|
-
|
138
|
-
context 'variable contains numbers but is not numeric' do
|
139
|
-
it 'returns false for strings' do
|
140
|
-
expect(Variable.new('23rd test')).not_to be_numeric
|
141
|
-
expect(Variable.new('23rd, 24th & 25th edition')).not_to be_numeric
|
142
|
-
end
|
143
|
-
end
|
144
|
-
|
145
|
-
context 'variable contains multiple numbers' do
|
146
|
-
it 'returns true for simple ranges' do
|
147
|
-
expect(Variable.new('23-24')).to be_numeric
|
148
|
-
expect(Variable.new('23 - 24')).to be_numeric
|
149
|
-
expect(Variable.new('23- 24')).to be_numeric
|
150
|
-
end
|
151
|
-
|
152
|
-
it 'returns true for simple lists' do
|
153
|
-
expect(Variable.new('23,24')).to be_numeric
|
154
|
-
expect(Variable.new('23 , 24')).to be_numeric
|
155
|
-
expect(Variable.new('23, 24')).to be_numeric
|
156
|
-
expect(Variable.new('23 ,24')).to be_numeric
|
157
|
-
expect(Variable.new('23 ,24,25 , 26, 27')).to be_numeric
|
158
|
-
end
|
159
|
-
|
160
|
-
it 'returns true for complex lists' do
|
161
|
-
expect(Variable.new('23rd, 24th & 25th')).to be_numeric
|
162
|
-
expect(Variable.new('X23, A2-49th & 25th & A1, B2')).to be_numeric
|
163
|
-
end
|
164
|
-
end
|
165
|
-
end
|
166
|
-
|
167
|
-
describe '#strip_markup' do
|
168
|
-
let(:greeting) { '<h1>hello<b> world</b></h1>' }
|
169
|
-
it 'returns a string stripped of html tags' do
|
170
|
-
expect(Variable.new(greeting).strip_markup).to eq('hello world')
|
171
|
-
end
|
172
|
-
it 'does not alter the value itself' do
|
173
|
-
v = Variable.new(greeting)
|
174
|
-
v.strip_markup
|
175
|
-
expect(v).to eq(greeting)
|
176
|
-
end
|
177
|
-
end
|
178
|
-
|
179
|
-
describe '#strip_markup!' do
|
180
|
-
let(:greeting) { '<h1>hello<b> world</b></h1>' }
|
181
|
-
it 'strips of html tags' do
|
182
|
-
v = Variable.new(greeting)
|
183
|
-
v.strip_markup!
|
184
|
-
expect(v).to eq('hello world')
|
185
|
-
end
|
186
|
-
end
|
187
|
-
|
188
|
-
|
189
|
-
describe 'sorting' do
|
190
|
-
end
|
191
|
-
|
192
|
-
describe '#to_json' do
|
193
|
-
end
|
194
|
-
|
195
|
-
end
|
196
|
-
end
|
@@ -1,304 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
2
|
-
<locale xmlns="http://purl.org/net/xbiblio/csl" version="1.0" xml:lang="en-US">
|
3
|
-
<style-options punctuation-in-quote="true"/>
|
4
|
-
<date form="text">
|
5
|
-
<date-part name="month" suffix=" "/>
|
6
|
-
<date-part name="day" form="numeric-leading-zeros" suffix=", "/>
|
7
|
-
<date-part name="year"/>
|
8
|
-
</date>
|
9
|
-
<date form="numeric">
|
10
|
-
<date-part name="month" form="numeric-leading-zeros" suffix="/"/>
|
11
|
-
<date-part name="day" form="numeric-leading-zeros" suffix="/"/>
|
12
|
-
<date-part name="year"/>
|
13
|
-
</date>
|
14
|
-
<terms>
|
15
|
-
<term name="accessed">accessed</term>
|
16
|
-
<term name="and">and</term>
|
17
|
-
<term name="and others">and others</term>
|
18
|
-
<term name="anonymous">anonymous</term>
|
19
|
-
<term name="anonymous" form="short">anon.</term>
|
20
|
-
<term name="at">at</term>
|
21
|
-
<term name="by">by</term>
|
22
|
-
<term name="circa">circa</term>
|
23
|
-
<term name="circa" form="short">c.</term>
|
24
|
-
<term name="cited">cited</term>
|
25
|
-
<term name="edition">
|
26
|
-
<single>edition</single>
|
27
|
-
<multiple>editions</multiple>
|
28
|
-
</term>
|
29
|
-
<term name="edition" form="short">ed.</term>
|
30
|
-
<term name="et-al">et al.</term>
|
31
|
-
<term name="forthcoming">forthcoming</term>
|
32
|
-
<term name="from">from</term>
|
33
|
-
<term name="ibid">ibid.</term>
|
34
|
-
<term name="in">in</term>
|
35
|
-
<term name="in press">in press</term>
|
36
|
-
<term name="internet">internet</term>
|
37
|
-
<term name="interview">interview</term>
|
38
|
-
<term name="letter">letter</term>
|
39
|
-
<term name="no date">no date</term>
|
40
|
-
<term name="no date" form="short">n.d.</term>
|
41
|
-
<term name="online">online</term>
|
42
|
-
<term name="presented at">presented at the</term>
|
43
|
-
<term name="reference">
|
44
|
-
<single>reference</single>
|
45
|
-
<multiple>references</multiple>
|
46
|
-
</term>
|
47
|
-
<term name="reference" form="short">
|
48
|
-
<single>ref.</single>
|
49
|
-
<multiple>refs.</multiple>
|
50
|
-
</term>
|
51
|
-
<term name="retrieved">retrieved</term>
|
52
|
-
|
53
|
-
<!-- ANNO DOMINI; BEFORE CHRIST -->
|
54
|
-
<term name="ad">AD</term>
|
55
|
-
<term name="bc">BC</term>
|
56
|
-
|
57
|
-
<!-- QUOTES -->
|
58
|
-
<term name="open-quote">“</term>
|
59
|
-
<term name="close-quote">”</term>
|
60
|
-
<term name="open-inner-quote">‘</term>
|
61
|
-
<term name="close-inner-quote">’</term>
|
62
|
-
|
63
|
-
<!-- ORDINALS -->
|
64
|
-
<term name="ordinal-01">st</term>
|
65
|
-
<term name="ordinal-02">nd</term>
|
66
|
-
<term name="ordinal-03">rd</term>
|
67
|
-
<term name="ordinal-04">th</term>
|
68
|
-
|
69
|
-
<!-- LONG ORDINALS -->
|
70
|
-
<term name="long-ordinal-01">first</term>
|
71
|
-
<term name="long-ordinal-02">second</term>
|
72
|
-
<term name="long-ordinal-03">third</term>
|
73
|
-
<term name="long-ordinal-04">fourth</term>
|
74
|
-
<term name="long-ordinal-05">fifth</term>
|
75
|
-
<term name="long-ordinal-06">sixth</term>
|
76
|
-
<term name="long-ordinal-07">seventh</term>
|
77
|
-
<term name="long-ordinal-08">eighth</term>
|
78
|
-
<term name="long-ordinal-09">ninth</term>
|
79
|
-
<term name="long-ordinal-10">tenth</term>
|
80
|
-
|
81
|
-
<!-- CATEGORIES -->
|
82
|
-
<term name="anthropology">anthropology</term>
|
83
|
-
<term name="astronomy">astronomy</term>
|
84
|
-
<term name="biology">biology</term>
|
85
|
-
<term name="botany">botany</term>
|
86
|
-
<term name="chemistry">chemistry</term>
|
87
|
-
<term name="engineering">engineering</term>
|
88
|
-
<term name="generic-base">generic base</term>
|
89
|
-
<term name="geography">geography</term>
|
90
|
-
<term name="geology">geology</term>
|
91
|
-
<term name="history">history</term>
|
92
|
-
<term name="humanities">humanities</term>
|
93
|
-
<term name="linguistics">linguistics</term>
|
94
|
-
<term name="literature">literature</term>
|
95
|
-
<term name="math">math</term>
|
96
|
-
<term name="medicine">medicine</term>
|
97
|
-
<term name="philosophy">philosophy</term>
|
98
|
-
<term name="physics">physics</term>
|
99
|
-
<term name="psychology">psychology</term>
|
100
|
-
<term name="sociology">sociology</term>
|
101
|
-
<term name="science">science</term>
|
102
|
-
<term name="political_science">political science</term>
|
103
|
-
<term name="social_science">social science</term>
|
104
|
-
<term name="theology">theology</term>
|
105
|
-
<term name="zoology">zoology</term>
|
106
|
-
|
107
|
-
<!-- LONG LOCATOR FORMS -->
|
108
|
-
<term name="book">
|
109
|
-
<single>book</single>
|
110
|
-
<multiple>books</multiple>
|
111
|
-
</term>
|
112
|
-
<term name="chapter">
|
113
|
-
<single>chapter</single>
|
114
|
-
<multiple>chapters</multiple>
|
115
|
-
</term>
|
116
|
-
<term name="column">
|
117
|
-
<single>column</single>
|
118
|
-
<multiple>columns</multiple>
|
119
|
-
</term>
|
120
|
-
<term name="figure">
|
121
|
-
<single>figure</single>
|
122
|
-
<multiple>figures</multiple>
|
123
|
-
</term>
|
124
|
-
<term name="folio">
|
125
|
-
<single>folio</single>
|
126
|
-
<multiple>folios</multiple>
|
127
|
-
</term>
|
128
|
-
<term name="issue">
|
129
|
-
<single>number</single>
|
130
|
-
<multiple>numbers</multiple>
|
131
|
-
</term>
|
132
|
-
<term name="line">
|
133
|
-
<single>line</single>
|
134
|
-
<multiple>lines</multiple>
|
135
|
-
</term>
|
136
|
-
<term name="note">
|
137
|
-
<single>note</single>
|
138
|
-
<multiple>notes</multiple>
|
139
|
-
</term>
|
140
|
-
<term name="opus">
|
141
|
-
<single>opus</single>
|
142
|
-
<multiple>opera</multiple>
|
143
|
-
</term>
|
144
|
-
<term name="page">
|
145
|
-
<single>page</single>
|
146
|
-
<multiple>pages</multiple>
|
147
|
-
</term>
|
148
|
-
<term name="paragraph">
|
149
|
-
<single>paragraph</single>
|
150
|
-
<multiple>paragraph</multiple>
|
151
|
-
</term>
|
152
|
-
<term name="part">
|
153
|
-
<single>part</single>
|
154
|
-
<multiple>parts</multiple>
|
155
|
-
</term>
|
156
|
-
<term name="section">
|
157
|
-
<single>section</single>
|
158
|
-
<multiple>sections</multiple>
|
159
|
-
</term>
|
160
|
-
<term name="sub verbo">
|
161
|
-
<single>sub verbo</single>
|
162
|
-
<multiple>sub verbis</multiple>
|
163
|
-
</term>
|
164
|
-
<term name="verse">
|
165
|
-
<single>verse</single>
|
166
|
-
<multiple>verses</multiple>
|
167
|
-
</term>
|
168
|
-
<term name="volume">
|
169
|
-
<single>volume</single>
|
170
|
-
<multiple>volumes</multiple>
|
171
|
-
</term>
|
172
|
-
|
173
|
-
<!-- SHORT LOCATOR FORMS -->
|
174
|
-
<term name="book" form="short">bk.</term>
|
175
|
-
<term name="chapter" form="short">chap.</term>
|
176
|
-
<term name="column" form="short">col.</term>
|
177
|
-
<term name="figure" form="short">fig.</term>
|
178
|
-
<term name="folio" form="short">f.</term>
|
179
|
-
<term name="issue" form="short">no.</term>
|
180
|
-
<term name="opus" form="short">op.</term>
|
181
|
-
<term name="page" form="short">
|
182
|
-
<single>p.</single>
|
183
|
-
<multiple>pp.</multiple>
|
184
|
-
</term>
|
185
|
-
<term name="paragraph" form="short">para.</term>
|
186
|
-
<term name="part" form="short">pt.</term>
|
187
|
-
<term name="section" form="short">sec.</term>
|
188
|
-
<term name="sub verbo" form="short">
|
189
|
-
<single>s.v.</single>
|
190
|
-
<multiple>s.vv.</multiple>
|
191
|
-
</term>
|
192
|
-
<term name="verse" form="short">
|
193
|
-
<single>v.</single>
|
194
|
-
<multiple>vv.</multiple>
|
195
|
-
</term>
|
196
|
-
<term name="volume" form="short">
|
197
|
-
<single>vol.</single>
|
198
|
-
<multiple>vols.</multiple>
|
199
|
-
</term>
|
200
|
-
|
201
|
-
<!-- SYMBOL LOCATOR FORMS -->
|
202
|
-
<term name="paragraph" form="symbol">
|
203
|
-
<single>¶</single>
|
204
|
-
<multiple>¶¶</multiple>
|
205
|
-
</term>
|
206
|
-
<term name="section" form="symbol">
|
207
|
-
<single>§</single>
|
208
|
-
<multiple>§§</multiple>
|
209
|
-
</term>
|
210
|
-
|
211
|
-
<!-- LONG ROLE FORMS -->
|
212
|
-
<term name="author">
|
213
|
-
<single>author</single>
|
214
|
-
<multiple>authors</multiple>
|
215
|
-
</term>
|
216
|
-
<term name="editor">
|
217
|
-
<single>editor</single>
|
218
|
-
<multiple>editors</multiple>
|
219
|
-
</term>
|
220
|
-
<term name="editorial-director">
|
221
|
-
<single>editor</single>
|
222
|
-
<multiple>editors</multiple>
|
223
|
-
</term>
|
224
|
-
<term name="translator">
|
225
|
-
<single>translator</single>
|
226
|
-
<multiple>translators</multiple>
|
227
|
-
</term>
|
228
|
-
<term name="editortranslator">
|
229
|
-
<single>editor & translator</single>
|
230
|
-
<multiple>editors & translators</multiple>
|
231
|
-
</term>
|
232
|
-
|
233
|
-
<!-- SHORT ROLE FORMS -->
|
234
|
-
<term name="author" form="short">
|
235
|
-
<single/>
|
236
|
-
<multiple/>
|
237
|
-
</term>
|
238
|
-
<term name="editor" form="short">
|
239
|
-
<single>ed.</single>
|
240
|
-
<multiple>eds.</multiple>
|
241
|
-
</term>
|
242
|
-
<term name="editorial-director" form="short">
|
243
|
-
<single>ed.</single>
|
244
|
-
<multiple>eds.</multiple>
|
245
|
-
</term>
|
246
|
-
<term name="translator" form="short">
|
247
|
-
<single>tran.</single>
|
248
|
-
<multiple>trans.</multiple>
|
249
|
-
</term>
|
250
|
-
<term name="editortranslator" form="short">
|
251
|
-
<single>ed. & tran.</single>
|
252
|
-
<multiple>eds. & trans.</multiple>
|
253
|
-
</term>
|
254
|
-
|
255
|
-
<!-- VERB ROLE FORMS -->
|
256
|
-
<term name="editor" form="verb">edited by</term>
|
257
|
-
<term name="editorial-director" form="verb">edited by</term>
|
258
|
-
<term name="translator" form="verb">translated by</term>
|
259
|
-
<term name="editortranslator" form="verb">edited & translated by</term>
|
260
|
-
<term name="recipient" form="verb">to</term>
|
261
|
-
<term name="interviewer" form="verb">interview by</term>
|
262
|
-
|
263
|
-
<!-- SHORT VERB ROLE FORMS -->
|
264
|
-
<term name="container-author" form="verb-short">by</term>
|
265
|
-
<term name="editor" form="verb-short">ed.</term>
|
266
|
-
<term name="editorial-director" form="verb-short">ed.</term>
|
267
|
-
<term name="translator" form="verb-short">trans.</term>
|
268
|
-
<term name="editortranslator" form="verb-short">ed. & trans. by</term>
|
269
|
-
|
270
|
-
<!-- LONG MONTH FORMS -->
|
271
|
-
<term name="month-01">January</term>
|
272
|
-
<term name="month-02">February</term>
|
273
|
-
<term name="month-03">March</term>
|
274
|
-
<term name="month-04">April</term>
|
275
|
-
<term name="month-05">May</term>
|
276
|
-
<term name="month-06">June</term>
|
277
|
-
<term name="month-07">July</term>
|
278
|
-
<term name="month-08">August</term>
|
279
|
-
<term name="month-09">September</term>
|
280
|
-
<term name="month-10">October</term>
|
281
|
-
<term name="month-11">November</term>
|
282
|
-
<term name="month-12">December</term>
|
283
|
-
|
284
|
-
<!-- SHORT MONTH FORMS -->
|
285
|
-
<term name="month-01" form="short">Jan.</term>
|
286
|
-
<term name="month-02" form="short">Feb.</term>
|
287
|
-
<term name="month-03" form="short">Mar.</term>
|
288
|
-
<term name="month-04" form="short">Apr.</term>
|
289
|
-
<term name="month-05" form="short">May</term>
|
290
|
-
<term name="month-06" form="short">Jun.</term>
|
291
|
-
<term name="month-07" form="short">Jul.</term>
|
292
|
-
<term name="month-08" form="short">Aug.</term>
|
293
|
-
<term name="month-09" form="short">Sep.</term>
|
294
|
-
<term name="month-10" form="short">Oct.</term>
|
295
|
-
<term name="month-11" form="short">Nov.</term>
|
296
|
-
<term name="month-12" form="short">Dec.</term>
|
297
|
-
|
298
|
-
<!-- SEASONS -->
|
299
|
-
<term name="season-01">Spring</term>
|
300
|
-
<term name="season-02">Summer</term>
|
301
|
-
<term name="season-03">Autumn</term>
|
302
|
-
<term name="season-04">Winter</term>
|
303
|
-
</terms>
|
304
|
-
</locale>
|