Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-25-2014, 06:49 AM
DaveW DaveW is offline How to identify languages in Word document Windows 7 64bit How to identify languages in Word document Office 2010 64bit
Novice
How to identify languages in Word document
 
Join Date: Jun 2014
Location: Birmingham, UK
Posts: 4
DaveW is on a distinguished road
Default

Yes, you, I and, to judge from forum posts, 99% of other Word users turn the automatic language detection off because of the annoyance it causes during normal text editing.

That makes it doubly annoying that the functionality cannot be accessed for one of the few circumstances in it would be genuinely useful! I have a large document with alternating German and Polish sentences, and I need to hide the Polish parts (so that they are ignored by translation software). So it seems that the only way to do this is to manually identify and mark each Polish sentence even though, theoretically, Word has the functionality to detect language!
Reply With Quote
  #2  
Old 06-25-2014, 07:12 AM
NobodysPerfect NobodysPerfect is offline How to identify languages in Word document Windows 8 How to identify languages in Word document Office 2010 32bit
Competent Performer
 
Join Date: Jan 2014
Location: Germany
Posts: 136
NobodysPerfect is on a distinguished road
Default

Hi,

as the whole document is set to German languageID, you can use the spellchecker to have all 'incorrect' words/sentences/passages marked. Than you can select theses passges and set the language to Polish. IMHO that seems to be the fastest way to do that manually.

NP
Reply With Quote
  #3  
Old 06-25-2014, 07:38 AM
DaveW DaveW is offline How to identify languages in Word document Windows 7 64bit How to identify languages in Word document Office 2010 64bit
Novice
How to identify languages in Word document
 
Join Date: Jun 2014
Location: Birmingham, UK
Posts: 4
DaveW is on a distinguished road
Default

Well, yes, that was what I was hoping to avoid. There are hundreds of alternating German / Polish sentences in the document, and it'll be a right pain to go through and mark them all manually. What a shame that Microsoft's automatic language detection can't be used for this purpose!
Reply With Quote
  #4  
Old 06-25-2014, 07:55 AM
NobodysPerfect NobodysPerfect is offline How to identify languages in Word document Windows 8 How to identify languages in Word document Office 2010 32bit
Competent Performer
 
Join Date: Jan 2014
Location: Germany
Posts: 136
NobodysPerfect is on a distinguished road
Default

Stupid work, I see ...

Maybe there is a VBA based solution: Looping through all paragraphs and counting misspelled words. Whenever - lets say - five misspelled words are found at the beginning of a paragraph the language ID will be set to Polish.

NP
Reply With Quote
  #5  
Old 06-25-2014, 08:00 AM
DaveW DaveW is offline How to identify languages in Word document Windows 7 64bit How to identify languages in Word document Office 2010 64bit
Novice
How to identify languages in Word document
 
Join Date: Jun 2014
Location: Birmingham, UK
Posts: 4
DaveW is on a distinguished road
Default

Yes, that's an idea. Or maybe it's possible to access the language detection functionality from a VBA macro. Thanks!
Reply With Quote
  #6  
Old 06-25-2014, 08:08 AM
NobodysPerfect NobodysPerfect is offline How to identify languages in Word document Windows 8 How to identify languages in Word document Office 2010 32bit
Competent Performer
 
Join Date: Jan 2014
Location: Germany
Posts: 136
NobodysPerfect is on a distinguished road
Default

http://gregmaxey.com/word_tip_pages/..._document.html

HTH
NP
Reply With Quote
  #7  
Old 06-25-2014, 09:23 AM
NobodysPerfect NobodysPerfect is offline How to identify languages in Word document Windows 8 How to identify languages in Word document Office 2010 32bit
Competent Performer
 
Join Date: Jan 2014
Location: Germany
Posts: 136
NobodysPerfect is on a distinguished road
Default

Another possibility:

Search for typical Polish words (VBA). Set range on paragraph where .Found = True, set languageID to Polish, continue search.

That's not too tricky - if you know typical Polish words .

Cheers
NP
Reply With Quote
Reply

Tags
indentify, languages, word 2010



Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA to identify how Word was invoked Sorcerer13 Word VBA 7 04-24-2014 11:15 AM
How to identify whether Word 2007 was used to create a document saved as Word 2003 noviceatwork Word 0 03-08-2012 06:40 AM
How to identify languages in Word document Using two languages in Word 2007 Mkn Word 5 05-31-2010 03:30 AM
How do I paste other Languages in Word documents Bules Word 0 04-19-2010 10:24 AM
C# API to identify the uncommitted changes in Excel and Word document? althafuddeen Excel 0 04-06-2010 07:40 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:57 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft