Need to re-tag some Para styles of imported Word docs

I'm hoping someone can help. I have a fairly modest-sized help system that is created from imported Word Docs (Office Word 2003). These documents use conventional paragraph styles (Heading 1, Heading 2, etc.).
In my RoboHelp X5 project, I've created a custom CSS file that I apply to the imported Word docs. After importing any of the docs, some of my paragraph styles become misaligned: for example, my Heading 3 paragraphs are flush with the left margin, rather than indented as they should. When I click inside the mis-aligned paragraph, I see that the paragraph is indeed tagged as Heading 3. At fist I thought it might have been my CSS file style definitions, but they appear to be fine. In fact, all I have to do to correct the paragraph alignment is to reassert the tag (ie From the RB Project window, click the para (the fomating combo box reads Heading 3), reselect (reapply) the style (Heading 3), and then select "Reapply formatting  of the style to the selection" from the Update/Reapply Style dialog. RH then correctly applies the alignment defined for the style in my CSS. Note, this appears only to be an alignment issue; the fonts and other attributes always seem to work on import. Unfortunately, I have to do this hundreds of times because I seem to have several styles that need retagging after import.
Any ideas? I downloaded a trial copy of RB 8, hoping this was peculiar to X5, but RB8 behaved the same way.  If it's any help, I've pasted the HTML coding for a Heading 3 paragraph, 1) just after import 2) the para after Heading 3 style was reasserted. For some reason RH is "margin left" and "text-indent" attributes.
1) Immediately after import
<h3 style=
"margin-left: 40.3pt; text-indent: -40.3pt;">2.2.1<span style="font: 7.0pt 'Times New Roman';">     
</span>Using the Stylus</h3> 
2) After retagging as heading Heading 3
<h3>
2.2.1<span style="font: 7.0pt 'Times New Roman';">     </span>Using the Stylus</h3>
Thanks.....rob

Judging from the excess spacing between the "2.2.1" and the H3 title, I suspect that your Word file has a tab set in there. I believe replacing the tab with one or two spaces should import the file without the indent.
As to the font (span) tagging, are you sure that your Heading 3 style in Word is the original, default Heading 3, and not some re-styled Heading 3 based on Normal or something else, or a "Heading 3 + Font: 7 pt, Times New Roman", which would indicate inline modification of the style rather than a global replacement of settings for the style? I've never seen RH add span tagging unless it encounters non-standard styles in the base document.
Select a test .doc file. Before importing it to RH, try these:
Use Format Painter in Word to manually re-style any non-standard paragraphs.
Do not attach a .css to the Word file, only to the resulting RH topic.
Do you see a difference?
Good luck,
Leon

