Forum Replies Created
-
AuthorPosts
-
Rhiannon Miller
MemberEugene Tyson said:
as(?!cold).+snight
That still matches 'a freezing cold night' (it only eliminates matches where 'cold' is the first word after 'a'). The word 'cold' might appear anywhere ('a cold and gloomy night').
If I try changing it to
as(.+)?(?!cold)(.+)?snight
then all the phrases containing 'cold' start getting matched as well, as .+ matches anything including 'cold'.
It might not be possible for GREP to do what I want, because it processes strings linearly, and to do this properly I think it would have to get to the end of the phrase and see whether it ended in 'night' before skipping back and seeing if it had encountered a 'cold' anywhere along its length.
Rhiannon Miller
Memberinkeye said:
Another way to tackle this is to create a paragraph return for each style and style it. Then you can export the InDesign document out to a word file that contains all the styles.
Yes, that's what I plan to do – once all the styles have the correct names!
Rhiannon Miller
Memberinkeye said:
Another way to tackle this is to create a paragraph return for each style and style it. Then you can export the InDesign document out to a word file that contains all the styles.
Yes, that's what I plan to do – once all the styles have the correct names!
Rhiannon Miller
MemberBut if I open the IDML file in CS4, the problem goes away.
Rhiannon Miller
MemberIt's just the one document (another document based on the same template is not showing this problem). I've tried going through IDML, but it still happens.
Rhiannon Miller
MemberI've poked around a little further, and it appears to occur to the first verso that appears in the PDF with a given master. If I choose to make a PDF of a particular page range, the page number will be replaced by 'Variable' on the first verso page on that range; and if I change the page master, 'Variable' appears on the first verso (but not subsequent ones) where each master is used.
Does this help at all?
Rhiannon Miller
MemberMac 10.6 (Snow Leopard) with CS5.
Rhiannon Miller
MemberBut if I open the IDML file in CS4, the problem goes away.
Rhiannon Miller
MemberIt's just the one document (another document based on the same template is not showing this problem). I've tried going through IDML, but it still happens.
Rhiannon Miller
MemberI've poked around a little further, and it appears to occur to the first verso that appears in the PDF with a given master. If I choose to make a PDF of a particular page range, the page number will be replaced by 'Variable' on the first verso page on that range; and if I change the page master, 'Variable' appears on the first verso (but not subsequent ones) where each master is used.
Does this help at all?
Rhiannon Miller
MemberMac 10.6 (Snow Leopard) with CS5.
Rhiannon Miller
MemberI've had this as well with the NLM DTD and also with another DTD based on it, both in CS4 and CS5. My error is on line 1, column 156. Which doesn't exist.
Oddly, it only happens sometimes. I'd thought that it seemed to be to do with the location of the DTD folder on the hard drive, as the first time I had the error it was after I'd moved the DTD folder and then tried to link it to a new document, and it was fixed by redownloading the DTD directly into my desired directory and then linking to that new instance of the DTD. But now I'm in a different document, trying to load the same DTD, and it's failing.
Sorry, no help, just the same plea as you!
Rhiannon Miller
MemberI've had this as well with the NLM DTD and also with another DTD based on it, both in CS4 and CS5. My error is on line 1, column 156. Which doesn't exist.
Oddly, it only happens sometimes. I'd thought that it seemed to be to do with the location of the DTD folder on the hard drive, as the first time I had the error it was after I'd moved the DTD folder and then tried to link it to a new document, and it was fixed by redownloading the DTD directly into my desired directory and then linking to that new instance of the DTD. But now I'm in a different document, trying to load the same DTD, and it's failing.
Sorry, no help, just the same plea as you!
Rhiannon Miller
MemberOK, rather than try and map the new styles to the old ones automatically (how would ID know which ones to use?), I'm playing with the idea of creating a dialog box for each paragraph style in the document in turn, so I can type in the new name. (Yes, I know I've probably already taken more time than it would take to click on each style manually, but I've never written a script with a dialog in it before so I thought I'd take the opportunity to learn.)
I've adapted one of the examples in the Applescript tutorial. So far I have:
tell application “Adobe InDesign CS5”
tell active document
set allParaStyles to every paragraph style
repeat with i from 1 to count of allParaStyles
set myParaStyle to item i of allParaStyles
set myOldStyleName to name of myParaStyle
set myDialog to make dialog
tell myDialog
set name to “Rename paragraph style”
set myDialogColumn to make dialog column
tell myDialogColumn
–Create a text entry field.
set myNewStyleName to make text editbox with properties {edit contents:”myOldStyleName”, min width:180}
end tell
end tell
set myResult to show myDialog
if myResult is true then
–Get the settings from the dialog box.
set name of myParaStyle to edit value of myNewStyleName
–Remove the dialog box from memory.
destroy myDialog
else
destroy myDialog
end if
end repeat
end tell
end tell
But this gives me an error:
error “Adobe InDesign CS5 got an error: Can’t make class dialog.” number -2710 from dialog to class
What am I missing?Rhiannon Miller
MemberYes, I'd thought of that, but this is to be the new style template: once I've finalised the styles in InDesign I'll export it back to RTF to create the document template for Word files.
Besides, it's easier for everyone if the styles have the same names in both InDesign and Word.
-
AuthorPosts
