9 Replies Latest reply on Jan 4, 2013 12:22 PM by Freespirit-ST

    General question about the 'hcp' styles in RH

    DavidHutchinson

      I have often wondered what the 'hcp' styles are in RH HTML. They don't appear in the CSS files in my project but are liberally scattered about the HTML code. Why are they used by RH? Can I stop it from using them?

        • 2. Re: General question about the 'hcp' styles in RH
          Peter Grainge Adobe Community Professional (Moderator)

          ... and tell us which version of RoboHelp you are using.

           


          See www.grainge.org for RoboHelp and Authoring tips

           

          @petergrainge

          • 3. Re: General question about the 'hcp' styles in RH
            DavidHutchinson Level 1

            This is some code from a table in one of my topics .....

             

            <tr style="vertical-align: middle;">

            <td class="hcp6" style="vertical-align: top; border-left-width: 1px;

            border-left-style: Solid; border-top-width: 0px; border-right-width: 0px;

            border-bottom-width: 0px;" bgcolor="#D6D6D6"><p class="hcp7">Group</p></td>

            <td class="hcp8" style="vertical-align: top; border-left-width: 1px;

            border-left-style: Solid; border-top-width: 1px; border-right-width: 0px;

            border-bottom-width: 1px;" bgcolor="#D6D6D6"><p class="hcp9">At

            least one group record must be created using the <span class="hcp1">Group

            Details</span> command on the <span class="hcp1">Maintenance</span>

            menu of the Payroll module before you can identify a group.</p></td>

            </tr>

            • 5. Re: General question about the 'hcp' styles in RH
              Piyush_B Adobe Employee


              Normally, these should be the classes for CSS styles defined in one of the linked style sheets. If they do not appear under the 'Table' style then they might be under 'Others' style.

              • 6. Re: General question about the 'hcp' styles in RH
                Amebr Level 4

                I've only seen this in the code found inside CHM files. Could your source files have been reverse engineered from a chm file?

                 

                RH6 code:

                <tr style="x-cell-content-align: top;" valign=top>
                <td style="width: 4%; background-color: #ffffff; padding-right: 10px; x-condition: Australia;" bgcolor=#FFFFFF width=4%>
                <p class=TableNormal><img src="../img_Note.gif" x-maintain-ratio=TRUE style="border: none; width: 10px; height: 38px; float: none; border-style: none; border-style: none;" width=10 height=38 border=0></td>
                <td style="width: 96%; background-color: #ffffff; padding-right: 10px; x-condition: Australia;" bgcolor=#FFFFFF width=96%>
                <p class=Note><span style="font-weight: bold;">Note:</span> Some additional

                 

                CHM code:

                <tr valign="top" class="hcp3">
                <td style="width:4%;" bgcolor="#FFFFFF" width="4%" class="hcp4">
                <p class=TableNormal><img src="../img_Note.gif" x-maintain-ratio="TRUE" style="width:10px; height:38px;" width="10" height="38" border="0" class="hcp1"></td>
                <td style="width:96%;" bgcolor="#FFFFFF" width="96%" class="hcp4">
                <p class=Note><span class="hcp5">Note:</span> Some additional

                 

                WebHelp code:

                <tr valign="top" class="whs8">
                <td bgcolor="#FFFFFF" width="4%" class="whs9">
                <p class=TableNormal><img src="../img_Note.gif" x-maintain-ratio="TRUE" width="10px" height="38px" border="0" class="img_whs10"></td>
                <td bgcolor="#FFFFFF" width="96%" class="whs11">
                <p class=Note><span style="font-weight: bold;"><B>Note:</B></span> Some additional

                 

                Added code snippets

                • 7. Re: General question about the 'hcp' styles in RH
                  DavidHutchinson Level 1

                  I do create chm files but the Help has not been reverse engineered from a chm. RH 8 adds the hcp styles as it creates its HTML code. I have also noticed that these styles are not in the CSS file (I use the default - styles.css) but RH adds them to the topic itself in the header section - even if the text uses a style defined in styles.css.

                  • 8. Re: General question about the 'hcp' styles in RH
                    MergeThis Level 4

                    You inadvertently have solved the issue, when you stated "these styles are not in the CSS file." Therefore, RH has to provide them to the browser, by defining them on the fly.

                     

                    For every one of these in the <body> section:

                     

                    <td class="hcp6" style="blah-blah

                     

                    there should be one of these in the the <head> section:

                     

                    td.hcp6 { blah-blah

                     

                    (I suspect that hcpnn stands for Help Compiler, whereas my WebHelp elements are whsnn.)

                     

                     

                    Good luck,

                    Leon

                    • 9. Re: General question about the 'hcp' styles in RH
                      Freespirit-ST Level 1

                      Been struggling with this "hcp" issue for days now - trying to clean up  an HTML Help project that was converted from WinHelp (.hlp).  (Conversion cleanup not for the weak of heart )  Had the problem with some portions of some topics not complying with CSS as specified in the HTML. I was troubleshooting with View Source in Notepad.

                       

                      I did check my definitions in the CSS for "p.hcp1", "p.hcp2", etc.  For font-size as 10.0 pt.  I did correct the "hcp4" class. That corrected a few places, I think.

                       

                      But for a bunch of topics, I had to manually add style attributes to force it, and that worked.  But it involved checking each topic and correcting HTML.

                       

                      One strange thing that seemed to be a problem - In the CSS, all paragraph ("p") tags had the attribute of "background-color: #ffffff ".  And there were problems in topics where paragraphs were "<p style="background-color: #ffffff".  So the "background-color: #ffffff" was specified in both the CSS and the topic's paragraph.  I spent most of one day in clearing out those in each topic.  (Luckily this is a medium-sized help system.)  Not sure what was up with that.

                       

                      So I'm hoping to remember these issues if they show up again.  Anyone figure out anything else to clue us in on how to control the properties of the "hcp"s??  Please post any ideas or your experience, as in the above posts, which were quite helpful.

                       

                      (I have this delusion that somehow I should get a reward for my intense efforts here - but we tech writers know better, right?? )

                       

                      Thanks for your help.