Similar Messages

  • More than heading 3 in Split on Style when importing Word doc?

    Hi
    I hope that you can help me. My Word document (Windows XP)
    has Heading 4 style.
    When I import the word document into RoboHelp 7 HTML, the
    Split on Style box only has Heading 1, 2, and 3. Why doesn't
    Heading 4 show up? Can RoboHelp 7 split topics on Heading 4 or more
    styles on import? If so, how?
    Thank you for your help.

    Hi, all,
    I am so confused! I was wondering, dyhw, if you
    figured out this situation?
    I also have a Word 2003 document that has a fairly clean
    template and 4 heading levels: Heading 1, Heading 2, Heading 3, and
    Heading 4. The Word TOC generates just fine.
    When I import into RH 7, I tried with "preserve heading
    levels" both off and on; "convert TOC" both off and on--no luck.
    What is happening is that although Heading 4 topics are created in
    the TOC, there is no separate HTM file--the topics are appended to
    the Heading 3 (book).
    On import, the "Split on Style" dialog lists in the "Create
    new topics based on" checkboxes only H1, H2, and H3--as well as
    TOC1, TOC3, TOC4, and BodyText (???). Where is Heading 4? And what
    does "Rename style (F2)" do? I tried to use that to rename TOC4 to
    Heading 4, but that didn't seem to change anything.
    I am *very* confused as to how to import my Word doc and
    actually see generated Help--and I haven't been able to apply my
    skin, either--but I guess that is another topic in the forum...
    Any help, guidance, etc. will be gratefully accepted! I have
    looked at the topic referenced in this thread and couldn't see
    anything listed that I haven't already tried.
    Thanks in advance,
    Kathy

  • Script to map xml tags to para styles

    I am using the 'FindChangeByList.jsx' to format a series of text files.
    I realise that I can map tags to styles using the 'Tags" palette.
    But I wondered, if it is possible, if someone would be able to show me the syntax to include in my list (.txt file) to map xml tags to paragraph styles assigned in the list as it runs the script?
    Steve

    If you want through find and change here below is a function for apply tag on paragraph style
    var myDoc = app.activeDocument;
    addtags("A Head", "Head");
    addtags("Text", "P");
    function addtags(stylename, tag)
    if(myDoc.paragraphStyles.item(stylename) != null)
    app.findGrepPreferences = NothingEnum.nothing;
    app.changeGrepPreferences = NothingEnum.nothing;
    app.findGrepPreferences.findWhat = '.+';
    app.findGrepPreferences.appliedParagraphStyle = stylename;
    app.changeGrepPreferences.markupTag = tag;
    myDoc.changeGrep();
    app.findGrepPreferences = NothingEnum.nothing;
    app.changeGrepPreferences = NothingEnum.nothing;
    Shonky

  • Losing Paragraph style when linkind word Docs

    Hi
    New to InDesign CS5.
    My client wants to edit text files so I am trying using the text link function in Indesign, but when I update the Word document I lose all my Paragraph and Text styles that I have applied in Indesign.
    Is there a way keep the paragraph and text style when updating linked Word doc files?
    Thanks

    But don't hold your breath in hoping the client keeps to the set of styles.
    In some cases, I've been locking down my Word files so that editorial contributors can only make text edits. It works a treat - except when they want to perform major edits. In those cases, I unlock the file for 'em and give 'em a lecture about how much extra they're going to pay in DTP costs when I have to reflow large parts of the document due to excessive significant changes at the tail end of a translation workflow. That also works quite well.
    I'd be a huge fan of InCopy if it were free, or had an install base like that of MS Word. However, since precisely zero of the people who have wanted to be involved in the editorial processes of the projects I handle have ever heard of InCopy, in the entire time since the introduction of InDesign CS, it's a tough sell.

  • Need help creating a fillable PDF form from a Word Doc coverted to PDF

    Hello, I recently switched from the downloaded program to the monthly "subscription type" of adobe "cloud".  Previously, I was able to select in "Tools" the option to insert blue text boxes in my PDF where customers could fill in  info and return to me.  Now, I can no longer find this option on the Adobe Reader XI. Am I missing something?

    You're using Reader instead of Acrobat... Only Acrobat can edit PDF files.

  • Export Tags for Paragraph styles in Indesign CC without classes

    With CS6, when you set export tags for para styles, you could export them to epub without classes, for example body text as p, headings as h1 or h2 etc - without need for classes. This made very simple code. With Indesign CC, it seems that classes always get added no matter what. So all your body text is tagged with p with a class of normal or something. Is there a way to go back to setting export tags as straight p of h1, h2 tags??

    Nope. It was an intentional change on our part for CC.
    I do understand there are a number of folks who would like the option to do this on a per Style basis and I'm very actively considering it for a future CC update.
    Douglas Waterfall
    Architect, InDesign Engineering

  • Auto-set Conditional Build Tags Based On Style?

    Is there a way to auto-set conditional build tags based on style?
    I want to be able to import a Word document into RoboHelp and have it recognize certain styles as requiring certain conditional tags. For example, an imported Word document might have a style called WD_Internal and any text with that style would automatically have a conditional build tag assigned to it. The idea is to allow my SMEs to indicate which text is intended for internal audiences and which text is OK for customer consumption in a single central Word document using styles. When the content is correct, I'd import it into RoboHelp, have RoboHelp assign conditional build tags, then generate multiple printed versions of the document (an internal version and a public consumption version).
    Setting conditional build tags is pretty easy, but it will still be a lot of work to manually set them. Is there a way to do this automatically?
    I am using RoboHelp HTML RH9.

    Hi,
    There's no way to do this through the interface. You can however create a script to do this for you. Cycle through the content of the topics and insert the code for the CBT.
    Greet,
    Willam

  • Overrides on Styles for Imported files

    I am importing word docs into InDesign to apply formatting and layout but it is applying overrides to the styles. Is there a way to import without overrides?

    If you're doing a lot of this kind of thing it might be worth you looking at Anne-Marie Concepcion's excellent online tutorial, "Using Word and InDesign Together".
    http://www.lynda.com/InDesign-tutorials/Using-Word-InDesign-Together/122930-2.html
    Derek

  • How to make duplicate the para styles

    Hi,
    I have already created some set of styles for journal tempalte [E.g.: jNL,jUNL,...].
    Now I want to create same set of styles but starting with 'b' for book. [E.g.: bNL,bUNL,...].
    How to get duplicate 200 style names, but 'j' has to change 'b'.
    FYI:
    Is this possible by script?
    by
    hasvi

    I would strongly recommend to make organized styles, all depending on each other like a tree.
    So let's say make a basic para style, then create a folder (group) for the first style, depending on the basic. Name the folder J or Journal and the styles List1, List2, etc.
    When this group is complete, duplicate the folder (group) and rename it book. The styles have the same name, but are different in the group. This is easier to handle than to to rename each style.
    I do a similiar thing. I create a complete style sytem with groups and subgroups based on an outside basic style, but in the group is another basic style, this has the language German, when this group is complete, I duplicate it, change the name and change the basic style in the group to English, so I have the very same style name with a different language. In this basic style I adjust also language dependend GREPs, tracking or spaces should be wider in English because it needs less space normally, etc.
    It is easier to work with groups than with renaming the styles, and you get a very similiar result for using it.

  • Justifications needed for using tags in JSP, Please reply

    Hi forum
    My question is to those java people who have also done JSP. I m sound in java server side (servlet programming), now I have asked by my project manager to do server side programming in JSP using tagLibraries (as these are used by those ppl who didnt have much java knowledge). I have worked inserver side java, then my question is y should I start working on tags,
    On the other hand I can do all the work in java embedding in JSP (on some extent, seperated by diffrent helper/util classes to reduce the thickness of JSP page).
    so I want to ask u ppl that should a java programmer needs to use tag libraries to code a JSP page, however he can code it in java directly.
    I will feal great pleasure if u will write ur opinions and help me to ease my life.
    thanx in advance
    Best Regards
    Tahir

    You should use tag libraries whenever you can because:
    1) They increase code re-useability. You can insert the same tag in many pages using just a few lines to do complex tasks, as opposed to writing a lot of scriptlet code in each JSP.
    2) Enhance your ability to seperate logic from display. Everything in your tags is logic. Everything in your JSP is display - with the tags bridging the logic to the display.
    3) Make the JSPs cleaner and easier to maintain. They read easier with tags than with a lot of scriptlets. Non-java people can be used to update the look and feel of the web page, or to debug the HTML later on, relieving the Java programmers for the tag work, or other jobs more suited to them.
    4) Your boss said to do tags, so do tags.

  • Why not there a "Find/replace in Grep style" inside the Para style?

    Whenever I type a digit in my text, it should be colored red as per style. I do this by grep style inside the para style, but now I need to insert brackets before and after of the digit(s), i realize that there is no replace option in grep style in the para style. Why not it be there a "find/replace" instead "find" only as it now appears?

    Ya, this is simple, finding a specific para style with digit and change them, when the book in first pass. But while in the correction pass of the same book, whenever we are inserting more text into the document, there are chances to be unaware of the digit style that, it should be surrounded by brackets, and it happened earlier so I have a thought of it. Again, while paginating a book having more than 350 - 600 pages, and 3 to 4 guys working in it, I think this may work.
    Expecting your valuable comment on this.
    Thangaraj Mohan.

  • Tagging for Character Style

    Hi All,
    Need to insert tagging (character style name) surrounding the text which has character styles applied in InDesign document.
    Example: This is <italic>an</italic> example of <bold>character style</bold> tagging text.
    Please provide JS code for this.
    Thanks in advance,
    Mon

    Hi,
        Try this. I'm also fresher...
    First u have to create tags manually with names b, bi,i, sc (bold,bolditalic,italic, small caps)...
    then execute this js...
    docObj=app.activeDocument;
    xmlObj = docObj.xmlTags;
    pageObj=docObj.pages.item(0);
    myTextFrame=pageObj.textFrames.item(0);
    myText=myTextFrame.parentStory.paragraphs.item(0);
    app.findTextPreferences = app.changeTextPreferences =  NothingEnum.nothing;
    app.findTextPreferences.fontStyle = "Bold";
    app.changeTextPreferences.markupTag=xmlObj[0].name;
    alert(app.changeTextPreferences.markupTag);
    app.activeDocument.changeText();
    app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;
    app.findTextPreferences.fontStyle = "Bold Italic";
    app.changeTextPreferences.markupTag=xmlObj[1].name;
    alert(app.changeTextPreferences.markupTag);
    app.activeDocument.changeText();
    app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;
    app.findTextPreferences.fontStyle = "Italic";
    app.changeTextPreferences.markupTag=xmlObj[2].name;
    alert(app.changeTextPreferences.markupTag);
    app.activeDocument.changeText();
    app.findGrepPreferences = app.changeGrepPreferences = NothingEnum.nothing;
    app.findGrepPreferences.capitalization = Capitalization.SMALL_CAPS;
    app.changeGrepPreferences.markupTag=xmlObj[4].name;
    alert(app.changeGrepPreferences.markupTag);
    app.activeDocument.changeGrep();

  • JS: Finding & replacing a character with a certain para style

    I'm scripting an automated indd -> PDF project and I need to minimise the user input.
    To this end, I want to search and replace commas in a particular cell of a table (which are the only instances of a particular para style), and replace them with forced line breaks.
    The script I have for another part of the XML import looks like this:
    //Search the document for the umlauts and replaces them with macrons. I
    app.findTextPreferences.findWhat = "Ï";
    app.changeTextPreferences.changeTo = "Ī";
    myDocument.changeText();
    What do I add to a similar script to make it target only content whish has a particular para style? And will it be compatible with CS4, 5 and 5.5, i.e. be agnostic to nested styles etc?
    Thanks in advance,
    Simon.

    Use app.findTextPreferences.appliedParagraphStyle:
    app.findTextPreferences.appliedParagraphStyle = "my_style";
    .. your snippet here ..
    I bet there is a reset somewhere above your snippet:
    app.findTextPreferences = null;
    app.changeTextPreferences = null;
    and it would be safest to insert this as well below your code, or else this particular setting will "stick" and also be applied to following replaces.
    This command is virtually unchanged since CS3, CS4? So far it seems to work in every version since then. But either way it's inconsequential to your nested styles, as these can only be character styles.

  • Quark could copy and paste a para style

    Way back in Quark ±3 you could select some text, copy that para style and paste it to another paragraph. You could also select a load of paras then function click on another style and it would change the selection.
    Can ID do this?
    It was so useful!
    Lou

    Check the Eyedropper tool
    http://indesignsecrets.com/use-eyedropper-tool-to-copy-formatting.php
    http://ittrainingtips.iu.edu/indesign/use-indesigns-eyedropper-tool-to-apply-text-attribut es/01/2011
    http://indesignmojo.apsiva.com/use-the-indesign-eyedropper-tool-to-paint-formatting.html
    There's also extended eyedropper tools for sale
    http://fluxconsulting.com/software.html

  • Help: apply different para styles to several consecutive paragraphs via script

    Hi all,
    I need to apply different para styles to several consecutive paragraphs via script, something like this (found somewhere on the net):
    var myDoc = app.documents[0];
    var mySel = app.selection[0];
    var myPStyle1 = "A";
    var myPStyle2 = "B";
    //need to add 6 more styles here:
    //var myPStyle3 = "C";
    //var myPStyle4 = "D";
    //var myPStyle5 = "E";
    //var myPStyle6 = "F";
    //var myPStyle7 = "G";
    //var myPStyle8 = "H";
    //the last style not needed in script?
    // apply 1st style to 1st paragraph
    mySel.appliedParagraphStyle = myDoc.paragraphStyles.item (myPStyle1);
    // apply styles to paragraphs after selected
    //2nd style
    mySel.paragraphs[-1].insertionPoints[-1].appliedParagraphStyle = myDoc.paragraphStyles.item (myPStyle2);
    //next style
    mySel.paragraphs[-1].insertionPoints[-1].paragraphs[0].insertionPoints[-1].appliedParagrap hStyle = myDoc.paragraphStyles.item (myPStyle2).nextStyle;
    I've tried badly, but can't find the way to extend the sequence
    Sorry, no skills in scripting yet...
    all styles have 'Next Style' option activated, but I can't use 'Apply style, then Next style' or Object styles, because I need four different sequences of those para 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 really don't want to create special clones of the same style for each sequence (Keep It Simple, they say ).
    I believe it can be done via four slightly adjusted scripts...
    any suggestions would be greatly appreciated...

    Sorry about being late to the party, I usually pick up stuff like this right away.
    How about this one?
    1. No separate scripts needed, it uses a tiny dialog where you can choose what style set to use. If I'm correct, you can press a number key on Windows to immediately select one of the items.
    2. It works down from the paragraph your cursor is in. It has nothing to do with text frames, though -- consecutive paragraphs inside a story always ignore any text frames.
    3. Extensible: you can easily change the names of the styles in the top array, and the number of style groups 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<styleLists.length; i++)
                                            // Build radio button string
                                            str = "&"+String (i+1)+". ";
                                            for (j=0; j<styleLists[i].length; j++)
                                                      if (j) str += "-";
                                                      str += styleLists[i][j];
                                            radiobutts.push (radiobuttonControls.add({staticLabel:str, checkedState:false}) );
    radiobutts[0].checkedState = true;
    if (styleDialog.show())
              for (i=0; i<radiobutts.length; i++)
                        if (radiobutts[i].checkedState == true)
                                  break;
              if (i < radiobutts.length)
                        par = app.selection[0].paragraphs[0];
                        for (j=0; j<styleLists[i].length; j++)
                                  par.appliedParagraphStyle = styleLists[i][j];
                                  par = par.parentStory.paragraphs.nextItem(par);

Maybe you are looking for

  • Deploying JDeveloper(10.1.3) App to Application server (10.1.2)

    Hi there, I am experiencing a problem trying to run an application that I deployed: The application was developed in Jdeveloper and it includes the Struts framework. The deployment goes through successfully. However, when I try to run the application

  • ExprHow to set default name for Express VI

    I have created an express and when I drag drop the express in block diagram, I am getting a name "A1". What should I do to set a default name (for example "B") for my express VI? I tried updating the Window title properties of the source VI. Thanks i

  • VSphere Port Mirror - Possible Bug Found

    Hi, Something i came across to and thought could be worth while reporting it since i havent seen any reference to it elsewhere: We've configured a few "source remote port mirror rules" for a few VMs, in a way that each VM had 3 vNics that were mirror

  • Number of Voicemail Rings Before It Picks Up

    Is it possible to change the number of rings on iPhone 4 before voicemail picks up. I would like it to pick up after 4 rings but right now it picks up after 6 rings.

  • Error when trying to access

    Hi Am new and have installed webcenter sites successfully on my local windows machine, It does get onto the log on screen, but then gives the error below after clicking log on when trying to verify my install, tried clearing cookies, but still The we