Page 1 of 1

Inline styles

Posted: Sat Nov 05, 2005 9:38 pm
by Rob
Is there a way to use styles as inner styles?

An inline style is a style that defines a limited amoount of properties. Say, I would want to have a style that only defines bold, italic and underline. Is this possible?

The style should not change the size of the last style selected, nor should it use another font, etc...

Posted: Sat Nov 05, 2005 9:43 pm
by Sergey Tkachenko
There is an option in SaveHTMLEx to save inline styles instead of CSS table, but it saves all styles, and HTML becomes very large.

Posted: Sat Nov 05, 2005 9:49 pm
by Rob
Thanks for the quick response, but that is not what I mean.

I am just asking if it is possible to define a text style that - when selected - only changes a limited number of text properties.

So this is what my text looks like in pseudo code, the [S*] means a text style selection:

[S1]This is a [S3]nice[/S3] piece of text[/S1]
[S2]This is a [S3]nice[/S3] piece of text[/S2]

S1 is a tekst in style 'Times New Roman', without any additional options.
S2 is a tekst in style 'Courier New', without any additional options.
S3 defines ITALIC only. This will make the word 'nice' italic for S1 and S2 style.

Is this currently suported? If yes, how do I define the styles and how do I use them?

Posted: Sat Nov 05, 2005 10:00 pm
by Sergey Tkachenko
Something like this is planned for future, see StyleTemplate collection in TRVStyle)

Posted: Sat Nov 05, 2005 10:12 pm
by Rob
OK, I'll put it on my wish list for implementing the ODT parser