Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > Workshop

Notices

Reply
 
Thread Tools Search this Thread
Old 12-19-2015, 04:19 AM   #16
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,689
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by JSWolf View Post
But in ePub, it doesn't work.
Nope. It even works with ADE 1.7.
Doitsu is offline   Reply With Quote
Old 12-19-2015, 04:26 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,249
Karma: 145488788
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 Doitsu View Post
Nope. It even works with ADE 1.7.
It does not work with ADE 2.0.1 or ADE 3.x.. I just added font-weight: 500 to p in the CSS and the font is displayed as normal. It has no more weight than if the font-weight wasn't there.

So don't use numbers with font-weight. They don't work.
JSWolf is offline   Reply With Quote
Advert
Old 12-19-2015, 04:50 AM   #18
rubeus
Banned
rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.
 
Posts: 272
Karma: 1224588
Join Date: Sep 2014
Device: Sony PRS 650
They are working. They are working on my Sony PRS 650, they are working with Mantano, they are working with ADE2, ith RMSDK, with Sigil preview and and and. If they are not working on your devices, your device doesnt supprt this or you made another error. and font-weight bold isnt equivalewnt to 500. bold is 700.

Again, you are wrong. You are wrong saying that empty spans are autmatically useless and dont do anything in the styling, and you are wrong that numerical font weights do not works with ADE or ADE based devices.
rubeus is offline   Reply With Quote
Old 12-19-2015, 04:52 AM   #19
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,689
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by JSWolf View Post
It does not work with ADE 2.0.1 or ADE 3.x.. I just added font-weight: 500 to p in the CSS and the font is displayed as normal. It has no more weight than if the font-weight wasn't there.
Had you actually read the specs that I've linked to you'd found out that the numerical equivalent of "bold" is 700. I.e., any value between 400 and 600 is interpreted as "normal." (rubeus has never claimed that 500 is equivalent to "bold.")

If you still don't believe me try the following code:

Spoiler:
Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title></title>
  <style type="text/css">
/*<![CDATA[*/
  span {font-weight: 700; }
  /*]]>*/
  </style>
</head>

<body>
  <h3>font-weight test</h3>

  <p>This is <span>bold text</span>.</p>
</body>
</html>
Doitsu is offline   Reply With Quote
Old 12-19-2015, 05:00 AM   #20
sbin
Voracious reader
sbin is less competitive than you.sbin is less competitive than you.sbin is less competitive than you.sbin is less competitive than you.sbin is less competitive than you.sbin is less competitive than you.sbin is less competitive than you.sbin is less competitive than you.sbin is less competitive than you.sbin is less competitive than you.sbin is less competitive than you.
 
sbin's Avatar
 
Posts: 56
Karma: 14644
Join Date: Oct 2009
Device: Kobo Aura One, Sony PRS T2, iPhone 6, Cybook Orizon, Cybook Gen3
Quote:
Originally Posted by Doitsu View Post
It appears that I ran my tests with a newer version than the one attached to the Incremental IDs topic.
I've attached a new version (0.3), that should use prettyprint_xhtml() where available. (To be on the safe side, I've also removed the regular BS4 prettyprint() function.)

@sbin: Please download and test the updated version. It shouldn't insert unwanted spaces.
Downloaded and tested, it works perfectly!
Thank you, you saved me a lot of work
sbin is offline   Reply With Quote
Advert
Old 12-19-2015, 05:34 AM   #21
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,249
Karma: 145488788
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 rubeus View Post
They are working. They are working on my Sony PRS 650, they are working with Mantano, they are working with ADE2, ith RMSDK, with Sigil preview and and and. If they are not working on your devices, your device doesnt supprt this or you made another error. and font-weight bold isnt equivalewnt to 500. bold is 700.

Again, you are wrong. You are wrong saying that empty spans are autmatically useless and dont do anything in the styling, and you are wrong that numerical font weights do not works with ADE or ADE based devices.
In RMDSK (ADE), empty spans don't do anything. They just bloat the code. You can take them out and the ePub will still display exactly the same.

The way font-weight works with numbers is to be able to change the weight not just normal and bold. So no, it doesn't actually work as intended. 500 should have more weight than 400 (normal) and 600 should have more weight than 500, but less than 500. 900 should have more weight than bold. So if these things do not happen, then it does not work and it doesn't happen so it does not work.

http://www.w3schools.com/cssref/pr_font_weight.asp

Last edited by JSWolf; 12-19-2015 at 05:44 AM.
JSWolf is offline   Reply With Quote
Old 12-19-2015, 05:37 AM   #22
rubeus
Banned
rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.
 
Posts: 272
Karma: 1224588
Join Date: Sep 2014
Device: Sony PRS 650
Again you are wrong. Check doirsu code example before giving any fault statements here. Or use one of my examples. Empty spans do have an effect if sthere are css rules matching it. thats a fact, thats in the specs, that can be proven, it works in epubs, it works in ADE and RMSDK. Sorry to say that, but you dont have a glue about that.
rubeus is offline   Reply With Quote
Old 12-19-2015, 05:45 AM   #23
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,249
Karma: 145488788
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 rubeus View Post
Again you are wrong. Check doirsu code example before giving any fault statements here. Or use one of my examples. Empty spans do have an effect if sthere are css rules matching it. thats a fact, thats in the specs, that can be proven, it works in epubs, it works in ADE and RMSDK. Sorry to say that, but you dont have a glue about that.
I know how spans work in ADE. Have they been defined in CSS? If not, then they are empty spans that have no use in ADE. I've also seen many eBooks made with empty divs as well and the divs have no use just like the spans.
JSWolf is offline   Reply With Quote
Old 12-19-2015, 11:34 AM   #24
rubeus
Banned
rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.
 
Posts: 272
Karma: 1224588
Join Date: Sep 2014
Device: Sony PRS 650
Each and every word you're posting shows that you dont know how it works, Doitsu and me have presented working examples. You didnt try them out. But, if it makes you happy, just believe in that. I'm outta here now of this nonsense.
rubeus is offline   Reply With Quote
Old 12-19-2015, 01:46 PM   #25
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by JSWolf View Post
In RMDSK (ADE), empty spans don't do anything. They just bloat the code. You can take them out and the ePub will still display exactly the same.

The way font-weight works with numbers is to be able to change the weight not just normal and bold. So no, it doesn't actually work as intended. 500 should have more weight than 400 (normal) and 600 should have more weight than 500, but less than 500. 900 should have more weight than bold. So if these things do not happen, then it does not work and it doesn't happen so it does not work.

http://www.w3schools.com/cssref/pr_font_weight.asp
Not to be a spoilsport, Jon, BUT: that only works (bold, bolder, or 500, 700, etc.) if the font supports it. Many, many fonts have a single bold typeface. If you have one bold typeface, you can type bold and bolder from now until hell freezes over, and naught will happen. If you have a real family font--so that you have several levels of bold, sure, that works.

Hitch
Hitch is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Image slider in iBooks (NOT iBooks Author) stevenc ePub 8 07-01-2013 12:28 PM
Why all the spans in rtf to epub conversions? Berzelius Conversion 6 12-31-2012 06:19 PM
No class <spans> dynabook ePub 5 11-02-2012 10:42 AM
Apple's iBooks 2, iBooks Author: Bids to own publishing's future wannabee News 0 01-19-2012 07:33 PM
Kindle Life Spans sirmaru Amazon Kindle 11 12-24-2011 12:31 PM


All times are GMT -4. The time now is 04:47 AM.


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