09-11-2009, 12:08 PM | #16 | ||
Wizard
Posts: 1,790
Karma: 507333
Join Date: May 2009
Device: none
|
Quote:
Scrolls use pages: http://en.wikipedia.org/wiki/Scroll Quote:
- Ahi |
||
09-11-2009, 12:10 PM | #17 |
creator of calibre
Posts: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Wow what you've described seems to require an awful lot of labor on the part of e-book creators, but I guess if you want a layout by hand, then an awful lot of labor is what you're in for.
Go for it, I'll be interested to see what you can come up with. |
Advert | |
|
09-11-2009, 12:17 PM | #18 | |
Liseuse Lover
Posts: 869
Karma: 1035404
Join Date: Jul 2008
Location: Netherlands
Device: PRS-505
|
Quote:
source (pref. HTML or RTF) > pacify.py > TeX document > PDF with little or no manual intervention. For perfectionists like the typographers here this will never be an option but for us joe schmoe users it would definitely yield a vastly better-looking book to read with little extra work. I've been toying with this process for the past week and the custom 505-formatted PDFs with full justification and proper hyphenation, my fave font and so on (all this from a properly chosen /preamble and document layout) are really worth it IMHO. |
|
09-11-2009, 12:18 PM | #19 | ||
Wizard
Posts: 1,790
Karma: 507333
Join Date: May 2009
Device: none
|
Quote:
Think of it as starting out with a LaTeX source code that can generate a reasonably good (probably via \sloppy and other such relaxations of strictness) document for any size... then you start looking at the output at the sizes you actually expect people to generate (5" page size, 6" page size, with 11pt and 14pt fonts--4 different versions, basically) and you eliminate any blatant errors. (e.g.: a quoted letter's signature line ending up a widow, quoted poetry being poorly line-broken due to an overly narrow page-size, et cetera) As oft-noted before, it took me a bit less than a full day's of work to generate 8 different versions of my The Art of War eBook... and frabjous is of the opinion that with the right set of commands/macros and some practice, it need not even take that long. Quote:
What the eBook maker might additionally do in the spirit of getting multiple fixed layout versions figured out for users in advance is... well, what I describe above in my answer to Kovid. - Ahi Last edited by ahi; 09-11-2009 at 12:21 PM. |
||
09-11-2009, 12:51 PM | #20 |
Wizard
Posts: 1,790
Karma: 507333
Join Date: May 2009
Device: none
|
Maybe I'll make a merging of Adam's Diary and Eve's Diary the sample eBook I'll play around with.
- Ahi |
Advert | |
|
09-11-2009, 12:58 PM | #21 | |
Wizard
Posts: 1,213
Karma: 12890
Join Date: Feb 2009
Location: Amherst, Massachusetts, USA
Device: Sony PRS-505
|
Quote:
Still, to get "arbitrary" sizing would be much more difficult. But again, this was my first attempt, and if the matter becomes routine, and we encourage people to actually develop new LaTeX packages especially for the task, then who knows how little time it might take? (Of course, my expectations are probably unreasonable high, but I think it's best to shoot for the moon, at least until you fail and know why you can't...) Last edited by frabjous; 09-11-2009 at 01:02 PM. |
|
09-11-2009, 01:04 PM | #22 | |||
Wizard
Posts: 1,790
Karma: 507333
Join Date: May 2009
Device: none
|
Quote:
Quote:
Truth be told, I'm sure the amount of manual attention an eBook should ideally receive (in preparation for multi-layout) will differ greatly based on the content and type of content... but yes, I think 7 hours (8 hour work day - 0.5 hour lunch - 2 * 0.25 hour breaks) is more than sufficient to take an average eBook's LaTeX source and customize it to look better (than the automation managed by itself) for a variety of page size and font size combinations. And, frankly, if 7 hours is too much time for a publisher to put into preparing an eBook... chances are it will show, even in the ePub edition. Quote:
1) Take the smallest screen size people are likely to read an eBook on (some ludicrous mini cellphone's tiny as hell screen, presumably) and put in conditional commands to relax LaTeX strictness sufficiently for screen sizes ranging from that to maybe 3" so that the result is readable. 2) Get a slightly less strictness-relaxed conditional command in there for sizes 3" - 6". 3) Get a slightly less strictness-relaxed conditional command in there for sizes 6"+. 4) Focus on specific screen-size/font combinations you expect people to use. Probably 5"/11pt, 6"/11pt, 5",14pt, and 6"/14pt are a good start. Eliminate blatant/obvious errors. 5) Perhaps put some conditional commands in there to do multi-column for screen-sizes larger than 9", if your text is such that it would benefit from that. And the result should be a LaTeX source that can generate PDF files that look at least as good, and probably better, than alternative formats on devices ranging from tiny cellphone screens, popular 5" and 6" eBook readers, and larger screened premium eBook readers too. Not the same PDF, of course... and the ones you gave personal attention to will definitely look better. But basically the above should cover pretty much everything of relevance... in not too many steps. - Ahi Last edited by ahi; 09-11-2009 at 01:13 PM. |
|||
09-11-2009, 01:22 PM | #23 | ||
Wizard
Posts: 1,213
Karma: 12890
Join Date: Feb 2009
Location: Amherst, Massachusetts, USA
Device: Sony PRS-505
|
Quote:
Quote:
I've never seen the exact specs on the 5" screens: they're at least the same ratio, right? I also agree that what we're after is not going to be, at least not for a long time, equal to what you'd get giving individual attention to each one, but still ought to be noticeably better than what we're getting with, e.g., the three ePub zoom factors on a Sony PRS-505... |
||
09-11-2009, 02:01 PM | #24 |
frumious Bandersnatch
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
For those devices that support screen rotation (Opus, iPhone...) are portrait and landscape to be considered two different "page sizes"?
|
09-11-2009, 02:13 PM | #25 | |||
Wizard
Posts: 1,790
Karma: 507333
Join Date: May 2009
Device: none
|
Quote:
90mm x 120mm is one page size (portrait) 120mm x 90mm is another (landscape) The fact that they have the same area is of no consequence, I think. I imagine it would only make sense to give special attention to landscape page sizes for larger screen devices... or if the content called for it for some special reason. Quote:
Quote:
- Ahi Last edited by ahi; 09-11-2009 at 02:16 PM. |
|||
09-11-2009, 02:40 PM | #26 |
Wizard
Posts: 1,213
Karma: 12890
Join Date: Feb 2009
Location: Amherst, Massachusetts, USA
Device: Sony PRS-505
|
To avoid duplicating the work of others, it looks like there's some useful information here from Hadrien from Feedbooks, who generates ebooks with LaTeX. It appears he uses a modified version of this html2latex tool for part of the task, so it might be a place to start.
|
09-11-2009, 02:43 PM | #27 | |
Wizard
Posts: 1,790
Karma: 507333
Join Date: May 2009
Device: none
|
Quote:
I'd also be curious what you think about the approach for pacify discussed between me and ekaser (in the pacify thread, obviously). - Ahi |
|
09-11-2009, 03:01 PM | #28 |
Wizard
Posts: 1,213
Karma: 12890
Join Date: Feb 2009
Location: Amherst, Massachusetts, USA
Device: Sony PRS-505
|
Interesting. Actually, I wish I had known about that Prince XML software sooner. That's apparently what is being used for the "Custom PDF" option on feedbooks, which I've just now tried, and am getting pretty good results.
My main complaint is that the one I tried did not have "smart quotes", but straight ones, but I take it that's a problem with the Gutenberg source. Here we have a working model of almost precisely what we're after, so it's worth poking into a bit... too bad Prince XML isn't open source. Funny thing is that I could swear the chapter titles are generated with LaTeX's fncychap package... maybe someone has ported it... Last edited by frabjous; 09-11-2009 at 03:03 PM. |
09-11-2009, 03:28 PM | #29 | |
Wizard
Posts: 1,790
Karma: 507333
Join Date: May 2009
Device: none
|
Quote:
And yeah, the lack of smart quotes is definitely a task for preprocessing. I guess pacify (and/or other scripts/programs like it) might become a #0 in the thread-starting triumvirate? - Ahi Last edited by ahi; 09-11-2009 at 03:30 PM. |
|
09-11-2009, 04:08 PM | #30 |
Wizard
Posts: 1,213
Karma: 12890
Join Date: Feb 2009
Location: Amherst, Massachusetts, USA
Device: Sony PRS-505
|
Well, I agree that feedbooks isn't giving you the same quality, but it doesn't offer nearly as many options as Prince allows. I expect there are some things, like math, it still won't do as well, since I don't see any sign of MathML (or similar) support, but I'll still be interested in what else it can do. For very simple, text-only, books, it may do as well as the other options we're considering, unless you really wow us with pacify when you get around to (X)HTML input...
Since I have HTML source of the Russell book as well, whose CSS I wrote and can edit, I'll try making a PDF with it using Prince when I get a chance and do some comparisons. I think the hyphenation algorithm is the same as TeX's. Unfortunately, grumble grumble, it wouldn't be as easy to install Prince on this computer as on my home computer, since they only offer a debian package for 32-bit linux, and I'm using 64-bit Ubuntu at the moment... |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Nook nook Source-Code durch B&N veröffentlicht | :D ominik | Andere Lesegeräte | 3 | 02-25-2010 05:14 AM |
Hello From Virginia & New Open Source Software | lprichar | Introduce Yourself | 3 | 06-06-2009 08:13 PM |
folder management & delete source file after conversion | Taantric | Calibre | 1 | 12-16-2008 01:10 AM |
Encrypting & Securing your data: Open- or Closed-Source? | Alexander Turcic | Lounge | 20 | 04-11-2004 02:51 PM |