Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 03-28-2016, 09:20 PM   #1
bookman156
Addict
bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.
 
Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
Best way to do italic and bold

In the EPUB I am editing from a publisher they have used span classes for all italic and bold, which seems crazy to me, but not worth altering now. Is there any reason anyone can think of when span classes would be good for that? Or is it perhaps a PDF-to-EPUB conversion thing (I believe they made the EPUB from a scan of the book).

In Sigil I notice <i> tags are used instead of <em>, and <b> instead of <strong>. The tags <i> and <b> seem very old-fashioned to me, in terms of web design, but is it an EPUB thing? If I were making an EPUB from scratch myself I'd like to use <em> and <strong>. Is that allowed?

Last edited by bookman156; 03-28-2016 at 09:25 PM.
bookman156 is offline   Reply With Quote
Old 03-28-2016, 09:36 PM   #2
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: 28,353
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by bookman156 View Post
If I were making an EPUB from scratch myself I'd like to use <em> and <strong>. Is that allowed?
Certainly. That's typically the way i do it too. I don't really use any of Sigil's write-some-html-for-me buttons.

There's no way for me to say this without sounding like I'm tooting my own horn, so I'll just say it: you should check out my TagMechanic plugin if you've got a lot of spans to be converted to other elements. It makes it pretty painless. It's especially handy if you've got nested spans where a simple search and replace might unwittingly break things.

Last edited by DiapDealer; 03-28-2016 at 09:45 PM.
DiapDealer is offline   Reply With Quote
Advert
Old 03-28-2016, 09:47 PM   #3
bookman156
Addict
bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.
 
Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
Great, thanks.

Be interesting to hear how people generally approach making an EPUB from scratch. I suppose if you have an InDesign file already you'd make one from that, but if I wanted to kinda write the book itself from scratch into an EPUB? Maybe it would seem natural to write it as webpages in Dreamweaver, as I'm quite used to that and it uses the tags I prefer. Or perhaps it would be better to design it in InDesign. Do people create EPUBs from scratch in Sigil?
bookman156 is offline   Reply With Quote
Old 03-28-2016, 09:50 PM   #4
bookman156
Addict
bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.
 
Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
Quote:
Originally Posted by DiapDealer View Post
you should check out my TagMechanic plugin if you've got a lot of spans to be converted to other elements. It makes it pretty painless. It's especially handy if you've got nested spans where a simple search and replace might unwittingly break things.
Ah, that sounds useful, I'll look it out. I am quite worried about breaking things through replace and am doing so very cautiously at present.

Any idea why a big publisher might use spans for italic? I am trying not to think of them as incompetent, despite the fact that my proofreading errors sheet runs to 22 pages so far without even considering the coding.

Last edited by bookman156; 03-28-2016 at 09:57 PM.
bookman156 is offline   Reply With Quote
Old 03-28-2016, 10:14 PM   #5
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: 28,353
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by bookman156 View Post
Any idea why a big publisher might use spans for italic? I am trying not to think of them as incompetent, despite the fact that my proofreading errors sheet runs to 22 pages so far without even considering the coding.
To be honest; I really don't know. Part of me wants to believe it's because of a desire for widespread device support, but then I simply can't think of a device/app that would display an <i> tag incorrectly, but I could be wrong. There's some weird, wacky device/app quirks out there that I have the luxury of not having to worry about accounting for. Others may have better answers for you.
DiapDealer is offline   Reply With Quote
Advert
Old 03-28-2016, 10:48 PM   #6
Ripplinger
350 Hoarder
Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.
 
Ripplinger's Avatar
 
Posts: 3,574
Karma: 8281267
Join Date: Dec 2010
Location: Midwest USA
Device: Sony PRS-350, Kobo Glo & Glo HD, PW2
Kobo readers would display bold instead of italic when <em> was used in the past. I can't remember now if it was for just specific fonts or even if it still happens or was fixed by now. But that got me in the habit of using <i> and <b> just for the reason DiapDealer said... it works on everything, including the then buggy Kobo firmware. I also figured <i> and <b> are shorter (yes, I'm lazy, less typing is always good ), and as long they both did the same thing and both generally supported, I didn't see a reason to change to <em> and <strong>.
Ripplinger is offline   Reply With Quote
Old 03-28-2016, 11:05 PM   #7
bookman156
Addict
bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.
 
Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
But you would define <em> as italic in the CSS, along with <cite> (which I know I should use but am often lazy). Would Kobo still ignore that? While you may get italic for <i> it won't make much sense when ebooks are read out for blind people.
bookman156 is offline   Reply With Quote
Old 03-29-2016, 04:55 AM   #8
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
That is part of my issue with <em> and <strong>. It is up to the parser to interpret it. The fact that they usually depict it as italic and bold does not mean they have to. That is why I rather use a CSS style or just <i> and <b>.
Toxaris is offline   Reply With Quote
Old 03-29-2016, 06:39 AM   #9
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: 28,353
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
I don't give parsers any choice in the matter. I use <em> and <strong> semantically, and then use CSS to determine what they look like stylistically. Any parser that screws that up isn't one that I'm going to worry about.

