From 0aaebad475488f7b577cffa36b270573d7bce29b Mon Sep 17 00:00:00 2001 From: Andreas Efstathiou <95447662+Skydrite@users.noreply.github.com> Date: Tue, 19 Mar 2024 22:05:06 +0100 Subject: [PATCH] Support for (biblatex) langid field in entry editor #10868 (#11049) * Added langid field in StandardFields * Fixed placement of addition in CHANGELOG.md * Update the xml file used in unit test to include table-cell for standard field "langid". Also change enum constant to match other constants in StandardField.java. --------- Co-authored-by: Christoph Co-authored-by: Enes --- CHANGELOG.md | 1 + .../java/org/jabref/model/entry/field/StandardField.java | 1 + .../OldOpenOfficeCalcExportFormatContentSingleEntry.xml | 8 +++++++- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 89da1b9b7a0..a52f29c3fb1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,6 +31,7 @@ Note that this project **does not** adhere to [Semantic Versioning](https://semv - We added a Cleanup for removing non-existent files and grouped the related options [#10929](https://github.com/JabRef/jabref/issues/10929) - We added the functionality to parse the bibliography of PDFs using the GROBID online service. [#10200](https://github.com/JabRef/jabref/issues/10200) - We added support for BibTeX String constants during copy & paste between libraries [#10872](https://github.com/JabRef/jabref/issues/10872) +- We added the field `langid` which is important for hyphenation and casing in LaTeX. [#10868](https://github.com/JabRef/jabref/issues/10868). ### Changed diff --git a/src/main/java/org/jabref/model/entry/field/StandardField.java b/src/main/java/org/jabref/model/entry/field/StandardField.java index ecc5eeb41bb..da5d207b453 100644 --- a/src/main/java/org/jabref/model/entry/field/StandardField.java +++ b/src/main/java/org/jabref/model/entry/field/StandardField.java @@ -78,6 +78,7 @@ public enum StandardField implements Field { KEY("key"), KEYWORDS("keywords"), LANGUAGE("language", FieldProperty.LANGUAGE), + LANGUAGEID("langid", FieldProperty.LANGUAGE), LABEL("label"), LIBRARY("library"), LOCATION("location"), diff --git a/src/test/resources/org/jabref/logic/exporter/OldOpenOfficeCalcExportFormatContentSingleEntry.xml b/src/test/resources/org/jabref/logic/exporter/OldOpenOfficeCalcExportFormatContentSingleEntry.xml index 618b78d30a2..b7d829cbddf 100644 --- a/src/test/resources/org/jabref/logic/exporter/OldOpenOfficeCalcExportFormatContentSingleEntry.xml +++ b/src/test/resources/org/jabref/logic/exporter/OldOpenOfficeCalcExportFormatContentSingleEntry.xml @@ -208,6 +208,9 @@ Language + + Langid + Label @@ -615,6 +618,9 @@ + + + 4 @@ -766,4 +772,4 @@ - \ No newline at end of file +