Thread View: adobe.scripting.indesign
5 messages
5 total messages
Started by andrea_laue
Thu, 26 Feb 2009 22:17
CS3: typography and end nested style delimiters
Author: andrea_laue
Date: Thu, 26 Feb 2009 22:17
Date: Thu, 26 Feb 2009 22:17
14 lines
1715 bytes
1715 bytes
Hello, I'm trying to trick InDesign into exporting INX files in which all nested style delimiters are marked by an ENS character (a processing instruction in the exported INX). This makes the transform to XML much easier, because you can group adjacent, like-styled text without actually processing that text to find instances of character delimiters. I've written a JavaScript to process a layout, inserting an ENS character at every instance of any non-ENS delimiter (as defined in the paragraph style). The problem is that this seems to affect the layout in unanticipated ways. All seems well -- the nested character styles are properly applied, and InDesign seems to be paying attention to the required character delimiters and ignoring the inserted ENS characters. Mostly. In some cases, the ENS characters affect the typography of a paragraph. They seem to adjust applied kerning. The flow of text adjusts slightly at the insertion of the ENS character. I'd much appreciate any input on how InDesign handles ENS characters, especially when they aren't called for by the nested style definition. Thanks, Andrea
Re: CS3: typography and end nested style delimiters
Author: Dave_Saunders
Date: Thu, 26 Feb 2009 22:28
Date: Thu, 26 Feb 2009 22:28
3 lines
882 bytes
882 bytes
If the original is through a character and you insert an ENS after the character, it will cause the next nested style to fail. You'll need to change the definitions of the nested styles to be explicitly triggered by the ENS characters rather than what is triggering them now. Dave
Re: CS3: typography and end nested style delimiters
Author: andrea_laue
Date: Thu, 26 Feb 2009 22:33
Date: Thu, 26 Feb 2009 22:33
12 lines
1083 bytes
1083 bytes
Hi Dave, Thanks for your speedy reply. There are enough instances of nested styles that we're trying to avoid explicit ENS characters at all cost. There will be so many of them to enter! So ENS characters affect the resolution of nested styles even when they aren't used as delimiters in the nested style definitions? Is InDesign essentially looking for either the declared delimiter *or* an ENS character? If so, is there any way that can be overridden? Thanks, Andrea
Re: CS3: typography and end nested style delimiters
Author: Dave_Saunders
Date: Thu, 26 Feb 2009 22:48
Date: Thu, 26 Feb 2009 22:48
7 lines
1059 bytes
1059 bytes
Yes, that's how it works, and I don't think there's anything you can do about it. The other approach would be to remove the nests altogether, replacing them with explicit calls on the character styles. I thought I saw some talk of a script that does just that, here in the forum in recent weeks. I'm in a meeting right now and don't have time to search myself. Dave
Re: CS3: typography and end nested style delimiters
Author: andrea_laue
Date: Thu, 26 Feb 2009 23:36
Date: Thu, 26 Feb 2009 23:36
7 lines
912 bytes
912 bytes
Drat. Thanks what I feared. The explicit calls to the character styles -- sounds interesting, but I'm not finding that thread. If you can retrieve it quickly, I'd much appreciate a link. Thanks again for your help. Andrea
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads