[jira] Updated: (FOR-872) Updated odt_to_xhtml.xsl to pass & <h1> elements.</span></a></span> </h1> <p class="darkgray font13"> <span class="sender pipe"><a href="/search?l=dev@forrest.apache.org&q=from:%22Clay+Leeds+%5C%28JIRA%5C%29%22" rel="nofollow"><span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">Clay Leeds (JIRA)</span></span></a></span> <span class="date"><a href="/search?l=dev@forrest.apache.org&q=date:20060504" rel="nofollow">Thu, 04 May 2006 16:27:53 -0700</a></span> </p> </div> <div itemprop="articleBody" class="msgBody"> <!--X-Body-of-Message--> <pre> [ <a rel="nofollow" href="http://issues.apache.org/jira/browse/FOR-872?page=all">http://issues.apache.org/jira/browse/FOR-872?page=all</a> ]</pre><pre> Clay Leeds updated FOR-872: --------------------------- Attachment: odt_clay_004.diff Updates resources/stylesheets/odt-to-forrest-xhtml.xsl to enable passing of images pasted into ODT files, as well as passing <strong> (bold) and <em> (italic) text. Unfortunately, as with the old SXW format, it appears OpenOffice.org is inconsistent in how it applies strong emphasis ('bold'). I suspect is similarly inconsistent with italic, but I haven't tested. In the following example, some bold items were styled 'on-the-fly' as "T1", according to this definition in the content.xml file: <style:style style:name="T1" style:family="text"> <style:text-properties fo:font-weight="bold" style:font-weight-asian="bold" style:font-weight-complex="bold" /> </style:style> The above is similar to how Dreamweaver creates a CSS stylesheet on-the-fly, embedded at the top of an HTML file. Here's one snippet of my ODT file: <text:p text:style-name="Standard"> <text:span text:style-name="T1"> ACME Systems </text:span> actively markets <text:span text:style-name="T1"> ACME </text:span> , a fully-integrated product movement and accounting system developed specifically for the industry. <text:span text:style-name="T1"> ACME </text:span> stands for <text:span text:style-name="Strong_20_Emphasis"> A </text:span> nother, <text:span text:style-name="Strong_20_Emphasis"> C </text:span> ool, <text:span text:style-name="Strong_20_Emphasis"> M </text:span> ediocre <text:span text:style-name="Strong_20_Emphasis"> E </text:span> ntity. The applications have been in operation since 1990 in the industry. </text:p> All items styled as "T1" or "Strong_20_Emphasis" are bold when displayed in OOo. Unfortunately, since ACME Systems is styled as T1, instead of Strong_20_Emphasis, it does not display as bold in my output. I would have to trap for T1, as well, which this attachment does not do. > Updated odt_to_xhtml.xsl to pass <title> & <h1> elements. > --------------------------------------------------------- > > Key: FOR-872 > URL: <a rel="nofollow" href="http://issues.apache.org/jira/browse/FOR-872">http://issues.apache.org/jira/browse/FOR-872</a> > Project: Forrest > Type: Improvement > Components: Plugins: Potential new > Versions: 0.8-dev > Reporter: Clay Leeds > Assignee: Thorsten Scherler > Priority: Minor > Fix For: 0.8-dev > Attachments: odt_002.diff, odt_clay_003.diff, odt_clay_004.diff, > odt_plugin.diff, odt_to_xhtml-forrest.xsl, resources.xmap > > Modified odt_to_xhtml.xsl to pass the first text heading > (office:document-content/office:body/office:text/text:h[1]) as the Forrest > output's HTML <title> & <h1> elements. > Eventually, this will be changed to grab the OpenDocument 'Title' attribute > (/office:document-meta/office:meta/dc:title). -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: <a rel="nofollow" href="http://issues.apache.org/jira/secure/Administrators.jspa">http://issues.apache.org/jira/secure/Administrators.jspa</a> - For more information on JIRA, see: <a rel="nofollow" href="http://www.atlassian.com/software/jira">http://www.atlassian.com/software/jira</a> </pre> </div> <div class="msgButtons margintopdouble"> <ul class="overflow"> <li class="msgButtonItems"><a class="button buttonleft buttondisabled" accesskey="p" href="#">Previous message</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="c" href="thrd15.html#09317">View by thread</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="i" href="mail15.html#09317">View by date</a></li> <li class="msgButtonItems textalignright"><a class="button buttonright " accesskey="n" href="msg09318.html">Next message</a></li> </ul> </div> <a name="tslice"></a> <div class="tSliceList margintopdouble"> <ul class="icons monospace"> </ul> </div> <div class="overflow msgActions margintopdouble"> <div class="msgReply" style="display:none"> <h2> Reply via email to </h2> <form method="POST" action="/mailto.php"> <input type="hidden" name="subject" value=""> <input type="hidden" name="msgid" value=""> <input type="hidden" name="relpath" value=""> <input type="submit" value=""> </form> </div> </div> </div> <div class="aside" role="complementary"> <div class="logo"> <a href="/"><img src="/logo.png" width=247 height=88 alt="The Mail Archive"></a> </div> <form class="overflow" action="/search" method="get"> <input type="hidden" name="l" value="dev@forrest.apache.org"> <label class="hidden" for="q">Search the site</label> <input class="submittext" type="text" id="q" name="q" placeholder="Search dev"> <input class="submitbutton" name="submit" type="image" src="/submit.png" alt="Submit"> </form> <div class="nav margintop" id="nav" role="navigation"> <ul class="icons font16"> <li class="icons-home"><a href="/">The Mail Archive home</a></li> <li class="icons-list"><a href="/dev@forrest.apache.org/">dev - all messages</a></li> <li class="icons-about"><a href="/dev@forrest.apache.org/info.html">dev - about the list</a></li> <li class="icons-expand"><a href="/search?l=dev@forrest.apache.org&q=subject:%22%5C%5Bjira%5C%5D+Updated%5C%3A+%5C%28FOR%5C-872%5C%29+Updated+odt_to_xhtml.xsl+to+pass+%3Ctitle%3E+%5C%26+%3Ch1%3E+elements.%22&o=newest&f=1" title="e" id="e">Expand</a></li> <li class="icons-prev"><a href="#" title="p">Previous message</a></li> <li class="icons-next"><a href="msg09318.html" title="n">Next message</a></li> </ul> </div> <div class="listlogo margintopdouble"> </div> <div class="margintopdouble"> </div> </div> </div> <div class="footer" role="contentinfo"> <ul> <li><a href="/">The Mail Archive home</a></li> <li><a href="/faq.html#newlist">Add your mailing list</a></li> <li><a href="/faq.html">FAQ</a></li> <li><a href="/faq.html#support">Support</a></li> <li><a href="/faq.html#privacy">Privacy</a></li> <li class="darkgray"></li> </ul> </div> </body> </html>