08-01-2011, 07:07 PM
This material was provided by the author for educational use. For that reason, this book only provides a small sample of the actual content of the book. Just enough content was used to highlight the use of specialized formatting contained within. The author has granted us permission to use this file for these purposes and these purposes only.
This book contains a map used to navigate this book. The map was made using SVG and is best viewed on the iPad.
08-01-2011, 09:01 PM
It would have been nice if you would have given us a bit more detail on the contents of the book. Yes, I could download it to find out. But if it's something I'm not interested in, the download was a waste of time.
08-02-2011, 06:29 AM
Interesting use of xlinks in an svg, it's a nice example and thanks for sharing it.
It works in any reader that's svg-compliant, though you really need one that has easy access to a 'back' command. The one thing I'd change would be the viewport definition on the second map, so that it will scale nicely on different devices:
<svg id="page25" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1024 592" width="100%">
[Edit]Oh, and looking at the css, surely it would be a better idea to set the left and right margin in points if you want an absolute measure. Pixels makes it dependent on the resolution of the reading device, which everyone is hoping will change in the future.
08-02-2011, 08:38 AM
Pixels makes it dependent on the resolution of the reading device, which everyone is hoping will change in the future.
Oddly, it's not exactly as we would think. The "CSS pixel" is not necessarily the same as a screen pixel (see here (http://en.wikibooks.org/wiki/Cascading_Style_Sheets/Lengths_and_Units), for instance). Whether future reading systems will be CSS-compliant is a different matter, though.
08-02-2011, 11:40 AM
Yeah, you're right. I keep forgetting that css 'pixels' don't actually refer to pixels at all. And Apple presumably applies some sort of scaling convention to their css viewports, so it's really not an issue. I just get uneasy whenever I see the term 'pixels' after dealing with them in other contexts where it actually means what it ought to.