-
Notifications
You must be signed in to change notification settings - Fork 15
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
Testing report for ODT output #15
Comments
Thanks, that it is quite massive report :o I will need some time to process it, some issues may be quite hard to fix. |
My first findings:
as a workaround
seems to work and fixes next issue:
I will try to fix these and other isues later. |
I've also found two entries in |
@michal-h21 Nice to see things going that fast. Thank you very much! I'll be following attentively your comments here and, if need be, will comment back (So far, I have nothing to add to your observations). And, if you reach a point where you want me to test things again, just let me know. |
today I've fixed some issues in One huge success is that Word can now open the ODT file and display math, which it didn't support up until now. The issue was only wrong mime type in the file directory. It is really good that it is no longer necessary to fix the ODT file in LibreOffice. On the negative side,
This needs further investigation. Bad thing is that with every fix I find more bugs, so there is still lot of things to do. |
As you asked (or as was my misunderstanding of your request :), I did some testing for ODT output with
make4ht
.My approach here was to start from an actual working document of mine, with all the elements I usually employ, to reduce it to an actual smaller testing document which retained its complexity and elements. I’ve removed though nested tabular/makecell elements, for I wanted to test things with
make4ht
"vanilla".Indeed, all testing was done with:
without any additional config or make files. And
biber filename
as appropriate, of course.As for environment, tests were done with a full and up-to-date TeX Live 2018, with the current dev version of
make4ht
on a Linux Mint 18.3, also up-to-date.The test files are available at: https://gist.github.com/gusbrs/36ea400945e7031096464a8f98e001b4
(Please download them and let me know when you’ve done so. As they were derived from a working document of mine, I don’t want to leave this publicly available.)
There are three files. The first one was built with the above intention in mind, and compiled and tested with
pdflatex
. Now, this file, as it is, is not really amenable to be built withmake4ht
. So I had to strip down some things to reach the second file which, as the first, is based on thescrartcl
class. The thirdtest file, in turn, is a version of the second one with the standard
article
class.What had to be removed from the full document to get results with
make4ht
thanks
:\url
for\texttt
\label{sec:Introdução}
and corresponding reference leads toerrors in compilation, so it was substituted with
\label{sec:Introducao}
\nocite{*}
leads to problems withampersands in other parts of the document (and in the bibliography as
well). (I have used
biblatex-examples.bib
for the test files).\nocite{*}
uncommented, dully escaped\&
inTeX input elsewhere end up in
content.xml
as raw&
, thus breaking ODToutput.
\nocite{*}
commented. But you can reproduce the erroruncommenting it. You’ll see that LibreOffice will report error in some
ampersands in a quote environment earlier in the document.
output:
more important than that, is that the document itself suffers from several
problems, including:
hyperref=false
to biblatex’s options.With these changes, we have the second test file, which is compilable and produces reasonable (though improvable) output.
Log files (full piped terminal output) for both the second and third test files are available at: https://gist.github.com/gusbrs/f822630ffd09029871401fe54c3746a2
Comments on the second (scrartcl) ODT output
make4ht
gobbles space between thelines ("toa" instead of "to a")
\thanks
is not appropriate.abstract
environment doesn’t seem to be recognizedpunctuation and footnotemark)
\clearpage
is not respected (I haven’t forgottenhttps://tex.stackexchange.com/q/435235/105447, of course. But, as you
mentioned there that that solution breaks other things, I report it here as a
standing issue)
\nameref
is placed after the content (and introduces spuriousspace in the process) ("Introdução_,")
quoting
environment simply vanishes from output (following paragraph isgobbled in the process)
displayquote
environments and variants are recognized as regular paragraphs(true
csquotes
is configured to usequoting
environments), in the processparagraph breaks (empty lines) are gobbled
quotation
environment different fromquote
environment\
after an abbreviation point to avoidextra "end of sentence spacing" with frenchspacing is turned into a
non-breaking space in ODT
floatnotes
. The environment appears at the end offigure
environment, butline breaks within
floatnotes
and between it and the caption aregobbled. The entire
floatnotes
environment vanishes ontable
floats.interaction with the use of
multicolumn
)description
environments a paragraph break is introduced between labeland text
recognition. Wherever you place your cursor in the resulting ODT (no active
selection), the status bar will show "multiple languages"
quotation
environment and hanging indent in bibliography arevery large
quotation
environment is not justifiedquotation
andquote
seem to be rendered in a frame/box (I don’t know whatit is, nor if it is desirable. But I can’t seem to be able to delete it in the
resulting ODT.)
Comments on the third (article) ODT output
Here some things seem to work better:
abstract
environment is recognizedBut pretty much everything else stands on the same ground.
Comments on the third (article) resulting
content.xml
environments/paragraph styles come full of
text:span
environments (I won’tsay this is an "issue", but it would be nice to have a cleaner
content.xml
. If it is possible for regular paragraphs, why not for therest?)
content.xml
as "invalid". LibreOffice seems to be OKwith it (well, it opens the file but, as the confusion with the current
language shows, probably not everything is OK) and I don’t know if Emacs would
be an authoritative source on the matter, but some consistency check on
content.xml
might be welcome.content.xml
(including the
quoting
environment and the missingfloatnotes
environments), which suggests this is a consistency problem in
content.xml
. My guess though is that gobbled line and paragraph breaks aregone for good (but those are, of course, much less important).
Well, I hope this testing is useful. Thank you for the great work! And, as usual, I remain at your disposal for discussion and further testing.
The text was updated successfully, but these errors were encountered: