On Thu, 17 Aug 2006 17:01:03 +0100
"Harold Fuchs" <[EMAIL PROTECTED]> wrote:

> 
> ----- Original Message ----- 
> From: "Andrius Astrauskas" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Thursday, August 17, 2006 1:55 PM
> Subject: Re: [users] Making language follow current keyboard layout?
> 
> 
> > On Thu, 17 Aug 2006 12:17:27 +0100
> > "Harold Fuchs" <[EMAIL PROTECTED]> wrote:
> > 
> >> I though I could record a macro to change the locale and language
> >> and then assign a shortcut key to the macro. This would have
> >> provided an easy-to-use kludge for the problem described above:
> >> when the user changes keyboard layout he/she also hits the
> >> shortcut key to change Writer's view of the world. There would be
> >> one macro/shortcut-key per required language.
> >> 
> >> I turned on the recorder and used the mouse to select the
> >> appropriate menu/sub-menu items. When I finished I clicked Stop
> >> Recording and saved my macro. When I looked at it with the editor
> >> there was almost nothing there; nothing useful anyway. And the
> >> macro certainly didn't do anything useful.
> >> 
> >> I think I must have got the wrong end of some stick. Which stick,
> >> please?
> >> 
> > 
> > The stick: keyboard switching is OS function and not OOo, so no
> > wonder that OOo macro recorder doesn't record it.
> > 
> <snip>
> I obviously didn't make myself clear.
> 
> My idea was to provide a macro to change *only* what is changeable in
> OO. That is the OO's idea of the "locale" and the language.  In OO
> 2.0.3 on Win XP/SP2 these are in Tools/Options/Language Settings.

Sorry for getting you wrong, but now I seem not to understand at all...

If I'm right, the OP asked about avoiding extra keypresses and mouse
clicks to get correct spellchecking of different languages in the same
document.

You are talking about global options - changing them has little to do
with specifying different languages in the same document while typing.

And why locale?

(From the help: "Locale setting / Specifies the locale setting of the
country setting. This influences settings for numbering, currency and
units of measure.)

> The user would then perform a *two* step operation:
> 1. Change the keyboard layout using whatever tools the OS provides
> 2. Change OO's locale and language, using a simple shortcut key, to
> match the keyboard.

You don't need a macro for *two step* changing of the language.

To avoid extra mouse clicks, you need to create one character style
containing only language (no font, font effects etc.) for each language
being used, and assign shortcuts to the styles. Each time you need
another language, switch appropriate character style with appropriate
shortcut (only once, before typing).

Check that Tools/Options/Language Settings/Writing aids -> Check in all
languages is unchecked. Besides, paragraph styles you use must not
specify a language (i.e. the default one must be set), if you want to
format the document after typing the text.

And that's it.


> I was not even remotely suggesting that an OO macro could change the
> keyboard layout.
> 
> However, trying to change these OO settings via a macro doesn't seem
> to work. My question was why?

If you ask why macro recorder doesn't record changes you make to 
Tools/Options/Language Settings - well, one of the answers may be that
it's designed to work that way. I'd say it's a reasonable behaviour.
Changing the options that affect all the documents you open is not
something intended to be done frequently.

By the way, that doesn't necessarily mean you cannot change these
settings with a macro at all. But again, what for?


> Anyone?
> 
> Harold Fuchs
> London, England
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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

Reply via email to