Copy link to clipboard
Copied
I'm using Adobe Technical Communication Suite 3.5 (FrameMaker 10, RoboHelp 9).
I'm importing FrameMaker books into RoboHelp HTML (via File > New > Project > Import). Unfortunately, the tables in the book end up as HTML tables that use a lot of inline styles (style attributes on individual elements), which I'm finding difficult to override with CSS.
Is it possible to import FrameMaker books so that inline styles are never used?
Copy link to clipboard
Copied
Have you mapped your FM table style to a style in RH (a css style)?
-Matt
@mattrsullivan
Copy link to clipboard
Copied
I've mapped the table to a CSS style of "mytable". I get the following HTML.
<table class="mystyle" cellspacing="0" width="454">
<tr style="height: 19.50pt;">
<td style="vertical-align: top; padding-left: 6.00pt; padding-top: 3.00pt;
padding-right: 6.00pt; padding-bottom: 3.00pt;" width="101"><p
class="FM_TableHeading">Col1</p></td>
<td style="vertical-align: top; padding-left: 6.00pt; padding-top: 3.00pt;
padding-right: 6.00pt; padding-bottom: 3.00pt;" width="101"><p
class="FM_TableHeading">Col2</p></td>
etc.
I want to get rid of the style attributes on the tr and td elements as well as the table element.
If I leave the table mapping as [source] I get a lot more inline styles.
<table style="padding-left: 6.00pt; padding-top: 7.50pt; padding-right: 3.00pt;
padding-bottom: 3.50pt; margin-left: 34.02pt;" cellspacing="0"
width="454">
<tr style="height: 19.50pt;" bgcolor="#D9D9D9">
<th style="border-bottom: solid 1px #ffffff; vertical-align: top;
padding-left: 6.00pt; padding-top: 3.00pt; padding-right: 6.00pt;
padding-bottom: 3.00pt;" bgcolor="#D9D9D9" width="101"><p
class="FM_TableHeading">Col1</p></th>
<th style="border-bottom: solid 1px #ffffff; vertical-align: top;
padding-left: 6.00pt; padding-top: 3.00pt; padding-right: 6.00pt;
padding-bottom: 3.00pt;" bgcolor="#D9D9D9" width="101"><p
class="FM_TableHeading">Col2</p></th>
Copy link to clipboard
Copied
OK, so we're on the right track...
Try setting your Customize Cell Borders and Shading back to From Table
Copy link to clipboard
Copied
Where do I set that?
Copy link to clipboard
Copied
Select your entire table in FM, Choose Table > Format > Custom Cell Borders and Shading (or Fill...)
Make sure the checkboxes are all selected, and that any choices for From Table are selected, then hit Apply
Then update your RH project
Copy link to clipboard
Copied
Is there a way of doing it without updating each table in FrameMaker? I have several hundred tables across eight languages to import.
Copy link to clipboard
Copied
One step at a time…I don't know yet that this is your problem…
Copy link to clipboard
Copied
OK, I selected the table, then Table > Format > Custom Ruling and Shading... All Checkboxes were select, all dropdowns set to From Table. I clicked Apply.
Then I imported the FrameMaker book into RoboHelp as described in the first post. I'm still getting inline styles on the tr and td elements.
Copy link to clipboard
Copied
Sorry to hear…wish I could help more, but will be offline til next week.
-Matt
Copy link to clipboard
Copied
Try giving Adobe Support a call - they might have some suggestions. I've never really looked at how my tables have come across in my TCS 3 imported projects with respect to the css/html. They looked fine when I imported them & haven't had any reason to change them in RH (yet).
Copy link to clipboard
Copied
As Matt says, what are your Conversion Settings like?