<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Hi,</p>
<p>last time I had a closer look I found that FrameMaker would only support the CALS table model with fixed numeric column widths, not with percentages.</p>
<p>Although it may be possible to set the widths via scripting, the result will probably not be satisfying at the first attempt. (... especially when translating the text in different languages)</p>
<p>Each column has a numeric "column width" entry. <br />If these entries are deleted or not written, FrameMaker assumes all colums to have the same width when interpreting the XML code.<br />(I have an example here where all columns are output with a width of 2 cm, but I do not know what the default value would be.)</p>
<p>Although a template may seem to specify a certain no. of columns (when inserted as a new table), in the XML workflow a template will only have influences on margins, ruling and shading. It does not mean that all tables would be complemented or trunkated to this quantity of columns.</p>
<p>We are using FrameMaker as XML editor, so the columns widths are specified during the editing process and are thus transfered to the XML code. Indesign e.g. would not be "able" to understand this XML directly without transformation.<br />As you can see, one XML is not like another...</p>
<p>Tino H. Haida, Berlin</p>
<p> </p>
<p> Lin Sims:</p>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<div dir="ltr">We've an internal perl script that sets up tables at a predefined table width with the columns at predefined widths, but I'm pretty sure those measurements are hard-coded into the script that creates the XML file from the Excel spreadsheet. It's doable if you know what sizes you're working with before you get started, including how many columns you need included.<br /><br />XML might let you set column widths as a percentage of page/screen width, but I don't think that's directly transferable to FM. Can perl handle calculations?</div>
<div class="gmail_signature"><br />
<div class="gmail_quote">On Mon, Feb 23, 2015 at 4:26 PM, Scott Prentice <span><<a href="mailto:sp14@leximation.com">sp14@leximation.com</a>></span> wrote:<br />
<blockquote class="gmail_quote" style="margin: 0 0 0 .8ex; border-left: 1px #ccc solid; padding-left: 1ex;">
<div>
<div><span style="font-family: Verdana;">Fei Min...<br /><br /> FM won't auto-adjust table columns in any useful way. The only way I know of is to write a script or plugin to analyze the contents of the cells and do the width adjustment based on some predefined logic (widest graphic, or amount of text, etc.).<br /><br /> Would love to hear I'm wrong .. but hot holding my breath.<br /><br /> ...scott<br /><br /></span>
<div>
<div class="h5">
<pre> </pre>
On 2/23/15 9:16 AM, Fei Min Lorente wrote:</div>
</div>
</div>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px">
<div>
<div class="h5">
<div>
<p class="MsoNormal">Hi folks:<span style="text-decoration: underline;"></span><span style="text-decoration: underline;"></span></p>
<p class="MsoNormal"><span style="text-decoration: underline;"></span> <span style="text-decoration: underline;"></span></p>
<p class="MsoNormal">I found this discussion from 2008: <a href="https://forums.adobe.com/message/1279946#1279946"> https://forums.adobe.com/message/1279946#1279946</a>, and this helpful answer from Russ Ward in 2010: <a href="https://forums.adobe.com/thread/577820?tstart=0">https://forums.adobe.com/thread/577820?tstart=0</a>, but I don't see the solution that I'm looking for. My manager (a software development guy) would like to create an XML file that I can import into FrameMaker that doesn't specify the width of each column. He's taking output from Jira, and people can create tables in the Description field there, but he has no way of knowing how wide the columns are. He figures that if HTML can automatically size the columns to suit the contents, surely FrameMaker can do this too (I'm not so sure). <span style="text-decoration: underline;"></span> <span style="text-decoration: underline;"></span></p>
<p class="MsoNormal"><span style="text-decoration: underline;"></span> <span style="text-decoration: underline;"></span></p>
<p class="MsoNormal">I've tried it myself, and the column widths in the table template apply when you don't specify widths in XML. If you have more columns than are in your template, it seems to use the width of the last templated column. And the tables might contain graphics as well as text.<span style="text-decoration: underline;"></span><span style="text-decoration: underline;"></span></p>
<p class="MsoNormal"><span style="text-decoration: underline;"></span> <span style="text-decoration: underline;"></span></p>
<p class="MsoNormal">Anyone have any better ideas?<span style="text-decoration: underline;"></span><span style="text-decoration: underline;"></span></p>
<p class="MsoNormal"><span style="text-decoration: underline;"></span> <span style="text-decoration: underline;"></span></p>
<p class="MsoNormal">I'm using FrameMaker 10 on Windows 7. I think my manager is using Perl or some other scripting language. Jira outputs HTML as well as some other text format.<span style="text-decoration: underline;"></span><span style="text-decoration: underline;"></span></p>
<p class="MsoNormal"><span style="text-decoration: underline;"></span> <span style="text-decoration: underline;"></span></p>
<p class="MsoNormal">Fei Min Lorente<span style="text-decoration: underline;"></span><span style="text-decoration: underline;"></span></p>
<p class="MsoNormal">Senior Technical Communicator<span style="text-decoration: underline;"></span><span style="text-decoration: underline;"></span></p>
<p class="MsoNormal">Medical and Wireless Division<span style="text-decoration: underline;"></span><span style="text-decoration: underline;"></span></p>
<p class="MsoNormal"><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;"><a href="mailto:feimin.lorente@onsemi.com"><span style="color: blue;">feimin.lorente@onsemi.com</span></a></span><span><span style="text-decoration: underline;"></span><span style="text-decoration: underline;"></span></span></p>
<p class="MsoNormal"><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;">+1 <a href="tel:519-884-9696%20ext.%202297">519-884-9696 ext. 2297</a> | Waterloo office<span style="text-decoration: underline;"></span><span style="text-decoration: underline;"></span></span></p>
<p class="MsoNormal"><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;">+1 <a href="tel:519-831-4931">519-831-4931</a> | mobile</span><span><span style="text-decoration: underline;"></span><span style="text-decoration: underline;"></span></span></p>
<p class="MsoNormal"><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;">+1 <a href="tel:905-631-5724">905-631-5724</a> | fax</span><span><span style="text-decoration: underline;"></span><span style="text-decoration: underline;"></span></span></p>
<p class="MsoNormal"><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;"><a href="http://www.onsemi.com/"><span style="color: blue;">www.onsemi.com</span></a></span><span><span style="text-decoration: underline;"></span><span style="text-decoration: underline;"></span></span></p>
<p class="MsoNormal"><span style="text-decoration: underline;"></span> <span style="text-decoration: underline;"></span></p>
</div>
<br /><fieldset></fieldset></div>
</div>
<pre>_______________________________________________


