Forum Replies Created
-
AuthorPosts
-
Theunis De Jong
MemberAnchorage, Alaska! According to Michelle Shocked, “you are in the biggest state of the union”!
Do you only get those permission errors from within InDesign, or does it not work with any file operation? “Mapping” the drive, does that mean you are working on Windows, and tried to map it to a drive name like “Z:”?
July 15, 2010 at 7:43 am in reply to: Inch symbols (double prime) being changed to quotation marks! #56354Theunis De Jong
MemberLee, if you can't educate your copywriters, there is not a lot you can do up front. Either disable automatic quotes and expect straight ones in your plain text, or enable them and you have to check every inch and foot mark (as well as minutes and seconds, by the way).
I think you're best off with enabling them, because you can use a GREP search to look for digit-then-curly-quote — the most common case where you want to change them. The opposite, checking which straight quotes to change to curlies, is a bit more difficult.
You can search for this, using GREP Find: for single quotes,
(?<=d)~]
and for double quotes,
(?<=d)~}
You can replace them with straight quotes from your text font (use the code ~' — that's a tilde, followed by a single straight quote, for feet, or ~” — tilde, straight double quotes for inch).
If you are inclined to typographically correctness, follow David's advice and insert the actual Symbol symbols. For these, you should replace with either x{2032} (single) or x{2033} (double), and don't forget to set the font to Symbol in the Replace With formatting field. (I lean towards ridiculous correctness and always create a character style containing just “Symbol”, especially for things like these.)
Whatever you change it to: do not hit the Replace All button straight away! Use “Change/Find Next” until you are fairly sure your document does not contain a phrase such as
“How old are you my child?” “I am 5″, answered Mary.
(It gets a bit difficult when that question is, “How tall are you my child?” Then you'd need some more context.)
Theunis De Jong
Member(I'm a Quark user trying to switch to ID)
“Do, or don't do. There is no try.” (Well: try to let go of your Quark experience as soon as possible, and do not treat InDesign as Quark-with-added-bits :-D )
It's in your Preferences dialog, under Composition: “Substituted Fonts”. It's really a rather dangerous thing to switch off — you might want to communicate this towards your client — because, apart from the message on opening the document, it might go unnoticed. This setting is saved with the document, and your client switched it off. Bad behavior, really.
Also, don't only rely on your eyes to spot pink highlighted text. Sometimes this gets obscured by other graphic elements (a pink background, for example). Always use “Find font” under the Type menu to double- and triple-check if you saw and corrected every occurrence — I use this so much I added a hot key combo for that function.
July 15, 2010 at 12:43 am in reply to: Inch symbols (double prime) being changed to quotation marks! #53414Theunis De Jong
MemberLee, if you can't educate your copywriters, there is not a lot you can do up front. Either disable automatic quotes and expect straight ones in your plain text, or enable them and you have to check every inch and foot mark (as well as minutes and seconds, by the way).
I think you're best off with enabling them, because you can use a GREP search to look for digit-then-curly-quote — the most common case where you want to change them. The opposite, checking which straight quotes to change to curlies, is a bit more difficult.
You can search for this, using GREP Find: for single quotes,
(?<=\d)~]
and for double quotes,
(?<=\d)~}
You can replace them with straight quotes from your text font (use the code ~' — that's a tilde, followed by a single straight quote, for feet, or ~” — tilde, straight double quotes for inch).
If you are inclined to typographically correctness, follow David's advice and insert the actual Symbol symbols. For these, you should replace with either \x{2032} (single) or \x{2033} (double), and don't forget to set the font to Symbol in the Replace With formatting field. (I lean towards ridiculous correctness and always create a character style containing just “Symbol”, especially for things like these.)
Whatever you change it to: do not hit the Replace All button straight away! Use “Change/Find Next” until you are fairly sure your document does not contain a phrase such as
“How old are you my child?” “I am 5″, answered Mary.
(It gets a bit difficult when that question is, “How tall are you my child?” Then you'd need some more context.)
Theunis De Jong
MemberHi Annamarie,
Are your chapters in separate files? (I think so because otherwise you could not use the same name and different definitions :-)) In that case, you could even use the same color name, and only change the swatch definition!
Theunis De Jong
MemberHi Annamarie,
Are your chapters in separate files? (I think so because otherwise you could not use the same name and different definitions :-)) In that case, you could even use the same color name, and only change the swatch definition!
Theunis De Jong
MemberIt's just one of those things — although Adobe's Help on GREP mentions 'line' several times, ID's version of GREP does not really support lines, and where Adobe sez 'line' you are supposed to mentally translate it to 'paragraph' instead.
This is one of the things that you cannot do in the interface but can with a little scripting: if you search for en-dashes, a script can tell you which line it is on, and even on which line the next character is. My little script does just that: it searches for “en-dash space any character”, and then checks if the line for the first character (the en-dash) is the same as the 'any character'. If not, it applies a character style “Invisible”.
The style “Invisible” is a simple style, with only the fill color set to None. But: the very first thing the script does is … setting the fill color to black, and then throwing it away. That's because in a script you cannot delete a style without “preserving formatting” (at least, I cannot find a way to do so). Throwing away the style means everything in your text boxes gets reset to showing all en-dashes; then the script checks every en-dash again, and hides the ones that need to.
Click ->here<- to download the script; save into your own User Scripts folder, and double-click to run. If I'm correct, it does not need anything special from CS3, '4, or '5 — theoretically it ought to work with either.
Theunis De Jong
MemberI'm pretty sure something can be cooked up like that. Not by me, though, I gave up trying to write ID plugins when Javascript got better, faster, and stronger, and mostly version-independent and totally (almost) platform-independent.
Writing ID plugins is difficult. You need extensive knowledge of your InDesign version, your OS, and not to forget C++ (on Windows; Objective-C on the Mac). ID uses a set of public libraries, but even that is no relief, because these are so exotic that their programmers don't feel like explaining even the basic concepts (at least, that's how it seems to me
).You could suggest this in the Adobe InDesign SDK Forum, but since writing plugins is so difficult and time-consuming — and, not to mention, you have to start over for each new version of ID — the general vibe I get from that forum is no-one is interested in writing stuff just for the heck of it.
Do you have any ideas on how it ought to work? Just like GREP styles do? (GREP styles can concatenate, and apply different styles on top of each other. I can't imagine how that would work for paragraph styles …)
Theunis De Jong
MemberIt's just one of those things — although Adobe's Help on GREP mentions 'line' several times, ID's version of GREP does not really support lines, and where Adobe sez 'line' you are supposed to mentally translate it to 'paragraph' instead.
This is one of the things that you cannot do in the interface but can with a little scripting: if you search for en-dashes, a script can tell you which line it is on, and even on which line the next character is. My little script does just that: it searches for “en-dash space any character”, and then checks if the line for the first character (the en-dash) is the same as the 'any character'. If not, it applies a character style “Invisible”.
The style “Invisible” is a simple style, with only the fill color set to None. But: the very first thing the script does is … setting the fill color to black, and then throwing it away. That's because in a script you cannot delete a style without “preserving formatting” (at least, I cannot find a way to do so). Throwing away the style means everything in your text boxes gets reset to showing all en-dashes; then the script checks every en-dash again, and hides the ones that need to.
Click ->here<- to download the script; save into your own User Scripts folder, and double-click to run. If I'm correct, it does not need anything special from CS3, '4, or '5 — theoretically it ought to work with either.
Theunis De Jong
MemberI'm pretty sure something can be cooked up like that. Not by me, though, I gave up trying to write ID plugins when Javascript got better, faster, and stronger, and mostly version-independent and totally (almost) platform-independent.
Writing ID plugins is difficult. You need extensive knowledge of your InDesign version, your OS, and not to forget C++ (on Windows; Objective-C on the Mac). ID uses a set of public libraries, but even that is no relief, because these are so exotic that their programmers don't feel like explaining even the basic concepts (at least, that's how it seems to me
).You could suggest this in the Adobe InDesign SDK Forum, but since writing plugins is so difficult and time-consuming — and, not to mention, you have to start over for each new version of ID — the general vibe I get from that forum is no-one is interested in writing stuff just for the heck of it.
Do you have any ideas on how it ought to work? Just like GREP styles do? (GREP styles can concatenate, and apply different styles on top of each other. I can't imagine how that would work for paragraph styles …)
Theunis De Jong
Member.. or a medium long form: i-=1 ;-)
David is looking into a file attachment option. I think that's the best solution: no more cumbersome copying entire scripts into and out of a post, no ultra-long posts, and if you want to point out interesting features or techniques, you can always insert code fragments in the text.
Theunis De Jong
Member.. or a medium long form: i-=1 ;-)
David is looking into a file attachment option. I think that's the best solution: no more cumbersome copying entire scripts into and out of a post, no ultra-long posts, and if you want to point out interesting features or techniques, you can always insert code fragments in the text.
Theunis De Jong
MemberKnock me over with a moderately sized feather. Now it also works in CS5 …
Must be because I just ran a lot of crashing scripts before this one, fouling up something Better Not Fouled Up in ID's memory.
Theunis De Jong
MemberSorry I forgot to add I'm on CS4.
Oof! What a relief. The simple 6-line script I wrote works perfectly, in that it converts all tables that start in your currently selected text frame to text (a table that's partially in a previous frame will not, one that starts in the current and runs into the next frame will). But– as I was just checking out CS5 for possible bugs, and the table system did not change, I thought “well, let's just do it”.
It does not work in CS5! Fortunately you thought of mentioning your version, but I'm gonna throw this spanner into the wheel of Adobe's scripting forum, just in case.
Copy the script, paste into Adobe's ESTK Editor and then save as “tablestotext.jsx” in the Scripts folder.
//DESCRIPTION:Convert Tables in Text Frame to text
// A Jongware production
// Jongware, 7-Jul-2010if (app.selection.length == 1 && app.selection[0] instanceof TextFrame && app.selection[0].tables)
{
last = app.selection[0].tables.length;
while (last > 0)
{
last -= 1;
app.selection[0].tables[last].convertToText();
}
}Theunis De Jong
MemberKnock me over with a moderately sized feather. Now it also works in CS5 …
Must be because I just ran a lot of crashing scripts before this one, fouling up something Better Not Fouled Up in ID's memory.
-
AuthorPosts
