-
Notifications
You must be signed in to change notification settings - Fork 5
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
Update keyword linking script to handle P603 paragraphs #452
Conversation
What if LibreOffice changes all of the style numbers? |
Maybe in addition detect keywords in a path (between slashes or between slash and dot)? |
These paragraphs contain verbatim monospaced text and should not be linked.
@gdfldm Good point. The style P603 is defined like this:
The script could search through all automatic-styles and determine if there is one or more styles that has for example:
and record the value of Any other ideas for how to solve this? |
Use some logic to determine if a style represents a mono font size paragraph that should not be linked
2cb20e1
to
cbfcc3f
Compare
I chose to try out this approach first, see latest commit. |
and self.style_paragraph_properties | ||
and self.style_text_properties | ||
and self.libre_mono_font | ||
and self.libre_mono_font_size) |
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.
@hakonhagland: That then means the font size needs to be set to exactly 8pt such that the MonoParagraphStyle is valid, right? How about other font sizes?
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.
Right, the font size might be changed in the future. I suggest we allow any font size to be included in the MonoParagraphStyle
I generally approve this PR 👍 :), yet I have one remaining question: #452 (comment), as soon as that is answered, I'm happy to merge this. |
Don't check for a fixed font size equal to 8pt as it might change in the future.
@lisajulia Thanks for the review. I have a addressed the comment in the latest commit |
Thanks :) yet I'm wondering if the check for the font size could be removed overall, since we check if style:font-name is Liberation Mono? Sorry for the nitpicking... |
@lisajulia Removed the font size check. |
These paragraphs contain verbatim monospaced text and should not be linked. See #446 (comment) for more information