Skip to content

Conversation

@InAnYan
Copy link
Member

@InAnYan InAnYan commented Sep 13, 2025

Closes #11377

Added:

  • Transliteration field formatter.
  • Transliteration of citation keys.
  • Ability to turn off or on transliteration for citation keys.

Result:

2025-09-13_12-00

Steps to test

  • Enter author in Cyrillic script or Chinese language.
  • Turn on "Transliterate fields" (turned on by default).
  • Click "Generate key".

Results:

2025-09-13_11-49 2025-09-13_12-55

Mandatory checks

@InAnYan
Copy link
Member Author

InAnYan commented Sep 13, 2025

I expect that I chose some wrong naming or placement

@InAnYan
Copy link
Member Author

InAnYan commented Sep 16, 2025

Sorry, forgot a bit about this PR

@Siedlerchr
Copy link
Member

It would be nice to have this finished, seems like you just need to adjust the mocks/options in the test?

@InAnYan
Copy link
Member Author

InAnYan commented Sep 22, 2025 via email

}

private static String buildTransliteratorConfig() {
StringBuilder pattern = new StringBuilder();
Copy link

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.

Copy link
Member Author

Choose a reason for hiding this comment

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

Really?

@github-actions github-actions bot added status: changes-required Pull requests that are not yet complete and removed status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers labels Nov 12, 2025
@InAnYan
Copy link
Member Author

InAnYan commented Nov 13, 2025

I will fix everything, just this stupid "connection timeout"

@github-actions github-actions bot removed the status: changes-required Pull requests that are not yet complete label Nov 13, 2025
@InAnYan InAnYan added the status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Nov 13, 2025
@Siedlerchr Siedlerchr enabled auto-merge November 15, 2025 14:03
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.

thx for the quick follow up!

@Siedlerchr Siedlerchr added this pull request to the merge queue Nov 15, 2025
Merged via the queue into JabRef:main with commit eca968e Nov 15, 2025
49 checks passed
@Siedlerchr Siedlerchr deleted the feat/11377 branch November 15, 2025 14:38
Siedlerchr added a commit that referenced this pull request Nov 15, 2025
…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)
  ...
@NeymanDmitry
Copy link

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
Linux 6.14.0-35-generic amd64
Java 24.0.2
JavaFX 25.0.1+3

@InAnYan
Copy link
Member Author

InAnYan commented Nov 16, 2025

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

@NeymanDmitry
Copy link

The problem is that this option is missing in the latest build (at least for Linux). Or did I download the wrong version of the program?

Screenshot from 2025-11-16 15-10-12

The main build:

temp

@InAnYan
Copy link
Member Author

InAnYan commented Nov 16, 2025

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

@Siedlerchr
Copy link
Member

When I tested the pr it was there.

@Siedlerchr
Copy link
Member

Siedlerchr commented Nov 16, 2025

@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.

merlinymy pushed a commit to merlinymy/jabref that referenced this pull request Nov 19, 2025
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: citationkey-generator status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Other alphabets (for example, Cyrillic) should be transliterated to ASCII in making citation keys

5 participants