Force language

A

AnToNio

99% of all my docs are in the Dutch language, so I set this as the
default.

However quite often Word decides that a inserted doc or a paragraph is
in a different language and the red lines are everywhere.

Is there a way to disable all other languages?
 
C

Clive Huggan

Hello Antonio,

It appears that the text you are inserting has another language assigned to
it.

This happens to me -- my variant of English is Australian English, but most
people who supply me with text have not changed it from US English.

You can select all your text by typing Command-a (or just the new text that
isn't in Dutch) and choosing Tools menu -> Language -> scroll to Dutch ->
OK.

I prepared a macro and assigned a keystroke combination so that I don't have
to go to the menu:

Sub ApplyEnglishAust()
'
' ApplyEnglishAust Macro
' Macro recorded 2 April 2003 by Huggan
'
Selection.LanguageID = wdEnglishAUS
End Sub

Try "wdDutch" and maybe it will work!


-- Clive Huggan
Canberra, Australia
============================================================
* A suggestion: If you post a question, keep re-visiting the newsgroup for
several days after the first response comes in. Sometimes it takes a few
responses before the best or complete solution is proposed; sometimes you'll
be asked for further information so that a better answer can be provided.
Good tips about getting the best out of posting are at
http://word.mvps.org/FindHelp/Posting.htm

* Know the answer, even a partial one, to a question you see on this
newsgroup? Jump in and answer it -- there's no monopoly on answering here,
and we're all volunteers!

* Before posting a question about a topic, search Google Groups
(http://groups.google.com/advanced_group_search?q=group:*mac.office.word) --
it may have been comprehensively answered already.

* Please post all comments or follow-on questions to the newsgroup for the
benefit of others who may be interested. If you need to send an e-mail to me
directly (although that would be exceptional), remove the uppercase letters
from my address above. Please note that e-mails with an attachment will be
automatically rejected.

* If anyone is still reading down this far, here's a question: is it time
for you to back up your Normal template and all your Word settings files?
(This should be on a medium other than the internal hard drive and, if you
also want to protect against theft and fire, stored in a different
building.)
============================================================
 
A

AnToNio

Clive Huggan said:
I prepared a macro and assigned a keystroke combination so that I don't have
to go to the menu:

Good idea. I could do the same for the "Insert New page", in MS this is
simple (Ctrl-Enter) in X there is no shortcut.
 
C

Clive Huggan

Good idea. I could do the same for the "Insert New page", in MS this is
simple (Ctrl-Enter) in X there is no shortcut.

Shift-Enter does not work? (I'm still in Word 2001, so I can't check).

If you have recently moved from Windows, you might find it useful to
generate a list of commands for Word on the Mac. Once you get the hang of
the differences it's fairly intuitive to find the Mac ones, if you know the
Windows ones. Here is how you do it:

Tools menu -> Macro -> Macros-> scroll to ListCommands (may be necessary to
select "Word Commands" from the "Macros in" pop-down menu first) and select
-> Run -> Current menu and keyboard settings.

Simplicity, Microsoft style!

I got a friend with a PC to do the same in Windows, so I could compare them.

For more information, see under the heading "Standard keyboard shortcuts in
Word" in the notes about how I use Word, titled "Bend Word to your Will",
downloadable free at http://word.mvps.org/FAQs/WordMac/Bend/BendWord.htm


-- Clive Huggan
Canberra, Australia
============================================================

* Please post all comments or follow-on questions to the newsgroup for the
benefit of others who may be interested. If you need to send an e-mail to me
directly (although that would be exceptional), remove the uppercase letters
from my address above. Please note that e-mails with an attachment will be
automatically rejected.

============================================================
 
D

Dayo Mitchell

Clive Huggan said:
Shift-Enter does not work? (I'm still in Word 2001, so I can't check).

If you have recently moved from Windows, you might find it useful to
generate a list of commands for Word on the Mac. Once you get the hang of
the differences it's fairly intuitive to find the Mac ones, if you know the
Windows ones. Here is how you do it:

Tools menu -> Macro -> Macros-> scroll to ListCommands (may be necessary to
select "Word Commands" from the "Macros in" pop-down menu first) and select
-> Run -> Current menu and keyboard settings.
You can also browse many commands under Tools | Customize, click on
Keyboard, before dealing with macros. InsertPageBreak already exists, for
instance, you just need to assign a keyboard shortcut for it.

DM
 
A

AnToNio

Dayo Mitchell said:
InsertPageBreak already exists, for
instance, you just need to assign a keyboard shortcut for it.

I had seen it and didn't realize I had to assign a shortcut to it.
 
C

Clive Huggan

Mitchell at (e-mail address removed) wrote on 7/4/04 9:56
AM:
You can also browse many commands under Tools | Customize, click on
Keyboard, before dealing with macros. InsertPageBreak already exists, for
instance, you just need to assign a keyboard shortcut for it.

DM
Just for the record, Dayo, in case Antonio or anyone else gets confused: the
macro I provided to Antonio was to apply a language to selected text (a
great rarity, that macro -- I did it myself!). I don't think there is a
command for it.

The follow-up answer I gave to Antonio was the standard keystroke for
"Insert page break", so neither a macro nor a custom keystroke was needed
for that; and I told him how to generate a list of such keystrokes.

This wasn't evident from the currently truncated record of previous posts,
so it's easy to see how you came up with your comment, which (as always) is
spot on, but not relevant to this particular situation. ;-)

--Clive
 
D

Dayo Mitchell

Clive Huggan said:
Mitchell at (e-mail address removed) wrote on 7/4/04 9:56
AM:

Just for the record, Dayo, in case Antonio or anyone else gets confused: the
macro I provided to Antonio was to apply a language to selected text (a
great rarity, that macro -- I did it myself!). I don't think there is a
command for it.

The follow-up answer I gave to Antonio was the standard keystroke for
"Insert page break", so neither a macro nor a custom keystroke was needed
for that; and I told him how to generate a list of such keystrokes.

This wasn't evident from the currently truncated record of previous posts,
so it's easy to see how you came up with your comment, which (as always) is
spot on, but not relevant to this particular situation. ;-)
Hi Clive,

"before dealing with macros" was a response to Antonio's suggestion of
creating a macro, not yours of creating the list. That is, Antonio, before
trying to create a macro, always check first to see if there is a built-in
command that can be moved to a toolbar or assigned a shortcut key.

The rest of it was just a second way to discover those built-in commands and
their keyboard shortcuts, as I've always been too disorganized to keep the
list on hand and tend to look them up one by one in Tools | Customize.
Sorry, a tad elliptical...

Dayo
 
C

Clive Huggan

Mitchell at (e-mail address removed) wrote on 7/4/04 7:37
PM:
Hi Clive,

"before dealing with macros" was a response to Antonio's suggestion of
creating a macro, not yours of creating the list. That is, Antonio, before
trying to create a macro, always check first to see if there is a built-in
command that can be moved to a toolbar or assigned a shortcut key.

The rest of it was just a second way to discover those built-in commands and
their keyboard shortcuts, as I've always been too disorganized to keep the
list on hand and tend to look them up one by one in Tools | Customize.
Sorry, a tad elliptical...

Dayo
Umm, er ... I had a feeling I shouldn't have answered that one!

I'm with you, Dayo (several feet behind, but with you!)

Clive
 
J

John McGhie [MVP - Word]

Hi AnToNio:

You *can* disable other languages by the simple method of uninstalling them
from the operating system and from Microsoft Office. Of course, if you do
that, you can't use the languages any more if you ever want to.

Windows Word contains an Automatic Language Detection feature, and the
ability to disable it. For some reason, the ability to disable this has
been omitted from the Mac version of Word. I'll put in a bug on that for
you.

The language setting is a text property (it's actually a character-level
property) but it can also be set for a paragraph or a style or a document.

So as the others have suggested, a Macro solution is your best bet. You can
do this several ways:

* Make a macro that automatically sets your selection to the appropriate
language before it copies the text (it must then put the text BACK to its
original language after copying :))

* Make a macro to select all in the document and set the Language to
"Default". This means the language set in your styles then takes over.

* Make a macro to search for languages other than the one you want and
highlight them so you can decide whether you wish to change them.

That's the macro I use, but it's quite complex.

Give me more detail on how you wish to work and maybe I can suggest
something better.

Cheers


This responds to article <1gbtnlw.jap8uyw0wztsN%[email protected]>,
from "AnToNio said:
99% of all my docs are in the Dutch language, so I set this as the
default.

However quite often Word decides that a inserted doc or a paragraph is
in a different language and the red lines are everywhere.

Is there a way to disable all other languages?

--

Please respond only to the newsgroup to preserve the thread.

John McGhie, Consultant Technical Writer,
McGhie Information Engineering Pty Ltd
Sydney, Australia. GMT + 10 Hrs
+61 4 1209 1410, mailto:[email protected]
 
A

AnToNio

John McGhie said:
Windows Word contains an Automatic Language Detection feature, and the
ability to disable it. For some reason, the ability to disable this has
been omitted from the Mac version of Word. I'll put in a bug on that for
you.

The language setting is a text property (it's actually a character-level
property) but it can also be set for a paragraph or a style or a document.

So as the others have suggested, a Macro solution is your best bet. You can
do this several ways:

* Make a macro that automatically sets your selection to the appropriate
language before it copies the text (it must then put the text BACK to its
original language after copying :))

* Make a macro to select all in the document and set the Language to
"Default". This means the language set in your styles then takes over.

* Make a macro to search for languages other than the one you want and
highlight them so you can decide whether you wish to change them.

That's the macro I use, but it's quite complex.

Give me more detail on how you wish to work and maybe I can suggest
something better.

Thanks for the elaborate answer.

99.9% of all my writings with word is in the Dutch language so I would
prefer to disable all other languages. And I certainly never insert
pieces in another language.

From someone else I understood it is quite simple to make that macro
(select document, set language).
 
J

John McGhie [MVP - Word]

Hi AnToNio:

Yes, you can simply RECORD the macro that does a Select All, Set Language.

Cheap and nasty, but it works :) Of course, it destroys any "real"
language formatting that may be present :)

Once you have recorded it, edit it to remove the other stuff it also records
so you just get something looking like this...

Sub Macro2()
'
' Macro2 Macro
' Macro recorded 12/4/04 by John McGhie
'
Selection.WholeStory
Selection.LanguageID = wdEnglishAUS
Selection.NoProofing = False
End Sub


This responds to article <1gc1k6r.13jpsrdhkn48zN%[email protected]>,
from "AnToNio said:
Thanks for the elaborate answer.

99.9% of all my writings with word is in the Dutch language so I would
prefer to disable all other languages. And I certainly never insert
pieces in another language.

From someone else I understood it is quite simple to make that macro
(select document, set language).

--

Please respond only to the newsgroup to preserve the thread.

John McGhie, Consultant Technical Writer,
McGhie Information Engineering Pty Ltd
Sydney, Australia. GMT + 10 Hrs
+61 4 1209 1410, mailto:[email protected]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top