Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 05-20-2013, 03:55 AM   #76
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,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
You cannot change (in the font) the line-spacing in relation to the em-size. But you can change the glyph sizes in relation to the em-size, and therefore change the line-spacing in relation to the glyph sizes.
Jellby is offline   Reply With Quote
Old 05-20-2013, 09:39 AM   #77
William Ockham
Enthusiast
William Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipse
 
Posts: 36
Karma: 8164
Join Date: Jul 2012
Device: Kindle Keyboard
Quote:
Originally Posted by Jellby View Post
You cannot change (in the font) the line-spacing in relation to the em-size. But you can change the glyph sizes in relation to the em-size, and therefore change the line-spacing in relation to the glyph sizes.
That's crazy. Let's say the distance between the floor and the ceiling in my house is three meters. Let's say my child is 1 meter tall at age 3. Fifteen years later, my child is 2 meters tall. Would you say that the height of my ceiling has changed in relation to my child? The distance between the ceiling and the bottom of the child's feet is the same. The distance between his head and the ceiling has changed, but that's not the definition of the height of the ceiling.

It doesn't matter whether you call it line-height, line-spacing, or leading, it does not change based on the metrics of the font.
William Ockham is offline   Reply With Quote
Advert
Old 05-20-2013, 10:52 AM   #78
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
You're arguing semantics, while others are describing changes to certain fonts that will make lines of text rendered in that font appear to have less empty space between them. The visual effect that the "font metric changers" are able to achieve is quantifiable. Call it whatever the hell you want.
DiapDealer is offline   Reply With Quote
Old 05-20-2013, 11:43 AM   #79
William Ockham
Enthusiast
William Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipse
 
Posts: 36
Karma: 8164
Join Date: Jul 2012
Device: Kindle Keyboard
Quote:
Originally Posted by DiapDealer View Post
You're arguing semantics, while others are describing changes to certain fonts that will make lines of text rendered in that font appear to have less empty space between them. The visual effect that the "font metric changers" are able to achieve is quantifiable. Call it whatever the hell you want.
No, we don't get to call it whatever the hell we want. We don't get to retreat from verifiably false claims by moving the goalposts. Specific claims were made and those claims are false.

Quote:
Originally Posted by JSWolf View Post
It's nothing to do with the user agent. It's not actually line height information in the font, but the metrics. I can change the metrics and change the amount of space between lines. I've done this for ADE & Kindle (KF8) and it's worked. So while technically correct that there is no line height information in a font, there are metrics that say how to render the space between lines and that can be changed.
It is not possible to "change the amount of space between the lines" by altering any of the font metrics. You cannot make that statement true by altering the definitions of the words involved. Whether we call it line-height, line spacing, or leading, the concept has had the same definition for 500 years. It's the distance from baseline to baseline. Understanding that is foundational to understanding the use of typography. Folks who don't understand line-height shouldn't be messing with font metrics.
William Ockham is offline   Reply With Quote
Old 05-20-2013, 12:15 PM   #80
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Whatever. You're being overly obtuse. Have at it.
DiapDealer is offline   Reply With Quote
Advert
Old 05-20-2013, 01:33 PM   #81
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: 74,015
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by William Ockham View Post
It is not possible to "change the amount of space between the lines" by altering any of the font metrics.
Yes you can. I've done it. Take a look at the two attached images. Both are the same font with the only difference being the metrics that I've edited.

So what would you call the fact that one has a grater space between the lines the other and all that was changed was some of the font metrics?
Attached Thumbnails
Click image for larger version

Name:	Metrics1.jpg
Views:	268
Size:	197.7 KB
ID:	106057   Click image for larger version

Name:	Metrics2.jpg
Views:	251
Size:	180.4 KB
ID:	106058  
JSWolf is offline   Reply With Quote
Old 05-20-2013, 03:41 PM   #82
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,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by William Ockham View Post
Would you say that the height of my ceiling has changed in relation to my child?
Yes, exactly

If I were your child I would indeed say that what was before a very high ceiling for me is now not high enough. Note that a reader (the human one) will often set the font size so that it looks right, he/she won't really care or notice if the nominal size is 12pt or 20pt, as long as the glyphs have the right size...
Jellby is offline   Reply With Quote
Old 05-20-2013, 04:09 PM   #83
William Ockham
Enthusiast
William Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipse
 
Posts: 36
Karma: 8164
Join Date: Jul 2012
Device: Kindle Keyboard
JSWolf, what font metrics did change to achieve that effect? I will happily admit that I'm wrong if you can send me a font that behaves this way.
William Ockham is offline   Reply With Quote
Old 05-20-2013, 04:51 PM   #84
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: 74,015
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by William Ockham View Post
JSWolf, what font metrics did change to achieve that effect? I will happily admit that I'm wrong if you can send me a font that behaves this way.
I changed Typo Line Gap and Line Gap. The original value was 0 for the first image and I changed it to 200 for the second image. These value work for ADE.