You are currently subscribed to framers as <a href="mailto:sp14@leximation.com">sp14@leximation.com</a>.

Send list messages to <a href="mailto:framers@lists.frameusers.com">framers@lists.frameusers.com</a>.

To unsubscribe send a blank email to
<a href="mailto:framers-unsubscribe@lists.frameusers.com">framers-unsubscribe@lists.frameusers.com</a>
or visit <a href="http://lists.frameusers.com/mailman/options/framers/sp14%40leximation.com">http://lists.frameusers.com/mailman/options/framers/sp14%40leximation.com</a>

Send administrative questions to <a href="mailto:listadmin@frameusers.com">listadmin@frameusers.com</a>. Visit
<a href="http://www.frameusers.com/">http://www.frameusers.com/</a> for more resources and info.
</pre>
</blockquote>
</div>
<br />_______________________________________________<br /><br /><br /> You are currently subscribed to framers as <a href="mailto:ljsims.ML@gmail.com">ljsims.ML@gmail.com</a>.<br /><br /> Send list messages to <a href="mailto:framers@lists.frameusers.com">framers@lists.frameusers.com</a>.<br /><br /> To unsubscribe send a blank email to<br /><a href="mailto:framers-unsubscribe@lists.frameusers.com">framers-unsubscribe@lists.frameusers.com</a><br /> or visit <a href="http://lists.frameusers.com/mailman/options/framers/ljsims.ml%40gmail.com">http://lists.frameusers.com/mailman/options/framers/ljsims.ml%40gmail.com</a><br /><br /> Send administrative questions to <a href="mailto:listadmin@frameusers.com">listadmin@frameusers.com</a>. Visit<br /><a href="http://www.frameusers.com/">http://www.frameusers.com/</a> for more resources and info.<br /><br /></blockquote>
</div>
<br /><br clear="all" /><br />--</div>
</blockquote>
</body></html>