Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
xhtml2odt
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
david  
View profile  
 More options Sep 2 2010, 5:01 am
From: david <dhaj...@gmail.com>
Date: Thu, 2 Sep 2010 02:01:12 -0700 (PDT)
Local: Thurs, Sep 2 2010 5:01 am
Subject: xhtml2odt
Hello,

Does anyone know xhtml2odt? (http://xhtml2odt.org/)

This program converts html file to odt. There is a python script
(xhtml2odt.py), and I am trying it. It does a pretty good job on html
files generated by asciidoc. A good point for me: the last version
(1.2) can convert complex tables with row and col spanning (it fails
for some of the examples of newtables.txt, but it is promising). I
found the resulting file better with xhtml2odt than with docbook2odf.

There is currently a problem with image-blocks: images were not
visible in the odt file. Aurélien Bompard looked at this, and told
this was because images were not included into a paragraph in the
xhtml file. For some internal reasons, it could not be handled in
xhtml2odt. I was wondering if this could be done in asciidoc, but only
Stuart could tell if this will break something.

I have modified xhtml11.conf:

[image-blockmacro]
<div class="imageblock{style? {style}}{role? {role}}"{id? id="{id}"}
{align? style="text-align:{align};"}{float? style="float:{float};"}>
<div class="content">
<a class="image" href="{link}">
<p>{data-uri%}<img src="{imagesdir=}{imagesdir?/}{target}"
alt="{alt={target}}"{width? width="{width}"}{height?
height="{height}"} /></p>
<p>{data-uri#}<img alt="{alt={target}}"{width? width="{width}"}
{height? height="{height}"} src="data:image/
{eval:os.path.splitext('{target}')[1][1:]};base64,
{data-uri#}{sys:python -uc "import base64,sys;
base64.encode(sys.stdin,sys.stdout)" <
"{eval:os.path.join("{indir={outdir}}","{imagesdir=}","{target}")}"}" /

></p>

{link#}</a>
</div>
<div class="title">{caption={figure-caption} {counter:figure-number}. }
{title}</div>
</div>

<img ...> are now included in <p>...</p>. It seems that there is now
visible change in the html file generated by asciidoc.

xhtml2odt is simple, does a good job, and is easy to install. "odt" is
missing in a2x output formats. What do you think about it?

Thank you for your attention.

david


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stuart Rackham  
View profile  
 More options Sep 5 2010, 5:32 am
From: Stuart Rackham <srack...@gmail.com>
Date: Sun, 05 Sep 2010 21:32:16 +1200
Local: Sun, Sep 5 2010 5:32 am
Subject: Re: xhtml2odt
Hi David

On 02/09/10 21:01, david wrote:

Will not cause a problem if confined to it's own conf file (then use asciidoc -f
option), but the better solution would be to fix xhtml2odt.

An odt output option for a2x would be nice. Is there an Ubuntu of Debian package
for xhtml2odt?

The old bash based a2x had experimental support for odf via DocBook using
http://open.comsultia.com/docbook2odf/ but it had limitations and developement
seemed to have stalled.

Cheers, Stuart


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
david  
View profile  
 More options Sep 6 2010, 4:08 am
From: david <dhaj...@gmail.com>
Date: Mon, 6 Sep 2010 01:08:41 -0700 (PDT)
Local: Mon, Sep 6 2010 4:08 am
Subject: Re: xhtml2odt

On 5 sep, 11:32, Stuart Rackham <srack...@gmail.com> wrote:

I am going to see with Aurélien if there is any solution in his side.

Currently no.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »