-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Add support for transliterated citation keys #13893
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
Conversation
|
I expect that I chose some wrong naming or placement |
jablib/src/main/java/org/jabref/logic/bibtex/BibtexStandard.java
Outdated
Show resolved
Hide resolved
jablib/src/test/java/org/jabref/logic/util/strings/TransliterationTest.java
Outdated
Show resolved
Hide resolved
|
Sorry, forgot a bit about this PR |
|
It would be nice to have this finished, seems like you just need to adjust the mocks/options in the test? |
jablib/src/main/java/org/jabref/logic/citationkeypattern/CitationKeyPatternPreferences.java
Outdated
Show resolved
Hide resolved
jablib/src/main/java/org/jabref/logic/preferences/JabRefCliPreferences.java
Outdated
Show resolved
Hide resolved
|
on my way
…On Mon, Sep 22, 2025 at 2:58 PM Christoph ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In
jablib/src/main/java/org/jabref/logic/preferences/JabRefCliPreferences.java
<#13893 (comment)>:
> @@ -649,6 +650,7 @@ public JabRefCliPreferences() {
defaults.put(USE_OWNER, Boolean.FALSE);
defaults.put(OVERWRITE_OWNER, Boolean.FALSE);
+ defaults.put(TRANSLITERATE_FIELDS, Boolean.TRUE);
I would make this false by default
—
Reply to this email directly, view it on GitHub
<#13893 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADD5VEUXPUISO77QI3AT4E33T7P7BAVCNFSM6AAAAACGN3KAJ6VHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZTENJSGI2DENRZGA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
jablib/src/main/java/org/jabref/logic/citationkeypattern/CitationKeyPatternPreferences.java
Outdated
Show resolved
Hide resolved
jablib/src/main/java/org/jabref/logic/citationkeypattern/CitationKeyPatternPreferences.java
Outdated
Show resolved
Hide resolved
jablib/src/main/java/org/jabref/logic/citationkeypattern/CitationKeyPatternPreferences.java
Outdated
Show resolved
Hide resolved
jablib/src/main/java/org/jabref/logic/citationkeypattern/CitationKeyGenerator.java
Show resolved
Hide resolved
| } | ||
|
|
||
| private static String buildTransliteratorConfig() { | ||
| StringBuilder pattern = new StringBuilder(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using StringBuilder for simple string concatenation can be replaced with StringJoiner for better readability and maintainability.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really?
jablib/src/main/java/org/jabref/logic/util/strings/Transliteration.java
Outdated
Show resolved
Hide resolved
jablib/src/test/java/org/jabref/logic/citationkeypattern/CitationKeyGeneratorTest.java
Show resolved
Hide resolved
…elds" + change tests
.../src/main/resources/org/jabref/gui/preferences/citationkeypattern/CitationKeyPatternTab.fxml
Outdated
Show resolved
Hide resolved
|
I will fix everything, just this stupid "connection timeout" |
Siedlerchr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thx for the quick follow up!
…ersions/org.glassfish.jersey.core-jersey-server-4.0.0 * upstream/main: (31 commits) Adds a 'regenerate' button to AI chat tab (#12191) (#14191) Chore(deps): Bump jablib/src/main/resources/csl-styles (#14323) Update dependency com.konghq:unirest-modules-gson to v4.6.0 (#14322) Convert fixed-value ComboBoxes to SearchableComboBox (#14083) (#14165) Add support for transliterated citation keys (#13893) Update dependency org.apache.maven.plugins:maven-jar-plugin to v3.5.0 (#14321) Add link to latest development version (#14320) Parameterize tests in AuthorTest and AuthorListTest (#14135) Add AGENTS.md and AI_USAGE_POLICY.md from p5.js (#14316) Fix Nullwarnings - A (#14116) Update io.github.darvil82:terminal-text-formatter from 2.2.0 to 2.3.0c (#14317) Streamline maven repositories (#14315) Fix paths to included Java sources Add forgotten .. Update dependency io.github.darvil82:terminal-text-formatter to v2.3.0c (#14314) Chore(deps): Bump io.github.classgraph:classgraph from 4.8.181 to 4.8.184 in /versions (#14304) Chore(deps): Bump com.fasterxml:aalto-xml in /versions (#14311) Chore(deps): Bump commons-io:commons-io in /versions (#14310) Chore(deps): Bump org.apache.maven.plugins:maven-surefire-plugin (#14298) Disable fetcher-gui-test (#14308) ...
|
I don't understand something or I'm doing something wrong, but Колмогоров doesn't become Kolmogorov in citationkey automatically. I use: JabRef 6.0-alpha.101--2025-11-14--4e8d537 |
|
There is a new option in preferences. Go to "Citation key generator" (if I remember correctly in the morning 😄), and then tick "Transliterate fields for citation key" checkbox |
|
Hmm, really missing. In latest commits I changed the location for being the top most, to be under "Remove characters... field". Either something bad with the PR, or we need to rebuild |
|
When I tested the pr it was there. |
|
@NeymanDmitry Sorry for the trouble, the new build was not published because we ran out of disk space... I retriggered a new build and you can now download the latest version again. |
* feat(citation-key-generator): add support for transliterating fields in citation key * feat(citation-key-generator): add transliteration action + refactor to class * chore(test): better format comments in TransliterationTest * chore(changelog): add changelog entry for transliteration * refactor(transliteration): refactor code after reviewing PR changes * refactor(transliteration): address review comments * chore(transliteration): reformat files * refactor(citationkey): append "for citation key" to "Transliterate fields" + change tests * chore(changelog): update CHANGELOG.md * Update CHANGELOG.md * fix(citationkey): address review comments * Fix duplicate entry in CHANGELOG.md * chore(submodules): fix submodules * refactor(citationkey): change true to false * chore(submodules): fix submodules --------- Co-authored-by: Subhramit Basu <subhramit.bb@live.in> Co-authored-by: Christoph <siedlerkiller@gmail.com>


Closes #11377
Added:
Result:
Steps to test
Results:
Mandatory checks
CHANGELOG.mdin a way that is understandable for the average user (if change is visible to the user)