Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 07-21-2010, 06:01 AM   #16
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
One thing that's interesting about all this is that it shows the BeBook must be doing part of its scaling by redefining the size of a point. On ADE the 'bad scaling' example using font-sizes specified in points doesn't scale at all, whereas it looks like when switching from M to larger sizes the BeBook changes the number of pixels making up a point. So not a bug as such, just slightly strange behaviour.
charleski is offline   Reply With Quote
Old 07-21-2010, 07:06 AM   #17
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,514
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by charleski View Post
it looks like when switching from M to larger sizes the BeBook changes the number of pixels making up a point. So not a bug as such, just slightly strange behaviour.
If that's the case, it is a bug. A point is a point is a point, no matter the number of pixels, it is supposed to be an absolute unit, equal to 1/72 of an inch. Changing the definition of absolute units can only be valid as a shortcut for zooming/magnifying, but not for changing font size.

What happens with margins or image sizes defined in terms of points (or inches or millimetres)?
Jellby is offline   Reply With Quote
Advert
Old 07-21-2010, 10:45 AM   #18
Dellaster
本の虫
Dellaster has a complete set of Star Wars action figures.Dellaster has a complete set of Star Wars action figures.Dellaster has a complete set of Star Wars action figures.Dellaster has a complete set of Star Wars action figures.
 
Dellaster's Avatar
 
Posts: 242
Karma: 344
Join Date: May 2008
Location: USA
Device: Kindle3, DXG, Fire · iPad, iPod
Quote:
Originally Posted by Jellby View Post
But I don't think there's anything capable of cleaning up useless <span>s, or the proliferation of almost identical classes (one with 9pt indent, one with 10pt indent, etc.)
Not if you want to preserve that information, no. The method I described homogenizes the markup and such variations are lost. Most paragraphs are nothing but <p>text</p>. The retained variations include centering, bolds, italics, and headers. A centered paragraph with two font sizes changes like so:

From this -
Code:
<p class=MsoNormal align=center style='text-align:center;text-autospace:none'><span
style='font-size:9.0pt;mso-bidi-font-size:18.0pt;mso-bidi-font-family:Georgia'>All
rights reserved including the right of </span><span style='mso-bidi-font-size:
18.0pt;mso-bidi-font-family:Georgia'>reproduction in whole</span><span
style='font-size:9.0pt;mso-bidi-font-size:18.0pt;mso-bidi-font-family:Georgia'> 
or in part in any form.</span></p>
To this -
Code:
<p class="c1">All rights reserved including the right of reproduction in whole or in part in any form.</p>
With the CSS being merely -
Code:
 p.c1 {text-align: center}
Which works fine for me with works of fiction but perhaps not for someone who wants to keep that formatting information.

Ted
Dellaster is offline   Reply With Quote
Old 07-22-2010, 03:23 AM   #19
shall1028
Nameless Being
 
Quote:
Originally Posted by Jellby View Post
A point is a point is a point, no matter the number of pixels, it is supposed to be an absolute unit, equal to 1/72 of an inch.
If it is a Postscript point maybe but sometimes a point is not always a point: http://en.wikipedia.org/wiki/Point_(typography)

Of course a millimeter has not always been a millimeter either.
  Reply With Quote
Old 07-22-2010, 05:11 AM   #20
GeoffC
Chocolate Grasshopper ...
GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.
 
GeoffC's Avatar
 
Posts: 27,600
Karma: 20821184
Join Date: Mar 2008
Location: Scotland
Device: Muse HD , Cybook Gen3 , Pocketbook 302 (Black) , Nexus 10: wife has PW
sometimes a millimeter is a millimetre ......
GeoffC is offline   Reply With Quote
Advert
Old 07-22-2010, 06:08 AM   #21
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,514
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by shall1028 View Post
If it is a Postscript point maybe but sometimes a point is not always a point: http://en.wikipedia.org/wiki/Point_(typography)
But in the context of ePUB, a point is a CSS point, and the CSS specification defines a point as:

pt: points — the points used by CSS 2.1 are equal to 1/72nd of an inch.
Jellby is offline   Reply With Quote
Old 07-22-2010, 03:49 PM   #22
shall1028
Nameless Being
 
Wink

Quote:
Originally Posted by GeoffC View Post
sometimes a millimeter is a millimetre ......
it is also milímetro, milimetër, milimetar, milimetras and my favo(u)rite milliméadar

Last edited by shall1028; 07-23-2010 at 03:08 PM. Reason: Duplicate works appeared via ???
  Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Font Sizes Roya Sigil 7 06-18-2010 09:28 AM
Font sizes DaleDe Sigil 8 03-13-2010 05:52 PM
Font Sizes brewt Amazon Kindle 9 06-12-2009 03:03 PM
Font Sizes on DX wallcraft Amazon Kindle 1 05-06-2009 11:08 PM
Only five font sizes in K2? KlondikeGeoff Amazon Kindle 6 02-25-2009 10:21 PM


All times are GMT -4. The time now is 02:27 PM.


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