Skip to content
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

What was the reason you removed stylesheet support? #4

Closed
goeh opened this issue Mar 19, 2014 · 1 comment
Closed

What was the reason you removed stylesheet support? #4

goeh opened this issue Mar 19, 2014 · 1 comment

Comments

@goeh
Copy link

goeh commented Mar 19, 2014

What was the reason you commented out all code related to stylesheets?
I removed all the comments and rolled back a copy of RtfHeaderStyle.java. Then I did some test and stylesheets partially works with OpenOffice4, but Microsoft Word (on OSX) does not display the applied style attributes. Word recognizes the selected style, but font size, bold, etc are not applied to the styled text.
I read somewhere that style attributes should be repeated (redundant) where styles are used so that RTF readers that don't support stylesheets still render the text correct. Is Word one of those? I assume that's not the case.
I'm interested to help make it work. If you have any hints or could point me in the right direction I'll get an smoother start. Thanks for this great library!

@ullenboom
Copy link
Owner

Yes you are right, you have to repeat the style definition for Word in the
RTF file. I commented it out because it was not tested and didn't work
property. If you want to make it work feel free to make any changes and I
will integrate.

Grüße

Christian

/**

Die Retrobu.de (http://retrobu.de/) ist auf der Suche nach HEIMCOMPUTERN
und SPIELKONSOLEN. Gerne nehmen wir historische Heimcomputer, Software,
Literatur, Werbung und weitere Artefakte aus der Vergangenheit entgegen
(als Spende oder gegen Bezahlung). Bei uns sind die Sammlerstücke in guten
Händen.

tutego http://www.tutego.de/(R) unterstützt SOS
Kinderdörferhttp://www.sos-kinderdoerfer.de/,
die Deutsche Welthungerhilfe http://www.welthungerhilfe.de/ und Ärzte
ohne Grenzen http://www.aerzte-ohne-grenzen.de/. Helfen Sie mit!

2014-03-19 12:11 GMT+01:00 Goran Ehrsson notifications@github.com:

What was the reason you commented out all code related to stylesheets?
I removed all the comments and rolled back a copy of RtfHeaderStyle.java.
Then I did some test and stylesheets partially works with OpenOffice4, but
Microsoft Word (on OSX) does not display the applied style attributes. Word
recognizes the selected style, but font size, bold, etc are not applied to
the styled text.
I read somewhere that style attributes should be repeated (redundant)
where styles are used so that RTF readers that don't support stylesheets
still render the text correct. Is Word one of those? I assume that's not
the case.
I'm interested to help make it work. If you have any hints or could point
me in the right direction I'll get an smoother start. Thanks for this great
library!

Reply to this email directly or view it on GitHubhttps://github.com//issues/4
.

ullenboom pushed a commit that referenced this issue Oct 5, 2019
…ber-hidden

Fixed bug that paragraphs starting with numbers not rendered
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants