Use conditional tags to apply different Style sheets / Skins for purposes of brand?

RoboHelp HTML > WebHelp appearance of layout using conditional build tags

I have a client that provides an application to different companies and brands its product by changing the look, using a style sheet selected depending on the brand.

Is there a way to customize a WebHelp layout, to select a style sheet and a skin 's brand, and another sheet of style and skin for the brand Band so on?

Would this work in RH7? (The client uses this for the moment.)

Would this work in RH8? (They could improve if this solves the problem.)

Philip Tory, technical author

Hello Phillip

RoboHelp 8 offers capacity to appoint a specific CSS file in the presentation of single Source recipe. So sure.

See you soon... Rick

Useful and practical links

Wish to RoboHelp form/Bug report form

Begin to learn RoboHelp HTML 7 or 8 days - $24.95!

Adobe Certified RoboHelp HTML Training

SorcerStone blog

RoboHelp EBooks

Tags: Adobe

Similar Questions

  • How to use the different style sheets for ChangeAttributeRequest workflow in OAM

    Hello

    We have a requirement to invoke different change attribute request workflows (change password, change email etc.) of external JSPs.
    I want to apply different style sheets for each workflow. In the URL of the workflow if I get style = the style sheet name its not not using this stylesheet. Its still using the same basic (wf_changeattr.xsl) stylesheet. How can I use different style sheets? Pointers on this is appreciated.

    Thank you inadvance.

    Kind regards
    Srikanth

    Hi Srikanth,

    Are you using & xsl = stylesheetname or & style = parameter? XSL = must specify a specific xsl file, while & style specifies a complete style (for example & style = style0 for the default style).

    Kind regards
    Colin

  • Help: apply different styles of Pará to several consecutive paragraphs using the script

    Hi all

    I need to apply different styles of Pará to several consecutive paragraphs using the script, something like this (found somewhere on the net):

    myDoc = app.documents var [0];

    mySel var = app.selection [0];

    var myPStyle1 = "A";

    var myPStyle2 = 'B ';.

    you need to add 6 styles here:

    var myPStyle3 = 'C ';

    var myPStyle4 = "D";

    var myPStyle5 = 'E ';

    var myPStyle6 = 'F';

    var myPStyle7 = "G";

    var myPStyle8 = 'H ';

    the last style is not necessary in the script?

    apply style 1 paragraph 1

    mySel.appliedParagraphStyle = myDoc.paragraphStyles.item (myPStyle1);

    apply styles to the paragraphs after selection

    style 2

    mySel.paragraphs [-1] .insertionPoints [-1] .appliedParagraphStyle = myDoc.paragraphStyles.item (myPStyle2);

    next style

    mySel.paragraphs [-1] .insertionPoints [-1] .paragraphs [0] .insertionPoints [-1] .appliedParagrap hStyle = .nextStyle myDoc.paragraphStyles.item (myPStyle2);

    I tried a lot, but could not find the way to extend the sequence

    Sorry, no skills in the scripts still...

    all styles have "Next Style" option enabled, but I can't use ' apply style, then next style "or object styles, because I need four different sequences of these paragraph styles:

    A-B-C-D-E-F-G-H

    A-B-D-E-G-H

    A-C-D-F-G-H

    A-D-G-H

    and I don't really want to create special clones of the same style for each sequence (Keep It Simple, they say ).

    I think that this can be done through four slightly adjusted scripts...

    any suggestions would be greatly appreciated...

    Sorry to be late to the party, I usually take up such things immediately.

    How about this one?

    1. no separate necessary script, it uses a small dialog box where you can choose what style to use. If I'm not mistaken, you can press a digit key on Windows to immediately select one of the items.

    2. it works down in the paragraph in that your cursor is located. It has nothing to do with the blocks of text, even if - consecutive paragraphs within a story always ignore the text frames.

    3. extensible: you can easily change the names of the styles in the table at the top of the page and the number of groups of style in the list.

    var styleLists = [
              [ "A", "B", "C", "D", "E", "F", "G", "H" ],
              [ "A", "B", "D", "E", "G", "H" ],
              [ "A", "C", "D", "F", "G", "H" ],
              [ "A", "D", "G", "H" ]
    ];
    
    var radiobutts = [];
    
    styleDialog = app.dialogs.add ({name:"Set Multiple Styles",canCancel:true});
    with (styleDialog)
    {
              with (dialogColumns.add())
              {
                        with (radiobuttonGroups.add())
                        {
                                  for (i=0; i		   
  • Apply the style sheet to the entire project

    I inherited a project that has several style sheets (.css) and uses different style sheets for different subjects. I want to consolidate them and then apply a style sheet to the entire project. Does anyone know how to do?
    MAGNIN

    On the themes tab, select all of the themes, right click, select Properties. In the appearance of the theme properties dialog box tab, select the CSS you want.

    Good luck
    Leon

  • How to apply different styles to several spry accordion panels?

    Hi all

    I have a site I'm building that has several functions that spry accordion.

    I try to apply different styles to each accordion. A problem arises when I try to place an accordion in an another accordion.

    I have style two images of different background for both of the accordians for styles (AccordionPanelTab, AccordionPanelTabHover and AccordionPanelOpen AccordionPanelTabHover) that work very well.

    When I try and place an accordion in an another accordion background image for this Accordion for styles (AccordionPanelTab and AccordionPanelOpen AccordionPanelTabHover) has different style applied that I said in the accordion.css folder, however the style (AccordionPanelTabHover) has the same style as the accordion, it's breast, even if I said a background image in the accordion.css file different.

    I hope this makes sence, below is my source and the CSS Code.

    I appriciate any help that can be given to help solve this issue I'm running too.

    Source code

    < div id = "content" >

    < p > < span class = "first_header_word_packages" > welcome </span > < span class = "header_word_packages" > on our page of packages </span > < / p >

    < class p = "content_txt" > here you can build the package Web site that meets your needs while being able to determine the cost of your site without having to worry about the scary hidden costs at a later date. < /p >

    < class p = "content_txt" > we have two packages available for our clients; < /p >

    < div id = "Accordion1" class = "Accordion" tabindex = "0" >

    < div class = "AccordionPanel" >

    < div class = "AccordionPanelTab" > < / div >

    < div class = "AccordionPanelContent" >

    Here the text < p > < /p >

    < div id = "Accordion2" class = "Accordion" tabindex = "0" >

    < div class = "AccordionPanel" >

    < div class = "AccordionPanelTab" > < / div >

    < div class = "AccordionPanelContent" >

    Here the text < p > < /p >

    < / div > <! - end #Accordion2 content - >

    < / div > <!-end #AccordionPanel->

    < / div > <!-end #Accordion2->

    < / div > <! - end #Accordion1 content - >

    < / div > <!-end #AccordionPanel->

    < / div > <!-end #Accordion1->

    < div id = "Accordion3" class = "Accordion" tabindex = "0" >

    < div class = "AccordionPanel" >

    < div class = "AccordionPanelTab" > < / div >

    < div class = "AccordionPanelContent" >

    Here the text < p > < /p >

    < div id = "Accordion4" class = "Accordion" tabindex = "0" >

    < div class = "AccordionPanel" >

    < div class = "AccordionPanelTab" > < / div >

    < div class = "AccordionPanelContent" >

    Here the text < p > < /p >

    < / div > <! - end #Accordion4 content - >

    < / div > <!-end #AccordionPanel->

    < / div > <!-end #Accordion4->

    < / div > <! - end #Accordion3 content - >

    < / div > <!-end #AccordionPanel->

    < / div > <!-end #Accordion3->

    < / div > <!-end #content->

    CSS

    @charset "UTF-8";

    / * SpryAccordion.css - version 0.5 - Pre - Release Spry 1.6.1 * /.

    / * Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. */

    / * This is the selector for the main container of the accordion. For our style by default.

    * draw us left, right and bottom borders. The upper edge of the accordion

    * is made by the first AccordionPanelTab which never moves.

    *

    * If you want to limit the width of the Accordion widget, set a width

    * the accordion container. By default, our accordion expands horizontally to fill

    * a space available.

    *

    * The name of the class ("accordion") used in this switch is not necessary

    * make the widget function. You can use any class name you want to style the

    * Accordion container.

    */

    . Accordion {}

    border-left: 1px solid gray;

    border-right: 1px solid black;

    border-bottom: 1px solid gray;

    overflow: hidden;

    }

    / * This is the selector for the AccordionPanel container which houses the

    * tab panel and panel content area. It is not make it visually, but we

    * ensure that it has zero margin and padding.

    *

    * The name of the class ("AccordionPanel") used in this switch is not necessary

    * make the widget function. You can use any class name you want to style a

    the container of accordion panel.

    */

    . {AccordionPanel}

    margin: 0px;

    padding: 0px;

    }

    / * This is the selector for the AccordionPanelTab. This container houses

    the Panel personnel. It is also the container where the user clicks

    * to open a specific panel.

    *

    * The name of the class ("AccordionPanelTab") used in this switch is not necessary

    * make the widget function. You can use any class name you want to style a

    the container of Accordion Panel tab.

    *

    * NOTE:

    * This rule uses the - moz-user-select and - khtml-user-select properties to prevent the

    * the user to select the text in the AccordionPanelTab. Here is the browser owner

    properties that only work in Mozilla browsers (such as FireFox) and KHTML

    * browsers (such as Safari), so they will not pass the W3C validation. If you want your documents to

    * validate and don't care if the user can select text in an AccordionPanelTab.

    * You can remove these properties without affecting the functionality of the widget.

    */

    . {AccordionPanelTab}

    background-color: #CCCCCC;

    border-top: 1px solid black;

    border-bottom: 1px solid gray;

    margin: 0px;

    padding: 2px;

    cursor: pointer;

    -moz-user-select: none;

    -khtml-user-select: none;

    }

    / * This is the selector for the content area of a Panel. It is important to note that

    * You should never put any padding on the content area of the group if you plan to

    * use the animations of accordion panel. Place padding non-zero on the content

    * area can cause accordion suddenly increase in height, while signs alive.

    *

    * Anyone who styles an accordion * MUST * specify a height on the Accordion Panel

    * Content container.

    *

    * The name of the class ("AccordionPanelContent") used in this switch is not necessary

    * make the widget function. You can use any class name you want to style a

    the container of the accordion panel content.

    */

    . {AccordionPanelContent}

    overflow: auto;

    margin: 0px;

    padding: 0px;

    }

    / * This is an example of how to change the appearance of the tab of the Panel which is

    * currently open. The "AccordionPanelOpen" class is added and removed programmatically

    * to panels as long as the user clicks on the tabs in the accordion.

    */

    . AccordionPanelOpen. {AccordionPanelTab}

    background-color: #EEEEEE;

    }

    / * This is an example of how to change the appearance of the tab of the Panel as the

    * mouse passes over it. The "AccordionPanelTabHover" class is added programmatically

    * and removed containers tab panel as the mouse enters and leaves the tab container.

    */

    . {AccordionPanelTabHover}

    color: #555555;

    }

    . AccordionPanelOpen. {AccordionPanelTabHover}

    color: #555555;

    }

    / * This is an example of how to change the appearance of all the Panel tabs when the

    * Accordion has focus. The class "AccordionFocused" is programmatically added and removed

    * whenever the accordion wins or loses the keyboard focus.

    */

    . AccordionFocused. {AccordionPanelTab}

    background-color: #3399FF;

    }

    / * This is an example of how to change the appearance of the tab of the Panel which is

    * currently open when the accordion is in focus.

    */

    . AccordionFocused. AccordionPanelOpen. {AccordionPanelTab}

    background-color: #33CCFF;

    }

    / * Printing rules * /.

    @media print {}

    . Accordion {}

    overflow: visible! important;

    }

    . {AccordionPanelContent}

    display: block! important;

    overflow: visible! important;

    height: auto! important;

    }

    }

    #Accordion1. {AccordionPanelTab}

    height: 75px;

    Width: 285px;

    Background: url (.. /images/package_spry_tab_bg1.png) ;}

    #Accordion1. AccordionPanelTabHover,

    #Accordion1. AccordionPanelOpen. {AccordionPanelTabHover}

    Background: url (.. /images/package_spry_tab_bg1_RO.png) ;}

    #Accordion2. {AccordionPanelTab}

    height: 44px;

    Width: 469px;

    Background: url (.. /images/packages_spry1.png) ;}

    #Accordion2. AccordionPanelTabHover,

    #Accordion2. AccordionPanelOpen. {AccordionPanelTabHover}

    Background: url (.. /images/packages_spry1_ro.png) ;}

    #Accordion3. {AccordionPanelTab}

    height: 75px;

    Width: 285px;

    Background: url (.. /images/package_spry_tab_bg2.png) ;}

    #Accordion3. AccordionPanelTabHover,

    #Accordion3. AccordionPanelOpen. {AccordionPanelTabHover}

    Background: url (.. /images/package_spry_tab_bg2_RO.png) ;}

    #Accordion4. {AccordionPanelTab}

    height: 44px;

    Width: 469px;

    Background: url (.. /images/packages_spry2.png) ;}

    #Accordion4. AccordionPanelTabHover,

    #Accordion4. AccordionPanelOpen. {AccordionPanelTabHover}

    Background: url (.. /images/packages_spry2_ro.png) ;}


    Good guys.

    I thought about it, if someone had the same problem as me and a look at this thread for the answer, here it is.

    Firstly if you are wanting to separately style two or more Spry accordions that are not on the other example

    Label 1

    Insert content here

    Label 1

    Insert content here

    Do not do this, as long as you have separate ID's for the div (which dreamweaver automatically anyway), you will be fine.

    However if for some reason, you want to put one accordion inside another like I did for example

    Label 1

    Insert content here

    Label 1

    Insert content here

    Too style accordion 1 and 2 so their tabs have different origins and Hover background when the content panel is open and closed you need to style it in CSS that they follow the path;

    CSS

    #Accordion1. {AccordionPanelTab}

    height: 75px;

    Width: 285px;

    Background: url (.. /images/package_spry_tab_bg.png) ;}

    #Accordion1. AccordionPanelTabHover,

    #Accordion1. AccordionPanelOpen. {AccordionPanelTabHover}

    height: 75px;

    Width: 285px;

    Background: url (.. /images/package_spry_tab_bg_RO.png) ;}

    #Accordion2. {AccordionPanelTab}

    height: 44px;

    Width: 469px;

    Background: url (.. /images/packages_spry.png) ;}

    #Accordion2. AccordionPanelClosed. AccordionPanelTabHover,

    #Accordion2. AccordionPanelOpen. {AccordionPanelTabHover}

    height: 44px;

    Width: 469px;

    Background: url (.. /images/packages_spry_ro.png) ;}

    Normally in styling two separate spry accordions, you can simply use the following code

    #Accordion1. {AccordionPanelTab}

    height: 75px;

    Width: 285px;

    Background: url (.. /images/package_spry_tab_bg.png) ;}

    #Accordion1. AccordionPanelTabHover,

    #Accordion1. AccordionPanelOpen. {AccordionPanelTabHover}

    height: 75px;

    Width: 285px;

    Background: url (.. /images/package_spry_tab_bg_RO.png) ;}

    The only difference with the style one Spry Accordion in another so that they have different horizons stationary when the content panel is open and closed ".» AccordionPanelClosed ".

    Hope this has helped someone who had the same problem, I was.


  • Apply a style sheet for an entire project after importation

    Hello

    I was wondering if it is possible to apply a style sheet to a project after its importation of a Word to RoboHelp8 document.

    When I import a document into a project of RoboHelp8, it won't let me apply a stylesheet at this time, so I was wondering if it would be possible to apply the stylesheet desired to the whole of the project once the import process is completed.

    Thank you

    Bogdan

    Select all subjects in the list of topics, right-click for properties, and then select the style sheet in the appearance tab.

    Good luck

    Leon

  • How do you get the 3 different style sheets CSS sample in 3 different areas of DW presentation?

    I added the css example 3 leaves that I use in my style site.  Now, I am trying to bring a different sample of css in different sections of the track.  Example:

    Box 1: green/yellow

    Box 2: red/yellow

    In the Middle: blue/yellow

    I seem to be only able to have one for the entire page.  Is this true?

    What I do is clicking the div tag: < div.sidebar # sidebar1″ >, then 'edit CSS' and then scroll the window of the class "attach the stylesheet" and nothing at the bottom a link to the sample css style sheets.  I click on the one that I want and it changes the css for the entire page, not just the box 1. Is there a way I can get a css style sheet different samples for each sidebar in a layout 3 columns and a different sample of css for the environment?

    Thank you very much

    You can not gather 3 of sample CSS style sheets because there are areas defined as tables and lists and paragraphs which are just be redefined.  So what is happening, is that the browser chooses (usually the last game) the instructions that he wants to use to display the content.  The only way around this is to save a copy of the CSS 3 documents, then open them at the same time.  Then use them as your master that will be linked to the page and grab the colors of other CSS documents.

  • [AS] [CS6] Apply different styles in the context of a text

    Hello

    Currently I have an AppleScript script to fill a block of plain text with a series of chains:

    say MyTextFrame to define (content of the history of the mother) to MyText1 & MyText2 & MyText3 & MyText4

    I would like to apply a different style (MyStyle1 to MyStyle4) for each of these channels (MyText1 to MyText4).

    Precision: MyTextI strings can contain a word or a paragraph or more, so I can't apply a style to a paragraph, for example.

    Thomas

    See the syntax below

    Please note that, while the js elements begin a 0 as start at 1, so you will have to set that in the script by Uwe

    Tell application "Adobe InDesign CS6"

    Set myDocument to the active document

    page 1 of myDocument, myPage value

    myTextFrame value framework text 1 of myPage

    tell the parents of myTextFrame

    Reference value character myText 1-character - 2 of paragraph 1 of the text object

    say myText

    apply the character style with the character style "myCharStyle" of myDocument

    tell the end

    tell the end

    tell the end

    look at examples in manual https://www.adobe.com/content/dam/Adobe/en/devnet/indesign/cs55-docs/InDesignScripting/InD esign-ScriptingGuide - AS.pdf

    A very useful guide indeed

    Trevor

  • Different style sheets for several accordians?

    I am a newbie to Dreamweaver CS4 and you just to add my first accordion to a Web page. I modified the stylesheet of the accordion, and it looks and works like I want. My question is this:

    If I want to install an accordion with a different style on a different site page, when I insert the accordion on the second page, Dreamweaver automatically generates a new stylesheeet with a different name for the second accordion? Or the new accordion automatically adopt (or replace) styles of the first?

    I appreciate your advice.

    Thank you

    Scott

    Scott,

    Thanks for your reply, Randy. I'm sorry to be a bit slow on this, but I want to be sure that I understand what you're saying.

    If I add this second accordion to a second page, by default it will adopt the same style sheet that I created and modified for my first accordion?

    If this is the case, so I just make a copy renamed this stylesheet, edit it, and then specify the new name of the style sheet in code to the new page?

    As I understand it, what you've done so faris to modify the SpryAssets/SpryAccordian.css. Fix?

    If so, * to rename the SpryAccordianFunky.css file (or something correctly descriptive). Dreamweaver asks if you want to update the links, so don't answer 'Yes' then your existing page breaks.

    Now, next time you add a Spry Accordion to a page, will add a new copy of SpryAccordian.css in the SpryAssets folder and that Spry Malaccaaccordian will get the default appearance. If you want the 'other' look, then rename the reference to SpryAccordian.css to use the new file.

    HTH,

    Randy

  • rebuild the style sheets CSS3 for mobile device

    Do I have to rewrite my css3 style sheets to set up the smartphone device?

    Existing Web site is the standard layout 2 column - do I need to create style sheets for iPhone and iPad?  then assign the stylesheets with media queries?

    Yes.  If you want to support different layouts in different devices, this is the procedure.

    David Powers has written a nice tutorial - Introduction to CSS Media Queries

    http://www.Adobe.com/devnet/Dreamweaver/articles/introducing-media-queries.html

    If you are not too eager to do everything yourself (plenty of work), you can enter a sensitive layout of the seven project.

    Nancy O.

  • Apply a Style of object for anchor

    Hi all

    Could someone please give solution for my application.

    1. find the anchor marker

    2. apply a style object for the chart image by selecting parent.

    myDoc var = app.activeDocument;

    app.findGrepPreferences = app.changeGrepPreferences = null;

    app.findGrepPreferences.appliedParagraphStyle = 'abc '.

    app.findGrepPreferences.findWhat = "~ a".

    var myFound = myDoc.findGrep ();

    for (i = 0; i < myFound.length; i ++)

    {

    myFound [i] .parentTextFrames [0] .appliedObjectStyle = app.activeDocument.objectStyles.item ("Image") //Error only

    }

    Thanks in advance

    Beginner

    Hello

    An anchored object is not parent, but child (pageItem) for the anchor.

    myFound[i].parentTextFrames[0].appliedObjectStyle = app.activeDocument.objectStyles.item("Image")   //Error this only
    

    Try this code

    myFound[i].pageItems[0].appliedObjectStyle = app.activeDocument.objectStyles.item("Image");
    

    Thank you

    mg.

  • use queries to support for different style sheets?

    I know that this question must be asked all the time, sorry :-).  I have been working on a site and you have great help here for 2 previous questions. But now, I came across another and more than probably the last issue for this site. The page that I write is for my group, many of our fans and everyone have ipads, anodroids and soon. So just to see, I tested my site and 800 x 600 (I know the Res gets much lower than for 320 phones is the norm and 1024 x 768 for the ipad, I think, but it is the lowest, I could go on my pc to test) and I already had problems with the top of the screen being cut into pieces and well sure left and right chopped. I read up on it and I find the media to call sheets css dfferent for different resolutions.  What is togo of this problem? Also when I wrote the page that I was in 1280 x 1024, I did, as I thought it was prob. the resolution more used at this point, it is the best resolution to create? So, in a nut shell, what is the best way to address the resolution and what resolution you create in? Thank you very much for the help past as well as help with this.

    John Dullebawn

    Media Queries would be the way to go for what you want to do.

    Keep in mind that just because this resolution may be the most widespread, it probably doesn't get used very often. Here's what I mean by that...

    I my experience, very few people find anything on the web with a maximized window (I honestly can't do to think of a time where I have never seen someone using a display full-screen browser where it wasn't an accident). Most don't allow their browser to use 80% or more of their real estate property screen because they need room to click back between browser windows or other programs or just to get on their desk to find files.

    The good thing with questions from the media, is that you need not worry about this because you can make one for 1280 x 1024 for the people who use the entire screen. Then an other for 1024 x 768 or 800 x 600 480 x 260, basically everything, and all the other resolutions you want to design for.

    It's really how precisely you want to got on the number of possibilities to you.

  • Can see Firefox (29.0.1), but does not, apply a style sheet external .css (IE can and the work of the if internal stylesheet using &lt; style &gt;) - what is the problem?

    FF version: 29.0.1
    O/S: Windows xp, SP3
    
    html code:
    <head>
    	<link type="text/css" rel="stylesheet" href="stylesheet.css">
    ...
    </head>
    
    stylesheet:
    body {background-color:#F5FADC;color:black;font-family: Verdana,Arial,sans-serif;font-size:12px;padding-left:10px; padding-right:10px;}
    h1 {text-align:center;font-size:30px;}
    h2 {text-align:left;font-size:16px;}
    /*p {font-family: Verdana,Arial,sans-serif;font-size:12px;}*/
    ol.alpha {list-style-type:upper-alpha;font-weight:bold;}
    ol.decimal {list-style-type:decimal;font-weight:normal;}
    ul.no-bullet {list-style-type:none;}
    .italic {font-style:italic;}
    .bold {font-weight:bold;}
    .normal {font-style:normal;font-weight:normal;list-style-type:decimal;}
    .padded {padding-top:3px; padding-bottom:3px;}
    ol {list-style-type:upper-alpha;font-weight:bold;}
    ol li {padding-top:3px; padding-bottom:3px;}
    ol li ol {list-style-type:decimal;font-weight:normal;}
    ol li ol li ul {list-style-type:none;font-style:italic;font-weight:bold;}
    ol li ol li ul li ul {font-style:normal;font-weight:normal;}
    ol li ol li ul li ul li {padding-top:3px; padding-bottom:3px;}

    Ah, you do not have a UTF-16 mismatch, but I'd guess it was the CSS file that is UTF-16, and it is rather your page. Please use the same encoding for the homepage and all external CSS and JavaScript files that you link in it. I don't know what encoding is preferable to esperanto!

  • Using RoboHelp 8 with RoboHelp 9 style sheet

    Howdy. My question:

    I was using RoboHelp 8 to work to develop a web help document in a Word file. We have a CSS company we apply to web help for look, feel, etc. He worked in RoboHelp 8, but not 9 despite following the same Word import procedure. Necessary to move to RH9 because RH8 was not to recognize our version of Word to compile and create the web, help files.

    How can I make my old style worksheet with RH9? Is there some step I'm missing? Help appreciated with 20.1 bazillion thanks in advance.

    I have corrected the problem. I dug into the file of master page that I used, and he was referring to the wrong CSS file. Why it worked in RH8 is beyond me, but it seems to be resolved.

    Thanks for all the help!

  • Apply the style of character for particular word only by script

    Hello

    I find the word especially in the indesign file. That must change italic character style applies.

    For example my topic levels "Ind - H1', 'Ind - H2', 'Ind - H3' have '(continued)' text, now my continuous text only get"Italic"character style for the declared position levels. Is it possible by script?

    by

    hasvi

    Maybe this can be written more short. I have two ideas:

    1.

    var curDoc = app.activeDocument;  
    
    app.findGrepPreferences = app.changeTextPreferences = null;     
    
    app.findGrepPreferences.findWhat = "see(?=:\\x20\\(continued\\))";
    var firstFound = curDoc.findGrep();
    app.findGrepPreferences.findWhat = "(?<=see:\\x20\\()continued";
    var secFound = curDoc.findGrep();
    var allFounds = firstFound.concat(secFound);
    
    for( var n = 0; n < allFounds.length; n++ ) {
        var curFound = allFounds[n];
        var curPara = curFound.paragraphs[0];
        if ( curPara.appliedParagraphStyle.name == "h1" || curPara.appliedParagraphStyle.name == "h2" ||curPara.appliedParagraphStyle.name == "h3" ) {
            curFound.appliedCharacterStyle = "italic";
        }
    } 
    
    app.findGrepPreferences.findWhat = "(?<=see):(?=\\x20\\(continued)";
    allFounds = curDoc.findGrep();
    
    app.findGrepPreferences = app.changeGrepPreferences = null;  
    
    for( var n = 0; n < allFounds.length; n++ ) {
        var curFound = allFounds[n];
        var curPara = curFound.paragraphs[0];
        if ( curPara.appliedParagraphStyle.name == "h1" || curPara.appliedParagraphStyle.name == "h2" ||curPara.appliedParagraphStyle.name == "h3" ) {
            curFound.appliedCharacterStyle = "bold";
        }
    }
    

    2.

    var curDoc = app.activeDocument;  
    
    app.findGrepPreferences = app.changeTextPreferences = null;     
    
    app.findGrepPreferences.findWhat = "see:\\x20\\(continued";
    var allFounds = curDoc.findGrep();
    
    for( var n = 0; n < allFounds.length; n++ ) {
        var curFound = allFounds[n];
        var curPara = curFound.paragraphs[0];
        if ( curPara.appliedParagraphStyle.name == "h1" || curPara.appliedParagraphStyle.name == "h2" ||curPara.appliedParagraphStyle.name == "h3" ) {
      app.findGrepPreferences.findWhat = "see|continued";
      app.changeGrepPreferences.appliedCharacterStyle = "italic";
      curFound.changeGrep();
      app.findGrepPreferences.findWhat = ":";
      app.changeGrepPreferences.appliedCharacterStyle = "bold";
      curFound.changeGrep();
        }
    } 
    
    app.findGrepPreferences = app.changeTextPreferences = null;
    

Maybe you are looking for