CS3: typography and end nested style delimiters

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

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

Similar Messages

  • Finding "End Nested Style Here" option

    Hi,
    How to find and replace the "End Nested Style Here" marker through InDesign CS3-JS.
    Thanks,
    P. Ramkumar

    If you use findText, you can find it using ^h
    In findGrep it is ~h
    Dave

  • Can't get the "End Nested Style Here" function to work

    Hello,
    I have been testing a very simple nested style routine in InDesign CS3.
    It has a number with a period after it (and I have a character style named number), a single word followed by a colon (and I have a character style for that word and the colon) and then a paragraph of text (and a style called body for that). Because there are sometimes more than one paragraph of text, I used the Insert, Special Character-Other-"end nested style here" character, in the TYPE menu, to tell InDesign how long to use the body copy style (the final character style) before kicking in a new start up sequence starting with the Number style. But, no matter what I try, the second paragraph wants to begin the sequence over, even though, it has just a hard return and no "end style sheet here" character.
    Any thoughts....
    thanks
    barbara

    Hi Bob,
    That is what I thought...but, then when I learned about the End Nested Style Sheet here character, I thought that would override that issue.
    Thanks for clarifying that there is no way around the new paragraph issue.
    I kept thinking there has to be a way and I just don't know how to do it, but I guess that is not the case. That is the only downfall to me regarding that amazing feature.
    thanks!
    Barbara

  • Search and replace nested style in JS CS3

    I need to find and replace numbers at the beginning of paragraph which is styled as nestedStyle. What is the code? ST Dishon

    Hi dishon,
    I have attached the script to convert the applied nested styles to character style.
    After that you can easily do what you required.
    Regards,
    Ramkumar .P

  • Creating Styles.. and then nesting styles

    Seems simple enough:
    tell application "Adobe InDesign CS5.5"
    tell active document
      set myCharacterStyle to make character style with properties {name:"Year", size:26.0, fill color:"Paper", stroke color:"Black", stroke weight:0.75, font:"Helvetica", font style:"Black"}
      set myCharacterStyle to make character style with properties {name:"Years", size:18.0, fill color:"Black", stroke color:nothing, stroke weight:nothing, horizontal scale:80.0, vertical scale:80.0, font:"Helvetica", font style:"Black"}
      set myParagraphStyle to make paragraph style with properties {name:"Year"}
      set nested styles of myParagraphStyle to {{applied character style:"Year", repetition:1, inclusive:false, delimiter:any word}, {applied character style:"Years", repetition:2, inclusive:true, delimiter:any word}}
    end tell
    end tell
    The font and the point size do not come through when the style is created. The nested styles also do not come through.
    I tried applied font:"Helvetica" to get 'font family not available'. Also, font:font "Helvetica"...
    What I get right now I is no font defined or size. The rest works.
    So what am I doing wrong here?

    Hi lithodora,
    as Mary Posner wrote a character style doesn't have the property 'font', but 'applied font' and 'font style'.
    "... specified as either a font object or the name of font family."
    just look it up in the dictionary ...
    Try always to work with references.
    tell application "Adobe InDesign CS5.5"
        --you've got to set myHelvetica to your needs!
        set myHelveticas to (font family of every font whose name contains "Helvetica") --will return the helvetica font familiy names
        set myHelvetica to item 1 of myHelveticas --just randomly pick one for my example, hoping it's got a 'black' style ;-) ...
        tell active document
            set myCharacterStyle01 to make character style with properties {name:"test", size:26.0, fill color:"Paper", stroke color:"Black", stroke weight:0.75, applied font:myHelvetica, font style:"Black"}
            set myCharacterStyle02 to make character style with properties {name:"tests", size:18.0, fill color:"Black", stroke color:nothing, stroke weight:nothing, horizontal scale:80.0, vertical scale:80.0, applied font:myHelvetica, font style:"Black"}
            set myParagraphStyle to make paragraph style with properties {name:"nextTest"}
            tell myParagraphStyle
                make new nested style with properties {applied character style:myCharacterStyle01, repetition:1, inclusive:false, delimiter:any word}
                make new nested style with properties {applied character style:myCharacterStyle02, repetition:2, inclusive:true, delimiter:any word}
            end tell
        end tell
    end tell

  • Problems with Nested Styles

    I'm trying to create a nested style in In Copy CS5. What I want for it to do is to create the first few words with a certain character style then revert back to the Paragraph style setting. I have the nested style set to end with the end nested style here special character but it seems to stay in the format of the nested style no matter what I do.
    Any suggestions?

    What I did is create a new document which comes in with a certain paragraph style by default (a certain font and regular type). When I created a nested style using a character style in the Paragraph style we normally use it did not seem to be working correctly. I would have to apply the same style from the paragraph styles menu for the nested style to apply correctly. Otherwise it would apply the nested style to the whole paragraph instead of ending after three words.
    Either way after fiddling around with it for awhile and closing and restarting InCopy a few times it appears to be working correctly.Whichj brings me to another question, do you have to restart InCopy for changes to take effect?

  • Indesign nested style not displaying correctly

    Hello, having a little bug here. when i style something that has a nested style, the styling doesn't continue after multiple lines unless i open and close the document... here is a visual example.
    the first paragraph is displaying correctly, the second is displaying improperly.
    the body colored text (bold cyan) style stops at an "end nested style" character, and the normal paragraph copy style (black) continues after that to the next bullet. but as you can see it won't visually show the new styling until i reopen the document. very weird, correct?
    am i making sense? any ideas?
    mac 10.5.6
    2x3.2quad eight core
    id cs4

    Mike,
    I would edit the first nested style to apply through one bullet (copy n paste a bullet here); or better: set up the paragraph style to make bullets and you could instead charcter style the bullet from the Bullets and Numbering part of the dialog box, and leave it out of the nested style section.
    Question: Do you want the blue to cover a set number of lines? Then define a line style, just south of the nested styles part of the dialog box.
    If the trick relies on a End Nested Style character embedded, then you are probably doing that because you want random word count lengths for the blue character style to be applied in different paragraphs. Sounds like work, tho, to me, and I would look for a simpler rhythm, if there is one.
    Mike Witherell in Maryland

  • Nested style: everything preceeded by 3 spaces needs to be italicized

    I'm doing a directory for a church. I got my nested style sheet to place a rule before each entry and to bold the family name. At the end of each listing, the children in each family are listed. I created a nested style for the names. I tried defining the nested style as through 3 spaces but that italicizes everything except the family name. How do I use nested style to see the three spaces through hard return and italicize everything in between?
    Screen shot with tabs and spaces. The very first entry (Ainsle family) is how it should look.
    Thanks in advance for your help.
    [screen shot removed by host per Richard's request]

    Richard,
    You're a little confused about this.
    First, do NOT worry about putting the em space after the names. Just do a Replace All to change instances of three spaces to an em space. (I'm assuming you didn't put three spaces anywhere else.)
    At the end of the nested styles, you want to apply None up to the first em space.
    Then you want to apply the character style italic until the end of the paragraph which you can define as the end nested style here character.
    That should be all you need.
    However, I noticed that you've got an error in the listing for Kevin Alexander and Julie Hansen. The rule underneath their names is wrong.
    Finally, you ought to think a second before posting an image on the web with people's real names, addresses, emails, home and work phones, etc.
    If it is possible to revoke that image, do it now!

  • How to end grep styles?

    Grep styles (in Paragraph style) is one of the fabulous option in indesign CS4, but i am having one doubt that do we have any option to end grep style at any particular instant like we have "END NESTED STYLE HERE" to end nested style.

    You should state the full string to match in your GREP query. If it matches all, then all gets marked. If you don't want it to match all, you need to adjust the GREP query.
    Alternatively, if you feel you have to "prematurely end" your character style, you can use a nested style instead.

  • Grep Styles/Nested Styles from the end of the paragraph

    Hi -
    It appears that grep styles, and nested styles only allow you to apply styles from the beginning of the paragraph until the match.
    I'd like to be able to apply styles from the END of the paragraph going back.
    This would allow me to apply a non-breaking character style to the end of a paragraph to control "runts". You could make the last two words of a paragraph non breaking, or set a 15 character threshold.
    This wouldn't work for all cases, but I'm working with centered, non-justified text, so it should work fine. If the feature were there.
    I'm sure there are other things one could do with it as well.
    There's a good discussion, and a MANUAL work-around on
    http://pdsassoc.com/tipsCS/DeruntingParagraphs/index.html
    Tom

    I used your suggestion and reviewed the tutorial again.
    Sometimes a missing piece of info drives you nuts.
    Thanks again.
    My clients will love this enhancement.
    CS rocks.

  • Nested styles and textStyleRanges

    HI all!
    I have to recognize all textStyleRanges in my documents.
    Unfortunately character styles described by a nested style are not really applied to the text and the paragraph looks like a single textStyle range.
    Is it possible to apply the characterStyles from nested styles?
    thanks.
    Ivan

    Ok. You could test every single character with the property appliedNestedStyle. That will give you an array of applied nested styles. The result would be an undefined object (case: no nested style applied) or an array of length 1 or length >1 if more styles overlap on a certain character.
    Code:
    var myCharacterStylesArray = myCharacter.appliedNestedStyles;
    for(var n=0; n<myCharacterStylesArray.length;n++){
        $.writeln(myCharacterStylesArray[n].name)
    The problem here is: which of the styles will win to format the character?
    My tests are showing (and I could be dead wrong!), the last listed style in that array will list the winner.
    Code for testing  a selection of some characters with different nested styles or GREP styles (with overlapping results)  applied:
    var selectedCharacters = app.selection[0].characters;
    for(var n=0;n<selectedCharacters.length;n++){
        try{
        $.writeln(selectedCharacters[n].appliedNestedStyles[selectedCharacters[n].appliedNestedStyles.length-1].name);
        }catch(e){};
    exit();
    If there are no applied nested styles, the try/catch will prevent this loop ending throwing an error.
    Of course we have to factor in a regular applied character style as well:
    var selectedCharacters = app.selection[0].characters;
    for(var n=0;n<selectedCharacters.length;n++){
        try{
        if(selectedCharacters[n].appliedCharacterStyle.index === 0){
            $.writeln("The winner is:"+"\t"+selectedCharacters[n].appliedNestedStyles[selectedCharacters[n].appliedNestedStyles.length-1].name);
        else{$.writeln("The winner is:"+"\t"+selectedCharacters[n].appliedCharacterStyle.name)};
        }catch(e){};
    exit();
    Phew, this took me a while to find out…
    Uwe

  • Nested styles: I can't seem to make this work

    I can't seem to do this nested style: All Adobe Garamond. Headline: 24/25 centered. Return. Byline: 9/10 centered, stacked. "by" is italic with a .5, one inch wide  rule above. Return. Author's name is small caps with the same rule below. Return. Body text is 9/10 regular, first paragraph has a 3 line bold drop cap, the other paragraphs have a .25 indent.
    Nothing seems to work when I try to set this up. Rules everywhere...and I am supposed to have the document set up in 14 hours....help!

    Nested Styles are character styles added inside a paragraph style that  affect only certain parts of the text, based on trigger patterns that  you set up. Typically you would use a nested style to do somthing like make the first three words of a paragraph Italic, or make a price bold on a menu.
    It's probably technically possible to achieve your title using nested styles, forced line breaks as triggers, and paragraph rules above and below with the proper offsets, but what you want to do is not typically done with nested styles, but rather with a series of individual paragraph styles that are applied in rotation automatically using the "next style" attribute.
    Mikes example is using three paragraph styles for the heading. PStyle1 (just a place-holder name for a pragraph style here) is applied to the text Headline 2, and as part of that style defintion the "next style" is set to PStyle2. PStyle2 is applied to the By line, and its next style is set to PStyle3, which is applied to MW Design. Each of these lines is a separate paragraph (he should have shown you the non-printing characters so you could see the hard returns at the end of each line). PStyle3 should have its next style set to your style for the first paragraph of body text that includes the drop cap, and that one needs a next style set to the paragraph style for your other body text. This last body style should have the next style set to "same style."
    If you are typing directly in ID, for each story, set the style to PStyle1 and begin typing. When you hit Enter to move to the by line, the style will change automatically, and will change again each time you hit Enter until you are inthe second paragraph of the body copy, where it will keep the same style until you change it manually again.
    If you are working with imported text you can select an entire story froom the fiorst line of the title to the last last paragraph of body copy, then right click on the PStyle1 name in the Paragrapgh Styles panel and choose Apply PStyle1 and Next Style and the whole shebang will get the correct styles applied in one click.

  • Nested styles in CS2. Absence of property appliedNestedStyle

    In task I'm working on there is a subtask of extracting overrides from the text.
    The way I implement it is pretty straightforward: I iterate through all textStyleRanges. With each textStyleRange object I compare its style properties with style properties of paragraphStyle and characterStyle that are applied to it.
    Things are getting harder when nested styles come into play.
    When they are applied, they should be taken into account along with appliedParagraphStyle and appliedCharacterStyle.
    This issue also affects Drop Caps. When the character style is applied to Drop Cap this character style becomes nested.
    In CS3 scripting objects (textStyleRange, text, etc) has property appliedNestedStyle. So to extract overrides I can use it.
    But in InDesign CS2 there is no such property...
    So the question is how can I get applied nested style in CS2? Or maybe some workaround to accomplish the same goal?

    Indexes
    Scripting indexes has changed a lot. It finally works, and it works well. The property 'subtopic' has gone, instead you iterate the property 'topic' (up to three times). The following lines illustrate:
    if( app.activeDocument.indexes.length == 0 )
    myIndex = app.activeDocument.indexes.add()
    else
    myIndex = app.activeDocument.indexes[0]
    //create main topic
    myIndex.topics.add('dog')
    //create subtopics
    myIndex.topics.item('dog').topics.add('collie')
    myIndex.topics.item('dog').topics.add('setter')
    myIndex.topics.item('dog').topics.item('collie').topics.add('border collie')
    myIndex.topics.item('dog').topics.item('collie').topics.item('border collie').topics.add('*****')
    You can address (sub)topics by asking for topics embedded under topics:
    myIndex.topics[0].topics[0].topics[0].topics[0].name
    is the first subtopic of the first subtopic of the first subtopic of the first topic.
    A new property is allTopics: myIndex.allTopics returns an array of all (sub)topics. This is a flat, one-dimensional, array, i.e. it returns the whole index but without structure.

  • Nested styles within TOC - a newbie

    Hi, I wonder if someone can help with a TOC query. It will involve nested character styles which I've not really got my head around
    Currently there are two paragraph styles in the book to appear in the TOC in their own styles (so four paragraph styles in total - Chapter Number, Chapter Name, Chapter Number TOC and Chapter Name TOC).
    They currently generate in their simplest form in the TOC as:
    Chapter 1
    An introduction to your new home ................8
    I simply want the chapter name to appear on the same line.
    Chapter 1 An introduction to your new home ................8
    Thanks for any help anyone.

    Peter Spier wrote:
    Peter G,
    I don't do XML, but I think the answer is basically the same as initially outlined. If it's one paragraph with some sort of magic line break character, that character is going to be carried into the TOC and create a line break there as well, and if it's two paragraphs sepatated by a magic separator, it's going to remain two paragraphs. Break characters don't just disappear on their because we decide we don't want to see them -- they have to be deleted, and styles cannot add or remove text, only change the formatting.
    The  neat thing about the No Break style (which never occurred to me before this morning), is precisly that it doesn't depend on any break characters to work, only the supposition that the second part of the paragraph will be too long to fit unbroken on the same line as the first part, and that it will fit on a new line. ID simply breaks the text at that point because it has no better choice. This is not, unfortunately, guaranteed to work for all paragraphs as it depends on column widths and text length to work in combination to force the break.
    The No Break approach is a good solution if the TOC text frame and paragraph properties can be made to wrap at the allowed break position.
    I was trying to find a counterpart to FrameMaker's run-in paragraph feature, but as you verified, it's not possible. FYI, here's how it looks in FM:
    The source document uses ChapNum paragraph format (aka "ID paragraph style" for "Chapter number 1:" which is all in the autonumber part of the paragraph. The ChapTitl paragraph format is used for the "Chapter title" text.
    As in ID, the two paragraph formats/styles are designated to be extracted by the TOC process. FM's TOCs are always generated as independent files. In the TOC document, ChapNum format/style becomes ChapNumTOC, and ChapTitle format/style becomes ChapTitleTOC. The *TOC styles can be styled differently from their source paragraphs. So, ChapNumTOC is given the run-in property which allows the next paragraph in the document - here it's the ChapTitlTOC paragraph with "Chapter Title" text - to follow it on the same line. However, you can see the green pilcrow at the end of the ChapNumTOC paragraph, which identifies it as a true paragraph, that happens to lack the property that starts it on a new line. Once the TOC's formatted properly, every subsequent TOC process is completely "hands off," i.e., no manual touch up needed, nothing to forget. This is why I keep submitting an enhancement request for this ability, and also encourage others.
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • Stopping Nested style with string

    I know this is a dumb question but I can't remember how to do this and I can't find it anywhere!
    How do you stop a nested style with a string of text versus a list.
    I have a paragraph with the same word that I want to change nested styles off of "bibliography." If I type this in if just keys off any "b" since it just looks at the word as a list.
    I thought you surrounded in quotes like any string but that doesn't work. Any help would be appreciated.
    Thanks

    If you want just the word 'bibliography' affected, and it's arbitrarily used only once in the paragraph, then you can get away with only one ENSH character. Just trigger the style to switch off through the next 'y'. If you're using CS3 and have no other nested style going on in the paragraph you can loop it so that all occurrences of '[ENSH]bibliography' are affected.

Maybe you are looking for

  • How to fix authentic error in game centre of iPad mini?

    How to fix authentic error in game centre of iPad mini?

  • Changing Axis data values in OBIEE 11g Graph

    Hi , I have a graph with three dimensions and a single measure . So , on x axis I am getting the values with two dimensions like Customer1 2013 Customer1 2012 Customer1 2011 I want to change it to Customer1 only . Can anybody suggest how can we chang

  • Problem using Extract Function

    My problem, declare v_clob clob; begin select extract(xml_details,'/ROWSET/ROW/CTRY_CODE').getStringVal() into v_clob from xml_tab where xml_name='GRN.XML'; end; xml_tab description column xml_details clob xml_name VARCHAR2(2000) This block works fin

  • How to call Siebel wsdl from EBS R12

    Dear Gurus, Is there anyone knows how to call Siebel wsdl file generated from EBS R12, directly without using middleware/weblogic ? Please help Thanks in advance Eldin

  • Unknown property resolving to null in PropertyNotFoundException

    While debugging a DTE issue, we could see that there were no meaningful exceptions other than a PropertyNotFoundException but the arguments that it contained seemed to make little sense. The stacktrace is as follows javax.el.PropertyNotFoundException