use citationberg::{Locale, Style};
use serde::de::DeserializeOwned;
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[non_exhaustive]
pub enum ArchivedStyle {
AnnualReviews,
Pensoft,
AnnualReviewsAuthorDate,
TheLancet,
ElsevierWithTitles,
Gb77142015AuthorDate,
RoyalSocietyOfChemistry,
AmericanAnthropologicalAssociation,
SageVancouver,
BritishMedicalJournal,
Frontiers,
ElsevierHarvard,
Gb77142005Numeric,
AngewandteChemie,
Gb77142015Note,
SpringerBasicAuthorDate,
Trends,
AmericanGeophysicalUnion,
AmericanPoliticalScienceAssociation,
AmericanPsychologicalAssociation,
Cell,
Spie,
HarvardCiteThemRight,
AmericanInstituteOfAeronauticsAndAstronautics,
CouncilOfScienceEditorsAuthorDate,
Copernicus,
Sist02,
SpringerSocpsychAuthorDate,
ModernLanguageAssociation8,
Nature,
Iso690Numeric,
SpringerMathphys,
SpringerLectureNotesInComputerScience,
FutureScience,
CurrentOpinion,
DeutscheGesellschaftFRPsychologie,
AmericanMeteorologicalSociety,
ModernHumanitiesResearchAssociation,
AmericanSocietyOfCivilEngineers,
ChicagoNotes,
InstituteOfElectricalAndElectronicsEngineers,
DeutscheSprache,
Gb77142015Numeric,
BristolUniversityPress,
AssociationForComputingMachinery,
AssociacaoBrasileiraDeNormasTecnicas,
AmericanMedicalAssociation,
ElsevierVancouver,
ChicagoAuthorDate,
Vancouver,
ChicagoFullnotes,
TurabianAuthorDate,
SpringerFachzeitschriftenMedizinPsychologie,
Thieme,
TaylorAndFrancisNationalLibraryOfMedicine,
AmericanChemicalSociety,
AmericanInstituteOfPhysics,
TaylorAndFrancisChicagoAuthorDate,
GostR7052008Numeric,
InstituteOfPhysicsNumeric,
Iso690AuthorDate,
TheInstitutionOfEngineeringAndTechnology,
AmericanSocietyForMicrobiology,
MultidisciplinaryDigitalPublishingInstitute,
SpringerBasic,
SpringerHumanitiesAuthorDate,
TurabianFullnote8,
Karger,
SpringerVancouver,
VancouverSuperscript,
AmericanPhysicsSociety,
MaryAnnLiebertVancouver,
AmericanSocietyOfMechanicalEngineers,
CouncilOfScienceEditors,
AmericanPhysiologicalSociety,
FutureMedicine,
BiomedCentral,
PublicLibraryOfScience,
AmericanSociologicalAssociation,
ModernLanguageAssociation,
Alphanumeric,
}
impl ArchivedStyle {
pub fn by_name(name: &str) -> Option<Self> {
match name {
"annual-reviews" => Some(Self::AnnualReviews),
"pensoft" => Some(Self::Pensoft),
"annual-reviews-author-date" => Some(Self::AnnualReviewsAuthorDate),
"the-lancet" => Some(Self::TheLancet),
"elsevier-with-titles" => Some(Self::ElsevierWithTitles),
"gb-7714-2015-author-date" => Some(Self::Gb77142015AuthorDate),
"royal-society-of-chemistry" => Some(Self::RoyalSocietyOfChemistry),
"american-anthropological-association" => Some(Self::AmericanAnthropologicalAssociation),
"sage-vancouver" => Some(Self::SageVancouver),
"british-medical-journal" => Some(Self::BritishMedicalJournal),
"bmj" => Some(Self::BritishMedicalJournal),
"frontiers" => Some(Self::Frontiers),
"elsevier-harvard" => Some(Self::ElsevierHarvard),
"gb-7714-2005-numeric" => Some(Self::Gb77142005Numeric),
"angewandte-chemie" => Some(Self::AngewandteChemie),
"gb-7714-2015-note" => Some(Self::Gb77142015Note),
"springer-basic-author-date" => Some(Self::SpringerBasicAuthorDate),
"trends" => Some(Self::Trends),
"american-geophysical-union" => Some(Self::AmericanGeophysicalUnion),
"american-political-science-association" => Some(Self::AmericanPoliticalScienceAssociation),
"american-psychological-association" => Some(Self::AmericanPsychologicalAssociation),
"apa" => Some(Self::AmericanPsychologicalAssociation),
"cell" => Some(Self::Cell),
"spie" => Some(Self::Spie),
"harvard-cite-them-right" => Some(Self::HarvardCiteThemRight),
"american-institute-of-aeronautics-and-astronautics" => Some(Self::AmericanInstituteOfAeronauticsAndAstronautics),
"council-of-science-editors-author-date" => Some(Self::CouncilOfScienceEditorsAuthorDate),
"copernicus" => Some(Self::Copernicus),
"sist02" => Some(Self::Sist02),
"springer-socpsych-author-date" => Some(Self::SpringerSocpsychAuthorDate),
"modern-language-association-8" => Some(Self::ModernLanguageAssociation8),
"mla-8" => Some(Self::ModernLanguageAssociation8),
"nature" => Some(Self::Nature),
"iso-690-numeric" => Some(Self::Iso690Numeric),
"springer-mathphys" => Some(Self::SpringerMathphys),
"springer-lecture-notes-in-computer-science" => Some(Self::SpringerLectureNotesInComputerScience),
"future-science" => Some(Self::FutureScience),
"current-opinion" => Some(Self::CurrentOpinion),
"deutsche-gesellschaft-für-psychologie" => Some(Self::DeutscheGesellschaftFRPsychologie),
"american-meteorological-society" => Some(Self::AmericanMeteorologicalSociety),
"modern-humanities-research-association" => Some(Self::ModernHumanitiesResearchAssociation),
"american-society-of-civil-engineers" => Some(Self::AmericanSocietyOfCivilEngineers),
"chicago-notes" => Some(Self::ChicagoNotes),
"institute-of-electrical-and-electronics-engineers" => Some(Self::InstituteOfElectricalAndElectronicsEngineers),
"ieee" => Some(Self::InstituteOfElectricalAndElectronicsEngineers),
"deutsche-sprache" => Some(Self::DeutscheSprache),
"gb-7714-2015-numeric" => Some(Self::Gb77142015Numeric),
"bristol-university-press" => Some(Self::BristolUniversityPress),
"association-for-computing-machinery" => Some(Self::AssociationForComputingMachinery),
"associacao-brasileira-de-normas-tecnicas" => Some(Self::AssociacaoBrasileiraDeNormasTecnicas),
"american-medical-association" => Some(Self::AmericanMedicalAssociation),
"elsevier-vancouver" => Some(Self::ElsevierVancouver),
"chicago-author-date" => Some(Self::ChicagoAuthorDate),
"vancouver" => Some(Self::Vancouver),
"chicago-fullnotes" => Some(Self::ChicagoFullnotes),
"turabian-author-date" => Some(Self::TurabianAuthorDate),
"springer-fachzeitschriften-medizin-psychologie" => Some(Self::SpringerFachzeitschriftenMedizinPsychologie),
"thieme" => Some(Self::Thieme),
"taylor-and-francis-national-library-of-medicine" => Some(Self::TaylorAndFrancisNationalLibraryOfMedicine),
"american-chemical-society" => Some(Self::AmericanChemicalSociety),
"american-institute-of-physics" => Some(Self::AmericanInstituteOfPhysics),
"taylor-and-francis-chicago-author-date" => Some(Self::TaylorAndFrancisChicagoAuthorDate),
"gost-r-705-2008-numeric" => Some(Self::GostR7052008Numeric),
"institute-of-physics-numeric" => Some(Self::InstituteOfPhysicsNumeric),
"iso-690-author-date" => Some(Self::Iso690AuthorDate),
"the-institution-of-engineering-and-technology" => Some(Self::TheInstitutionOfEngineeringAndTechnology),
"american-society-for-microbiology" => Some(Self::AmericanSocietyForMicrobiology),
"multidisciplinary-digital-publishing-institute" => Some(Self::MultidisciplinaryDigitalPublishingInstitute),
"springer-basic" => Some(Self::SpringerBasic),
"springer-humanities-author-date" => Some(Self::SpringerHumanitiesAuthorDate),
"turabian-fullnote-8" => Some(Self::TurabianFullnote8),
"karger" => Some(Self::Karger),
"springer-vancouver" => Some(Self::SpringerVancouver),
"vancouver-superscript" => Some(Self::VancouverSuperscript),
"american-physics-society" => Some(Self::AmericanPhysicsSociety),
"mary-ann-liebert-vancouver" => Some(Self::MaryAnnLiebertVancouver),
"american-society-of-mechanical-engineers" => Some(Self::AmericanSocietyOfMechanicalEngineers),
"council-of-science-editors" => Some(Self::CouncilOfScienceEditors),
"american-physiological-society" => Some(Self::AmericanPhysiologicalSociety),
"future-medicine" => Some(Self::FutureMedicine),
"biomed-central" => Some(Self::BiomedCentral),
"public-library-of-science" => Some(Self::PublicLibraryOfScience),
"plos" => Some(Self::PublicLibraryOfScience),
"american-sociological-association" => Some(Self::AmericanSociologicalAssociation),
"modern-language-association" => Some(Self::ModernLanguageAssociation),
"mla" => Some(Self::ModernLanguageAssociation),
"alphanumeric" => Some(Self::Alphanumeric),
_ => None
}
}
pub fn by_id(id: &str) -> Option<Self> {
match id {
"http://www.zotero.org/styles/annual-reviews" => Some(Self::AnnualReviews),
"http://www.zotero.org/styles/pensoft-journals" => Some(Self::Pensoft),
"http://www.zotero.org/styles/annual-reviews-author-date" => Some(Self::AnnualReviewsAuthorDate),
"http://www.zotero.org/styles/the-lancet" => Some(Self::TheLancet),
"http://www.zotero.org/styles/elsevier-with-titles" => Some(Self::ElsevierWithTitles),
"http://www.zotero.org/styles/china-national-standard-gb-t-7714-2015-author-date" => Some(Self::Gb77142015AuthorDate),
"http://www.zotero.org/styles/royal-society-of-chemistry" => Some(Self::RoyalSocietyOfChemistry),
"http://www.zotero.org/styles/american-anthropological-association" => Some(Self::AmericanAnthropologicalAssociation),
"http://www.zotero.org/styles/sage-vancouver" => Some(Self::SageVancouver),
"http://www.zotero.org/styles/bmj" => Some(Self::BritishMedicalJournal),
"http://www.zotero.org/styles/frontiers" => Some(Self::Frontiers),
"http://www.zotero.org/styles/elsevier-harvard" => Some(Self::ElsevierHarvard),
"http://www.zotero.org/styles/chinese-gb7714-2005-numeric" => Some(Self::Gb77142005Numeric),
"http://www.zotero.org/styles/angewandte-chemie" => Some(Self::AngewandteChemie),
"http://www.zotero.org/styles/china-national-standard-gb-t-7714-2015-note" => Some(Self::Gb77142015Note),
"http://www.zotero.org/styles/springer-basic-author-date" => Some(Self::SpringerBasicAuthorDate),
"http://www.zotero.org/styles/trends-journals" => Some(Self::Trends),
"http://www.zotero.org/styles/american-geophysical-union" => Some(Self::AmericanGeophysicalUnion),
"http://www.zotero.org/styles/american-political-science-association" => Some(Self::AmericanPoliticalScienceAssociation),
"http://www.zotero.org/styles/apa" => Some(Self::AmericanPsychologicalAssociation),
"http://www.zotero.org/styles/cell" => Some(Self::Cell),
"http://www.zotero.org/styles/spie-journals" => Some(Self::Spie),
"http://www.zotero.org/styles/harvard-cite-them-right" => Some(Self::HarvardCiteThemRight),
"http://www.zotero.org/styles/american-institute-of-aeronautics-and-astronautics" => Some(Self::AmericanInstituteOfAeronauticsAndAstronautics),
"http://www.zotero.org/styles/council-of-science-editors-author-date" => Some(Self::CouncilOfScienceEditorsAuthorDate),
"http://www.zotero.org/styles/copernicus-publications" => Some(Self::Copernicus),
"http://www.zotero.org/styles/sist02" => Some(Self::Sist02),
"http://www.zotero.org/styles/springer-socpsych-author-date" => Some(Self::SpringerSocpsychAuthorDate),
"http://www.zotero.org/styles/modern-language-association-8th-edition" => Some(Self::ModernLanguageAssociation8),
"http://www.zotero.org/styles/nature" => Some(Self::Nature),
"http://www.zotero.org/styles/iso690-numeric-en" => Some(Self::Iso690Numeric),
"http://www.zotero.org/styles/springer-mathphys-brackets" => Some(Self::SpringerMathphys),
"http://www.zotero.org/styles/springer-lecture-notes-in-computer-science" => Some(Self::SpringerLectureNotesInComputerScience),
"http://www.zotero.org/styles/future-science-group" => Some(Self::FutureScience),
"http://www.zotero.org/styles/current-opinion" => Some(Self::CurrentOpinion),
"http://www.zotero.org/styles/deutsche-gesellschaft-fur-psychologie" => Some(Self::DeutscheGesellschaftFRPsychologie),
"http://www.zotero.org/styles/american-meteorological-society" => Some(Self::AmericanMeteorologicalSociety),
"http://www.zotero.org/styles/modern-humanities-research-association" => Some(Self::ModernHumanitiesResearchAssociation),
"http://www.zotero.org/styles/american-society-of-civil-engineers" => Some(Self::AmericanSocietyOfCivilEngineers),
"http://www.zotero.org/styles/chicago-note-bibliography" => Some(Self::ChicagoNotes),
"http://www.zotero.org/styles/ieee" => Some(Self::InstituteOfElectricalAndElectronicsEngineers),
"http://www.zotero.org/styles/deutsche-sprache" => Some(Self::DeutscheSprache),
"http://www.zotero.org/styles/china-national-standard-gb-t-7714-2015-numeric" => Some(Self::Gb77142015Numeric),
"http://www.zotero.org/styles/bristol-university-press" => Some(Self::BristolUniversityPress),
"http://www.zotero.org/styles/association-for-computing-machinery" => Some(Self::AssociationForComputingMachinery),
"http://www.zotero.org/styles/associacao-brasileira-de-normas-tecnicas" => Some(Self::AssociacaoBrasileiraDeNormasTecnicas),
"http://www.zotero.org/styles/american-medical-association" => Some(Self::AmericanMedicalAssociation),
"http://www.zotero.org/styles/elsevier-vancouver" => Some(Self::ElsevierVancouver),
"http://www.zotero.org/styles/chicago-author-date" => Some(Self::ChicagoAuthorDate),
"http://www.zotero.org/styles/vancouver" => Some(Self::Vancouver),
"http://www.zotero.org/styles/chicago-fullnote-bibliography" => Some(Self::ChicagoFullnotes),
"http://www.zotero.org/styles/turabian-author-date" => Some(Self::TurabianAuthorDate),
"http://www.zotero.org/styles/springer-fachzeitschriften-medizin-psychologie" => Some(Self::SpringerFachzeitschriftenMedizinPsychologie),
"http://www.zotero.org/styles/thieme-german" => Some(Self::Thieme),
"http://www.zotero.org/styles/taylor-and-francis-national-library-of-medicine" => Some(Self::TaylorAndFrancisNationalLibraryOfMedicine),
"http://www.zotero.org/styles/american-chemical-society" => Some(Self::AmericanChemicalSociety),
"http://www.zotero.org/styles/american-institute-of-physics" => Some(Self::AmericanInstituteOfPhysics),
"http://www.zotero.org/styles/taylor-and-francis-chicago-author-date" => Some(Self::TaylorAndFrancisChicagoAuthorDate),
"http://www.zotero.org/styles/gost-r-7-0-5-2008-numeric" => Some(Self::GostR7052008Numeric),
"http://www.zotero.org/styles/institute-of-physics-numeric" => Some(Self::InstituteOfPhysicsNumeric),
"http://www.zotero.org/styles/iso690-author-date-en" => Some(Self::Iso690AuthorDate),
"http://www.zotero.org/styles/the-institution-of-engineering-and-technology" => Some(Self::TheInstitutionOfEngineeringAndTechnology),
"http://www.zotero.org/styles/american-society-for-microbiology" => Some(Self::AmericanSocietyForMicrobiology),
"http://www.zotero.org/styles/multidisciplinary-digital-publishing-institute" => Some(Self::MultidisciplinaryDigitalPublishingInstitute),
"http://www.zotero.org/styles/springer-basic-brackets" => Some(Self::SpringerBasic),
"http://www.zotero.org/styles/springer-humanities-author-date" => Some(Self::SpringerHumanitiesAuthorDate),
"http://www.zotero.org/styles/turabian-fullnote-bibliography-8th-edition" => Some(Self::TurabianFullnote8),
"http://www.zotero.org/styles/karger-journals" => Some(Self::Karger),
"http://www.zotero.org/styles/springer-vancouver-brackets" => Some(Self::SpringerVancouver),
"http://www.zotero.org/styles/vancouver-superscript" => Some(Self::VancouverSuperscript),
"http://www.zotero.org/styles/american-physics-society" => Some(Self::AmericanPhysicsSociety),
"http://www.zotero.org/styles/mary-ann-liebert-vancouver" => Some(Self::MaryAnnLiebertVancouver),
"http://www.zotero.org/styles/american-society-of-mechanical-engineers" => Some(Self::AmericanSocietyOfMechanicalEngineers),
"http://www.zotero.org/styles/council-of-science-editors-brackets" => Some(Self::CouncilOfScienceEditors),
"http://www.zotero.org/styles/american-physiological-society" => Some(Self::AmericanPhysiologicalSociety),
"http://www.zotero.org/styles/future-medicine" => Some(Self::FutureMedicine),
"http://www.zotero.org/styles/biomed-central" => Some(Self::BiomedCentral),
"http://www.zotero.org/styles/plos" => Some(Self::PublicLibraryOfScience),
"http://www.zotero.org/styles/american-sociological-association" => Some(Self::AmericanSociologicalAssociation),
"http://www.zotero.org/styles/modern-language-association" => Some(Self::ModernLanguageAssociation),
"http://typst.org/csl/alphanumeric" => Some(Self::Alphanumeric),
_ => None
}
}
pub fn all() -> &'static [Self] {
&[
Self::AnnualReviews,
Self::Pensoft,
Self::AnnualReviewsAuthorDate,
Self::TheLancet,
Self::ElsevierWithTitles,
Self::Gb77142015AuthorDate,
Self::RoyalSocietyOfChemistry,
Self::AmericanAnthropologicalAssociation,
Self::SageVancouver,
Self::BritishMedicalJournal,
Self::Frontiers,
Self::ElsevierHarvard,
Self::Gb77142005Numeric,
Self::AngewandteChemie,
Self::Gb77142015Note,
Self::SpringerBasicAuthorDate,
Self::Trends,
Self::AmericanGeophysicalUnion,
Self::AmericanPoliticalScienceAssociation,
Self::AmericanPsychologicalAssociation,
Self::Cell,
Self::Spie,
Self::HarvardCiteThemRight,
Self::AmericanInstituteOfAeronauticsAndAstronautics,
Self::CouncilOfScienceEditorsAuthorDate,
Self::Copernicus,
Self::Sist02,
Self::SpringerSocpsychAuthorDate,
Self::ModernLanguageAssociation8,
Self::Nature,
Self::Iso690Numeric,
Self::SpringerMathphys,
Self::SpringerLectureNotesInComputerScience,
Self::FutureScience,
Self::CurrentOpinion,
Self::DeutscheGesellschaftFRPsychologie,
Self::AmericanMeteorologicalSociety,
Self::ModernHumanitiesResearchAssociation,
Self::AmericanSocietyOfCivilEngineers,
Self::ChicagoNotes,
Self::InstituteOfElectricalAndElectronicsEngineers,
Self::DeutscheSprache,
Self::Gb77142015Numeric,
Self::BristolUniversityPress,
Self::AssociationForComputingMachinery,
Self::AssociacaoBrasileiraDeNormasTecnicas,
Self::AmericanMedicalAssociation,
Self::ElsevierVancouver,
Self::ChicagoAuthorDate,
Self::Vancouver,
Self::ChicagoFullnotes,
Self::TurabianAuthorDate,
Self::SpringerFachzeitschriftenMedizinPsychologie,
Self::Thieme,
Self::TaylorAndFrancisNationalLibraryOfMedicine,
Self::AmericanChemicalSociety,
Self::AmericanInstituteOfPhysics,
Self::TaylorAndFrancisChicagoAuthorDate,
Self::GostR7052008Numeric,
Self::InstituteOfPhysicsNumeric,
Self::Iso690AuthorDate,
Self::TheInstitutionOfEngineeringAndTechnology,
Self::AmericanSocietyForMicrobiology,
Self::MultidisciplinaryDigitalPublishingInstitute,
Self::SpringerBasic,
Self::SpringerHumanitiesAuthorDate,
Self::TurabianFullnote8,
Self::Karger,
Self::SpringerVancouver,
Self::VancouverSuperscript,
Self::AmericanPhysicsSociety,
Self::MaryAnnLiebertVancouver,
Self::AmericanSocietyOfMechanicalEngineers,
Self::CouncilOfScienceEditors,
Self::AmericanPhysiologicalSociety,
Self::FutureMedicine,
Self::BiomedCentral,
Self::PublicLibraryOfScience,
Self::AmericanSociologicalAssociation,
Self::ModernLanguageAssociation,
Self::Alphanumeric,
]
}
fn bytes(self) -> &'static [u8] {
match self {
Self::AnnualReviews => include_bytes!("../../archive/styles/annual-reviews.cbor"),
Self::Pensoft => include_bytes!("../../archive/styles/pensoft-journals.cbor"),
Self::AnnualReviewsAuthorDate => include_bytes!("../../archive/styles/annual-reviews-author-date.cbor"),
Self::TheLancet => include_bytes!("../../archive/styles/the-lancet.cbor"),
Self::ElsevierWithTitles => include_bytes!("../../archive/styles/elsevier-with-titles.cbor"),
Self::Gb77142015AuthorDate => include_bytes!("../../archive/styles/china-national-standard-gb-t-7714-2015-author-date.cbor"),
Self::RoyalSocietyOfChemistry => include_bytes!("../../archive/styles/royal-society-of-chemistry.cbor"),
Self::AmericanAnthropologicalAssociation => include_bytes!("../../archive/styles/american-anthropological-association.cbor"),
Self::SageVancouver => include_bytes!("../../archive/styles/sage-vancouver.cbor"),
Self::BritishMedicalJournal => include_bytes!("../../archive/styles/bmj.cbor"),
Self::Frontiers => include_bytes!("../../archive/styles/frontiers.cbor"),
Self::ElsevierHarvard => include_bytes!("../../archive/styles/elsevier-harvard.cbor"),
Self::Gb77142005Numeric => include_bytes!("../../archive/styles/chinese-gb7714-2005-numeric.cbor"),
Self::AngewandteChemie => include_bytes!("../../archive/styles/angewandte-chemie.cbor"),
Self::Gb77142015Note => include_bytes!("../../archive/styles/china-national-standard-gb-t-7714-2015-note.cbor"),
Self::SpringerBasicAuthorDate => include_bytes!("../../archive/styles/springer-basic-author-date.cbor"),
Self::Trends => include_bytes!("../../archive/styles/trends-journals.cbor"),
Self::AmericanGeophysicalUnion => include_bytes!("../../archive/styles/american-geophysical-union.cbor"),
Self::AmericanPoliticalScienceAssociation => include_bytes!("../../archive/styles/american-political-science-association.cbor"),
Self::AmericanPsychologicalAssociation => include_bytes!("../../archive/styles/apa.cbor"),
Self::Cell => include_bytes!("../../archive/styles/cell.cbor"),
Self::Spie => include_bytes!("../../archive/styles/spie-journals.cbor"),
Self::HarvardCiteThemRight => include_bytes!("../../archive/styles/harvard-cite-them-right.cbor"),
Self::AmericanInstituteOfAeronauticsAndAstronautics => include_bytes!("../../archive/styles/american-institute-of-aeronautics-and-astronautics.cbor"),
Self::CouncilOfScienceEditorsAuthorDate => include_bytes!("../../archive/styles/council-of-science-editors-author-date.cbor"),
Self::Copernicus => include_bytes!("../../archive/styles/copernicus-publications.cbor"),
Self::Sist02 => include_bytes!("../../archive/styles/sist02.cbor"),
Self::SpringerSocpsychAuthorDate => include_bytes!("../../archive/styles/springer-socpsych-author-date.cbor"),
Self::ModernLanguageAssociation8 => include_bytes!("../../archive/styles/modern-language-association-8th-edition.cbor"),
Self::Nature => include_bytes!("../../archive/styles/nature.cbor"),
Self::Iso690Numeric => include_bytes!("../../archive/styles/iso690-numeric-en.cbor"),
Self::SpringerMathphys => include_bytes!("../../archive/styles/springer-mathphys-brackets.cbor"),
Self::SpringerLectureNotesInComputerScience => include_bytes!("../../archive/styles/springer-lecture-notes-in-computer-science.cbor"),
Self::FutureScience => include_bytes!("../../archive/styles/future-science-group.cbor"),
Self::CurrentOpinion => include_bytes!("../../archive/styles/current-opinion.cbor"),
Self::DeutscheGesellschaftFRPsychologie => include_bytes!("../../archive/styles/deutsche-gesellschaft-fur-psychologie.cbor"),
Self::AmericanMeteorologicalSociety => include_bytes!("../../archive/styles/american-meteorological-society.cbor"),
Self::ModernHumanitiesResearchAssociation => include_bytes!("../../archive/styles/modern-humanities-research-association.cbor"),
Self::AmericanSocietyOfCivilEngineers => include_bytes!("../../archive/styles/american-society-of-civil-engineers.cbor"),
Self::ChicagoNotes => include_bytes!("../../archive/styles/chicago-note-bibliography.cbor"),
Self::InstituteOfElectricalAndElectronicsEngineers => include_bytes!("../../archive/styles/ieee.cbor"),
Self::DeutscheSprache => include_bytes!("../../archive/styles/deutsche-sprache.cbor"),
Self::Gb77142015Numeric => include_bytes!("../../archive/styles/china-national-standard-gb-t-7714-2015-numeric.cbor"),
Self::BristolUniversityPress => include_bytes!("../../archive/styles/bristol-university-press.cbor"),
Self::AssociationForComputingMachinery => include_bytes!("../../archive/styles/association-for-computing-machinery.cbor"),
Self::AssociacaoBrasileiraDeNormasTecnicas => include_bytes!("../../archive/styles/associacao-brasileira-de-normas-tecnicas.cbor"),
Self::AmericanMedicalAssociation => include_bytes!("../../archive/styles/american-medical-association.cbor"),
Self::ElsevierVancouver => include_bytes!("../../archive/styles/elsevier-vancouver.cbor"),
Self::ChicagoAuthorDate => include_bytes!("../../archive/styles/chicago-author-date.cbor"),
Self::Vancouver => include_bytes!("../../archive/styles/vancouver.cbor"),
Self::ChicagoFullnotes => include_bytes!("../../archive/styles/chicago-fullnote-bibliography.cbor"),
Self::TurabianAuthorDate => include_bytes!("../../archive/styles/turabian-author-date.cbor"),
Self::SpringerFachzeitschriftenMedizinPsychologie => include_bytes!("../../archive/styles/springer-fachzeitschriften-medizin-psychologie.cbor"),
Self::Thieme => include_bytes!("../../archive/styles/thieme-german.cbor"),
Self::TaylorAndFrancisNationalLibraryOfMedicine => include_bytes!("../../archive/styles/taylor-and-francis-national-library-of-medicine.cbor"),
Self::AmericanChemicalSociety => include_bytes!("../../archive/styles/american-chemical-society.cbor"),
Self::AmericanInstituteOfPhysics => include_bytes!("../../archive/styles/american-institute-of-physics.cbor"),
Self::TaylorAndFrancisChicagoAuthorDate => include_bytes!("../../archive/styles/taylor-and-francis-chicago-author-date.cbor"),
Self::GostR7052008Numeric => include_bytes!("../../archive/styles/gost-r-7-0-5-2008-numeric.cbor"),
Self::InstituteOfPhysicsNumeric => include_bytes!("../../archive/styles/institute-of-physics-numeric.cbor"),
Self::Iso690AuthorDate => include_bytes!("../../archive/styles/iso690-author-date-en.cbor"),
Self::TheInstitutionOfEngineeringAndTechnology => include_bytes!("../../archive/styles/the-institution-of-engineering-and-technology.cbor"),
Self::AmericanSocietyForMicrobiology => include_bytes!("../../archive/styles/american-society-for-microbiology.cbor"),
Self::MultidisciplinaryDigitalPublishingInstitute => include_bytes!("../../archive/styles/multidisciplinary-digital-publishing-institute.cbor"),
Self::SpringerBasic => include_bytes!("../../archive/styles/springer-basic-brackets.cbor"),
Self::SpringerHumanitiesAuthorDate => include_bytes!("../../archive/styles/springer-humanities-author-date.cbor"),
Self::TurabianFullnote8 => include_bytes!("../../archive/styles/turabian-fullnote-bibliography-8th-edition.cbor"),
Self::Karger => include_bytes!("../../archive/styles/karger-journals.cbor"),
Self::SpringerVancouver => include_bytes!("../../archive/styles/springer-vancouver-brackets.cbor"),
Self::VancouverSuperscript => include_bytes!("../../archive/styles/vancouver-superscript.cbor"),
Self::AmericanPhysicsSociety => include_bytes!("../../archive/styles/american-physics-society.cbor"),
Self::MaryAnnLiebertVancouver => include_bytes!("../../archive/styles/mary-ann-liebert-vancouver.cbor"),
Self::AmericanSocietyOfMechanicalEngineers => include_bytes!("../../archive/styles/american-society-of-mechanical-engineers.cbor"),
Self::CouncilOfScienceEditors => include_bytes!("../../archive/styles/council-of-science-editors-brackets.cbor"),
Self::AmericanPhysiologicalSociety => include_bytes!("../../archive/styles/american-physiological-society.cbor"),
Self::FutureMedicine => include_bytes!("../../archive/styles/future-medicine.cbor"),
Self::BiomedCentral => include_bytes!("../../archive/styles/biomed-central.cbor"),
Self::PublicLibraryOfScience => include_bytes!("../../archive/styles/plos.cbor"),
Self::AmericanSociologicalAssociation => include_bytes!("../../archive/styles/american-sociological-association.cbor"),
Self::ModernLanguageAssociation => include_bytes!("../../archive/styles/modern-language-association.cbor"),
Self::Alphanumeric => include_bytes!("../../archive/styles/alphanumeric.cbor"),
}
}
pub fn get(self) -> Style {
from_cbor(self.bytes()).unwrap()
}
pub fn names(self) -> &'static [&'static str] {
match self {
Self::AnnualReviews => &[
"annual-reviews",
],
Self::Pensoft => &[
"pensoft",
],
Self::AnnualReviewsAuthorDate => &[
"annual-reviews-author-date",
],
Self::TheLancet => &[
"the-lancet",
],
Self::ElsevierWithTitles => &[
"elsevier-with-titles",
],
Self::Gb77142015AuthorDate => &[
"gb-7714-2015-author-date",
],
Self::RoyalSocietyOfChemistry => &[
"royal-society-of-chemistry",
],
Self::AmericanAnthropologicalAssociation => &[
"american-anthropological-association",
],
Self::SageVancouver => &[
"sage-vancouver",
],
Self::BritishMedicalJournal => &[
"british-medical-journal",
"bmj",
],
Self::Frontiers => &[
"frontiers",
],
Self::ElsevierHarvard => &[
"elsevier-harvard",
],
Self::Gb77142005Numeric => &[
"gb-7714-2005-numeric",
],
Self::AngewandteChemie => &[
"angewandte-chemie",
],
Self::Gb77142015Note => &[
"gb-7714-2015-note",
],
Self::SpringerBasicAuthorDate => &[
"springer-basic-author-date",
],
Self::Trends => &[
"trends",
],
Self::AmericanGeophysicalUnion => &[
"american-geophysical-union",
],
Self::AmericanPoliticalScienceAssociation => &[
"american-political-science-association",
],
Self::AmericanPsychologicalAssociation => &[
"american-psychological-association",
"apa",
],
Self::Cell => &[
"cell",
],
Self::Spie => &[
"spie",
],
Self::HarvardCiteThemRight => &[
"harvard-cite-them-right",
],
Self::AmericanInstituteOfAeronauticsAndAstronautics => &[
"american-institute-of-aeronautics-and-astronautics",
],
Self::CouncilOfScienceEditorsAuthorDate => &[
"council-of-science-editors-author-date",
],
Self::Copernicus => &[
"copernicus",
],
Self::Sist02 => &[
"sist02",
],
Self::SpringerSocpsychAuthorDate => &[
"springer-socpsych-author-date",
],
Self::ModernLanguageAssociation8 => &[
"modern-language-association-8",
"mla-8",
],
Self::Nature => &[
"nature",
],
Self::Iso690Numeric => &[
"iso-690-numeric",
],
Self::SpringerMathphys => &[
"springer-mathphys",
],
Self::SpringerLectureNotesInComputerScience => &[
"springer-lecture-notes-in-computer-science",
],
Self::FutureScience => &[
"future-science",
],
Self::CurrentOpinion => &[
"current-opinion",
],
Self::DeutscheGesellschaftFRPsychologie => &[
"deutsche-gesellschaft-für-psychologie",
],
Self::AmericanMeteorologicalSociety => &[
"american-meteorological-society",
],
Self::ModernHumanitiesResearchAssociation => &[
"modern-humanities-research-association",
],
Self::AmericanSocietyOfCivilEngineers => &[
"american-society-of-civil-engineers",
],
Self::ChicagoNotes => &[
"chicago-notes",
],
Self::InstituteOfElectricalAndElectronicsEngineers => &[
"institute-of-electrical-and-electronics-engineers",
"ieee",
],
Self::DeutscheSprache => &[
"deutsche-sprache",
],
Self::Gb77142015Numeric => &[
"gb-7714-2015-numeric",
],
Self::BristolUniversityPress => &[
"bristol-university-press",
],
Self::AssociationForComputingMachinery => &[
"association-for-computing-machinery",
],
Self::AssociacaoBrasileiraDeNormasTecnicas => &[
"associacao-brasileira-de-normas-tecnicas",
],
Self::AmericanMedicalAssociation => &[
"american-medical-association",
],
Self::ElsevierVancouver => &[
"elsevier-vancouver",
],
Self::ChicagoAuthorDate => &[
"chicago-author-date",
],
Self::Vancouver => &[
"vancouver",
],
Self::ChicagoFullnotes => &[
"chicago-fullnotes",
],
Self::TurabianAuthorDate => &[
"turabian-author-date",
],
Self::SpringerFachzeitschriftenMedizinPsychologie => &[
"springer-fachzeitschriften-medizin-psychologie",
],
Self::Thieme => &[
"thieme",
],
Self::TaylorAndFrancisNationalLibraryOfMedicine => &[
"taylor-and-francis-national-library-of-medicine",
],
Self::AmericanChemicalSociety => &[
"american-chemical-society",
],
Self::AmericanInstituteOfPhysics => &[
"american-institute-of-physics",
],
Self::TaylorAndFrancisChicagoAuthorDate => &[
"taylor-and-francis-chicago-author-date",
],
Self::GostR7052008Numeric => &[
"gost-r-705-2008-numeric",
],
Self::InstituteOfPhysicsNumeric => &[
"institute-of-physics-numeric",
],
Self::Iso690AuthorDate => &[
"iso-690-author-date",
],
Self::TheInstitutionOfEngineeringAndTechnology => &[
"the-institution-of-engineering-and-technology",
],
Self::AmericanSocietyForMicrobiology => &[
"american-society-for-microbiology",
],
Self::MultidisciplinaryDigitalPublishingInstitute => &[
"multidisciplinary-digital-publishing-institute",
],
Self::SpringerBasic => &[
"springer-basic",
],
Self::SpringerHumanitiesAuthorDate => &[
"springer-humanities-author-date",
],
Self::TurabianFullnote8 => &[
"turabian-fullnote-8",
],
Self::Karger => &[
"karger",
],
Self::SpringerVancouver => &[
"springer-vancouver",
],
Self::VancouverSuperscript => &[
"vancouver-superscript",
],
Self::AmericanPhysicsSociety => &[
"american-physics-society",
],
Self::MaryAnnLiebertVancouver => &[
"mary-ann-liebert-vancouver",
],
Self::AmericanSocietyOfMechanicalEngineers => &[
"american-society-of-mechanical-engineers",
],
Self::CouncilOfScienceEditors => &[
"council-of-science-editors",
],
Self::AmericanPhysiologicalSociety => &[
"american-physiological-society",
],
Self::FutureMedicine => &[
"future-medicine",
],
Self::BiomedCentral => &[
"biomed-central",
],
Self::PublicLibraryOfScience => &[
"public-library-of-science",
"plos",
],
Self::AmericanSociologicalAssociation => &[
"american-sociological-association",
],
Self::ModernLanguageAssociation => &[
"modern-language-association",
"mla",
],
Self::Alphanumeric => &[
"alphanumeric",
],
}
}
pub fn display_name(self) -> &'static str {
match self {
Self::AnnualReviews => "Annual Reviews (sorted by order of appearance)",
Self::Pensoft => "Pensoft Journals",
Self::AnnualReviewsAuthorDate => "Annual Reviews (author-date)",
Self::TheLancet => "The Lancet",
Self::ElsevierWithTitles => "Elsevier (numeric, with titles)",
Self::Gb77142015AuthorDate => "China National Standard GB/T 7714-2015 (author-date, 中文)",
Self::RoyalSocietyOfChemistry => "Royal Society of Chemistry",
Self::AmericanAnthropologicalAssociation => "American Anthropological Association",
Self::SageVancouver => "SAGE - Vancouver",
Self::BritishMedicalJournal => "BMJ",
Self::Frontiers => "Frontiers journals",
Self::ElsevierHarvard => "Elsevier - Harvard (with titles)",
Self::Gb77142005Numeric => "China National Standard GB/T 7714-2005 (numeric, 中文)",
Self::AngewandteChemie => "Angewandte Chemie International Edition",
Self::Gb77142015Note => "China National Standard GB/T 7714-2015 (note, 中文)",
Self::SpringerBasicAuthorDate => "Springer - Basic (author-date)",
Self::Trends => "Trends journals",
Self::AmericanGeophysicalUnion => "American Geophysical Union",
Self::AmericanPoliticalScienceAssociation => "American Political Science Association",
Self::AmericanPsychologicalAssociation => "American Psychological Association 7th edition",
Self::Cell => "Cell",
Self::Spie => "SPIE journals",
Self::HarvardCiteThemRight => "Cite Them Right 12th edition - Harvard",
Self::AmericanInstituteOfAeronauticsAndAstronautics => "American Institute of Aeronautics and Astronautics",
Self::CouncilOfScienceEditorsAuthorDate => "Council of Science Editors, Name-Year (author-date)",
Self::Copernicus => "Copernicus Publications",
Self::Sist02 => "SIST02 (日本語)",
Self::SpringerSocpsychAuthorDate => "Springer - SocPsych (author-date)",
Self::ModernLanguageAssociation8 => "Modern Language Association 8th edition",
Self::Nature => "Nature",
Self::Iso690Numeric => "ISO-690 (numeric, English)",
Self::SpringerMathphys => "Springer - MathPhys (numeric, brackets)",
Self::SpringerLectureNotesInComputerScience => "Springer - Lecture Notes in Computer Science",
Self::FutureScience => "Future Science Group",
Self::CurrentOpinion => "Current Opinion journals",
Self::DeutscheGesellschaftFRPsychologie => "Deutsche Gesellschaft für Psychologie 5. Auflage (Deutsch)",
Self::AmericanMeteorologicalSociety => "American Meteorological Society",
Self::ModernHumanitiesResearchAssociation => "Modern Humanities Research Association 3rd edition (note with bibliography)",
Self::AmericanSocietyOfCivilEngineers => "American Society of Civil Engineers",
Self::ChicagoNotes => "Chicago Manual of Style 17th edition (note)",
Self::InstituteOfElectricalAndElectronicsEngineers => "IEEE",
Self::DeutscheSprache => "Deutsche Sprache (Deutsch)",
Self::Gb77142015Numeric => "China National Standard GB/T 7714-2015 (numeric, 中文)",
Self::BristolUniversityPress => "Bristol University Press",
Self::AssociationForComputingMachinery => "Association for Computing Machinery",
Self::AssociacaoBrasileiraDeNormasTecnicas => "Associação Brasileira de Normas Técnicas (Português - Brasil)",
Self::AmericanMedicalAssociation => "American Medical Association 11th edition",
Self::ElsevierVancouver => "Elsevier - Vancouver",
Self::ChicagoAuthorDate => "Chicago Manual of Style 17th edition (author-date)",
Self::Vancouver => "Vancouver",
Self::ChicagoFullnotes => "Chicago Manual of Style 17th edition (full note)",
Self::TurabianAuthorDate => "Turabian 9th edition (author-date)",
Self::SpringerFachzeitschriftenMedizinPsychologie => "Springer - Fachzeitschriften Medizin Psychologie (Deutsch)",
Self::Thieme => "Thieme-German (Deutsch)",
Self::TaylorAndFrancisNationalLibraryOfMedicine => "Taylor & Francis - National Library of Medicine",
Self::AmericanChemicalSociety => "American Chemical Society",
Self::AmericanInstituteOfPhysics => "American Institute of Physics 4th edition",
Self::TaylorAndFrancisChicagoAuthorDate => "Taylor & Francis - Chicago Manual of Style (author-date)",
Self::GostR7052008Numeric => "Russian GOST R 7.0.5-2008 (numeric)",
Self::InstituteOfPhysicsNumeric => "Institute of Physics (numeric)",
Self::Iso690AuthorDate => "ISO-690 (author-date, English)",
Self::TheInstitutionOfEngineeringAndTechnology => "The Institution of Engineering and Technology",
Self::AmericanSocietyForMicrobiology => "American Society for Microbiology",
Self::MultidisciplinaryDigitalPublishingInstitute => "Multidisciplinary Digital Publishing Institute",
Self::SpringerBasic => "Springer - Basic (numeric, brackets)",
Self::SpringerHumanitiesAuthorDate => "Springer - Humanities (author-date)",
Self::TurabianFullnote8 => "Turabian 8th edition (full note)",
Self::Karger => "Karger journals",
Self::SpringerVancouver => "Springer - Vancouver (brackets)",
Self::VancouverSuperscript => "Vancouver (superscript)",
Self::AmericanPhysicsSociety => "American Physical Society",
Self::MaryAnnLiebertVancouver => "Mary Ann Liebert - Vancouver",
Self::AmericanSocietyOfMechanicalEngineers => "American Society of Mechanical Engineers",
Self::CouncilOfScienceEditors => "Council of Science Editors, Citation-Sequence (numeric, brackets)",
Self::AmericanPhysiologicalSociety => "American Physiological Society",
Self::FutureMedicine => "Future Medicine journals",
Self::BiomedCentral => "BioMed Central",
Self::PublicLibraryOfScience => "Public Library of Science",
Self::AmericanSociologicalAssociation => "American Sociological Association 6th edition",
Self::ModernLanguageAssociation => "Modern Language Association 9th edition",
Self::Alphanumeric => "Alphanumeric",
}
}
pub fn csl_id(self) -> &'static str {
match self {
Self::AnnualReviews => "http://www.zotero.org/styles/annual-reviews",
Self::Pensoft => "http://www.zotero.org/styles/pensoft-journals",
Self::AnnualReviewsAuthorDate => "http://www.zotero.org/styles/annual-reviews-author-date",
Self::TheLancet => "http://www.zotero.org/styles/the-lancet",
Self::ElsevierWithTitles => "http://www.zotero.org/styles/elsevier-with-titles",
Self::Gb77142015AuthorDate => "http://www.zotero.org/styles/china-national-standard-gb-t-7714-2015-author-date",
Self::RoyalSocietyOfChemistry => "http://www.zotero.org/styles/royal-society-of-chemistry",
Self::AmericanAnthropologicalAssociation => "http://www.zotero.org/styles/american-anthropological-association",
Self::SageVancouver => "http://www.zotero.org/styles/sage-vancouver",
Self::BritishMedicalJournal => "http://www.zotero.org/styles/bmj",
Self::Frontiers => "http://www.zotero.org/styles/frontiers",
Self::ElsevierHarvard => "http://www.zotero.org/styles/elsevier-harvard",
Self::Gb77142005Numeric => "http://www.zotero.org/styles/chinese-gb7714-2005-numeric",
Self::AngewandteChemie => "http://www.zotero.org/styles/angewandte-chemie",
Self::Gb77142015Note => "http://www.zotero.org/styles/china-national-standard-gb-t-7714-2015-note",
Self::SpringerBasicAuthorDate => "http://www.zotero.org/styles/springer-basic-author-date",
Self::Trends => "http://www.zotero.org/styles/trends-journals",
Self::AmericanGeophysicalUnion => "http://www.zotero.org/styles/american-geophysical-union",
Self::AmericanPoliticalScienceAssociation => "http://www.zotero.org/styles/american-political-science-association",
Self::AmericanPsychologicalAssociation => "http://www.zotero.org/styles/apa",
Self::Cell => "http://www.zotero.org/styles/cell",
Self::Spie => "http://www.zotero.org/styles/spie-journals",
Self::HarvardCiteThemRight => "http://www.zotero.org/styles/harvard-cite-them-right",
Self::AmericanInstituteOfAeronauticsAndAstronautics => "http://www.zotero.org/styles/american-institute-of-aeronautics-and-astronautics",
Self::CouncilOfScienceEditorsAuthorDate => "http://www.zotero.org/styles/council-of-science-editors-author-date",
Self::Copernicus => "http://www.zotero.org/styles/copernicus-publications",
Self::Sist02 => "http://www.zotero.org/styles/sist02",
Self::SpringerSocpsychAuthorDate => "http://www.zotero.org/styles/springer-socpsych-author-date",
Self::ModernLanguageAssociation8 => "http://www.zotero.org/styles/modern-language-association-8th-edition",
Self::Nature => "http://www.zotero.org/styles/nature",
Self::Iso690Numeric => "http://www.zotero.org/styles/iso690-numeric-en",
Self::SpringerMathphys => "http://www.zotero.org/styles/springer-mathphys-brackets",
Self::SpringerLectureNotesInComputerScience => "http://www.zotero.org/styles/springer-lecture-notes-in-computer-science",
Self::FutureScience => "http://www.zotero.org/styles/future-science-group",
Self::CurrentOpinion => "http://www.zotero.org/styles/current-opinion",
Self::DeutscheGesellschaftFRPsychologie => "http://www.zotero.org/styles/deutsche-gesellschaft-fur-psychologie",
Self::AmericanMeteorologicalSociety => "http://www.zotero.org/styles/american-meteorological-society",
Self::ModernHumanitiesResearchAssociation => "http://www.zotero.org/styles/modern-humanities-research-association",
Self::AmericanSocietyOfCivilEngineers => "http://www.zotero.org/styles/american-society-of-civil-engineers",
Self::ChicagoNotes => "http://www.zotero.org/styles/chicago-note-bibliography",
Self::InstituteOfElectricalAndElectronicsEngineers => "http://www.zotero.org/styles/ieee",
Self::DeutscheSprache => "http://www.zotero.org/styles/deutsche-sprache",
Self::Gb77142015Numeric => "http://www.zotero.org/styles/china-national-standard-gb-t-7714-2015-numeric",
Self::BristolUniversityPress => "http://www.zotero.org/styles/bristol-university-press",
Self::AssociationForComputingMachinery => "http://www.zotero.org/styles/association-for-computing-machinery",
Self::AssociacaoBrasileiraDeNormasTecnicas => "http://www.zotero.org/styles/associacao-brasileira-de-normas-tecnicas",
Self::AmericanMedicalAssociation => "http://www.zotero.org/styles/american-medical-association",
Self::ElsevierVancouver => "http://www.zotero.org/styles/elsevier-vancouver",
Self::ChicagoAuthorDate => "http://www.zotero.org/styles/chicago-author-date",
Self::Vancouver => "http://www.zotero.org/styles/vancouver",
Self::ChicagoFullnotes => "http://www.zotero.org/styles/chicago-fullnote-bibliography",
Self::TurabianAuthorDate => "http://www.zotero.org/styles/turabian-author-date",
Self::SpringerFachzeitschriftenMedizinPsychologie => "http://www.zotero.org/styles/springer-fachzeitschriften-medizin-psychologie",
Self::Thieme => "http://www.zotero.org/styles/thieme-german",
Self::TaylorAndFrancisNationalLibraryOfMedicine => "http://www.zotero.org/styles/taylor-and-francis-national-library-of-medicine",
Self::AmericanChemicalSociety => "http://www.zotero.org/styles/american-chemical-society",
Self::AmericanInstituteOfPhysics => "http://www.zotero.org/styles/american-institute-of-physics",
Self::TaylorAndFrancisChicagoAuthorDate => "http://www.zotero.org/styles/taylor-and-francis-chicago-author-date",
Self::GostR7052008Numeric => "http://www.zotero.org/styles/gost-r-7-0-5-2008-numeric",
Self::InstituteOfPhysicsNumeric => "http://www.zotero.org/styles/institute-of-physics-numeric",
Self::Iso690AuthorDate => "http://www.zotero.org/styles/iso690-author-date-en",
Self::TheInstitutionOfEngineeringAndTechnology => "http://www.zotero.org/styles/the-institution-of-engineering-and-technology",
Self::AmericanSocietyForMicrobiology => "http://www.zotero.org/styles/american-society-for-microbiology",
Self::MultidisciplinaryDigitalPublishingInstitute => "http://www.zotero.org/styles/multidisciplinary-digital-publishing-institute",
Self::SpringerBasic => "http://www.zotero.org/styles/springer-basic-brackets",
Self::SpringerHumanitiesAuthorDate => "http://www.zotero.org/styles/springer-humanities-author-date",
Self::TurabianFullnote8 => "http://www.zotero.org/styles/turabian-fullnote-bibliography-8th-edition",
Self::Karger => "http://www.zotero.org/styles/karger-journals",
Self::SpringerVancouver => "http://www.zotero.org/styles/springer-vancouver-brackets",
Self::VancouverSuperscript => "http://www.zotero.org/styles/vancouver-superscript",
Self::AmericanPhysicsSociety => "http://www.zotero.org/styles/american-physics-society",
Self::MaryAnnLiebertVancouver => "http://www.zotero.org/styles/mary-ann-liebert-vancouver",
Self::AmericanSocietyOfMechanicalEngineers => "http://www.zotero.org/styles/american-society-of-mechanical-engineers",
Self::CouncilOfScienceEditors => "http://www.zotero.org/styles/council-of-science-editors-brackets",
Self::AmericanPhysiologicalSociety => "http://www.zotero.org/styles/american-physiological-society",
Self::FutureMedicine => "http://www.zotero.org/styles/future-medicine",
Self::BiomedCentral => "http://www.zotero.org/styles/biomed-central",
Self::PublicLibraryOfScience => "http://www.zotero.org/styles/plos",
Self::AmericanSociologicalAssociation => "http://www.zotero.org/styles/american-sociological-association",
Self::ModernLanguageAssociation => "http://www.zotero.org/styles/modern-language-association",
Self::Alphanumeric => "http://typst.org/csl/alphanumeric",
}
}
}
fn from_cbor<T: DeserializeOwned>(
reader: &[u8],
) -> Result<T, ciborium::de::Error<std::io::Error>> {
ciborium::de::from_reader(reader)
}
pub const LOCALES: &[&[u8]] = &[
include_bytes!("../../archive/locales/gl-ES.cbor"),
include_bytes!("../../archive/locales/zh-TW.cbor"),
include_bytes!("../../archive/locales/es-CL.cbor"),
include_bytes!("../../archive/locales/ar.cbor"),
include_bytes!("../../archive/locales/lv-LV.cbor"),
include_bytes!("../../archive/locales/zh-CN.cbor"),
include_bytes!("../../archive/locales/hr-HR.cbor"),
include_bytes!("../../archive/locales/pt-PT.cbor"),
include_bytes!("../../archive/locales/la.cbor"),
include_bytes!("../../archive/locales/it-IT.cbor"),
include_bytes!("../../archive/locales/hi-IN.cbor"),
include_bytes!("../../archive/locales/en-US.cbor"),
include_bytes!("../../archive/locales/id-ID.cbor"),
include_bytes!("../../archive/locales/af-ZA.cbor"),
include_bytes!("../../archive/locales/es-ES.cbor"),
include_bytes!("../../archive/locales/es-MX.cbor"),
include_bytes!("../../archive/locales/he-IL.cbor"),
include_bytes!("../../archive/locales/mn-MN.cbor"),
include_bytes!("../../archive/locales/ru-RU.cbor"),
include_bytes!("../../archive/locales/sv-SE.cbor"),
include_bytes!("../../archive/locales/hu-HU.cbor"),
include_bytes!("../../archive/locales/de-DE.cbor"),
include_bytes!("../../archive/locales/km-KH.cbor"),
include_bytes!("../../archive/locales/ca-AD.cbor"),
include_bytes!("../../archive/locales/fi-FI.cbor"),
include_bytes!("../../archive/locales/is-IS.cbor"),
include_bytes!("../../archive/locales/th-TH.cbor"),
include_bytes!("../../archive/locales/vi-VN.cbor"),
include_bytes!("../../archive/locales/eu.cbor"),
include_bytes!("../../archive/locales/de-CH.cbor"),
include_bytes!("../../archive/locales/nn-NO.cbor"),
include_bytes!("../../archive/locales/fr-CA.cbor"),
include_bytes!("../../archive/locales/cs-CZ.cbor"),
include_bytes!("../../archive/locales/tr-TR.cbor"),
include_bytes!("../../archive/locales/et-EE.cbor"),
include_bytes!("../../archive/locales/cy-GB.cbor"),
include_bytes!("../../archive/locales/en-GB.cbor"),
include_bytes!("../../archive/locales/uk-UA.cbor"),
include_bytes!("../../archive/locales/fa-IR.cbor"),
include_bytes!("../../archive/locales/pt-BR.cbor"),
include_bytes!("../../archive/locales/fr-FR.cbor"),
include_bytes!("../../archive/locales/ja-JP.cbor"),
include_bytes!("../../archive/locales/pl-PL.cbor"),
include_bytes!("../../archive/locales/ro-RO.cbor"),
include_bytes!("../../archive/locales/da-DK.cbor"),
include_bytes!("../../archive/locales/ko-KR.cbor"),
include_bytes!("../../archive/locales/lt-LT.cbor"),
include_bytes!("../../archive/locales/el-GR.cbor"),
include_bytes!("../../archive/locales/sr-RS.cbor"),
include_bytes!("../../archive/locales/sl-SI.cbor"),
include_bytes!("../../archive/locales/sk-SK.cbor"),
include_bytes!("../../archive/locales/nl-NL.cbor"),
include_bytes!("../../archive/locales/bg-BG.cbor"),
include_bytes!("../../archive/locales/nb-NO.cbor"),
include_bytes!("../../archive/locales/de-AT.cbor"),
];
pub fn locales() -> Vec<Locale> {
LOCALES.iter().map(|bytes| {
from_cbor::<Locale>(bytes).unwrap()
}).collect()
}