Friday, October 28, 2005 Andrew Brown wrote:

> Giuseppe Bilotta <[EMAIL PROTECTED]> wrote in 
> news:[EMAIL PROTECTED]:

>> As far as I see, this is just hardcoding the language, so
>> it's not about the use of Styles. And this is not what we're
>> talking about. 

> But it is what we are talking about. A language _is_ a character
> attribute to OOo. A character style is a bundle of character attributes.
> Doing it with a macro lets me pick one attribute out of this bundle and
> apply it. 

>> That would be like saying that you can use
>> macros instead of styles all over the place. Which is
>> *wrong*.

> Why? It may be clunky, or inconvenient, but there's no deep reason why
> styles shouldn't be applied through a macro interface rather than the
> stylist. 

>> 
>> The question is: what happens if instead of changing
>> the oTC charLocale you apply some style?
>>

> If that style changes the language, you _are_ then changing the
> charLocale of the selected text. 

> Try it. Write a macro that selects all the words in a particular language
> -- whether or not they have been marked that way with a style. The only
> way to do so is to iterate through the text looking for a particular
> charLocale.  

I'm not challening the fact that it's possible to apply hard
formatting (in the specific case, character attributes)
using macros. What I'm saying is that doing it via macros is
not in any way comparable to doing it via styles.

It's not a matter of applying a (soft) style via the stylist
or via a macro, it's about applying soft styles vs applying
hard formatting. With your method of doing things, you could
get rid of styles altogether and just use macros to apply
hard formatting. But that goes *against* the whole purpose
of styles.

The end result is that it's *not* possible to cascade (soft)
styles. I had already pointed out that it's possible to
cascade hard formatting, and that this means that it's in
theory possible to cascade (soft) style, even though OOo
*does not allow it* (which is a limit of OOo, and a serious
one too).

-- 
Giuseppe "Oblomov" Bilotta






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to