Thursday, November 29, 2012

Adding Hyphenation And Spelling Dictionaries To InDesign CS 6 (and CS 5.5)


As I recently learned while helping a South African Maths text book publisher, if you want to spell-check and hyphenate text in Adobe InDesign CS6, in say, Afrikaans, you will need to add a few new dictionaries to your InDesign installation. Many of these dictionaries are free. The process is quickly documented in Adobe help, but there are a few stumbling points - especially on the Mac -- so I thought I would go through it here in a bit more detail. We'll go through the all the steps of installing a new dictionary and then testing it on the Macintosh and Windows.

The process described here is for adding new dictionaries. Adobe recommends you leave your existing dictionaries alone. We will be adding a new dictionary for the South African language - Afrikaans.

CopyFlow Gold for InDesign CS6 has a great new tool for setting the InDesign language settings quickly and easily even in layered multilingual documents -- there's a link to more information about CopyFlow Gold at the end of this article.

Dictionaries for many languages can be found for free online. Search for 'Hunspell dictionaries'. Two of the popular sites are Open Office and the Mozilla Firefox site. Our Afrikaans dictionary came from the Open Office site. I also downloaded a Macedonian spelling dictionary from Firefox. It came down with a .xpi extension which I renamed to be .zip to access the dictionary. Try the same approach of you download a .oxt file - rename it to be a .zip.

Our Afrikaans dictionary downloaded as 'dict-af.zip'. Here are its contents:

Afrikaans Dictionary files - click to enlarge
Out of all of this, we will need only 3 files: 'af_ZA.dic' and 'af_ZA.aff' which together make up the spelling dictionary and the 'hyph_af_ZA.dic' which is the hyphenation dictionary. We'll also show how to add a Afrikaans User Dictionary at the end of this article - for all the special terms or proper names you don't want showing up as spelling mistakes.

The notation for the language and the country codes, 'af-ZA',  is familiar to translators-- in this case 'af'  for Afrikaans and 'ZA' for South Africa. Links to more information about language and country codes can be found at the end of this article among 'Other Resources'.

New Dictionary Installation

The installation process consists of 3 steps:
  1. Make a new folder for the new language. In our case, a folder named: 'af_ZA'
  2. Copy the dictionary files into the new folder -> 'af_ZA'
  3. Edit another text file - info.plist - to make 3 new entries for 'af-ZA' 

The details vary by platform - so we'll do each separately below.

New Dictionary Installation (WINDOWS)

  1. Make a new folder. We must create a new folder in the 'languageCode_countryCode' form in the 'Dictionaries' folder which is located at:

    C:/ProgramFiles/Common Files/Adobe/Linguistics/6.0/Providers/Plugins2/AdobeHunspellPlugin/Dictionaries/

    For our example this new folder in Dictionaries will be called : 'af_ZA'
  2. Copy dictionary files into the newly created new folder, 'af_ZA'

  3. Edit the info.plist file. On Windows this file is found at:

    C:/ProgramFiles/Common Files/Adobe/Linguistics/6.0/Providers/Plugins2/AdobeHunspellPlugin/info.plist

    First make a backup copy of 'info.plist' somewhere safe -- in case something goes wrong.

    This is a text file, so open info.plist with a trusted text editor and scroll down to about line 60 or search for 'SpellingService'. You should see a long list of language and country codes. This is one of three places in this file we are going to add the line:

    <string>af_ZA</string>

    Here is the file after we have made the first edit.

Info.plist - click to enlarge
Then repeat this same edit in two other locations further down the file - to add the new language entry to the other lists of language and country codes for hyphenation (if we have a hyphenation dictionary) and user dictionaries. Once you are done close and save the file.

After you have made these edits - restart InDesign and select some document text with the text tool. You should now see the language you have added as a valid choice in the language pop-up.

New Language in InDesign - click to enlarge

New Dictionary Installation ( MACINTOSH )

  1. Make a new folder. Unfortunately the dictionary folder is inside a bundle on the Mac so first find the file:

    /Library/Application Support/Adobe/Linguistics/6.0/Providers/Plugins2/AdobeHunspellPlugin.bundle

    Then back it up - somewhere safe. We will be editing its contents. Once that is done, Control-click (aka right click) on the file name: 'AdobeHunspellPlugin.bundle' and select the menu item: Show Package Contents. Then we can step down in this window to the Dictionaries folder.

    /Contents/SharedSupport/Dictionaries/

    For our example this new folder will be called : 'af_ZA'. Using the Finder I created a new folder by selecting an existing folder - e.g., 'ar_AE' and right clicked to Duplicate it. Then I opened up this new copy of the 'ar_AE' folder, selected its contents and moved them to the trash. Finally I  renamed this copy of 'ar_AE' to the folder I wanted:  'af_ZA'

    Opening The Bundle - click to enlarge
  2.  Copy dictionary files into the newly created new folder, 'af_ZA' with a Finder copy & paste.

  3. Edit the info.plist file.  This file is also with the bundle we have already opened - at the top level  location:

    Contents/info.plist

    You'll need a good text editor to edit this file. I used the free TextWrangler from  BareBones.

    Open info.plist with your text editor and scroll down to about line 20 or search for 'HyphenationService'  You should see a long list of language and country codes. This is one of three places in this file we are going to add the line:

    <string>af_ZA</string>

    Then repeat this same edit in two other locations further down the file - to add the new language entry to the other lists of language and country codes for spelling and a user dictionaries. Once you are done close and save the file. Then close the bundle.

    After you have made these edits - restart InDesign and select some document text with the text tool. You should now see the language you have added as a valid choice in the language pop-up.
Edited info.plist - click to enlarge

Initial Testing:

I do not speak Afrikaans - so I clipped part of a news article and used Google translate to make some Afrikaans text which I pasted into an InDesign text box. Leaving the InDesign language setting on English - it found plenty of spelling 'errors' in my Afrikaans text


Then I selected the paragraph and set all the text to use my new dictionaries with the 'Afrikaans (South Africa) language menu setting. Spell check re-evaluated my text like this:


Now only the proper names and untranslated English phrases like 'First Lady' remain. To fix these, we need to add a User Dictionary.

Adding a New User Dictionary for the new language

Now that we have our spelling and hyphenation dictionaries in place we are ready to create an Afrikaans InDesign User Dictionary. This is a several stage process:

  • Open InDesign's preferences and select Dictionaries
  • Select your dictionary language - e.g., Afrikaans
  • Use the little icon below the list of dictionaries to make a new user dictionary file and specify where you would like to store it. Give it a unique name, not User Dictionary!
  • Once that is done, you can gather words into a simple list - one word per line in a plain text file (.txt)
  • Add your word list to your new user dictionary by going to InDesign's menu Edit-> Spelling -> User Dictionary... , then selecting your language and the new dictionary we created above. Click Import to read the file in. You can also add words interactively. For this example, we needed the Case Sensitive box checked.

Editing User Dictionary - click to enlarge

 Now we have a clean spell check in Afrikaans.







Other Resources:

Language Tags In HTML and XML:  http://www.w3.org/International/articles/language-tags/ 

Adobe Help about adding dictionaries : http://helpx.adobe.com/indesign/kb/add_cs_dictionaries.html 

CopyFlow Gold's new tool for setting InDesign language: http://www.napsys.com/CFGInDesignCS6.html#setlang

OpenOffice dictionaries: http://wiki.openoffice.org/wiki/Dictionaries

Language code lists : http://www.w3schools.com/tags/ref_language_codes.asp

Country code list: http://www.iso.org/iso/country_names_and_code_elements

