|
|
#46 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,828
Karma: 2831780
Join Date: May 2008
Location: Launceston, Tasmania
Device: Sony PRS 650, Kindle3, iPad2, Sony PRS T1, Sony PRS T2
|
|
|
|
|
|
|
#47 | ||
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 594
Karma: 4150
Join Date: Mar 2008
Device: Sony Reader PRS-505
|
Quote:
Quote:
|
||
|
|
|
|
Enthusiast
|
|
|
|
#48 | |
|
GuteBook/Mobi2IMP Creator
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,955
Karma: 2530531
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?
__________________
-Nick ‹The REB1200 Guy› Last edited by nrapallo; 07-19-2009 at 08:32 AM. |
|
|
|
|
|
|
#49 |
|
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 54,661
Karma: 26165759
Join Date: Nov 2006
Location: UK
Device: Kindle Touch, PW, Fire HD, iPad 3, iPhone 4, Samsung Tab 2 7 + More
|
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".
__________________
Harry Currently proofreading The Poison Belt, by Sir Arthur Conan Doyle. |
|
|
|
|
|
#50 | |
|
GuteBook/Mobi2IMP Creator
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,955
Karma: 2530531
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...
__________________
-Nick ‹The REB1200 Guy› |
|
|
|
|
|
|
#51 |
|
hopeless n00b
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,112
Karma: 4988992
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PRS-350, Nexus S, Galaxy S, Nook Color, iPhone4, iPT4, iPad 2012
|
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. |
|
|
|
|
|
#52 |
|
Creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,495
Karma: 2944574
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.
__________________
Get calibre Notice to all: I can not provide assistance with DRM removal, for legal reasons, so please do not contact me about it. |
|
|
|
|
|
#53 | |
|
GuteBook/Mobi2IMP Creator
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,955
Karma: 2530531
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?
__________________
-Nick ‹The REB1200 Guy› |
|
|
|
|
|
|
#54 | |
|
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 54,661
Karma: 26165759
Join Date: Nov 2006
Location: UK
Device: Kindle Touch, PW, Fire HD, iPad 3, iPhone 4, Samsung Tab 2 7 + More
|
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:
__________________
Harry Currently proofreading The Poison Belt, by Sir Arthur Conan Doyle. |
|
|
|
|
|
|
#55 | |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,505
Karma: 2150615
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Nexus 7, Nexus S, iPad 2, Notion Ink Adam Qi, Kindle WiFi
|
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.
__________________
DRM is EVIL! /Tommy Persson |
|
|
|
|
|
|
#56 | |
|
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 54,661
Karma: 26165759
Join Date: Nov 2006
Location: UK
Device: Kindle Touch, PW, Fire HD, iPad 3, iPhone 4, Samsung Tab 2 7 + More
|
Quote:
Any flaws in this?
__________________
Harry Currently proofreading The Poison Belt, by Sir Arthur Conan Doyle. |
|
|
|
|
|
|
#57 |
|
eBook FANatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,861
Karma: 13081948
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
__________________
Charlie 'Bene legere saecla vincere'. 'To read well is to master the ages' [Prof. Issac Flagg] Last edited by crutledge; 07-20-2009 at 01:27 PM. |
|
|
|
|
|
#58 | ||
|
GuteBook/Mobi2IMP Creator
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,955
Karma: 2530531
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Quote:
When I posted my original conversion of this ebook, I did removed the hyphens but it was not easy. Using a RegEx to fix it would catch even the HTML tags/CSS, so I had to do it manually, paragraph by paragraph. I didn't do that with the GuteBook automatic conversion, though! ![]() Quote:
__________________
-Nick ‹The REB1200 Guy› Last edited by nrapallo; 07-20-2009 at 01:53 PM. |
||
|
|
|
|
|
#59 | |
|
GuteBook/Mobi2IMP Creator
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,955
Karma: 2530531
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"...
__________________
-Nick ‹The REB1200 Guy› Last edited by nrapallo; 07-20-2009 at 03:24 PM. Reason: added link |
|
|
|
|
|
|
#60 | |
|
GuteBook/Mobi2IMP Creator
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,955
Karma: 2530531
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Quote:
__________________
-Nick ‹The REB1200 Guy› |
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
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, Freebies, and Resources (No Self-Promotion) | 46 | 05-20-2009 10:03 AM |