CSL4LibreOffice - B [GSoC '24]#11521
Conversation
…tead of index, basis for preferences)
|
Follow-up: #11535 |
|
@Siedlerchr, @subhramit please fix this exception, JabRef is not starting 😓 |
|
Maybe this is because I didn't include the submodules in my clone? |
|
Seems like, you need to run git submodule init But we should nonetheless catch this |
Fixed in #11536, thanks for pointing out! |
|
@antalk2 Hey, are you still on GitHub by any chance? |
|
yes |
@antalk2 Hey, hey! It's so good to see your reply.
If you get even a bit of time, could you take a look at subhramit#12 and let me know what I'm doing wrong? |
Question 1: reference marks don't wrap around the citation text
In short: in src/main/java/org/jabref/logic/openoffice/oocsltext/CSLCitationOOAdapter.java seems to create an empty reference mark, then insert text into it. The call BackgroundBoth zotero (https://github.com/zotero/zotero-libreoffice-integration/blob/main/build/source/org/zotero/integration/ooo/comp/ReferenceMark.java) It has two reasons.
My recollection of what did I try and why.I was first trying to control (1.) by keeping REFERENCE_MARK_LEFT_BRACKET and REFERENCE_MARK_RIGHT_BRACKET within the reference marks textrange. Question 2: readExistingMarks
I do not remember having a difficulty in getting and parsing reference mark names. (Probably not relevant her: If I remember correctly, attempt to create a bookmark with a name already in use results If I understand correctly, you encode citationNumber in like this This would look like Parsing: I do not see the 3 parts in the format. Does citationKey contain a space? Or a space is missing after "RND"? |
|
Thank you for your invaluable guidance. I will try to tweak the implementation as per your comments.
Good catch, I was missing appending a random string as the third part for uniqueness. |
|
The code in seems not to depend on details of what is encoded in the reference mark name and the format of the text in the reference mark. does not even filter the reference mark names (for jabref-specific pefixes) getFillCursor should provide an XTextCursor strictly within the reference mark, (surrounded by REFERENCE_MARK_LEFT_BRACKET and REFERENCE_MARK_RIGHT_BRACKET), and public void cleanFillCursor(XTextDocument doc) should clean up the brackets after modifying the content. |
Okay, will look into these. |
Sub modules are "just" in the file .gitmodules (OK and some git internal object storage: https://stackoverflow.com/a/5033973/873282). One cannot omit a single file in a clone. As Chris pointed out: The initialization was missing 😅 |
|
Follow-up: #11712 |

Major updates for CSL-OO/LO integration
[PR - B of the GSoC '24 CSL4LibreOffice Project]
Follow-up to #11477
Summary:
Additions/Improvements:
Follow-up: #11577
Mandatory checks
CHANGELOG.mddescribed in a way that is understandable for the average user (if applicable)Tests created for changes (if applicable)