![]() |
#1 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#2 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,353
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
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. |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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? |
![]() |
![]() |
![]() |
#4 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
|
Quote:
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. |
|
![]() |
![]() |
![]() |
#5 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,353
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
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.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
350 Hoarder
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
![]() |
![]() |
![]() |
![]() |
#7 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#8 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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>.
|
![]() |
![]() |
![]() |
#9 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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) |
![]() |
![]() |
![]() |
#10 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
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.
|
![]() |
![]() |
![]() |
#11 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,248
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
Quote:
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. |
|
![]() |
![]() |
![]() |
#12 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
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.
|
![]() |
![]() |
![]() |
#13 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,248
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#14 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
|
![]() |
![]() |
![]() |
#15 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
|
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. |
![]() |
![]() |
![]() |
Tags |
semantic, semantic markup |
|
![]() |
||||
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 |