07-19-2009, 04:50 AM | #46 |
Wizard
Posts: 3,413
Karma: 13369310
Join Date: May 2008
Location: Launceston, Tasmania
Device: Sony PRS T3, Kobo Glo, Kindle Touch, iPad, Samsung SB 2 tablet
|
|
07-19-2009, 04:58 AM | #47 | ||
Guru
Posts: 610
Karma: 4150
Join Date: Mar 2008
Device: Sony Reader PRS-T3, Kobo Libra H2O
|
Quote:
Quote:
|
||
07-19-2009, 08:28 AM | #48 | |
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Quote:
So along your lines above in bold, I'm starting to think that the only solution to using one .html to make many different ebook formats may lie in perfecting the .mobi file creation and then feed that to calibre and/or Mobi2IMP. Using the SAME .html causes a lot of logistic problems with different preferences among the various ebook formats. Compromise is nice, but it should be only tolerated when it achieves a better all-around ebook! However, it may be best to first develop a test suite of .html files (a standard per se) that we could ALL try to convert to the various ebook formats so as to yield similar looking results. Then we truly will be able to confirm if using one .html file for many ebook formats has a future... I have an old testbed of sort that allovertheglobe prepared years ago. It tried to match features in HTML 3.2 to my device's strengths and weaknesses. While using it "as is" may be less than advisible, given our migration to HTML 4.0 and XHTML 1.1, it may be worth a shot to use it as a starting framework. I now see a lot of separate threads in this area converging i.e. (and I paraphrase ) tricks&tips for .epub, ebook formats/layout, CSS anyone?, etc... Perhaps, now is the time to compile a working defacto standard .html and put it through its paces... toward a common (.html) best practices when creating ebooks... then when can get creative/artistic once we have a good foundation. Any thoughts, given that you wrote THE standard here for ebook creation? Last edited by nrapallo; 07-19-2009 at 08:32 AM. |
|
07-19-2009, 08:40 AM | #49 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
You flatter me, Nick. I know enough HTML to get by in what I need for my "day job" and to write reasonable-looking books, but there are people here who know far more than myself (you included) who would be far, far, better able to put together a "standard".
|
07-19-2009, 08:50 AM | #50 | |
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Quote:
However, I don't create the underlying .html I choose to use as a starting point (PG does or WinHTTrack scoops it from websites), and then only "tweak" it to get the job done! (and re-tweak, and re-fix... ) But I will give this a go... |
|
07-19-2009, 10:38 AM | #51 |
hopeless n00b
Posts: 5,110
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
Question. I'm not very familiar with device quirks since I haven't tried converting for various ebook readers, but would an external stylesheet not be possible? The formatting for divs could each be assigned a class. Then, just have a separate stylesheet for each format which takes into account the quirks of the device.
The html file would only include <link href="style.css" rel="stylesheet" type="text/css" />. Assuming you have a stylesheet for each device (e.g. prs505.css, prs505-justified.css, left-toc.css, center-toc.css, mobi.css, etc), you only need to copy/rename the device-specific CSS to "style.css" before you convert. |
07-19-2009, 12:12 PM | #52 |
creator of calibre
Posts: 44,356
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
One file -> multi devices is certainly possible, I do it all the time. You just have to be prepared to accept some degradataion in quality. The simpler the features in the source html, the less degradation in the final book.
If you want advanced typographical features, then you have no alternative but to build each book separately since the implementation of these features is often orthogonal in different formats. |
07-19-2009, 12:15 PM | #53 | |
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Quote:
Using GuteBook, all these ebooks attached were made within two minutes with no manual intervention (using calibre v0.5.14): Code:
Command Line ============ "E:\ebooks\GuteBook\bin\gutebook" 22896 --epub --lrf --mobi --lit --srcepub --1200 --1150 --1100 --keephtm --keepzip --pb "h2 h3" --embedded "Fontin" --striphr --pbfirsth1 --cover --centerh --imgsrc --calibreold GuteBook (version 0.6) Copyright (C) 2009 Nick Rapallo (nrapallo) Getting "http://www.gutenberg.org/files/22896/22896-h.zip" HTML file from Project Gutenberg Website... Fetching 485.0KB... Extracting files... Book Title : Little Stories for Little Children Author : Anonymous Released : October 5, 2007 [EBook #22896] Language : English Cleaning "22896" HTML... Wrote cleaned HTML "E:\ebooks\GuteBook\22896\22896-h\22896-h.htm" Anything grossly wrong therein? |
|
07-20-2009, 12:11 PM | #54 | |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Hi Nick,
The Mobi version is a little odd. It looks as though everywhere that a word could be hyphenated, a hyphen has actually been inserted: Quote:
|
|
07-20-2009, 12:19 PM | #55 | |
Grand Sorcerer
Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
Quote:
Every solution which include some manual work for the actual conversion is a broken solution. If manual work is required you will not fix the spelling of one word and generate a new version for example. |
|
07-20-2009, 12:33 PM | #56 | |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Quote:
Any flaws in this? |
|
07-20-2009, 01:23 PM | #57 |
eBook FANatic
Posts: 18,301
Karma: 16071131
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
|
A proposed solution
I have a proposal or wish to solve a lot of the problems discussed here. A new ebook browser/editor. A mockup of this tool is attached.
It would have the following attributes and capabilities: 1. Would look much like or identical to Book Designer. 2. Would have the full capablities of Book Designer. 3. Would have a full windows tool icon set for justification, fonts, color, bold, etc. 4. Would have split screen capabilities showing text in one screen and html in the other. These screens would be synced so as one is changed the change is immediately shown in the other. For example, if a paragraph is highlighted in the text the html would also highlight. If highlighted and changed from paragraph to title the html would immediately reflect the change and vice versa. The cursors in each window would follow. The text screen is a full browser whuch displays the html loaded. 5. Would have a pop-up window showing all html tags and elements. These are in addition to the capabilities fo the Book Corrector. These tags and elements when double clicked will insert at the cursor or before and after highlighted text.(ala EditPadPro) The user can select any html tag or element and would be responsible for proper selection except for those like Book Corrector. 6. Would only accept text and/or html files. There would be no dependency on external software, e.g. Windows Word. All these tools will export html. 7 Would have no native book generator. All book generators will be insertable by the developer and/or the user. A well defined interface for calling the generator, e.g. a command line call to Calibre or Nick's imp generators, and would be published. The external generator would be responsible for generating a proper opf file. 8. Would have an External Tools icon with the built-in capabilites to add and select charm (.chm) files with help and definitions for a proper html for various book formats. 9. Would save only html. This list could go on. But it would divorce the browser/editor from book generation. The saving grace is that the identical tool is already available for building WEB pages but are limited the WEB pages and of little use for ebooks. However, some of these are in the public domain with source code available (both java and python) and a GNU license. 60 to 90 percent of the code is already available. The parsers and editors are already written. This could be a fine project for someone and would be a great service to the mobile read and ebook community at large. I don't know why the BD crew quit. They were on the threshold of something truly great. Charlie Last edited by crutledge; 07-20-2009 at 01:27 PM. |
07-20-2009, 01:50 PM | #58 | ||
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Quote:
Quote:
Last edited by nrapallo; 07-20-2009 at 01:53 PM. |
||
07-20-2009, 01:56 PM | #59 | |
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Quote:
EDIT: Ok, pepak, already implemented this idea for this HTML2LRF "Preprocessor"... Last edited by nrapallo; 07-20-2009 at 03:24 PM. Reason: added link |
|
07-20-2009, 01:59 PM | #60 | |
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
<Command Line> Add multiple books in multiple formats | himitsu | Calibre | 8 | 09-25-2010 11:07 PM |
Bug: entries with multiple formats trigger multiple conversions | flinx1 | Calibre | 12 | 05-21-2010 06:23 AM |
Error Converting Zip Files w/ Multiple Formats | TheHeartlessHero | Calibre | 2 | 04-10-2010 10:54 AM |
Process for creating several eBook formats from MS Word doc | jinlo | Workshop | 10 | 06-12-2009 11:05 AM |
Free eBook in multiple DRM-free formats | cmwilson | Deals and Resources (No Self-Promotion or Affiliate Links) | 46 | 05-20-2009 10:03 AM |