Skip to main content
Known Participant
July 14, 2010
Question

Question: Why does RoboHelp do this?

  • July 14, 2010
  • 1 reply
  • 2652 views

Why does RoboHelp 8 place 87 lines of code to a HTML file when the file works just fine without the code.

What I’m talking about is if I make up a tutorial in Captivate 4 and then bring it into my RoboHelp 8 project as baggage then publish the project with RoboHelp 8 it writes 87 lines of code to the HTML file. I know part of the code is breadcrumb trail. This has caused some problem but nothing I could not fix by just replacing the HTML files with the ones form Captivate 4 and once I replace the files with the Captivate 4 files everything work as it should. Everyone does not want a breadcrumb trail on their tutorials. Plus when you click the Show link it shows the tutorial in the main frame where it was not planned for.

There shold be more control over what a person wants on their page by placing options for different things, and I could name a lot because we out put at least 10 projects per month.

This topic has been closed for replies.

1 reply

Captiv8r
Legend
July 14, 2010

Hi there

Brad55 wrote:

Why does RoboHelp 8 place 87 lines of code to a HTML file when the file works just fine without the code.

Because you told it to. Oh, you may not realize you told it to, but you did by choosing the options (or by not DE-selecting options) that govern the manner in which your output is created.

Brad55 wrote:

...Everyone does not want a breadcrumb trail on their tutorials...

Adobe understands that. This is why Breadcrumb Trails are optional.

Brad55 wrote:

...There shold be more control over what a person wants on their page by placing options for different things, and I could name a lot because we out put at least 10 projects per month....

You have massive amounts of control. I think you just aren't sure exactly what to change and where to change it.

Cheers... Rick

Helpful and Handy Links

RoboHelp Wish Form/Bug Reporting Form

Begin learning RoboHelp HTML 7 or 8 moments from now - $24.95!

Adobe Certified RoboHelp HTML Training

SorcererStone Blog

RoboHelp eBooks

Brad55Author
Known Participant
July 15, 2010

Because you told it to. Oh, you may not realize you told it to, but you did by choosing the options (or by not DE-selecting options) that govern the manner in which your output is created.

Well Captiv8r dont just give me hints or tell me that it can be done and tell me where this button or check mark is hidden.


Adobe understands that. This is why Breadcrumb Trails are optional.

Well if you build a Master page and tell it to have breadcrumb trails (and you want these in your project) but you dont want them on your tutorial pages which was done in Captivate and place in you project as baggage files. These files are baggage they should not have a program write to them just because it is linked in the project. RoboHelp 7 never did this it just placed the files in the folders that they needed to be in.

You have massive amounts of control. I think you just aren't sure exactly what to change and where to change it.

Not as much control as i would like.

Don't get me wrong Adobe has a fair product with RoboHelp just needs some more work in giving the user more control over what is going to be in the published version of their product. Example to change the background color of a See Also button (not the button) the links that pop-up you have to edit the Java script that RoboHelp puts out and if you change it you better make a back up some place else because it will over write it the next time you publish you product, and another one is the About button that is in the top right of you product you can change the button but then after RoboHelp publishes the product you have to palce a picture with the same name to replace the one RoboHelp publishes plus you may have to edit the HTML file.

Captiv8r
Legend
July 16, 2010

Ok as far as the About Button I'm using Flash as the Single Source but i will try this one out.

Here is the code from the Captivate 4 projeect that is in a folder under the RoboHelp 8 project that is baggage. This one 40 lines of code.

<!-- Copyright [2008] Adobe Systems Incorporated.  All rights reserved -->
<!-- saved from url=(0013)about:internet -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="build tags" content="FlashHelp_Only">
<title>name_full</title>
<script src="standard.js" type="text/javascript"></script>
</head>

<body   bgcolor="#F1F4F5">
<center>
     
<div id="CaptivateContent"> 
</div>
<script type="text/javascript">
    var so = new SWFObject("name_full.swf", "Captivate", "801", "601", "8", "#CCCCCC");
  so.addParam("quality", "high");
  so.addParam("name", "Captivate");
  so.addParam("id", "Captivate");
  so.addParam("wmode", "window");
  so.addParam("bgcolor","#F1F4F5");
  so.addParam("menu", "false");
  so.addVariable("variable1", "value1");
  so.setAttribute("redirectUrl", "http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash");
  so.write("CaptivateContent");
</script>
    

<script type="text/javascript">
  document.getElementById('Captivate').focus();
  document.Captivate.focus();
</script>
</center>
</body>
</html>

