View Full Version : XSL, ADE & Readers


brewt
02-08-2011, 11:39 AM
Usually, the mention of XSL around here gets one spat at - I'll hold my face up strong and proud for the spitter-want-er-do-ers.

One of the features/complaints abut ADE is that it supports XSL:FO, as a way to extend the limitations that the epub spec put down for css. As it hasn't been officially blessed the the EPUB Spec Crowd, it is often looked down upon by the purists who foresee doom for those who use it, as there is, supposedly, a day out there that is will no longer function, rendering all that work useless as the new spec get written into the epub rendering softwares, and oh my gosh, where's my spittoon?

So, the questions are:

Just how much of the XSL spec is achievable with ADE?
Are there cool things we can do with the conditional formatting there (supposing we could survive the spit)?
Are there are readers that are based on ADE that support it as well? And, what are their limitations?

Closing my eyes, ready,
-brewt

Jellby
02-08-2011, 01:44 PM
So far, I've only used it to "hide" elements that are not supported by ADE, in particular the "display: oeb-page-head", which should not be included in the text flow, yet ADE does. I explained the trick here (http://www.mobileread.com/forums/showthread.php?p=744547), it works fine in my Cybook.

brewt
02-09-2011, 11:55 AM
So, I wonder if I can use it to detect the reader (beyond ADE-edness). Because there are some font tricks I want to use, but, barring embeddment, I'd have to know what the fonts on the target device actually are, and adjust the spacings in css accordingly. If the ADE engine can report that, and adjust some numbers in the css for me, lazy bum I am, not wanting to re-render device-specifically, my mood would improve.
My embedder works fine; my font encrypter is on the fritz, so I'm hesitant to distribute stuff with unencrypted fonts; real fonts, not public domain fonts. Yeah, I know - I've got my glasses on, go ahead.
-b

Jellby
02-09-2011, 01:24 PM
I don't think you can detect the font used. Even if you could detect the reader, some readers let you change the font (e.g. the Cybooks), so there's no guarantee it's using the "default" font. You are already setting the spacing in "em" units, aren't you?

brewt
02-10-2011, 12:22 AM
Yes, "em"-ming fine, thanks. But as my encrypter is still on the fritz, embedding is a for-my-eyes-only affair, as I'm reluctant to ship some embedded stuff out without it. I could go indesign, but I still don't like it - would rather use calibre/dreamweaver/word - it suits me. So I'll still wait until I can wise up on the encryption problem.
Murmph.
-b