Description: Hi. I converted a Writer document in EPUB with the incorporated tool. After convertion I verified the .epub di pagina EPUB-Checker (last version of this tool) and It discovered some Error and Warning that I list below: -- Error RSC-005 -- Error OPF-012 -- Warning RSC-017 -- Error CSS-001 Actual Results: Create an .epub with Writer then use a validation program to check for problems. Expected Results: At this point, you should see the same errors that I did. Reproducible: Always User Profile Reset: No Additional Info:
Created attachment 155455 [details] The warning and error that I discovered
3.3.2 is a very old version. Could you give a try to 6.2.8 or brand new 6.3.3? Also, if you still reproduce this, could you attach the file so we can try to reproduce this? Of course, think about sanitizing it (see https://wiki.documentfoundation.org/QA/Bugzilla/Sanitizing_Files_Before_Submission)
Sorry It's 6.3.2.2. Now Version corrected.
Created attachment 155507 [details] The EPUB that I have tested The .epub is the test book that I have tested.
[Automated Action] NeedInfo-To-Unconfirmed
To reproduce the problem, we need the original ODT file not the resulting EPUB file.
Created attachment 155990 [details] The .odt file from which I derived the EPUB file. Hello here the .odt file from which I derived the EPUB file. Sorry for delay.
Version must correspond to the earliest affected one.
On pc Debian x86-64 with master sources updated today, I converted your odt file into epub. Then with epubcheck 4.1 from LO Debian testing package repo, I got: Validating using EPUB version 3.2 rules. WARNING(RSC-017): /tmp/epub-libreoffice.epub/OEBPS/sections/section0001.xhtml(2,50): Warning while parsing file: The 'head' element should have a 'title' child element. WARNING(RSC-017): /tmp/epub-libreoffice.epub/OEBPS/toc.xhtml(2,93): Warning while parsing file: The 'head' element should have a 'title' child element. ERROR(CSS-001): /tmp/epub-libreoffice.epub/OEBPS/styles/stylesheet.css(148,3): The 'direction' property must not be included in an EPUB Style Sheet. Check finished with errors Messages: 0 fatals / 1 error / 2 warnings / 0 infos Let's put this one to NEW since there's at least 1 error.
David: thought you might be interested in this one since it concerns epub
(In reply to Julien Nabet from comment #9) Yes, Julien, these are the same mistakes that I found.
Exporting with LO 7.2 alpha1+, and checking with epubcheck 4.2.5, I get the same warnings and error as Julien: Validating using EPUB version 3.2 rules. WARNING(RSC-017): /home/stragu/Downloads/epub-libreoffice.epub/OEBPS/sections/section0001.xhtml(2,50): Warning while parsing file: The "head" element should have a "title" child element. WARNING(RSC-017): /home/stragu/Downloads/epub-libreoffice.epub/OEBPS/toc.xhtml(2,93): Warning while parsing file: The "head" element should have a "title" child element. ERROR(CSS-001): /home/stragu/Downloads/epub-libreoffice.epub/OEBPS/styles/stylesheet.css(148,3): The "direction" property must not be included in an EPUB Style Sheet. The part of the stylesheet that causes the ERROR(CSS-001) is this one: .body0 { -epub-writing-mode: horizontal-tb; -webkit-writing-mode: horizontal-tb; direction: ltr; writing-mode: horizontal-tb; } LibreOffice version: Version: 7.2.0.0.alpha1+ / LibreOffice Community Build ID: b1c0734ffe0f395757b6e0cea7830d820231afeb CPU threads: 8; OS: Linux 4.15; UI render: default; VCL: gtk3 Locale: en-AU (en_AU.UTF-8); UI: en-US TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2021-05-18_03:16:20 Calc: threaded
Mark: would it be possible to push this straightforward patch for "direction" part? diff --git a/src/lib/EPUBBodyStyleManager.cpp b/src/lib/EPUBBodyStyleManager.cpp index 93d9a5d..bedeb43 100644 --- a/src/lib/EPUBBodyStyleManager.cpp +++ b/src/lib/EPUBBodyStyleManager.cpp @@ -26,7 +26,6 @@ void EPUBBodyStyleManager::extractProperties(RVNGPropertyList const &pList, EPUB else // For the rest: lr, lr-tb, rl, rl-tb { mode = "horizontal-tb"; - cssProps["direction"] = (mode == "rl-tb" || mode == "rl")?"rtl":"ltr"; } cssProps["-epub-writing-mode"] = mode;
(In reply to Julien Nabet from comment #13) > Mark: would it be possible to push this straightforward patch for > "direction" part? > diff --git a/src/lib/EPUBBodyStyleManager.cpp > b/src/lib/EPUBBodyStyleManager.cpp > index 93d9a5d..bedeb43 100644 > --- a/src/lib/EPUBBodyStyleManager.cpp > +++ b/src/lib/EPUBBodyStyleManager.cpp > @@ -26,7 +26,6 @@ void > EPUBBodyStyleManager::extractProperties(RVNGPropertyList const &pList, EPUB > else // For the rest: lr, lr-tb, rl, rl-tb > { > mode = "horizontal-tb"; > - cssProps["direction"] = (mode == "rl-tb" || mode == "rl")?"rtl":"ltr"; > } > > cssProps["-epub-writing-mode"] = mode; No. That just removes the symptom without fixing the problem. The CSS property *should* be removed, but new code should be added that emits (X)HTML dir attribute. See https://www.w3.org/International/questions/qa-bidi-css-markup and https://github.com/w3c/epub-specs/issues/335 for more info.
*** Bug 142896 has been marked as a duplicate of this bug. ***
Dear f.carbone80, To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
Hello every one. I made a new test on LibreOffice 7.4.7.2 (x64), and I see that some problem stay alive. The following are the problem that I've been encountered when I test the final EPUB with the application "pagina EPUB-Checker" v2.0.9 that include the last EPUBCheck 5.0.1. -- Warning RSC-017 (The "head" element should have a "title" child element). Infact, in the xhtml file no title is present. -- Error CSS-001 (The property "direction" is present in the CSS but it is an Error).
Created attachment 188077 [details] New Screenshot about the warning and Error
Version field must correspond to the earliest one.