(I do realize commercial ebook producers don't always have that same luxury)
DiapDealer is offline   Reply With Quote
Old 03-29-2016, 07:06 AM   #10
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Quote:
Originally Posted by Toxaris View Post
That is part of my issue with <em> and <strong>. It is up to the parser to interpret it. The fact that they usually depict it as italic and bold does not mean they have to. That is why I rather use a CSS style or just <i> and <b>.
But your book is not always being displayed visually; it might be being read out loud by a TTS system, for example. The whole point of semantic markup as opposed to stylistic markup is that it permits the parser to make the appropriate decisions for the display medium.
HarryT is offline   Reply With Quote
Old 03-29-2016, 09:48 AM   #11
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,248
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by HarryT View Post
But your book is not always being displayed visually; it might be being read out loud by a TTS system, for example.
Out of interest, have you come across any TTS apps which currently do actually emphasise the words differently when wrapped in <em> or <strong> tags? I don't think any of my Android reading apps do, nor does my TextAloud Windows application.

I don't think any of them, so far, will speak the contents of <img alt="your description here" ...>, either, which is a bit of a shame. In fact, much as I like TTS, I'm a bit disappointed with the lack of any major leaps forward since I first started using it on a PC in 2006 and a smartphone in 2012.
jackie_w is offline   Reply With Quote
Old 03-29-2016, 09:53 AM   #12
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Quote:
Originally Posted by jackie_w View Post
Out of interest, have you come across any TTS apps which currently do actually emphasise the words differently when wrapped in <em> or <strong> tags? I don't think any of my Android reading apps do, nor does my TextAloud Windows application.
I'm afraid my experience of TTS is extremely limited, so it's not really something I can comment on. Of course, what an application could (or perhaps even should) do, and what it actually does do are not always the same thing. There's certainly no reason that TTS couldn't respond to these tags - that is, after all, why they're there.
HarryT is offline   Reply With Quote
Old 03-29-2016, 10:14 AM   #13
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,248
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by HarryT View Post
I'm afraid my experience of TTS is extremely limited, so it's not really something I can comment on. Of course, what an application could (or perhaps even should) do, and what it actually does do are not always the same thing. There's certainly no reason that TTS couldn't respond to these tags - that is, after all, why they're there.
Pity. I was hoping you could recommend some superior apps
jackie_w is offline   Reply With Quote
Old 03-29-2016, 10:19 AM   #14
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Quote:
Originally Posted by jackie_w View Post
Pity. I was hoping you could recommend some superior apps
Unfortunately not, but if anyone else does know, it's something I'd very much like to know myself!
HarryT is offline   Reply With Quote
Old 03-29-2016, 12:44 PM   #15
bookman156
Addict
bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.
 
Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
Quote:
Originally Posted by DiapDealer View Post
I don't give parsers any choice in the matter. I use <em> and <strong> semantically, and then use CSS to determine what they look like stylistically.
I think this really is the essence of the issue, and the reason web designers embraced <em> and <strong> against the seeming preference for <i> and <b>. Once the idea was pointed out to them, it made perfect sense to web designers who liked to think about what they were trying to achieve with tableless design and CSS. The ebook business seems to be in this same stage of infancy at the moment that web design was ten years ago, in regards to not really understanding what is semantic markup and what is stylistic markup. The point is to remove the decision from the xhtml and place it in the CSS. In the future, perhaps we will be able to deliver sound stylesheets that specify exactly the kind of emphasis of voice that should be applied, and not be faced with stretching an <i> tag to cover voice, which is why <i> really is bad practice.

Last edited by bookman156; 03-29-2016 at 12:52 PM.
bookman156 is offline   Reply With Quote
Reply

Tags
semantic, semantic markup


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using italic and bold instead of emphasis and strong hardbound ePub 12 05-24-2014 07:20 AM
iPad "Upgraded" to iBooks 3.2 – Bold fonts are extra-bold, italics are now bold-italic MHC Apple Devices 4 03-03-2014 01:50 PM
The bold and italic buttons on the bar Artha Sigil 15 12-04-2011 04:52 PM
italic, bold etc to normal cybmole Sigil 11 03-04-2011 10:37 AM
PRS-500 Tags for Bold, Italic, Center, Etc. in LRF? EatingPie Sony Reader Dev Corner 9 04-07-2007 01:06 AM


All times are GMT -4. The time now is 05:24 PM.


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