From de22a96f32b84301ceacca1a79a891e0411e18e2 Mon Sep 17 00:00:00 2001 From: Yao-Yuan Mao Date: Mon, 8 Jul 2024 16:44:01 -0700 Subject: [PATCH] allow nonstandard entries --- adstex.py | 14 +++++++------- setup.py | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/adstex.py b/adstex.py index ecc0851..f9bf1e3 100644 --- a/adstex.py +++ b/adstex.py @@ -5,7 +5,7 @@ Project website: https://github.com/yymao/adstex The MIT License (MIT) -Copyright (c) 2015-2023 Yao-Yuan Mao (yymao) +Copyright (c) 2015-2024 Yao-Yuan Mao (yymao) http://opensource.org/licenses/MIT """ from __future__ import absolute_import, print_function @@ -30,7 +30,7 @@ except ImportError: from urllib import unquote -__version__ = "0.5.1" +__version__ = "0.5.2" _this_year = date.today().year % 100 _this_cent = date.today().year // 100 @@ -81,11 +81,11 @@ def fixedAdsExportQuery(*args, **kwargs): def get_bparser(): - try: - mybparser = bibtexparser.bparser.BibTexParser(common_strings=True) - mybparser.bib_database.strings["june"] = "June" - except TypeError: - mybparser = bibtexparser.bparser.BibTexParser() + mybparser = bibtexparser.bparser.BibTexParser( + common_strings=True, + ignore_nonstandard_types=False, + ) + mybparser.bib_database.strings["june"] = "June" return mybparser diff --git a/setup.py b/setup.py index f59dfd8..50f6905 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ Project website: https://github.com/yymao/adstex The MIT License (MIT) -Copyright (c) 2015-2023 Yao-Yuan Mao (yymao) +Copyright (c) 2015-2024 Yao-Yuan Mao (yymao) http://opensource.org/licenses/MIT """ from __future__ import absolute_import