And here is the code from the file after RoboHelp publishes the project. This one 119 lines of code.

<!-- Copyright [2008] Adobe Systems Incorporated.  All rights reserved -->

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>name_full</title>
<script src="standard.js" type="text/javascript"></script>
<script type="text/javascript" language="JavaScript">
//<![CDATA[
function reDo() {
  if (innerWidth != origWidth || innerHeight != origHeight)
     location.reload();
}
if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == "Netscape")) {
origWidth = innerWidth;
origHeight = innerHeight;
onresize = reDo;
}
onerror = null;
//]]>
</script>
<style type="text/css">
<!--
div.WebHelpPopupMenu { position:absolute;
left:0px;
top:0px;
z-index:4;
visibility:hidden; }
-->
</style>
<script type="text/javascript" language="javascript1.2" src="../../whtopic.js"></script>
<script type="text/javascript" language="javascript1.2" src="../../whutils.js"></script>
<script type="text/javascript" language="javascript" src="../../whver.js"></script>
<script type="text/javascript" language="javascript" src="../../whfhost.js"></script>
<script  type="text/javascript" language="javascript1.2">//<![CDATA[
    <!--
    var linkedScrollbarStyle = "<link rel='stylesheet' href='../../wf_topics.css'>";
    if( (!isTopicOnly()) &&(parent.gbFHPureHtml == null) )
    {
        document.write(linkedScrollbarStyle);
    }
    //-->
//]]></script>
<meta name="generator" content="Adobe RoboHelp 8">
</head>

<body bgcolor="#F1F4F5"><script type="text/javascript" language="javascript1.2">//<![CDATA[
<!--
var strUrl = document.location.href;
var bc = 0;
var n = strUrl.toLowerCase().indexOf("bc-");
if(n != -1)
{
document.location.href = strUrl.substring(0, n);
bc = strUrl.substring(n+3);
}

if (window.addTocInfo)
{

  addShowButton();
}

if (window.setRelStartPage)
{
setRelStartPage("../../name_full.htm");

sendTopicLoaded();
var nSync = 1;
if (nSync == 1)
{
  autoSync();
}
sendSyncInfo();
sendAveInfo();
sendBgColorInfo();
}

//-->
//]]></script>

<center>
     
<div id="CaptivateContent"> 
</div>
<script type="text/javascript">
    var so = new SWFObject("name_full.swf", "Captivate", "801", "601", "8", "#CCCCCC");
  so.addParam("quality", "high");
  so.addParam("name", "Captivate");
  so.addParam("id", "Captivate");
  so.addParam("wmode", "window");
  so.addParam("bgcolor","#F1F4F5");
  so.addParam("menu", "false");
  so.addVariable("variable1", "value1");
  so.setAttribute("redirectUrl", "http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash");
  so.write("CaptivateContent");
</script>
    

<script type="text/javascript">
  document.getElementById('Captivate').focus();
  document.Captivate.focus();
</script>
</center>
<script type="text/javascript" language="javascript1.2">//<![CDATA[
//<!--
AddTopicSwf();

highlightSearch();
//-->
//]]></script>
</body>
</html>

This is what i'm talking about in RoboHelp 8, now RoboHelp 7 did not do this it just carried the files over and placed them in the folders that they need to be in. 79 lines of code that is not need and will sometimes break the product.


Hello again

Okay, I've never heard of RoboHelp "breaking" a project with the added code. But I learn new things each day. I do suppose that RoboHelp 8 may be behaving differently than 7 did. I never really considered (or even cared) whether HTML files added to baggage would be modified as the other HTML files are during the WebHelp generation process. This is likely something new.

In case you weren't aware, what happens during the process of generating WebHelp or FlashHelp is this. Each HTML page is read into memory and depending on the settings configured in the Single Source Layout recipe different bits are added into the HTML file. The output file is substantially different than its corresponding source file. Code is added that does different things such as writing in a navigation bar. Javacript to sniff the environment and if it senses the topic is being displayed independently of the frameset other links and things are added in. This is why you see extra lines of code added to the HTML page.

You may believe that the additional code is just wasted space, but the developers added the code to accommodate different browsing environments and to perform the different functions specified in the Single Source Layout recipe you are using.

Can you cite specific examples of things breaking?

Cheers... Rick

Helpful and Handy Links

RoboHelp Wish Form/Bug Reporting Form

Begin learning RoboHelp HTML 7 or 8 moments from now - $24.95!

Adobe Certified RoboHelp HTML Training

SorcererStone Blog

RoboHelp eBooks