Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 04-28-2010, 07:58 PM   #76
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by awx View Post
OK, but they still don't imply chapter breaks.
Neither do divs. In fact nothing in HTML implies a chapter break, since chapters are not a concept the HTML spec addresses. The question you need to be asking is what approach is going to be most compatible with with widely accepted practice as well as being reasonably robust.

EDIT: in the context of ePub widely accepted practice is to put each chapter in a separate HTML file.
kovidgoyal is offline   Reply With Quote
Old 04-28-2010, 08:51 PM   #77
awx
Connoisseur
awx is on a distinguished road
 
Posts: 68
Karma: 56
Join Date: Oct 2009
Device: Sony PRS-650 & PRS-600
Quote:
Originally Posted by kovidgoyal View Post
Neither do divs. In fact nothing in HTML implies a chapter break, since chapters are not a concept the HTML spec addresses.
Exactly, which is why the import procedure specifies these interactions. If they were defined somewhere, I wouldn't have needed to specify them.

Quote:
Originally Posted by kovidgoyal View Post
in the context of ePub widely accepted practice is to put each chapter in a separate HTML file.
I think you may have lost the jist of this discussion. ePubHub creates separate Xhtml files already.

The ePubHub import feature currently can import existing Xhtml files, which it stores in a separate "document" object which will get rendered during the ePub export function back into a separate Xhtml file. The existing ePubHub Xhtml import feature will also import several Xhtml files at once, again storing each into a separate "document" object.

In order to facilitate importing an entire book stored inside a single Xhtml file while maintaining it's structure, a specification for the use of divs to define chapters/parts/cover-pages was introduced.

By following this specification, a book stored as a single file will then be split into multiple "document" objects, which would be rendered as multiple Xhtml files in an ePub.


What DaleDe believes is that h tags can be used to define the structure of an entire book. Nothing in Html, Xhtml, ePub, Ncx, Opf, Daisy or any other standard that I have come across supports this belief. The ePub specification itself does not even use h tags for constructing the table of contents.

Last edited by awx; 04-28-2010 at 09:11 PM.
awx is offline   Reply With Quote
Advert
Old 04-28-2010, 08:54 PM   #78
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by awx View Post
In order to facilitate importing an entire book stored inside a single Xhtml file while maintaining it's structure, a specification for the use of divs to define chapters/parts/cover-pages was introduced.

By following this specification, a book stored as a single file will then be split into multiple "document" objects, which would be rendered as multiple Xhtml files in an ePub.
Why define a specification at all? Make it flexible enough to handle an arbitrary structure, via XPath. See how calibre does it for example.
kovidgoyal is offline   Reply With Quote
Old 04-28-2010, 09:08 PM   #79
awx
Connoisseur
awx is on a distinguished road
 
Posts: 68
Karma: 56
Join Date: Oct 2009
Device: Sony PRS-650 & PRS-600
Quote:
Originally Posted by kovidgoyal View Post
Why define a specification at all? Make it flexible enough to handle an arbitrary structure, via XPath. See how calibre does it for example.
Please see the original post that started this discussion. It is stated that this is a temporary stop-gap until a proper Xhtml Import dialog where this can be configured is finished.
awx is offline   Reply With Quote
Old 04-28-2010, 09:14 PM   #80
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by awx View Post
Please see the original post that started this discussion. It is stated that this is a temporary stop-gap until a proper Xhtml Import dialog where this can be configured is finished.
Ah so your motivation for using divs is that it makes it trivial to code for, now I get it.
kovidgoyal is offline   Reply With Quote
Advert
Old 04-28-2010, 09:18 PM   #81
awx
Connoisseur
awx is on a distinguished road
 
Posts: 68
Karma: 56
Join Date: Oct 2009
Device: Sony PRS-650 & PRS-600
Quote:
Originally Posted by kovidgoyal View Post
Ah so your motivation for using divs is that it makes it trivial to code for, now I get it.
That and it gives an unambiguous, standards-compliant means to specify an entire book in a single Xhtml file.
awx is offline   Reply With Quote
Old 04-28-2010, 09:35 PM   #82
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by awx View Post
That and it gives an unambiguous, standards-compliant means to specify an entire book in a single Xhtml file.
So do heading tags and they are going to be much more convenient for your end users. But hey, it's your project
kovidgoyal is offline   Reply With Quote
Old 04-28-2010, 11:17 PM   #83
awx
Connoisseur
awx is on a distinguished road
 
Posts: 68
Karma: 56
Join Date: Oct 2009
Device: Sony PRS-650 & PRS-600
Quote:
Originally Posted by kovidgoyal View Post
So do heading tags and they are going to be much more convenient for your end users. But hey, it's your project
Thanks
awx is offline   Reply With Quote
Old 04-29-2010, 11:08 AM   #84
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
Quote:
Originally Posted by awx View Post
You may want to scroll up just a bit in the document you linked to and read this:
"The DIV and SPAN elements, in conjunction with the id and class attributes, offer a generic mechanism for adding structure to documents."

Followed by:
"Suppose, for example, that we wanted to generate an HTML document based on a database of client information. Since HTML does not include elements that identify objects such as "client", "telephone number", "email address", etc., we use DIV and SPAN to achieve the desired structural and presentational effects."

This is definitely what I'm after.
Sure, I can read that even when the font isn't huge. I understand using DIV and SPAN elements when needed for some things that cannot be done in the normal flow of things but to require them for this purpose is over the top IMHO.

Dale
DaleDe is offline   Reply With Quote
Old 05-04-2010, 10:52 PM   #85
awx
Connoisseur
awx is on a distinguished road
 
Posts: 68
Karma: 56
Join Date: Oct 2009
Device: Sony PRS-650 & PRS-600
A new version has been released. A list of errors is now shown on most objects, giving a short message about what is wrong. It is no longer permitted to export to ePub if any errors exist.

I've identified but not fixed a longstanding bug where seemingly random "NullReferenceExceptions" were being thrown during scrolling and deleting items. It has to do with the underlying Wpf sorting functionailty and how it interacts with the Navigation treeview.
awx is offline   Reply With Quote
Old 05-19-2010, 01:42 AM   #86
awx
Connoisseur
awx is on a distinguished road
 
Posts: 68
Karma: 56
Join Date: Oct 2009
Device: Sony PRS-650 & PRS-600
New version released.

* Small bug fixes and performance improvements.
* Work has started on ePubHub's native file format, called .ephx. It's xml inside a zip and is listed in the Formats section of the UI.
* The native Wpf error checking is now used in some places in the UI. You will see a red outline around some fields which have missing or invalid data. The metadata section currently uses this.
* Additional rendering options for the Quotation <q> tag. It is now possible to specify if the <q> tag, quotation marks or both should be rendered. You can specify the characters used for primary quotes (top level) and secondary quotes (nested), such as curly quotes, double angled brackets, Swedish-style quotes and more.
awx is offline   Reply With Quote
Old 06-09-2010, 05:50 PM   #87
awx
Connoisseur
awx is on a distinguished road
 
Posts: 68
Karma: 56
Join Date: Oct 2009
Device: Sony PRS-650 & PRS-600
A new version was released. A family emergency has prevented much work this week.

* New Image Page object added, for future support of comic books or any type of content where a single image is used as a page. It renders almost exactly like the existing Cover Page.
* Preliminary support for Ncx fallback chains, but not implemented in Gui yet. Initially this will be restricted to Jpg->Xhtml fallback chains. Fallbacks don't seem to be well supported on ADE/Sony Reader but perhaps if people use it the readers will support it in the future.
* New Audio object which currently renders as a link to an Mp3 file. Doesn't work in my Sony reader. Support for Ncx audio will be coming in the future.
* Open/Saving of native Ephx documents. This barely works so don't use it.
* More and improved icons.
* ClickOnce prerequisites set to .Net 4.0 Client. I had already done this but somehow the setting didn't take or was later lost.
* Improvements to Last used path/filename to better work with .Net 4.0.

Last edited by awx; 06-09-2010 at 06:01 PM.
awx is offline   Reply With Quote
Old 07-11-2010, 07:53 PM   #88
awx
Connoisseur
awx is on a distinguished road
 
Posts: 68
Karma: 56
Join Date: Oct 2009
Device: Sony PRS-650 & PRS-600
New version released.
* I believe the long-standing exception that was thrown during scrolling is now fixed.
* Sorting has been improved for all items except stylesheets.
* Bug where exporting fonts, css, audio had the wrong default file extension is fixed.
* Bug fix for exception thrown while attempting to browse unavailable network shares.
* Css import will now try to load the Fontface fonts automatically if they are in the same directory as the Css file. Still only supports Otf files.
* During Xhtml import, a <div class="scene-split" /> will be changed into a native SceneSplit object. Any contents inside the div will be removed and the normal SceneSplit rendering will take over.

Last edited by awx; 07-11-2010 at 08:20 PM.
awx is offline   Reply With Quote
Old 08-01-2010, 03:16 PM   #89
awx
Connoisseur
awx is on a distinguished road
 
Posts: 68
Karma: 56
Join Date: Oct 2009
Device: Sony PRS-650 & PRS-600
New version released with two minor features:
* GUI for documents (chapters, generic pages, etc.) has been cleaned up considerably.
* A "Show Errors" menu item added to the "Tools" menu. It simply collapses all items in the navigation pane except those with errors.

Edit: I wrote too soon about sorting improvements in the previous post. I must now revisit this again.

Last edited by awx; 08-02-2010 at 12:04 AM.
awx is offline   Reply With Quote
Old 09-14-2010, 04:30 PM   #90
awx
Connoisseur
awx is on a distinguished road
 
Posts: 68
Karma: 56
Join Date: Oct 2009
Device: Sony PRS-650 & PRS-600
New version pushed out:
* Sorting problems should now be taken care of.
* Stylesheets are now properly sorted and support drag-and-drop editing.
* ePub filename constraints modified to more closely match the standard (upper and lowercase are now allowed but filenames are not case sensitive). Epubhub still restricts you to a-z with no accented characters allowed.

Last edited by awx; 09-18-2010 at 02:52 AM.
awx is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[old-topic]ebook-viewer: Open source, crossplatform viewer for EPUB, LIT, MOBI, etc kovidgoyal Calibre 68 05-30-2011 08:46 PM
any open source ebook reader apps? kennyc Android Developer's Corner 15 12-23-2010 01:38 PM
EPUB generated by ebook-convert does not open gracefully on windows Heritage History Calibre 4 07-08-2010 01:37 PM
OpenInkpot (open source ebook firmware) davidw89 Sony Reader 9 11-15-2008 09:59 AM
Proposal for an open source multi-format ebook authoring tool Jon Noring News 15 09-12-2008 12:17 PM


All times are GMT -4. The time now is 06:39 PM.


MobileRead.com is a privately owned, operated and funded community.