47 comments:

  1. Replies
    1. Users are often frustrated by sub-par translations of user manuals. On the Dot Translations employs a specialist team of subject matter experts, linguists, and technical writers who can ensure that your user manuals are simple, easy to follow, and informative – no matter what languages they’re translated into On The Dot Translations.

      Delete
  2. Come notice cures are able to do for you expert translation assistance desires. The higher criteria along with sturdy function ethic turns into tremendously obvious medicine to enjoy the services. Chamber Ecommerce is actually an awesome experience! The services are generally strongly inside reasonably priced selling price school.click on see more button for more information.

    ReplyDelete
  3. Believe or not, most of the people on the internet do not read very well. This is partly because so many people are not native speakers, and English is a difficult language to learn click here. Even native English speakers may be poorly educated or have reading disabilities.

    ReplyDelete
  4. ones essay writers will probably bring your own little ease towards the hectic life of an students so that, they may do far better in it is professions in addition to in That is studies. professional essay writers

    ReplyDelete
  5. Congratulations! in this Dictionaries To In Design post . it is real post every time visit this site CS 6To do know more info visit this Rush essays

    ReplyDelete
  6. Locomote asking cures are fit to do for you skillful movement assistance desires. The higher criteria along with sturdy office ethic turns into staggeringly transparent penalization to revel the services.To know more info cheap proofreading services

    ReplyDelete
  7. Great post that will help us to change assistance directories. Some site help student for their research paper and to know more research paper on management decision making ,help student for better write their paper.Thanks .

    ReplyDelete
  8. When a student writes a dissertation, research paper, or essay, one of the major issues they face is proofreading them. If a student wants to get a good grade on his paper than extra effort has to be made to produce a good quality written paper. english language editing

    ReplyDelete
  9. ones exposition journalists will most likely bring your own particular little straightforwardness towards the boisterous existence of an understudies so that, they may improve in it is callings notwithstanding in That is studies.

    ReplyDelete
  10. ones exposition journalists will most likely bring your own particular little straightforwardness towards the boisterous existence of an understudies so that, they may improve in it is callings notwithstanding in That is studies.To do know click this link http://www.zentiz.com/top-10-best-car-vacuum-cleaner-reviews/

    ReplyDelete
  11. Some papers should include abstract, outline, table of contents, discussion, and appendix. Often, a cover/title page is a must. However, it’s your last problem to worry about, have a peek at this to find more information!

    ReplyDelete
  12. I hired one of the Dissertation Writers to do such type of paper for me as its quite convenient!

    ReplyDelete
  13. Were you ashamed in foreground of your accompany about how bad you are? If you answered yes, or wish to get bigger at bowling, accumulate reading. cs go betting sites

    ReplyDelete
  14. These things are really annoying, considering the research paper help UK. It makes absolutely no sense, how these things work. This is what I have been imagining.

    ReplyDelete
  15. thanks for this usefull article, waiting for this article like this again. Search Bar Firefox 57 Quantum addon

    ReplyDelete
  16. This comment has been removed by the author.

    ReplyDelete
  17. Hats off to your presence of mind..I really enjoyed reading your blog. I really appreciate your information which you shared with us.

    software testing course in chennai

    ReplyDelete
  18. Students could often find it tough to write their academic tasks. It could lead to they not getting desired grades in the academics. Opting for our Assignment help could be ideal for such students and they can get a complete assignment solution from us.

    ReplyDelete
  19. Thank You So Much For providing the important and Knowledgeable information.
    I am Olivia Crew, SEO Expert in a reputed company livewebtutors. All of your information is very useful to me. I am working as an academic

    consultant in Australia and offer Excellent Assignment Help Services to college students.
    visit here:- assignment help australia

    ReplyDelete
  20. Thank You So Much For providing the important and Knowledgeable information.
    I am Olivia Crew, SEO Expert in a reputed company livewebtutors. All of your information is very useful to me. I am working as an academic consultant in Australia and offer Excellent Assignment Help Services to college students.
    visit here:- my assignment help

    ReplyDelete
  21. Thanks for the genuine article good work keep it up .I would like to offer you guys tons of thanks for the detailed information and most importantly the information about the marketing strategies is top notch.
    visit here:- coursework help

    ReplyDelete
  22. Great post! I am actually getting ready to across this information, is very helpful my friend. Also great blog here with all of the valuable information you have. Keep up the good work you are doing here.
    my assignment help

    ReplyDelete
  23. Thank You So Much For providing the important and Knowledgeable information.
    I am Ted Johnson, SEO Expert in a reputed company ukdissertationhelp .I would like to offer you guys tons of thanks for the detailed information and most importantly the information about the marketing strategies is top notch.
    visit here:- Dissertation Help

    ReplyDelete
  24. Visit Students Assignment Help for the Best Assignment Help UK and get the best assistance in any of the academic disciplines such as law, management, nursing, IT, history, English, Maths or any other.

    ReplyDelete
  25. Get essay help for students at Myessayhelp.co.uk and They can also offer valuable assistance on other forms of academic tasks exclusively on your request like law essay writing, nursing essay writing, essay typer and more.. The essay writing services mainly aim to help the concerned students with the solutions to the assignments that might help them to secure better grades and in turn improve their academic career.

    ReplyDelete
  26. Did you know the number of courses offered in the Universities here? The number is over 30,000. Is not it amazing? From science to business, everything and every subject personal statement writing for college and assignment writing service is taught here.

    ReplyDelete
  27. Persuing MBA from international universities, here we provide best MBA Help at affordable prices. Buy Term Papers for your MBA online and get higher grades in your academics.

    ReplyDelete
  28. In finance dissertation a wrong selection of topic, the writer may have thought about scrapping the content and starting all over again from the scratch. Thus, a lot of time will be wasted to find finance dissertation topics.To make it easier for you, we have listed 30 brilliant topics, which can make the whole process of writing finance dissertation much easier.

    ReplyDelete
  29. Best Homework Helper Online is home to more than 3000 online live college homework tutors who are quite impressive in solving various primary homework related issues. In fact, some of these tutors hold a PhD degree, which clearly shows how competent they are at handling various school and college homework problems.

    ReplyDelete
  30. Students requiring homework help
    homework help from reliable online company can seek our assistance in order to receive help from tutors and qualified members in minimum time.

    ReplyDelete
  31. I am Adam Hebrew from Aberdeen UK. Adam Hebrew has been a reputed professor in a famous university of UK. He has been homework help for MyAssignmenthelp.co.uk for the last Five years. He is one of most trusted expert’s homework helper of homework Help. Why take all that pressure when MyAssignmenthelp.co.uk is here to provide the most excellent homework writing services online, so call us now or visit our web address.

    ReplyDelete
  32. The above post has given reliable and genuine information about Assignment Help Australia. Looking forward to avail their eminent services.
    visit now:- Assignment Help

    ReplyDelete
  33. Thanks for sharing such a nice blog of information to us. This is very knowledgeable for me. I am offering Assignment Help all over the world.

    ReplyDelete
  34. If you are in need for online writing assistance for an intricate thesis topic, then avail our assignment writing service in U.S. and save your time to relax and do your studies properly. Our assignment help online service in USA has earned huge popularity among both domestic and international students. There’s no better place in the USA than MyAssignmenthelp. Contact us now to buy assignments online in the USA Leave your tensions to us and enjoy your free time.

    ReplyDelete
  35. Students who have a problem with their homework can quickly make a connection with a tutor online so that you can receive the appropriate homework help. Getting help with homework help online is straightforward and hassle-free. And so many students suffer from significant difficulties from algebra. The need of high grades and good results deem the students to seek for algebra homework help online. This allows the students to get the necessary help for their homework.

    ReplyDelete
  36. Thank you for your post. This is excellent information. It is amazing and wonderful to visit your site.
    Digital Marketing Training

    ReplyDelete
  37. I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well. Get Online Assignment

    ReplyDelete
  38. MyAssignmenthelp.co.uk made getting writers help from professional easier than ever. Students need to spend a few minutes of their time to place an order with us. They need to complete three steps in order to get their assignments written by best professional assignment writers uk.

    ReplyDelete
  39. Thanks for sharing your wealthy information. This is one of the excellent posts which I have seen. I go through your all of your blog, but this blog is the best one. It is really what I wanted to see hope in future you will continue for sharing such an excellent post. We also provide blog CDR Report.

    ReplyDelete
  40. Your blogs are amazing and I am glad to read them. Thanks for sharing the tips and samples of our assignments. They are useful in knowing the key points that can increase the value of an assignment. And a special thanks to the Assignment Help Australia for helping the students 24/7. You can email us at Info@Myassignmenthelpau.Com or Phone Number: +61-2-8005-8227

    ReplyDelete
  41. I am very happy to read this. This is the kind of manual that needs to be given and not the random misinformation that’s at the other blogs. Appreciate your sharing this best posting. Assignment Help Australia

    ReplyDelete
  42. Great site and a great topic as well I really get amazed to read this. It’s really good. I like viewing web sites which comprehend the price of delivering the excellent useful resource free of charge. gramophone

    ReplyDelete