Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Add support for German months at the normalizer functionality #3536

Closed
wants to merge 1 commit into from

Conversation

koppor
Copy link
Member

@koppor koppor commented Dec 15, 2017

My library exports BibTeX in a strange format (http://www2.informatik.uni-stuttgart.de/zdi/buecherei/NCSTRL_listings/privat/Kopp_Oliver.bibtex.html). I cannot get this fixed, so JabRef has to.


  • Change in CHANGELOG.md described
  • Tests created for changes
  • Screenshots added (for bigger UI changes)
  • Manually tested changed features in running JabRef
  • Check documentation status (Issue created for outdated help page at help.jabref.org?)
  • If you changed the localization: Did you run gradle localizationUpdate?

Copy link
Member

@Siedlerchr Siedlerchr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adapt to the java 8 date formatter

if (value.equalsIgnoreCase("Maerz")) {
// this value is not treated by LatexToUnicodeAdapter, so a special handling is required.
month = Month.getMonthByNumber(3);
} else {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why don't you use the java 8 DateTimeFormatter for parsing the dates? Much more easier and flexible https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html#predefined

@@ -23,6 +26,31 @@ public String getKey() {
public String format(String value) {
Objects.requireNonNull(value);
Optional<Month> month = Month.parse(value);

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is about parsing months, it should go into the Month.parse method, right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved it there

@koppor
Copy link
Member Author

koppor commented Dec 15, 2017 via email

@koppor koppor changed the title Add support for German monts at the normalizer functionality [WIP] Add support for German months at the normalizer functionality Dec 22, 2017
@koppor koppor self-assigned this Dec 22, 2017
@koppor
Copy link
Member Author

koppor commented Feb 18, 2018

Superseeded by #3734

@koppor koppor closed this Feb 18, 2018
@koppor koppor removed the PE1718 label Feb 19, 2018
@stefan-kolb stefan-kolb deleted the support-german-months branch February 27, 2018 10:14
koppor pushed a commit that referenced this pull request Mar 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants