|
|
Thread Tools | Search this Thread |
01-16-2017, 02:24 PM | #76 |
Grand Sorcerer
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
|
01-16-2017, 02:45 PM | #77 |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
@slowsmile: I believe that I've found cause of the Linux problem. Linux is case-sensitive and the actual file names and the manifest entries don't match. E.g., the epub contains Chapter_Three.xhtml, but the manifest lists chapter_three.xhtml.
I intercepted the temporary epub and attached it to this post. The epub contains: Code:
Chapter_One.xhtml Chapter_Three.xhtml Chapter_Two.xhtml title.xhtml contents.xhtml cover.xhtml Code:
<item id="cover" href="Text/cover.xhtml" media-type="application/xhtml+xml" /> <item id="contents" href="Text/contents.xhtml" media-type="application/xhtml+xml" /> <item id="title" href="Text/title.xhtml" media-type="application/xhtml+xml" /> <item id="body1" href="Text/chapter_one.xhtml" media-type="application/xhtml+xml" /> <item id="body2" href="Text/chapter_two.xhtml" media-type="application/xhtml+xml" /> <item id="body3" href="Text/chapter_three.xhtml" media-type="application/xhtml+xml" /> |
01-16-2017, 05:39 PM | #78 |
Witchman
Posts: 628
Karma: 788808
Join Date: May 2013
Location: Philippines
Device: Android S5
|
@Doitsu...Thanks for discovering the problem. I also have no access to Linux computers whatsoever so I really do appreciate your testing efforts.
I've checked the problem and you are right. I save the files in the zip archive as Chapter One, Chapter Two etc. But when I display them in the Book Browser they are converted to lower case including the manifest, spine and guide references in the opf file. I was also completely unaware that Linux file names are case sensitive. The other odd thing is that my plugin has been tested on Linux32 by DiapDealer and apparently works with no problems. I will try and put in a fix as quickly as I can. The easiest way would seem to be to just revert all Sigil chapter and main heading refs to title case in Sigil. Once I think that I've fixed the problem and its OK on Windows, I will also need your help to test fix on Linux32/Linux64. I'll keep you informed on this thread or by private message if that's OK. My grateful thanks to you again for helping. |
01-16-2017, 05:48 PM | #79 |
Witchman
Posts: 628
Karma: 788808
Join Date: May 2013
Location: Philippines
Device: Android S5
|
@st_albert...I'm hoping to be able to fix and test this problem within a day or so. Please keep an eye on this thread.
I would also gratefully appreciate your own test effort to confirm whether my eventual fix has solved your plugin problems or not since I have no access to any Linux computers for testing. Last edited by slowsmile; 01-16-2017 at 05:53 PM. |
01-16-2017, 08:19 PM | #80 | |
Guru
Posts: 696
Karma: 150000
Join Date: Feb 2010
Device: none
|
Quote:
One other thing I noticed, and it's related to LO's html output, not to your plugin at all, but maybe you know what's going on. In the odt file I have defined custom character styles as well, such as "w2e_ttb-italicchar" which should be mapped to something like: Code:
span.w2e_ttb-italicchar { font-style:italic; } Is that the expected behavior, or is there some way to make it preserve character styles as well? |
|
01-16-2017, 11:41 PM | #81 |
Witchman
Posts: 628
Karma: 788808
Join Date: May 2013
Location: Philippines
Device: Android S5
|
@st_albert...Unfortunately OO and LO always convert italics, bold and underline to <i>, <b> and <u> no matter how you format your text. So, as you say, this is expected behaviour from OO and LO. And unfortunately, I don't think you can do much to change that kind of formatting unless you're willing to dive under he hood to reformat all instances using html.
Last edited by slowsmile; 01-17-2017 at 12:54 AM. |
01-17-2017, 12:36 AM | #82 |
Witchman
Posts: 628
Karma: 788808
Join Date: May 2013
Location: Philippines
Device: Android S5
|
@Doitsu & @st_albert I've just released a new plugin version -- v0.2.9 -- with a fix for the Linux64 file name issue.
* The opf file names and Book Browser file names have been changed and are now identical and will be in the same letter case as the original headings in the ebook text. * When the file split from html to xhtml occurs in my plugin, the created file names will now be identical in letter case format to the file names in the opf and in Sigil's Book Browser. * I've tested this fix on Windows using 16 ebooks that are formatted differently in LO or OO and which also includes 2 Polish ebooks and st_albert's Galactic Frontiers ebook sample. In all cases, the opf and Book Browser file names were identical and correct and all generated epubs passed Doitsu's EpubCheck. Please could you test this new version to see if it's now working properly on Linux64 ? With thanks Last edited by slowsmile; 01-17-2017 at 01:45 AM. |
01-17-2017, 01:51 AM | #83 |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
|
01-17-2017, 02:30 AM | #84 |
Witchman
Posts: 628
Karma: 788808
Join Date: May 2013
Location: Philippines
Device: Android S5
|
Thanks for that, Doitsu. I'm very relieved that problem is gone.
|
01-17-2017, 12:52 PM | #85 | |
Guru
Posts: 696
Karma: 150000
Join Date: Feb 2010
Device: none
|
Quote:
Great work! Albert |
|
01-17-2017, 12:56 PM | #86 | |
Guru
Posts: 696
Karma: 150000
Join Date: Feb 2010
Device: none
|
Quote:
Thanks for the info. Albert |
|
01-17-2017, 06:46 PM | #87 |
Witchman
Posts: 628
Karma: 788808
Join Date: May 2013
Location: Philippines
Device: Android S5
|
@st_albert...My grateful thanks for confirming that the plugin works on Linux.
I also had a re-think about your <i> <b> <u> question. You could certainly do it with S&R as you suggest. But it would also be very easy for me to change my plugin to to get rid of these <b> <i> and <u> tags and replace all of them with their <span> equivalents in the html file. Here's a code example of how to do it using bs4 Spoiler:
|
01-17-2017, 07:26 PM | #88 |
Grand Sorcerer
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
My TagMechanic plugin makes it pretty painless to safely switch all i, b tags to em, strong (or to spans). Same could be used to convert all u's to spans with specific class-names.
|
01-18-2017, 09:16 PM | #89 |
Guru
Posts: 696
Karma: 150000
Join Date: Feb 2010
Device: none
|
|
02-01-2017, 08:35 PM | #90 |
Witchman
Posts: 628
Karma: 788808
Join Date: May 2013
Location: Philippines
Device: Android S5
|
I've just updated and added some new functionality to my plugin which includes the following options:
* Convert chapter text only to fiction style format * Convert chapter text only to block text format * Convert all ebook text to block text format. Please read the release notes -- Re-Styling Options -- for more details. |
Tags |
conversion, epub, html, odf, opendoc |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
html to epub conversion | andin1 | Conversion | 1 | 03-12-2013 06:38 PM |
Nightmare epub: it's full of tables (conversion from CHM?) | MelBr | Conversion | 2 | 02-23-2013 11:28 AM |
html to epub CLI conversion / html input | m4mmon | Conversion | 2 | 05-05-2012 02:10 AM |
Help with HTML to ePub conversion...? | Nethfel | Calibre | 4 | 05-10-2010 02:26 PM |
Converting ODF to ePub with ODFToEPub | wdonne | News | 0 | 04-22-2010 05:28 AM |