Forum Replies Created
-
AuthorPosts
-
M Lopusny
MemberHello Tamba,
sorry for a late response, I was off work for a while (summer).
Did you find help you were looking for from the video that Dieter posted?M Lopusny
MemberHello Dwayne,
thank you for your reply.
I have a small box in the top header on each page and there I wanted to have the chapter number in each chapter.
I do not understand why, but the running header simply did not work.
But in the end I found a way; divided the pages into sections and then used the section marker instead of the running header – this worked ok.
Wish you a nice day.m.
M Lopusny
MemberRobin,
thank you for your promt reply.
The: [|\u]+~> you posted for some reason does not work on my PC (Win8 + InDesign CS6). It only selects single word before the en-space, despite the + you are mentioning should find also multi-words expressions.
However, in the post ( https://creativepro.com/topic/make-everything-bold-before-and-included-a-colon-using-grep ) I found help at the end of the conversation.
The: ^.+?(?=~>) worked right selecting all words before en-space.
Thank you very much for your effort. Have a nice day.
m.
M Lopusny
MemberI apologize, for some reason my posts are not recorded.
Just trying again if it works and to let you know I did not ignore your post and found help.
m.M Lopusny
MemberHi 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.
M Lopusny
MemberI managed to get it right using the nested styles as you recommended in your 1st post, then cleaned it up using some simple GREP commands in Find-Replace.
The source excel table was a nightmare with various cell formating, fonts, spaces, filters, etc…!; but now it finally looks nice and tidy in InDesign. <b>Also thank you guys for your time and help.</b>
So now I am moving on the next step of the battle – headers and footers, footers not being such an issue, but custom headers on each page. Maybe I will bother again… :-PM Lopusny
MemberHi David,
thank you for your reply.
I managed to get it right with the tabs (as Rivkah suggested in the 1-st post). I now have all the words and expressions styled as I needed.
But another problem arose.
When I am trying to apply different style to the rest of the words and put them together, or to explain better, to have them divided by a space, not a Tab (the words are divided by the Tab) and when I am trying to do this, the words after Space automatically take the style of the previous words (before the Space). I think I tried all the versions of Space available in the list and could not solve this problem. It does it even when I am doing it manually (adding the Space and deleting the Tab) and I also tried to apply different nested styles (of course, I kept the first one), still struggling. Has anybody had this problem and rose the flag above it? :-)Rivkah, in your dictionary, did you keep the Tabs between the words, or did you get them closer togehter with a space?
-
AuthorPosts