For KF8 I changed Typo Ascender/Typo Descender, Win Ascent/Win Descent, and Ascender/Descender.

All it takes is some experimenting to get the values you want so you don't have to use line height in CSS. It also makes KF8 usable as the line height displayed won't be too large.

Take a look at my modified Charis SIL versions. They have two different line heights when used on a Kindle with KF8.

https://www.mobileread.com/forums/sho...d.php?t=184056

Last edited by JSWolf; 07-18-2016 at 03:52 PM.
JSWolf is offline   Reply With Quote
Old 06-03-2013, 04:30 AM   #85
abeonis
eBook DIYer
abeonis began at the beginning.
 
abeonis's Avatar
 
Posts: 111
Karma: 10
Join Date: Oct 2012
Location: Europe
Device: K4, KF HD 8.9, Readium
The align attribute for img to define the vertical alignment doesn't pass FlightCrew ePub check. I use it in HTML coding to align a formula with the text: Exemple:

Code:
<p>La potencia <img src="potencia.gif" alt="Cálculo de potencia" align="middle" /> en vatios </p>
Generates an error message: "Attribute align is not declared for element img"

Last edited by abeonis; 06-03-2013 at 04:41 AM. Reason: Clarification
abeonis is offline   Reply With Quote
Old 06-03-2013, 05:28 AM   #86
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by abeonis View Post
The align attribute for img to define the vertical alignment doesn't pass FlightCrew ePub check. I use it in HTML coding to align a formula with the text: Exemple:

Code:
<p>La potencia <img src="potencia.gif" alt="Cálculo de potencia" align="middle" /> en vatios </p>
Generates an error message: "Attribute align is not declared for element img"
If you want to use inline styles, you'll have to use style="vertical-align:middle" instead of align="middle".
Doitsu is offline   Reply With Quote
Old 06-03-2013, 09:45 AM   #87
abeonis
eBook DIYer
abeonis began at the beginning.
 
abeonis's Avatar
 
Posts: 111
Karma: 10
Join Date: Oct 2012
Location: Europe
Device: K4, KF HD 8.9, Readium
Quote:
If you want to use inline styles, you'll have to use style="vertical-align:middle" instead of align="middle".
It works.

So ... WIDTH and HEIGHT attributes are supported. ALIGN attribute is not. Is there a place in internet where I can find all this information? I didn't find it with Google.
abeonis is offline   Reply With Quote
Old 06-03-2013, 10:28 AM   #88
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,809
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by abeonis View Post
It works.

So ... WIDTH and HEIGHT attributes are supported. ALIGN attribute is not. Is there a place in internet where I can find all this information? I didn't find it with Google.
width and height give the same kind of error for me in flight crew and have the same in line solution. Me, I just use a class=blalblah instead of a long multi-attribute inline
theducks is offline   Reply With Quote
Old 06-03-2013, 11:15 AM   #89
abeonis
eBook DIYer
abeonis began at the beginning.
 
abeonis's Avatar
 
Posts: 111
Karma: 10
Join Date: Oct 2012
Location: Europe
Device: K4, KF HD 8.9, Readium
width and height attributes don't give me any error in FliightCrew. I am OK to put everything in a class except for width and height, I don't want to create a class each time I use an image with different dimensions.
abeonis is offline   Reply With Quote
Old 06-03-2013, 11:26 AM   #90
SBT
Fanatic
SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.
 
SBT's Avatar
 
Posts: 580
Karma: 810184
Join Date: Sep 2010
Location: Norway
Device: prs-t1, tablet, Nook Simple, assorted kindles, iPad
Quote:
Originally Posted by abeonis View Post
I am OK to put everything in a class except for width and height, I don't want to create a class each time I use an image with different dimensions.
Personally, I prefer to create an id for every image, and specify the size in the style sheet. Then nobody can accuse me of not separating content and display attributes Somehow it also seems tidier to lump all image attributes together in one corner of the stylesheet.
SBT is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error: "can only concatenate list (not "unicode") to list" bmuesse Library Management 2 01-11-2013 03:50 PM
epub "padding left" to mobi "block quote" conversion issue 1611mac Conversion 3 01-11-2012 02:10 PM
Convertion error txt to epub "IndexError: list index out of range" economix Conversion 6 12-25-2011 06:14 AM
How to remove "Fully read" books from "Last Open" list? pjeanetta PocketBook 4 12-08-2010 10:30 AM
Suggestion: Don't set "color" tag in .epub css McAlsop Calibre 16 06-17-2010 09:13 AM


All times are GMT -4. The time now is 11:51 AM.


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