-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues with AsciiDoc ODT backend under Windows #39
Comments
I am not surprised that ODT support has more issues, because it is more complicated to in a2x. I don't use ODT myself. For the FODT support in asciidoc, what exactly is the problem ? I think both issues are already in the issue-tracker (one is related to LibreOffice, the second is related to an asciidoc problem). |
These are the issues I found so far... General issuesSystem date functionLines 722 & 723 in odt.conf cause an error:
Replacing with a simple reference to AsciiDoc defined attributes should be more platform independent:
There is probably a cleaner solution to that though. FODT backendImagesWhen data-uri attribute is set the image is very small (I see this is raised already as a separate issue). I guess it is due to ODT not allowing for "original size" on dimension attributes for embedded images and assigning default dimensions of 0.57cm. BTW - if there is a solution to this, then it could be nice/cleaner to apply to admonition icons too rather than specifying a default size. Icons & imagesWhen data-uri attribute is not set, admonition icons & images are not linked properly. In the source for example:
In OO it is showing as:
Prefixing the path with file:/// seems to resolve the issue in OO. For example, in odt.conf change line 432:
to:
Text formatting - strikethroughStrikethrough ([line-through]#xxx#) is not working. Seems asciidoc.odt.styles specifies style name as "strikethrough", but should be "line-through". For example, change line 568 in asciidoc.odt.styles:
to:
ODT backendHard coded pathLine 80 in a2x-backend.py causes an error:
Replacing with dynamic path reference should be more platform/installation independent:
There is probably a cleaner solution to that though. Document title missingThe main document title seems to not be showing at all. I found adding a meta.xml file with the title set (and corresponding entry in manifest.xml) resolved it. Table of contentsThe TOC is not automatically refreshed. Moving lines 735 to 743 out of the Admonition iconsThese are not aligned properly compared to the text block - they are positioned above the text not to the side. Numbered lists not workingThey are displayed as regular lists, although the source/style name looks to be correct. Text formatting - generalA lot of the text formatting (for example emphasis, embolden, underline, strikethrough, colours etc.) is not applied correctly (could be linked to issue with numbered lists above). Cheers, |
Can you send pull-requests for these changes ? It's very easy in Github to do this, as you can simply edit any file and turn it into a pull-request. Thanks a lot for going the extra mile ! |
If you make a pull-request (or issue) for each fix or new problem, we can discuss each of them in its own thread. Much easier :-) |
Sure, will do!
Well docdate is currently set in asciidoc.py using the date_str function. This function hardcodes the format:
So I think it is safe to use, unless asciidoc is changed to use a different format (e.g. system format etc.).
Yea seems strange to me that this basic functionality is missing from the ODT specification.
Why should we not use meta.xml?
I think once (if!) the other style issues are resolved, then some more investigation can be done on this issue if required.
I'll take a closer look, but from my initial analysis it looked as though all styles were included correctly and the same when compared to FODT. The difference being that for ODT the styles are in a separate XML doc rather than embedded. |
On Fri, 14 Dec 2012, SqueezeMyLemon wrote:
But that's not what the ODF standard accepts. According to the standard it
It is undefined how a consumer should behave when no dimensions, or only
Because it is easier if we don't have to create the file. At the moment That is why the title is missing, the metadata is missing. If we simply do I am not that much interested in packaged ODT files, FODT works out fine.
I noticed something peculiar in LibreOffice/OpenOffice regarding the order The specification does not require any specific order, so that seems to be |
Sorry for the slow response, only just had a chance to get back to this.
The fix I suggested (
So as long as the hardcoded formats are not changed in asciidoc.py, then the result should adhere to the W3C standard.
Easier isn't always better ;)
Understood, but unfortunately FODT is not widely supported. For example, GoogleDocs & M$ Word do not support the format and OpenOffice requires a plugin/filter to open an FODT.
It's a shame when it is almost there straight from AsciiDoc to ODT (adding another step here seems a bit clumsy, especially when FODT/ODT are so closely related).
Interesting, will take a look at that when I get a chance. |
On 21 December 2012 01:37, SqueezeMyLemon notifications@github.com wrote:
Cheers
|
Hi,
I have been trying to get the ODT backend to work under Windows XP (SP3) together with AsciiDoc 8.6.8 & OO 3.4.1 but am having issues. After making a couple of minor tweaks (e.g. to odt.conf) I got it to run, but still find some basic features not working. For example:
FODT output:
ODT output
Are these issues known/expected?
Cheers,
Will
The text was updated successfully, but these errors were encountered: