03-29-2016, 03:03 PM | #31 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
The semantic meaning in that case is coming from the user's choice of class name. I might choose to call it "foreignword" someone else might call it "latinterm" or someone else might call it "foreignterm". Not everyone will decide to use the exact same class name to indicate the same semantic meaning. That makes interpreting it by screen readers and TTS unreliable. If instead a controlled vocabulary is attached to an attribute specifically chosen to convey semantic meaning, then screen reading and TTS software would understand immediately what you mean by your italic tag regardless of what class name you chose.
KevinH |
03-29-2016, 03:05 PM | #32 |
Addict
Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
|
But it would be a good idea to have a dedicated tag to indicate that a word was being italicised solely because it was a foreign word and not because it needed emphasising in any way.
|
Advert | |
|
03-29-2016, 03:06 PM | #33 | |
Addict
Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
|
Quote:
You can tell the screen-reader or TSS what to do with a particular class in the CSS. Last edited by bookman156; 03-29-2016 at 03:08 PM. |
|
03-29-2016, 03:08 PM | #34 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Sometimes all you want to do is reproduce the appearance of a printed book, and not worry about what the intent of the author was in using bold or italic. I can see no harm in using <b> and <i> tags in such a situation.
|
03-29-2016, 03:12 PM | #35 |
Addict
Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
|
The author of a book published before ebook technology had no intent beyond italic and bold. But then they may not have had an intent that their work should appear in anything other than the print medium. I am finding this out for myself, but it was my fault for not quibbling over the parts of the contract dealing with media type.
|
Advert | |
|
03-29-2016, 03:16 PM | #36 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
That would be the role of the attribute, not the tag. Otherwise you need lots of tags just to handle semantic meaning. One defined set of possible values for attributes attached to generic tags would make the most sense (and is how they have decided to go in the future).
That way standardized software can read anyone xhtml page and know immediately what the author meant, what structure the document has, and why specific styles (that they may in fact be unable to see) are bing used. The next release of Sigil will make it possible to easily add even more semantic information using the epub:type attributes (even in BV) so that more of the structure of the document can be recognized automatically and universally by everyone. Right now you choose a term in your own language when you add semantics but in reality there is a controlled vocabulary of terms used in the guide and in landmarks and actually in many other places in epub3. So more semantic attribute marking will be coming for epub3. The reason is to allow readers more information about both the structure of the document and the reason certain tags are being used. KevinH |
03-29-2016, 03:27 PM | #37 |
Addict
Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
|
We do have a lot of tags to handle semantic meaning, but not everyone uses them, preferring plain old <i>, because they're seeking only to reproduce the look of a printed book, which I suppose is fine, even if ignoring blind people whose ebook might be in Braille if there was the technology. I don't know how Braille does italic, do they slant the dots? But whether it is a tag or an attribute, the end meaning will be the same. Are attributes saving any work over a dedicated tag? One still has to think about semantic content and tag it appropriately.
|
03-29-2016, 03:52 PM | #38 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
The same attribute to add a specific semantic meaning can be used on multiple tags and always be interpreted correctly vs a large proliferation of variations of tags that no one knows the difference between. It is simple combinatorics.
Kevin |
03-29-2016, 04:18 PM | #39 |
Addict
Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
|
I am becoming more Luddite the more I think about it. Perhaps the error was learning to read.
|
03-29-2016, 04:36 PM | #40 |
Well trained by Cats
Posts: 29,800
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
KISS
Don't introduce things that aren't needed <b>, <i> say use the current font and paragraph attributes, Just those faces. That is it. no CSS or style needed (I use bold to convey keywords when giving usage guidance here at MR and underline for strong warning Gotcha's OTOH if you are trying to convey 'voice', then <em> or <strong> might be better <em>, <strong> tend to inherit their qualities from the render engine designers and need additional style controls (if you care) |
03-29-2016, 05:26 PM | #41 | ||
null operator (he/him)
Posts: 20,568
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Quote:
BR |
||
03-30-2016, 01:52 AM | #42 | |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Quote:
The current standard only knows a limited set of semantic tags. I do agree that it is better to split semantics/structure from layout. However, <i> and <b> can mean so much more than <em> or <strong>. So much, that actually the 'emphasis' or 'strong' would not be suitable at all. To fully replace that by semantics, you would need a whole lot more. So, you would need to resort to stylesheet classes to give the semantic value to the actual text. |
|
03-30-2016, 03:02 AM | #43 | |
Addict
Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
|
Quote:
https://www.w3.org/TR/html5/text-lev...e-cite-element Last edited by bookman156; 03-30-2016 at 03:13 AM. |
|
03-30-2016, 06:37 AM | #44 | |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Quote:
To me it seems they are trying to make HTML more semantic, but they do it only partially and not consistent. Anyway, I don't want to be depending on a renderer to decide who things must look as this is not defined in the standard. If they would specify the standard rendering of a semantic tag, it could be easily used and overruled. It is almost impossible to prevent every possible layout that a renderer could apply to a tag as their standard. |
|
03-30-2016, 12:01 PM | #45 | |
Guru
Posts: 696
Karma: 150000
Join Date: Feb 2010
Device: none
|
Quote:
In some cases, I create epubs via export from InDesign CS4, which implements character styles with spans. It loves spans so much it even wraps all paragraphs in a "generic span" that has a null definition in the stylesheet, just in case you want to define them later (I suppose). IIRC, later versions of ID will let the user define the HTML used to implement a given style. In other cases, I create the epub from a (Word .doc, .rtf, etc.) -> LibreOffice .odt via a "Writer2latex" javascript tool. In this case I can define the CSS that corresponds to each LibreOffice paragraph or character style, and I do so in such a way as to make it consistent with the ID4 CSS, just to make my life easier. In either case, the epubs so obtained require considerable tweaking in Sigil, and I like my saved clips and S/R's to be applicable to epubs from either source, to the extent possible. If this constitutes incompetence, so be it Albert |
|
Tags |
semantic, semantic markup |
|
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 |