Skip navigation
Currently Being Moderated

Stylesheets vs. HTML files

Aug 16, 2012 1:44 PM

I've always imported Word documents and attached stylesheets. Now I'm importing HTML documents, but the stylesheets don't work on them. The styles that display in the Style window have the characteristics of the original Word document (saved as HTML) even though I've attached the same stylesheet to this file that's on every other file in the project. The rest of the files display correctly.

 

Is there some way to fix this?


Thanks

 
Replies
  • Currently Being Moderated
    Aug 17, 2012 1:09 AM   in reply to namedujour

    When you import, the CSS that Word created when you saved the document as an HTML file comes with the import. You can then change to your own CSS but that will only work wherethe styles have exacty the same name.

     

    Take a look at http://www.grainge.org/pages/authoring/importing/importing_rh9.htm and see if that helps with the process.

     


    See www.grainge.org for RoboHelp and Authoring tips

     

     

    @petergrainge

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 17, 2012 7:58 AM   in reply to namedujour

    I'm sorry you have taken exception to my response. The problem with dealing with forum posts is there is no way of knowing whether someone has worked with RoboHelp for 100 minutes, 100 days or 100 months, unless of course they tell you and I cannot see that in your first post. Indeed, I cannot see which version of RoboHelp you are using but I will assume it is 9 as I pointed you to a topic covering that version and you have not said that is wrong. Importing changed a lot in RoboHelp 8 and a lot of issues were fixed in 9.0.2, that was a reason for pointing you to that page as I don't know if you are aware of that. What may have worked before those versions will not necessarily work now.

     

    When you import a Word document, the start of the process is that behind the scenes RoboHelp converts it to and HTML file using Word to do that. Thus there will be some of the same issues if you do the save in HTML format. Style names can get changed during the process with, for example, Normal becoming MsoNormal and then not mapping to your <p> in your own CSS.

     

    From what you say, am I right in thinking that in Word you have a style called say Special where the font is Teal and in RoboHelp that same named style should be Blue but is still showing as Teal after you apply your own CSS? Is there anything inline in RoboHelp that could be causing that and have you checked for any embedded CSS at the top of the topic?

     


    See www.grainge.org for RoboHelp and Authoring tips

     

     

    @petergrainge

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 17, 2012 8:32 AM   in reply to namedujour

    No it doesn't apply to your specific situation but wading through it might give you a process that does work. I know the topic is long but that is because I had to document a process that has to be followed in a very specific way. The issues with importing are not going to be fixed in a hurry so whilst it is right you have reported the problem as a bug, you are still left with the problem.

     

    Have you tried an old trick of creating a folder in Project Manager in the same relative location to the imported topic and with the same name as in Windows Explorer? Sometimes when you do that, the images get listed there.

     

    Have you checked in the HTML where the topic is looking for the images?

     

    As to their quality, that's a whole other subject that generated a long thread a couple of months back.

     


    See www.grainge.org for RoboHelp and Authoring tips

     

     

    @petergrainge

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 17, 2012 8:46 AM   in reply to namedujour

    The issue there was the original image looked a reasonable size in Word but if you saved it as an image it was several times larger (5 or 6 I think). During the conversion by Word to HTML it did not resize as nicely. Resizing might not be an issue for you. I think the thread also covered some of the detail of how images get saved in the process but it seems like you have found an OK solution.

     


    See www.grainge.org for RoboHelp and Authoring tips

     

     

    @petergrainge

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points