LO: Fix zotero mode bibliography rendering, optimize performance - #16555
LO: Fix zotero mode bibliography rendering, optimize performance#16555subhramit wants to merge 12 commits into
Conversation
Signed-off-by: subhramit <subhramit.bb@live.in>
PR Summary by QodoFix Zotero-mode bibliography number spacing in LibreOffice output
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
Code Review by Qodo
1.
|
Signed-off-by: subhramit <subhramit.bb@live.in>
Signed-off-by: subhramit <subhramit.bb@live.in>
Signed-off-by: subhramit <subhramit.bb@live.in>
Signed-off-by: subhramit <subhramit.bb@live.in>
Signed-off-by: subhramit <subhramit.bb@live.in>
| if (Boolean.TRUE.equals(generatedBibliography.getHangingIndent())) { | ||
| indent = 720; | ||
| firstLineIndent = -720; | ||
| } else if (secondFieldAlign != SecondFieldAlign.FALSE) { | ||
| int alignAt = 24 + maxOffset * 120; | ||
| firstLineIndent = -alignAt; | ||
| if (secondFieldAlign == SecondFieldAlign.MARGIN) { | ||
| tabStops = createTabStops(0); | ||
| } else { |
There was a problem hiding this comment.
Like JabRef-only mode, we will use LO's natural Hanging Indent formatting instead of these hardcodings, which appear to work in RTF-based mode of zotero but not here.
Signed-off-by: subhramit <subhramit.bb@live.in>
Signed-off-by: subhramit <subhramit.bb@live.in>
Signed-off-by: subhramit <subhramit.bb@live.in>
| bodyFormats.itemsProperty().bind(viewModel.bodyFormatListProperty()); | ||
| bodyFormats.valueProperty().bindBidirectional(viewModel.cslBibliographySelectedBodyFormatProperty()); | ||
|
|
||
| titleLabel.disableProperty().bind(viewModel.shouldDisableHeadingControlsProperty()); |
There was a problem hiding this comment.
A label can also be disabled? Never thought of that
|
@subhramit Did you also try the style that you fixed for citeproc-java? The bibliography is in another format |
Is there a different expectation/some gap here? |
Yes. Create a new doc and insert using zotero |
Indeed. Logs: Meaning, citeproc is not making the year bold. |
|
@InAnYan could you reapprove, had to resolve a merge conflict |







Summary
Before:

After:

Steps to test
Related issues and pull requests
Closes NA
Follow-up to #16282
AI usage
NA
Checklist
CHANGELOG.mdin a way that can be understood by the average user (if change is visible to the user)