Hi Dag

The presentation looks good to me, nice to see more progress on the odf backend.

Congratulations on and good luck with you talk at the Plugfest!

Are the downloadable Zip files on github up to date? I noticed the current versions are 2 months old.

I pulled the asciidoc-odf repo from github and ran 'make zip' but got following errors because sh does not implement pushd and popd:

/bin/sh: pushd: not found
  adding: odp/ (stored 0%)
  adding: odt/ (stored 0%)
/bin/sh: popd: not found
/bin/sh: pushd: not found
  adding: odp/ (stored 0%)
  adding: odt/ (stored 0%)
/bin/sh: popd: not found

Adding SHELL=/bin/bash to the Makefile fixed it.

I installed the odt plugin and compiled the ./doc/article.txt from the asciidoc distribution:

$ asciidoc -b odt article.txt
asciidoc: WARNING: article.txt: line 4: {sys:date --date=2003-12 +%Y-%m-%dT%H:%M:%S 2>/dev/null}: non-zero exit status

$ date --date=2003-12 +%Y-%m-%dT%H:%M:%S 2>/dev/null

$ echo $?
1

LibreOffice 3.5 failed to open the .fodt file ('General Error. General input/output error' message) so I packaged it with a2x, but the error :

$ a2x -b odt article.txt
Traceback (most recent call last):
  File "/home/srackham/bin/a2x", line 958, in <module>
    a2x.execute()
  File "/home/srackham/bin/a2x", line 376, in execute
    self.to_backend()
  File "/home/srackham/bin/a2x", line 632, in to_backend
    eval('to_%s(self)' % self.backend)
  File "<string>", line 1, in <module>
  File "/home/srackham/.asciidoc/backends/odt/a2x-backend.py", line 92, in 
to_odt
    a.make_archive(opts.base_doc, self.asciidoc_file, odf_file, opts.schema)
File "/home/srackham/.asciidoc/backends/odt/a2x-backend.py", line 33, in make_archive
    bz = zipfile.ZipFile(base_doc)
  File "/usr/lib/python2.6/zipfile.py", line 683, in __init__
    self.fp = open(file, modeDict[mode])
IOError: [Errno 2] No such file or directory: '/etc/asciidoc/backends/odt/asciidoc.ott'

Because a2x-backend.py:83 is hard wired to the global CONF_DIR, the default install location for backends is ~/.asciidoc/backends

Or is there something I've missed?


Cheers, Stuart


On 19/04/12 01:56, Dag Wieers wrote:
Hi,

Tomorrow morning I will be presenting asciidoc-odf at the ODF Plugfest in 
Brussels:

http://odfplugfest.org/2012-brussels/programme/

I hope to be able to discuss a few of the issues with the ODF standard and get
some feedback of the experts :-) The slides are already available at:

http://speakerdeck.com/u/dagwieers/p/odf-backend-for-asciidoc

Even though a lot of what I will be discussing is not on the slides, I would
appreciate feedback. Compelling ommissions ? Spelling mistakes ? Lack of taste ?
Tell me !


--
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/asciidoc?hl=en.

Reply via email to