Hi all,
so, thanks to grace given, I was able to prepare a basic 2 column dictionary and learned something on the way.
As you guys also helped me, I feel I shoud share how it worked for me and maybe it will help somebody else later on…
Apart from the videos I did not find a knowledge base, so I am posting it here.
The dictionary is a standard 2 column format (1. foreign word or phrase 2. translation), displaying on each page header the first and the last foreign word from the selection
1. Format Excel table (or Word, or LibreWriter,…): 2 columns – 1. foreign word 2. translation
2. Import to InDesign (no formatting, no styles, just a raw table)
3. Format Columns to desired Font type, size, etc. (e. g. 1-st column – foreign words format to Myriad Pro, 12, bold; 2nd column – translations format to Myriad Pro, 12, Regular) – this being just an example
4. Remove the table by converting it to text using a script (open Adobe Extended Script Toolkit and type either this in 1 line:
app.activeDocument.textFrames.everyItem().tables.everyItem().convertToText(“”,”\r”);)
or this in 3 lines:
var myDoc=app.activeDocument;
tableList = myDoc.textFrames.everyItem().tables.everyItem();
tableList.convertToText(“”,”\r”);
Choose Adobe InDesign 6 (or the version you are using) and hit the play button (both scripts do the same thing, they remove the table and put the text from columns next to each other divided by a tab); depending on your PC “strenght,” it can take from 10 seconds to more…(dont know, I have a powerful PC at work)
5. Replace the tabs with En spaces using GREP and then clean up the text (remove extra spaces, etc.)
6. Define a new Paragraph style to body (change the font type and size, but remember not to change the the thickness, leave it on Regular and it will keep the foreign words bold and the translation Regular)
7. Define nested styles in to the body style (1. being for the foreing words – bold ending on tab, 2. being for the translation – Regular, ending on Words – the rest of the text, and keep their array)
8. Create another Paragraph style for the master page – will be used as the header style (arranged to the outer sides)
9. Insert a CrossReference (very good explained here https://www.youtube.com/watch?v=sBgBQJLErCM), define a character style for the foreign word that will be in the header, edit it so that in definition you will add to the start via @ End nested style (this will ensure that in the headers of the pages only foreign words will be displayed and not their translation)
10. Define text variables, choose Running headers (based on Character style – choose the one for the foreign word from the nested styles and make it the First on page, then define another variable the same way, but make it the Last on page).
11. On the master page, create the header text field, insert the created variables (First on page on the left and Last on page on the right). And then you can apply the Paragraph style we created before for this header.
You should now have a dictionary 2 column dictionary displaying the first and last foreign word in the header.
Hope it may help somebody, or at least lead to maybe a better idea of composing a dictionary.
M.