• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

General question about the 'hcp' styles in RH

Community Beginner ,
Dec 07, 2010 Dec 07, 2010

Copy link to clipboard

Copied

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?

Views

1.6K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 07, 2010 Dec 07, 2010

Copy link to clipboard

Copied

Hi David.

Can you give us an example?


  The RoboColum(n)   @robocolumn   Colum McAndrew

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 07, 2010 Dec 07, 2010

Copy link to clipboard

Copied

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


See www.grainge.org for RoboHelp and Authoring tips

@petergrainge

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 07, 2010 Dec 07, 2010

Copy link to clipboard

Copied

I am using RH 8.02...

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 07, 2010 Dec 07, 2010

Copy link to clipboard

Copied

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>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Dec 07, 2010 Dec 07, 2010

Copy link to clipboard

Copied


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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 08, 2010 Dec 08, 2010

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 09, 2010 Dec 09, 2010

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Dec 09, 2010 Dec 09, 2010

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 04, 2013 Jan 04, 2013

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
RoboHelp Documentation
Download Adobe RoboHelp