Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 01-31-2010, 05:49 AM   #16
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
Quote:
Originally Posted by brewt View Post
When I open the file in Sigil, I'm not seeing the embeddedness of the fonts that I see in ADE.
This is a know problem with Qt's embedded WebKit. Font variants are not displayed. Regular fonts should display fine, and even font variants on some occasions, but usually not. This is the major reason why font embedding is currently not supported in Sigil. I was hoping they'd fix it for the 4.6 release of Qt, but no such luck.

Sometime after Sigil 0.2.0, I'll be forking Qt and working on this directly.

Just FYI, If you're working with InDesign too, bear in mind it doesn't report the fonts it embeds in epubs in the manifest section of the OPF. And then Sigil doesn't load those fonts during import, since they're not declared.

I just took a look at your "obvious.epub" and yeah, the font files are not reported in the OPF manifest. Sigil then displays the font in Book View but only because it can find the font on the system. The font is not in the book. You then export to epub and open it in ADE, and ADE can't load the font because it isn't there, and ADE doesn't check the system for missing fonts.

From what I hear, InDesign's current epub export functionality is pretty terrible.

Last edited by Valloric; 01-31-2010 at 05:56 AM.
Valloric is offline   Reply With Quote
Old 01-31-2010, 09:12 AM   #17
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,796
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Yes, the embedded fonts look fine with the txtr app.
JSWolf is offline   Reply With Quote
Advert
Old 01-31-2010, 02:03 PM   #18
brewt
Boo-Frickety-Hoo-Erizer
brewt will become famous soon enoughbrewt will become famous soon enoughbrewt will become famous soon enoughbrewt will become famous soon enoughbrewt will become famous soon enoughbrewt will become famous soon enough
 
brewt's Avatar
 
Posts: 251
Karma: 686
Join Date: Oct 2007
Device: Kobo Glo HD!
In the manifest portion of the obvious epub, I agree, I don't see fonts showing up there. Indesign reported that "not all fonts could be embedded", which apparently botched several things in the output file.

In the manifest of the embedded test 2 epub, I am seeing fonts declared:
Quote:
<item href="OEBPS/Fonts/BemboStd.otf" id="added1" media-type="application/x-font-opentype"/>
And yeah, it dawned on me later that the reason I could see the fonts in sigil was that they were installed on my machine.

So the obvious example turned out to be not-so-obvious.

The Indesign-built epubs can be functional, but it's much harder than I want it to be. Hyperlinks are a bitch in indesign, and the obvious things you'd think would just work (like picture placements, text wraps, drop caps, multiple multi-layer tocs) either just plain don't, or don't work as expected. And there doesn't seem to be an indicator/guide that says what works and what doesn't.

I think that's all because of the approach adobe took into indesign: print first, epub should work like print, print forever, amen. Still causes me more problems than it solves.

And an epub is something between print and the web: it's a new thing!

-bjc
brewt is offline   Reply With Quote
Old 01-31-2010, 06:39 PM   #19
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
Quote:
Originally Posted by brewt View Post
And an epub is something between print and the web: it's a new thing!
Actually epub is more like 99% web and 1% print. OPS documents are pure XHTML + CSS, with mostly trivial modifications.

What makes epub good is the stuff around the OPS documents: the OPF metadata, the NCX TOC etc. All this put together makes one very good standard.
Valloric is offline   Reply With Quote
Old 02-01-2010, 10:05 AM   #20
brewt
Boo-Frickety-Hoo-Erizer
brewt will become famous soon enoughbrewt will become famous soon enoughbrewt will become famous soon enoughbrewt will become famous soon enoughbrewt will become famous soon enoughbrewt will become famous soon enough
 
brewt's Avatar
 
Posts: 251
Karma: 686
Join Date: Oct 2007
Device: Kobo Glo HD!
zuluexpress: nope.
freda: nope.
fbreader: nope.
mobipocket-translated: nope.
Coolreader: nope.

I don't have much luck getting any of my css to work in those, either (darn it).

Anyone have android?

-bjc

Last edited by brewt; 02-01-2010 at 10:18 AM.
brewt is offline   Reply With Quote
Advert
Old 02-11-2010, 08:35 AM   #21
ondabeach
Groupie
ondabeach doesn't litterondabeach doesn't litter
 
ondabeach's Avatar
 
Posts: 193
Karma: 192
Join Date: Apr 2009
Location: Vanuatu
Device: HTC touch Diamond, Ipaq 3115
Quote:
Originally Posted by brewt View Post
zuluexpress: nope.
freda: nope.
fbreader: nope.
mobipocket-translated: nope.
Coolreader: nope.

I don't have much luck getting any of my css to work in those, either (darn it).
Hi brewt, it's ondabeach, the developer of ZuluReader. ZR does use CSS, however I haven't added support for all possible html tags.

I don't use any off the shelf components or dll's for deciphering any part of an ePUB. My code literally examines one character at a time and works out what it all means. Then actually 'paints' it all onto the screen, one character or image at a time. So I have blocks of code for extracting and parsing all the bits of an ePUB like the Meta Data, TOC, Mainfest CSS etc. That means that I have unparalleled control over how an eBook displays based on it's content.

If you email me a sample ePub with CSS that ZuluReader is unresponsive to, and a description of the discrepancy between what is expected and what you get, I will, as Jean Luc Picard would say..... "Make it so!"

Cheers.
ondabeach is offline   Reply With Quote
Old 02-13-2010, 03:19 AM   #22
Jim Chapman
Addict
Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.
 
Posts: 310
Karma: 2025434
Join Date: Oct 2009
Device: Lumia 950 Phone
[QUOTE=brewt;767296]... freda: nope.

I don't have much luck getting any of my css to work in those, either (darn it).
/QUOTE]

By design. Freda ignores the author's view on font setup, and lets the reader decide what will work best for them (I assume that the author didn't design the book's appearance with the limitations of a WinMo phone screen in mind).

As for style sheets, they should generally work in Freda, though there are some limitations (the imminent v1.1 has fewer limitations). If there's a particular sheet that you're trying to get working, please email me details (home@jim-chapman.net) and I will investigate.

Thanks,

Jim
Jim Chapman is offline   Reply With Quote
Old 02-13-2010, 09:56 AM   #23
brewt
Boo-Frickety-Hoo-Erizer
brewt will become famous soon enoughbrewt will become famous soon enoughbrewt will become famous soon enoughbrewt will become famous soon enoughbrewt will become famous soon enoughbrewt will become famous soon enough
 
brewt's Avatar
 
Posts: 251
Karma: 686
Join Date: Oct 2007
Device: Kobo Glo HD!
As this seems to be devolving from an embeddment thread to a css thread, let me first of all apologize to the developers who took my off-hand remark on my own problems with css to heart, as no offense was intended at all. All the developers' efforts are way more than I could do myself, and my appreciation of their efforts and generosity truly runs deep. Really really.

My css problems are largely my own. Neophyte: here.

A lot of my troubles, I understand, are stemmed from the outrageously complex process I adopted, per se:

1) Start in Word 2007. I've built a Quickstyle set that has all the (current) permutations I'm interested in. I'm mapping to the basic fonts on the Sony Reader 700. Proves handy, as their metrics are close to things like times new roman and arial (and so fairly universal). Also, that's what's in the house. Edit until happy.
2) Save as HTM-Filtered, utf-8 encoding.
3) Open in DreamWeaver CS4.
4) Use Dreamweaver's "Clean up Word" function, then strip out word-implanted css <style>--</style> at top of file.
5) Attach styles.css, which happen to match the Quickstyle set in both style-call-names, and attributes. Well, close enough.
6) Convert to XHTML1.1 out of dreamweaver. Save.
7) import into calibre, add metadata, cover graphics, etc, render epub.

The gauntlet I run through here is replicable, and with enough supporting visual basic scripts in word, fairly fast. So I can go back and fix in word, redo everything in the steps above and have it come out: fixed.

I've got certain attribute calls in the css joined up at the top - makes it easier to change font sets (just once or twice, as opposed to several dozen places), and to factor out the left-quote variants. Mobipocket does not have the horizontal resolution that epub does, which is part of my process - to also make kindle-ready stuff. By changing a couple lines in the css, and re-importing the file into calibre, I can render the file both ways with an acceptable amount of fuss.

All this horsing around is the warmups for embedding/encrypting fonts outside of indesign. My recent failure on encryption have been commented to the encryption-script developer. And yes, I'm doing something wrong there, too.

Attached is the word 2007 quickstyleset, post-dreamweaver source html+css, calibre-generated source zip, and resultant epub. No font embedding. Still working on drop caps - hard to universalize without scripting in epub (ignore them, please).

Oh, on left-quote variants. The typography sites, books and blogs I've been perusing all say the same thing: put the left quote marks in the margin, so the 1st actual letters of the paragraphs line up vertically. And they are right - it is nicer to look at. And any little tweak we can get out of epub, we should take advantage of.

How it appears in ADE is what I keep hoping I can reproduce into a Windows Mobile Epub reader. Current softwares are continuing to improve, and I pray they do so until we are all happy.

-bjc
Attached Files
File Type: zip BasicSet-Sony9 .zip (33.0 KB, 269 views)
brewt is offline   Reply With Quote
Old 02-13-2010, 12:31 PM   #24
brewt
Boo-Frickety-Hoo-Erizer
brewt will become famous soon enoughbrewt will become famous soon enoughbrewt will become famous soon enoughbrewt will become famous soon enoughbrewt will become famous soon enoughbrewt will become famous soon enough
 
brewt's Avatar
 
Posts: 251
Karma: 686
Join Date: Oct 2007
Device: Kobo Glo HD!
Gawd, somebody stop me. Guess I'm going to carrry on a little while more, 'cause that's just what I do.

Attached here is a mobipocket version of my base model file, created with mobipocketcreator.

I know, how dare I bring up mobi here in the epub board. There is a method to my madness.

Looking at this with Real MobiPocket, many of the things in my epub version work. Many do not:
1) Drop caps. Duh.
2) Text wrapping around pictures. Not demoed here, but at least I haven't gotten it to work.
3) Horizontal Resolution to compensate for quotes. Mobi is walled up at 1em, 2em, 3em horizontally. Better gradation vertically, but not as good as epub on the left-right.
4) And sure, my font calls are probably not on your machine, so there is font substitution on anybody elses device.
5) Embedding fonts doesn't either, not demoed here.

However: Multiple font calls, lots of type sizes, text decoration, the aforementioned vertical resolution, it goes on, do work. Not to mention dynamic dictionaries, exportable annotations, the usual mobi selling points.

What I keep hoping for is a something-better than Mobi in Windows mobile. And yes, I am reading on a WinMo screen about the size of 2 postage stamps. I'd really like to abandon Mobi, but until the something-better happens, for my modern lifestyle, I just can't bring myself to.

Darn it.

-bjc
Attached Files
File Type: prc SonyReader.prc (13.1 KB, 265 views)
brewt is offline   Reply With Quote
Old 02-19-2010, 11:42 AM   #25
sjkramer
Connoisseur
sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.
 
Posts: 68
Karma: 526028
Join Date: Nov 2009
Location: New York, NY
Device: iphone
brewt: I know that you're anti-export from InDesign, but this does sound like an awful lot of steps to go through. Maybe you should give it one more try—just for fun. On the other hand, I know that what sounds complicated (to wit: my own seemingly crazy process) can become second nature.
sjkramer is offline   Reply With Quote
Old 02-19-2010, 01:09 PM   #26
charleski
Wizard
charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.
 
Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
Quote:
Originally Posted by brewt View Post
I had thought I had seen ADE adding weight to the embedded fonts in other endeavors, and it looks like it still does. Garamond and Minion don't seem as lithe as I think they should: just fine, though, in Calibre and Epubreader/Firefox. A Reader doesn't have quite the weight added that ADE does, but it's still heavier (at least, to my eye). I still like Minion.
eInk tends to add a small amount of weight to the font (not sure if this is by design - to aid legibility - or a result of the anti-aliasing used), and I think ADE is trying to simulate that. The result is that 'book' fonts, which are slightly heavier, end up being a bit too heavy on a Sony Reader. Regular-weight Garamond looks fine though.
charleski is offline   Reply With Quote
Old 02-21-2010, 10:05 AM   #27
brewt
Boo-Frickety-Hoo-Erizer
brewt will become famous soon enoughbrewt will become famous soon enoughbrewt will become famous soon enoughbrewt will become famous soon enoughbrewt will become famous soon enoughbrewt will become famous soon enough
 
brewt's Avatar
 
Posts: 251
Karma: 686
Join Date: Oct 2007
Device: Kobo Glo HD!
Quote:
Originally Posted by sjkramer View Post
brewt: I know that you're anti-export from InDesign, but this does sound like an awful lot of steps to go through. Maybe you should give it one more try—just for fun. On the other hand, I know that what sounds complicated (to wit: my own seemingly crazy process) can become second nature.
The biggest trouble I have with InDesign is that when I want to make some minor changes, I often end up starting ALL the way over, from scratch.

For instance, one of the biggest issues I have with InDesign is with hyperlinking. Multi-document hyperlinking via Word is fairly transparent, and the hyperlinks survive the process, end to end.

Let's take for the example, a multi-file, heavily hyperlinked book of books (mostly what I do). The Complete Works of, you know, So and So.

If I want to change style sets, which I do often, it's a matter of creating the quickstyle set that does what I want (say, changing Times to Minion), adapting the css, and run the gauntlet.

Doing the same thing in Indesign, if I start with Word, my hyperlinks all die on the transition back into ID and all need to be rebuilt, one at a time, by hand.

If I restyle in Indesign, I have to hand redo every file (on a multi-file), and, because I'm no good at Indesign, every paragraph, too.

THAT, to me, is the hard way. And God Save Me if I come up with a new component, say, a different way to handle poetry in the book.

So maybe the problem is, as always, me, in that I consider my catalog a continual work in process and a learning experience, because as I continue to develop ideas, I tend to want to retro-fit them to previous efforts. And, I want multiple output formats. Epub & Kindle are both necessary outputs for me.

Indesign is Ok for one file = 1 output book; if you can afford it and are willing to live with the limitations Adobe thought of 3 years ago, by all means, do it. However, The Complete Works of Jane Austen, with footnotes, is more effort via Indesign than I am willing to expend. Especially since I can't make up my mind between Minion, Garamond, Caslon, or Kepler, or just leaving it at defaults. My process will make those 5 example outputs less of a chore.

And no, I'm not done with that; lots of fiddling around still to do.

-bjc
brewt is offline   Reply With Quote
Old 02-21-2010, 10:20 AM   #28
brewt
Boo-Frickety-Hoo-Erizer
brewt will become famous soon enoughbrewt will become famous soon enoughbrewt will become famous soon enoughbrewt will become famous soon enoughbrewt will become famous soon enoughbrewt will become famous soon enough
 
brewt's Avatar
 
Posts: 251
Karma: 686
Join Date: Oct 2007
Device: Kobo Glo HD!
Quote:
Originally Posted by charleski View Post
eInk tends to add a small amount of weight to the font (not sure if this is by design - to aid legibility - or a result of the anti-aliasing used), and I think ADE is trying to simulate that. The result is that 'book' fonts, which are slightly heavier, end up being a bit too heavy on a Sony Reader. Regular-weight Garamond looks fine though.
You know what the difference might be? ClearType. Things like Word & Indesign, I'm reasonably sure, use Cleartype for their screen-font-rendering engines. I'll betcha ADE doesn't.

-bjc
Attached Thumbnails
Click image for larger version

Name:	lithe.jpg
Views:	342
Size:	866.8 KB
ID:	46065  
brewt is offline   Reply With Quote
Old 02-24-2010, 02:59 PM   #29
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
Quote:
Originally Posted by brewt View Post
You know what the difference might be? ClearType. Things like Word & Indesign, I'm reasonably sure, use Cleartype for their screen-font-rendering engines. I'll betcha ADE doesn't.

-bjc
ClearType only works for text that's rendered on the screen using Windows API's (or API's that in turn use Windows API's). ADE is a flash/flex application, and that AFAIK doesn't use the Windows API's for text rendering.
Valloric is offline   Reply With Quote
Old 02-28-2010, 11:08 PM   #30
bobcdy
Fanatic
bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.
 
bobcdy's Avatar
 
Posts: 527
Karma: 1048576
Join Date: May 2009
Device: bebook; prs-950; nook simple touch; HTC Jetstream tablet
Brewt,
On post #5 you mentioned you encrypted the fonts in your test epub. Perhaps I misunderstood this - I unzipped the epub file and looked at a couple of the fonts with 'FontCreator' and found that there did not seem to be any encryption that the font program was aware of. At least I could change the font characters' features (stretched the B in Ellington) without any trouble and saved it with new name.
bobcdy is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can it embed fonts? chalimac Kobo Reader 1 06-27-2017 05:46 PM
Best Practice: Embed Fonts?? luthar28 ePub 37 11-01-2011 04:16 AM
Is it possible to UN embed fonts? lmronan Sigil 14 06-04-2010 09:26 AM
how to embed unicode font atu1303 LRF 8 08-21-2009 10:06 PM
how to embed title and author gteague Amazon Kindle 3 11-26-2007 09:45 AM


All times are GMT -4. The time now is 01:26 PM.


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