-
Notifications
You must be signed in to change notification settings - Fork 394
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
Add special handling for Soft Hyphen (SHY) unicode symbol to DOCX emi… #1180
Add special handling for Soft Hyphen (SHY) unicode symbol to DOCX emi… #1180
Conversation
…tter and PDF emitter.
…tter and PDF emitter.
…ner/birt into SHY-support_#1179
The code is not yet perfect, but I think it is a big step in the right direction. Some remarks:
More details regarding 5): In modern HTML, there are some CSS properties related to line-breaking:
These are described in more detail here: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Text/Wrapping_Text I did not examine the other properties, but regarding the BIRT behaves as if Without this PR, however, the behavior is incorrect, because the SHY symbol does not work as expected. With this PR, the behavior is correct regarding the SHY symbol. I think it would be possible (but of course not part of this PR) to support Firstly, document that BIRT's default value Next steps: Make BIRT recognize and use the Add support for Add support for |
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.
I have made some comments.
...itter.wpml/src/org/eclipse/birt/report/engine/emitter/wpml/writer/AbstractWordXmlWriter.java
Outdated
Show resolved
Hide resolved
...rg.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/layout/pdf/hyphen/Word.java
Outdated
Show resolved
Hide resolved
...rg.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/layout/pdf/hyphen/Word.java
Outdated
Show resolved
Hide resolved
...clipse.birt.report.engine/src/org/eclipse/birt/report/engine/nLayout/area/impl/TextArea.java
Outdated
Show resolved
Hide resolved
...clipse.birt.report.engine/src/org/eclipse/birt/report/engine/nLayout/area/impl/TextArea.java
Outdated
Show resolved
Hide resolved
...clipse.birt.report.engine/src/org/eclipse/birt/report/engine/nLayout/area/impl/TextArea.java
Outdated
Show resolved
Hide resolved
...clipse.birt.report.engine/src/org/eclipse/birt/report/engine/nLayout/area/impl/TextArea.java
Outdated
Show resolved
Hide resolved
....birt.report.engine/src/org/eclipse/birt/report/engine/nLayout/area/impl/TextCompositor.java
Outdated
Show resolved
Hide resolved
....birt.report.engine/src/org/eclipse/birt/report/engine/nLayout/area/impl/TextCompositor.java
Outdated
Show resolved
Hide resolved
....birt.report.engine/src/org/eclipse/birt/report/engine/nLayout/area/impl/TextCompositor.java
Outdated
Show resolved
Hide resolved
I renamed some attributes and method names and added a lot of comments in reaction to Wim's suggestions. |
@wimjongman @claesrosell Can we merge this? |
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.
LGTM!
Henning, please squash and merge but make sure you make a good commit comment. Something like this comment #1180 (comment) but maybe a bit more condensed. |
Thank you for this contribution, Henning! |
…tter and PDF emitter.
Added support for correctly handling the SHY symbol (Unicode 173) to the PDF emitter and the DOCX emitter.