List Info

Thread: Re: Setting the default language (spell check)




Re: Setting the default language (spell check)
user name
2007-02-05 12:01:54
Alamo Vallejo, Joan wrote:

> Is there a way to select the language the document is
written in when
> you're loading the document? I want to have the right
spell checker set
> already when the doc is loaded

There is no such thing as a "document language" in
OOo. The language the
spell checker uses is a character attribute that (if no
setting has been
applied by the user) is taken from the default paragraph
style.

So if you load a document it has its "document
language" built in - it's
the one stored in its default paragraph style.

How do you want to get the "document language"
instead?

Ciao,
Mathias

-- 
Mathias Bauer (mba) - Project Lead OpenOffice.org Writer
OpenOffice.org Engineering at Sun: http://blogs.sun.com/Gu
llFOSS
Please don't reply to "nospamformbagmx.de".
I use it for the OOo lists and only rarely read other mails
sent to it.

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribeapi.openoffice.org
For additional commands, e-mail: dev-helpapi.openoffice.org


Re: Setting the default language (spell check)
user name
2007-02-06 07:51:20
Hi Mathias, *,

On Mon, Feb 05, 2007 at 07:01:54PM +0100, Mathias Bauer
wrote:
> Alamo Vallejo, Joan wrote:
> 
> > Is there a way to select the language the document
is written in when
> > you're loading the document? I want to have the
right spell checker set
> > already when the doc is loaded
> 
> There is no such thing as a "document
language" in OOo.

Hmm - but how would you explain the setting Toolsptions
→ Languages →
Language Settings?

It has a "default language for documents" settings
that can be applied
to the current document only as well.

> The language the
> spell checker uses is a character attribute that (if no
setting has been
> applied by the user) is taken from the default
paragraph style.

Default paragraph style doesn't has a language set by
default.

> So if you load a document it has its "document
language" built in - it's
> the one stored in its default paragraph style.

No, it's not... (Organize tab of the style doesn't list
language
setting)

> How do you want to get the "document
language" instead?

I mentioned here recently that the documentation for
DocumentInfo
mentions a Language property that I would have expected to
be just that.
But api is broken and doesn't return that property.
http://qa.openoffice.org/issues/show_bug.cgi?id=26672

The default language is a
<dc:language>en-US</dc:language> property in
content.xml

ciao
Christian
-- 
NP: Linkin Park - Papercut

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribeapi.openoffice.org
For additional commands, e-mail: dev-helpapi.openoffice.org


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )