Combining multiple Character Styles

I'd like to apply multiple character styles to the same words. However, this does not seem possible. One character styles always overrides the other. Please see the attached image for a visualization.
I tried Shift-clicking both styles to apply them, without success. I guess either I'm missing something quite obvious, or this is not possible?

Geert DD wrote:
I don't see why not? If you are a bit into webdesign, you may be familiar with CSS. Here is how you would combine multiple styles onto certain words.
.red { color:red; }
.underline { text-decoration:underline; }
<p>HTML paragraph with some <span class="red underline">red+underlined</span> text.</p>
CSS rules have a clear order of application (the "cascade"), so if there's any disagreement between rules applied to a given bit of HTML, the rule applied last "wins" by overruling any applied earlier.
Unlike CSS classes, InDesign styles are not applied in any obvious order, so if more than one style could be applied to a given bit of text, there would have to be some way of ordering them so that disagreements between them could be resolved.
The "based on" hierarchy of styles prevents style conflicts independently of any given bit of text. The ability to apply more than one style to a given bit of text would necessitate the introduction of a further ordering relation, one that applies only to the given bit of text.
That could make things very complicated, and its effects would propagate into scripting, de-bugging, and so on. It wouldn't be just InDesign that had to get it right -- the poor befuddled user would too!
Although I was kidding when I mentioned Russell's theory of types (and amused by the Peter Cook & Dudley Moore parody) I was gesturing vaguely towards the idea that there are some general/logical constraints on classification that go beyond individual applications such as InDesign.
In general, the least problematic ways of classifying things use categories that are either disjoint or else ranked in a "containment" hierarchy. This is can be seen in many areas of life. For example, an animal can be a member of species A and genus X, but it cannot be a member of both species A and species B, nor a member of both genus X and genus Y. The syntax of XML reflects all similar ways of classifying things, and that is one of the reasons why it is so powerful.
Jeremy

Similar Messages

  • Cross references not picking up character styles in source text

    I'm getting some annoying odd behaviour with cross references in Frame 12.
    I have some tables, where the paragraph style in the cell is called "Cell Body" (nothing odd there).
    Quite a few of the cells only have one word in them, and that word is set to courier font with a character style (called "Code").
    Then, elsewhere in the document, I am referring to this text using cross references. I am referencing the paragraph style Cell Body, and the cross reference format applied is like this "<hyperlink><$paratext><Default ¶ Font>"
    "hyperlink" is another character style that makes the text go green.
    So, the cross reference out to take the text from the cell (in Courier) and reproduce it, coloured green.
    However for about half of these cross references, it isn't picking up the Code character style in the source text, so the cross ref is just green, no green courier.
    Things are further bamboozled when I output to HTML Help.
    In the CHM file, the cross refs which appear to work OK (green courier) are now just courier.
    The ones which failed to pick up the courier look the same as they do in Frame (just green).
    Any ideas as to what's going on?
    I've tried troubleshooting by clearing the cells, reapplying the para style and default character style, then reapplying the code character style, then replacing the cross reference - which sometimes seemed to fix it but didn't always.

    Arnis Gubins wrote:
    Using two character tags in-line together (a la <hyperlink><Code>) is asking for trouble. IIRC, FM doesn't re-apply these in order on an update and depending upon how they are defined (and what is set to AsIs), the outer one usually wins. .
    So why does the blimmin' dialog invite me to do precisely that, by providing me with a list of all the character styles I have, and allowing me to select as many of them as I like??? /sulks/   Indeed, if Frame still shipped with a printed user guide instead of  stupid "optimised for viewing on iPhones" online webhelp nonsense, I suspect I might very well be able to find an example in the manual of using multiple character styles in that dialog!  If it doesn't want you to use more than one, why doesn't it grey out after you add the first one? /sighs/  The concept is called "cascading styles", it's a fundamental web paradigm! And it works in the main body text - why not in Xrefs!
    Also, I have been very scrupulous to keep my character styles orthogonal so none of their AsIs's mash each other up.
    But, rant over, I shall follow your splendid suggestion for a "Code Hyperlink" style.
    Arnis Gubins wrote:
    Also, x-ref formatting may behave differently in the new Publishing modules depending upon ....
    ...Depending on how badly designed and buggy this new Frame12 feature is, I should say!   The Publish module should not randomly stop behaving in a WYSIWIG manner in completely undocumented fashion just because Adobe couldn't be bothered to code it properly.  /sighs/
    Frankly, for my current project, I've given up trying to jump through hoops for Publish - I'm concentrating on getting the Frame source right and assuming these quirks will be fixed in Frame 13 (or 14, depending on how superstitious they are). Because if I put in ad hoc workarounds for them in Frame 12, I (or a colleague) will only have to undo them later when they're fixed, and by then we'll all have forgotten what the original problem was.

  • Maintaining fill colors in character styles across multiple AI documents

    I'm having a lot of trouble understanding how Adobe Illustrator (CS6) manages character styles imported from different ai documents. If I create all character styles in a single .ai document and only use them in in that document, everything works as expected--colors, fonts, and typography settings are maintained in the character style, and newly added text can be quickly styled with the character style.
    My trouble starts when i want to re-use those character styles in a new .ai document. From the character style menu I use the option to import the character styles from another document, and they import correctly--all of the styles work and style text as expected. But then i save & close the document and re-open it to find that the character style entries are there, but the fills and strokes are all messed up--fonts, sizes, typography settings are maintained, but styles with a blue fill are suddenly filed with black, or some other color.
    So, why is this happening? This happens even if the swatches associated with the character styles are imported to the new document as well. I've read that all character styles are based off of the 'normal' character style. But, i've tried a test making sure that the 'normal' character style was consistent between the two documents and i've still experienced the issue.
    Here's a short video showing the issue i'm experiencing: http://youtu.be/Z-BG7miwib8 (watch at 720p)
    Any insights as to what i'm doing wrong would be GREATLY appreciated.
    Thanks!

    Jamier,
    can you please do the following and report what you see?
    1. Open a blank document
    2. Import a character style
    3. Make a text object and apply the style
    4. Cut and paste the text object inside the document
    5. Save the file
    6. Reopen this file
    Is the character style still intact?
    If so, you could take this way as a bumpy workaround (that should not be required at all, of course).

  • Character Styles in the Real World

    Rick:
    Thanks for your efforts, and let me add my Amen to both
    subjects (on file locations and on Character styles).
    My real-world use of Character styles is a combination usage
    of Paragraph and Character styles for Notes: I have a Paragraph
    style called Note, which simply adds margins of .15in Left, 10pt
    Top, and 8pt Bottom. Within this paragraph style, multiple labels
    announce the type of Note with the use of Character styles
    NoteLabel (Navy), RecommendLabel (Teal), CAUTIONLabel (Purple), and
    WARNINGLabel (Red).
    This way, you can change the color of one or more labels
    without worrying about the paragraph settings (or vice versa).
    Also, when placing a Note inside a table cell (which might
    have limited horizontal space, especially with three or four
    columns), we still use the "Label" character styles but
    without the Notes paragraph style. This still sets off the
    text visually, without adding unnecessary extra vertical space.
    Thanks again, Rick!
    Leon

    I can tell you about two sites.
    1. A system which allocates and dispatches crews, trucks, backpack hoses, spare socks, etc to bushfires (wildfires to you). It operates between two Government departments here in Australia. Each of those despatchable items is a remote object and there have been up to 50,000 active in the system at a time during the hot summer months. This is a large and life-critical system.
    2. A monitoring system for cable TV channels. A piece of hardware produces a data stream representing things like channel utilization, error rates, delay, etc and this is multiplexed via RMI to a large number of operator consoles. Again this is a major and business-critical system.
    And of course every J2EE system in existence uses RMI internally, albeit almost entirely RMI/IIOP.

  • In Pages (5.5.1) can I create multiple Paragraph Styles within one paragraph?

    In Pages (5.5.1) can I create multiple Paragraph Styles within one paragraph. 
    I need to make a table of contents for my Mater's Thesis and want to use the automatic table of contents feature.  I want the first sentence of a paragraph to have a different paragraph setting than the rest of the paragraph.  Is this possible?
    Thanks!

    Nice of you to be doing this for your Mother's Thesis.
    There are several issues here:
    1. A Paragraph Style is what it says, the style for the paragraph
    2. You can format text within a paragraph by applying a Character Style
    3. Pages 5.5.1 lets you apply formatting to overall text for the T.O.C. but not parts of it and you can not retain that formatting as a Paragraph style
    So in answer to your question, no.
    You will need to create the T.O.C. manually and unfortunately as Pages 5.5.1 can't create bookmarks (just one of over 100 missing features) you will be unable to link the T.O.C. to the referred pages in the list.
    Peter
    Apple's marketing slogan:
    Pages 5.5.1 - Can't Do That!

  • Multiple paragraph styles in one line

    I'm creating a training manual and I am having trouble with paragraph styles. Here's an example of what I am trying to do:
    "The Dog walks up the hill"
    In the above example, I have created a style for the bolded text and connected it my table of contents. The idea is when I create and update the TOC, "The Dog" will be the entry with the remaining text omitted from the TOC. The issue I am having is because the text is on one line, I cannot have multiple styles. I've tried writing just "The Dog" and then either changing the style or deleting the paragraph break to connect the text below to the main line. Once I erase the paragraph break and the text is on one line, only ONE style is maintained. Now, I can modify the character style; however, because the paragraph style is still the one connected to the TOC, the entire paragraph appears in the TOC.
    Any advice would be greatly appreciated! I've searched everywhere to no avail.
    Thank you very much for your support.

    ajmiddle18 wrote:
    I'm creating a training manual and I am having trouble with paragraph styles. Here's an example of what I am trying to do:
    "The Dog walks up the hill"
    In the above example, I have created a style for the bolded text and connected it my table of contents. The idea is when I create and update the TOC, "The Dog" will be the entry with the remaining text omitted from the TOC. The issue I am having is because the text is on one line, I cannot have multiple styles. I've tried writing just "The Dog" and then either changing the style or deleting the paragraph break to connect the text below to the main line. Once I erase the paragraph break and the text is on one line, only ONE style is maintained. Now, I can modify the character style; however, because the paragraph style is still the one connected to the TOC, the entire paragraph appears in the TOC.
    Any advice would be greatly appreciated! I've searched everywhere to no avail.
    Thank you very much for your support.
    It depends on the breed of dog.
    Is the paragraph always a single line?
    Is this dog the leader of the pack? IE, does the phrase you want to keep always begin the paragraph? If so, then you can separate the dog from the pack in the TOC. One way is to surround the pack with a unique character or marker in the main text, like End Nested Style Here, - one after dog, and another after hill, and create a paragraph style for the doggie paragraph to use in the TOC. This paragraph should contain a nested character style that applies microscopic text properties, like paper character color, font .1pt, and horizontal scale .1%. The TOC entries should use nested paragraph styles; the source paragraphs need you to insert the End Nested Style Here markers. The nested style definition in the TOC paragraph styles should apply no character style through the first end nested style marker, then apply microscopic through the next end nested style marker. This will shrink the walks...hill text to an invisible speck, so small that it shouldn't interfere with tab leaders and page-references.
    Another approach is to use a single-row table for the heading, with the dog pent nicely in the left cell, and the pack in the right cell. Each cell contains a paragraph, so only extract the dog to the TOC.
    Search Google for terms like "InDesign hide part of paragraph in toc knowhowpro," "InDesign suppress part of paragraph in contents knowhowpro," "InDesign two paragraph styles on one line," and similar phrases without quotes for some good discussions and a variety of approaches that include layers, anchored frames, and conditional text.
    Search Google for terms like "InDesign conditional text," and "InDesign nested paragraph styles," without quotes for details.
    http://forums.adobe.com/message/3206266 has a long discussion that may shed some additional light.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • How do I apply a character style to a sentence that has an '&' in it?

    Hi all,
    I'm trying to apply the Character style 'See Figure' to any mention of of the phrase (See Figure x) which  I've figured out is: \(See Figure \d+\)
    The problem I'm facing is that sometimes I will need to list multiple figure references. It will need to read (See Figure x&y) and in rare cases (See Figure x,y&z)
    NOTE: There are no spaces in the above listed numbers.
    Thank you  for your help.

    That works perfectly, thank you very much.
    Can you break it down for me in English if you have a moment please? I think I'm reading it wrong.
    Digit followed by an Ampersand (I'm confused by the square bracket and plus...)

  • Multiple Paragraph Styles / "Add-On" Styles

    Not exactly sure how to clearly describe what I'm after but I'd love to see if Adobe could incorporate this feature.
    I'd love to have an "add on" style where I could apply a paragraph style and any number of "add on" paragraph styles to it.
    For example, say I have three different styles and I need to have the same styles but with a different size. That would require me creating six styles. I'd love to be able to set a style and then an "add on style" for the size, which would reduce the number of styles I had to define, so in this case, the three styles and a fourth "add on style" for the size.
    In some cases like the one above I can use character styles but in a specific document I'm after I have several different paragraph styles requiring different "space after" amounts and I have to define many styles than I'd ideally like. Also it would be useful to be able to just click into the paragraph and add "add-on" styles to it.
    Your thoughts?
    R

    For me more important would be the user defined grid unit which could be used as the unit in defining interline, space before, space after etc.
    For example You have the layout based on interline baseline grid equal to 14 pt. So every space before, space after etc. you define as the part of you grid, for example 14/2 pt or 14/3 pt ect. 
    When you decide to change inteline grid form 14 pt to 13.5 pt you must change every space after, and every interline etc. manually.
    If you will have the a gid unit and ability  to define interline and spacing as a part or as a multiplication of the grid unit it would be only one shot to change all layout.

  • Why is the character style for hyperlinks not displaying correctly in design mode/viewing/output?

    I am using RH9 and generating WebHelp, and I needed to globally bump up the font size of just my hyperlinked text. I went into my Style Sheet > Character tab, changed the font size of the various character settings for hyperlinks, and clicked Apply and then OK. Normally, this would change all of my hyperlink text font sizes immediately across all of my topics. However, this time, it made no changes to any existing hyperlinked text, and it only affected new hyperlinks that I subsequently added. For the existing hyperlinks, I can only manually change the font size of the each hyperlink one at a time, but that's crazy (there's 100's in this help).
    I can successfully change other characters styles and paragraph styles. This issue only affects the hyperlink character styles. It also shows up in all RH modes - Design mode, viewing, and in the final output.
    Is this an indication of a corrupted style sheet or some other combination of events that I have yet to discover?

    Hi,
    You probably have inline styling in your project overwriting the font size of your style sheet. How are you changing the font size of the individual hyperlinks?
    There is a workaround for inline styling: Open your CSS in notepad and add !important after the font-size:
    font-size: 4pt !important;
    Note that this is a workaround, not a solution. As a solutions you can remove all the style attributes from your hyperlinks to force them to take the CSS styling again.
    Greet,
    Willam

  • Character Styles in CSS Properties Panel are not correct

    I am using Adobe Illustator CC.
    I am trying to export all of the charter styles as CSS. However the CSS panel is not generating the correct style.
    Right now, in the Character Styles Panel and CSS Properties Panel I have 3 styles (Default, h1, h2)
    This is how they are defined in the Character Styles Panel:
    1. [Normal Character Style]:Helvectic Neue LT Std, 55 Roman, 16px
    2. h1: Helvectic Neue LT Std, 25 Ultra Light, 35px
    3. h2: Helvectic Neue LT Std, 45 Light, 18px
    HOWEVER
    When I go to the CSS Properties panel the code is not showing the Font Style:
    This is how they are defined in the CSS Properties Panel:
    1. [Normal Character Style]:
    .NormalCharacterStyle
      font-family : Helvetica Neue LT Std;
      font-size : 16px;
      color : #19131F;
      color : rgb(25, 19, 31);
    2. h1:
    .h1
      font-family : Helvetica Neue LT Std;
      font-size : 35px;
      letter-spacing : 0.53px;
      color : #FFFFFF;
      color : rgb(255, 255, 255);
    Missing:  25 Ultra Light
    3. h2:
    .h2
      font-family : Helvetica Neue LT Std;
      font-size : 18px;
      text-transform : uppercase;
      color : #FCFCFC;
      color : rgb(252, 252, 252);
    Missing:  45 Light
    Am I not doing somethign correctly? Is it a problem with my font or with Illustrator?
    Also, in case it makes a difference, I only have the default paragraph style defined. It's style is; Helvectic Neue LT Std, 55 Roman
    Thanks!

    CSS cannot render typographical multiple weight fonts simply because that's just not how it works. All CSS does is reference a physical font file and its properties and while it's possible to use the font-weight and font-style attributes to make standard fonts lighter or bolder it does not compare to anything you would do with the font in a real design environment. That and of course you still need to define fallback/ substitution options - the Helvetica Neue you are referencing is exclusively available on Apple systems only and even if what you are trying worked off the bat, it would be useless on alternate devices that have no access to the font.
    Mylenium

  • Why does CS6 InDesign Book epub output generate and apply new graf and character style names in CSS?

    I created an InDesign book composed of documents that had had no paragraph or character styles in the palettes until text was copied over from a single overall document. I worked absolutely as clean as I could.
    I synchronized the book to that single overall document several times, including immediately before exporting the book to epub. My export settings disallowed any local formatting. Character styles were restricted to one named "Italic" for which the only format applied was Italic in the Font Style field, and one named "Small Caps" for which NO formatting was included in the character style.
    There was, as far as I can see, no reason for any character or paragraph styles to export to anything but identically-named CSS entries. That is to say, any text with the character style "Italic" applied in the InDesign doc should have output with the same text with a span class entry of "Italic" around it.
    I still ended up with p and span CSS entries with extra numbers appended to them:
    span.Italic {
    font-style:italic;
    font-weight:normal;}
    span.Small-Caps-1 {
    font-variant:normal;}
    span.Italic-1 {
    font-style:italic;
    font-weight:normal;}
    span.Small-Caps-2 {
    font-variant:normal;}
    span.Italic-2 {font-style:italic;
    font-weight:normal;}
    span.Small-Caps-3 {
    font-variant:normal;}
    span.Italic-3 {
    font-style:italic;
    font-weight:normal;}
    and
    p.x-SECTION-BREAK, p.x-SECTION-BREAK-1, p.x-SECTION-BREAK-2, p.x-SECTION-BREAK-3  and so on.
    Why would the InDesign epub output engine choose to generate and apply new spans and paragraph-level styles, which multiply the complexity of editing the CSS directly? How can I prevent InDesign from doing this?

    Perhaps I wasn't clear. When I wrote "an InDesign book composed of documents that had had no paragraph or character styles in the palettes until text was copied over from a single overall document" I meant to emphasize  the part where I CLEARLY said "UNTIL text was copied over." The text I copied over had plenty of paragraph styles. I was trying to point out that each individual document had no PREVIOUSLY EXISTING character or paragraph styles that might have added complexity to the epub output. .
    So, every paragraph in each document had a paragraph style attached, a total of maybe 20 different paragraph styles throughout the book. The only CHARACTER LEVEL styles I cared about exporting were Italic, for text that was set in italic, and Small Caps, for CAPITALIZED text that I wanted to be able to make smaller in the CSS, since I am not allowed to embed fonts and therefore have no other way of creating small caps in the xhtml files inside the epub.
    So, given that I had two character styles applied to various bits of text throughout my InDesign book ("Italic" and "Small Caps"), I would like to know why there are multiple CSS entries generated: Italic, Italic-1, Italic-2, Small Caps, Small Caps-1, Small Caps-2, and so on.
    Ditto paragraph styles. I had a paragraph style called "SECTION BREAK" in each document. Not only did paragraph style "SECTION BREAK" contain identical specs in each document--I know they did because I copied each from one single doc where they were being used identically--but I also synchronized the book repeatedly.  So why would the xhtml docs and the CSS output need p.x-SECTION-BREAK-1, p.x-SECTION-BREAK-2, and p.x-SECTION-BREAK-3?

  • Why can't I use character styles in my shared content?

    When I try to use a character style in a text box I've identified with a Content Tag, the character style gets applied to the whole text box as a paragraph style would.
    I can't even manually make a word bold without it making the whole paragraph bold.
    Is this a issue with Shared Content?
    I can't imagine I have to make a separate text box to make a bold word, right?
    Any suggestions?

    But I thought the whole point of shared content was that you could style it separately?
    When I draw a new text box on my phone layout and I click the tag for the text I want to share from my desktop layout it fills in the content without any styling.
    Read this tutorial:
    Adobe Muse Help | Working with Synchronized Text
    "With Synchronized Text, you can type common text once and maintain a consistent copy on multiple instances. If you want to edit the text, changing it once updates all instances of the text across your site. When updating text across all instances, Adobe Muse does not alter any style attributes associated with an instance."

  • Apply Clear Overrides after creating such character styles...

    Hi everyone,
    After importing the Word document into InDesign CS3 in some of the paragraphs there is some style overrides. The InDesign styles formatting are not intented with the paragraphs properly. Eventhough the word styles are mapped with InDesign styles exactly. If i select all the paragrahs and click the option "Clear Overrides" from the paragraph styles palette, all the InDesign styles formatting are applied properly but the character style formatting get removed. So i have planned to create script to character style for each font style and each formatting of the characters. After doing this i can clear the overrides of paragraph styles without hassle. I have created the script to create character styles for character formatting and its working fine but when i tried to run this script for 2nd time in the same document it showing some error in it. Please find my script below and it is too big,
    //To find Font styles and character formatting and replacing it with character styles
    //Script for CS3
    #target InDesign
    var myDoc = app.activeDocument;
    if (myDoc.characterStyles.item("Itl") == null){
    var Itl = myDoc.characterStyles.add({name: "Itl", fontStyle: "Italic"});}
    if (myDoc.characterStyles.item("bl") == null){
    var bl = myDoc.characterStyles.add({name: "bl", fontStyle: "Bold"});}
    if (myDoc.characterStyles.item("bItl") == null){
    var bItl = myDoc.characterStyles.add({name: "bItl", fontStyle: "BoldItalic"});}
    if (myDoc.characterStyles.item("bItal") == null){
    var bItal = myDoc.characterStyles.add({name: "bItal", fontStyle: "Bold Italic"});}
    if (myDoc.characterStyles.item("sb") == null){
    var sb = myDoc.characterStyles.add({name: "sb", fontStyle: "Semibold"});}
    if (myDoc.characterStyles.item("sbItal") == null){
    var sbItal = myDoc.characterStyles.add({name: "sbItal", fontStyle: "Semibold Italic"});}
    if (myDoc.characterStyles.item("blk") == null){
    var blk = myDoc.characterStyles.add({name: "blk", fontStyle: "Black"});}
    if (myDoc.characterStyles.item("obl") == null){
    var obl = myDoc.characterStyles.add({name: "obl", fontStyle: "Oblique"});}
    if (myDoc.characterStyles.item("li") == null){
    var li = myDoc.characterStyles.add({name: "li", fontStyle: "Light"});}
    if (myDoc.characterStyles.item("liItal") == null){
    var liItal = myDoc.characterStyles.add({name: "liItal", fontStyle: "Light Italic"});}
    if (myDoc.characterStyles.item("sup") == null){
    var sup = myDoc.characterStyles.add({name: "sup", position: Position.superscript});}
    if (myDoc.characterStyles.item("sub") == null){
    var sub = myDoc.characterStyles.add({name: "sub", position: Position.subscript});}
    app.findTextPreferences = NothingEnum.nothing;
    app.changeTextPreferences = NothingEnum.nothing;
    app.findTextPreferences = null;
    app.changeTextPreferences = null;
    app.findTextPreferences.fontStyle = "Italic";
    app.changeTextPreferences.appliedCharacterStyle = Itl;
    app.documents.item(0).changeText();
    app.findTextPreferences.fontStyle = "Bold";
    app.changeTextPreferences.appliedCharacterStyle = bl;
    app.documents.item(0).changeText();
    app.findTextPreferences.fontStyle = "BoldItalic";
    app.changeTextPreferences.appliedCharacterStyle = bItl;
    app.documents.item(0).changeText();
    app.findTextPreferences.fontStyle = "Bold Italic";
    app.changeTextPreferences.appliedCharacterStyle = bItal;
    app.documents.item(0).changeText();
    app.findTextPreferences.fontStyle = "Semibold";
    app.changeTextPreferences.appliedCharacterStyle = sb;
    app.documents.item(0).changeText();
    app.findTextPreferences.fontStyle = "Semibold Italic";
    app.changeTextPreferences.appliedCharacterStyle = sbItal;
    app.documents.item(0).changeText();
    app.findTextPreferences.fontStyle = "Black";
    app.changeTextPreferences.appliedCharacterStyle = blk;
    app.documents.item(0).changeText();
    app.findTextPreferences.fontStyle = "Oblique";
    app.changeTextPreferences.appliedCharacterStyle = obl;
    app.documents.item(0).changeText();
    app.documents.item(0).changeText();
    app.findTextPreferences.fontStyle = "Light";
    app.changeTextPreferences.appliedCharacterStyle = li;
    app.documents.item(0).changeText();
    app.findTextPreferences.fontStyle = "Light Italic";
    app.changeTextPreferences.appliedCharacterStyle = liItal;
    app.findTextPreferences = NothingEnum.nothing;
    app.changeTextPreferences = NothingEnum.nothing;
    app.findTextPreferences.position = Position.superscript;
    app.changeTextPreferences.appliedCharacterStyle = sup;
    app.documents.item(0).changeText();
    app.findTextPreferences.position = Position.subscript;
    app.changeTextPreferences.appliedCharacterStyle = sub;
    app.documents.item(0).changeText();
    function setupFindText(find, change, foots, hidLayers, lockedLayers, lockedStories, masters, caseSensitive) {
      app.findTextPreferences = null;
      app.changeTextPreferences = null;
      try { app.findTextPreferences.findWhat = find } catch(e) {};
      try {app.changeTextPreferences.changeTo = change } catch(e) {};
      app.findChangeTextOptions.properties = {
        includeFootnotes:(foots == null ? false : foots),
        includeHiddenLayers:(hidLayers == null ? false : hidLayers),
        includeLockedLayersForFind:(lockedLayers == null ? false : lockedLayers),
        includeLockedStoriesForFind:(lockedStories == null ? false : lockedStories),
        includeMasterPages:(masters == null ? false : masters),
        includeCaseSensitive:(caseSensitive == null ? false : caseSensitive)
    } // end setupFindText
    alert ("DONE");
    please suggest how to simply this script and make it run faster can anyone suggest me. Also suggest me to how can add this "Clear Override" syntax with this script. I want to make this script very effective. Thanks in advance to all.
    Regards
    Thiyagu

    The reason for that error is easy.
    if (myDoc.characterStyles.item("Itl") == null){
    var Itl = myDoc.characterStyles.add({name: "Itl", fontStyle: "Italic"});}
    means "if the style does not exist, create it and assign it to the variable". What happens when it does exist? (I'll let you think of an answer here.)
    Why don't overrides work? Well, let me ask you, does it work when you do the same directly in the program? No: to clear overrides, replace a style with itself. Does that mean you should run the script twice? Well, no, a brief search through the CS3 JS help reveals this tantalizing function (for any text type element):
    void clearOverrides ([overridesToClear:OverrideType=ALL])
    Clears the specified types of override.
    Parameter
    Type
    Description
    overridesToClear
    OverrideType:
    OverrideType.ALL
    OverrideType.CHARACTER_ONLY
    OverrideType.PARAGRAPH_ONLY
    The types of override to clear. (Optional) (default: ALL)
    -- and I remember someone posting this rather nifty one-liner
    myStory.paragraphs.everyItem().clearOverrides();
    The script appears a bit Frankensteinian to me. That function setupFindText is never used; you use two different ways of clearing the find and change preferences ('null' and 'nothing' -- I believe there were some strong points against using 'null', but, anyway, you only need to set them to nothing once).
    Notice it doesn't take heed of combinations of a type style and superior/inferior -- the latter will overwrite the former.
    The usual way of speeding up a script is by putting repeated elements into an array, but I doubt this will help much here. On the other hand, it's just a handful of replaces, and it should be very fast already. Even if it takes as much as 30 seconds, it's still worth that time.

  • Grouped Character Styles -

    Can I make a group of character styles that is not only available when I create a new doc, but will also be open every time I open any document? I have several hundred files to tend to and am wondering if there is a way to have it handy instead of loading it from a document every time.

    KSCoastal wrote:
    If I am to create a new doc, the character group/style is there as it should be, but if I open a doc, it is not and I have to load it. I have so many files to open that I don't want to have to open the style time and time again.
    To load properties from one file to many, you can use a book file and the synchronize feature. You do need to be sure that the properties you'll inject from the Style Source file won't change properties with matching names in the target files. Here's how:
    * Create a book file with File > New > Book
    It doesn't matter if you'll need to use the files in a book later, or if some of them already belong to different books.
    * Create or open the file that has all the properties - paragraph styles, character styles, object styles, master pages, etc - whatever properties that you want to inject into target files.
    * Add this file to the book file
    * Add all the target files to the book file - you can drag them from the desktop, Mac Finder, Windows Explorer, or by using the "+" button in the  book window and selecting all at once, and clicking the Open or Ok or Add button in the Add Documents dialog box.
    * To open all the files in the book at once, select them all in the book window, then double click quickly on the selection. It may appear that you've deselected all but the file you've double clicked, but you'll see the files in the book panel display the opened-book icon. You may also see missing font and perhaps other alerts during the opening process.
    NOTE: It's important to open all the files before synchronizing them, in case you discover that something's gone wrong and you need to undo the process. If you want to undo the synchronization for any changed files before saving, make the file active, and use File > Revert.
    NOTE: Before you synchronize files, click Synchronize Options in the Book panel menu, and choose exactly which properties you want to propagate from the style source to the target files. There are many choices, so check each one. You'll really need a well-prepared style source file to get this all right. Clear the check box of any property you want unchanged.
    * Select a file to be the file source for synchronizing some or all files in the book, by clicking on the box just to the left of the file file you want to be the style source. A tool tip should appear when you hover your pointer over the box, and when you click, an icon will appear (it may be too small to see easily; it represents a single file propagating its properties to multiple files.)
    * Select one or more file names in the book panel list to be the targets of the synchronization operation. If you want to synchronize all the files to the style source, either select all the file names, or click in the blank space below the name list (yes, it's totally counter-intuitive.)
    * Verify that the Synchronize Options properties are the ones you want.
    * Verify that the correct target files are selected, or that no file in the book panel is selected (for all files).
    * In the Book panel menu, click Synchronize Selected Documents.
    * Check through all the target files to verify that they're correct.
    * Use File > Revert with any document active to undo its synchronization.
    * Save the changed target files to preserve the changes. There's no "save all selected files" feature in InDesign, but you can use this operating-system trick to speed things up:
      - Option+Click (Mac) or Alt+Click (Windows) the close button of one open file; an alert appears. Choose Save, Don't Save, or Cancel.
    EDIT:
    NOTE: You can close the book without saving if you don't need it again, or you can save it. Synchronizing isn't supposed to change file numbering, but adding the files to a book will change their numbering. You may need to reset the numbering properties of files when you open them for use alone, or in other books.
    END EDIT
    You're done!
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • Can we combine multiple data sources in single report?

    <span style="font-size: 10pt; font-family: Verdana">Can we combine multiple data sources in single report?</span>

    If you can&#39;t do this at the Metalayer (BVs or Universe) - then subreports and shared variables are the method for CR to use multiple datasources in the same report.

Maybe you are looking for

  • Xtremio or All Flash Storage with SAP

    Hi gurus,  Where can I find information about supported storage platforms?  Can we move our SAP SQL Server to EMC Xtremio storage and still be supported by SAP?  Warm Regards, CM

  • DataSource Creation in r/3

    Hello All,          Now i want creater FIGL datasource in R/3.Please tell me the Transaction code in R/3.

  • Compression on table and on clustered index

    Hi all, if I had a table with a clustered index on it, is it the same to rebuild the table with compression and rebuild the clustered index with compression? Is this ALTER TABLE dbo.TABLE_001 REBUILD PARTITION = ALL WITH (DATA_COMPRESSION = ROW, ONLI

  • Browser not displaying pages

    when i try to load any page - including BB help, yahoo, imdb - all that have worked previously - the page says it is loading but nothing happens.  i have tried reloading BB but nothing works - please help

  • Manage Data Targets - ORA 03114 SQL Error

    Can someone help with this one..... We have recently patched up to 24 in our BW Dev and all was well. When I now go into cube...manage and contents. I simply want to select a few characteristics and view the data. When I choose a particular character