On 19 April 2012 06:50, Stuart Rackham <[email protected]> wrote:
> 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

Yeah, the ODT backend doesn't support the range of date options that
other backends do, specifically it has to be a valid date, "2003-12"
isn't.

That said, it probably shouldn't use "date" since this can try to
*set* the system date/time :(

Should use Python strptime instead to convert to POSIX datetime for ODT.


>
> 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?

The ott file isn't in the repo, it is made by "make templates" or
"make zip" from the styles file so it matches.  This probably needs to
be in the README, but might also go away in the next iteration of the
a2x backend when I get time (ie it might be able to use ott or styles
files)

>
>
> 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.
>

-- 
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