Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 12-01-2011, 03:18 AM   #1
Artha
-----
Artha began at the beginning.
 
Posts: 114
Karma: 10
Join Date: Jun 2011
Device: Samsung SNE65
The bold and italic buttons on the bar

I have noticed that hitting in Book View or Split View (otherwise they're disabled anyway) the Bold button leads to <b> instead of <strong> and Italic leads to <i>. On the other hand it is taken care to be compliant and if there's a larger block that has to be changed there's a a style inserted in the header of that particular file defining the bold or italic status. Also, care has been given to clean up the tag mess from <p><em>text</p><p>extra</em></p> to add the extra <em> tags and nest them correctly into the paragraph block. So why the Bold and Italic?
Artha is offline   Reply With Quote
Old 12-01-2011, 03:33 AM   #2
shall1028
Nameless Being
 
Sorry---I read your post twice and still can't figure out what you are asking. Perhaps you could read it twice more and see if you can come up with a better way to phrase it.

I'll try to at least answer the stated question, though: "So why the Bold and Italic?" Because "Timid" and "Germanic" doesn't quite seem right.
  Reply With Quote
Advert
Old 12-01-2011, 04:13 AM   #3
Artha
-----
Artha began at the beginning.
 
Posts: 114
Karma: 10
Join Date: Jun 2011
Device: Samsung SNE65
Quote:
Originally Posted by shall1028 View Post
Sorry---I read your post twice and still can't figure out what you are asking. Perhaps you could read it twice more and see if you can come up with a better way to phrase it.
I'll point it out:

Quote:
Originally Posted by Artha View Post
[...] the Bold button leads to <b> instead of <strong> and Italic leads to <i>.[...]

Quote:
I'll try to at least answer the stated question, though: "So why the Bold and Italic?" Because "Timid" and "Germanic" doesn't quite seem right.
Thank you for your effort to be witty. And thank the programmers of this forum for the ignore option.

Last edited by Artha; 12-01-2011 at 04:14 AM. Reason: wrong bb tags
Artha is offline   Reply With Quote
Old 12-01-2011, 07:08 AM   #4
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Quote:
Originally Posted by Artha View Post
I'll point it out:
Quote:
Originally Posted by Artha View Post
[...] the Bold button leads to <b> instead of <strong> and Italic leads to <i>.[...]
Okay? You're point? <i> is an italic tag. <b> is a bold tag. <strong> is for strong emphasis. What do you expect bold and italic to do other than make text bold and italic? Your question really isn't clear...
user_none is offline   Reply With Quote
Old 12-01-2011, 07:43 AM   #5
meme
Sigil developer
meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.
 
Posts: 1,274
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
Well, I'm not sure about the second part, but for the first part I think Artha is asking why does Sigil use <b></b> when selecting a subset of words in a paragraph/division and hitting the bold button, but uses an sgc class in the header when selecting the whole paragraph/division to mark bold. Why doesn't it always use the class approach?

(On an unrelated note, this just reminded me that bold/italic/underline confuse me on occassion - have you considered making the labels B / I / U ?)
meme is offline   Reply With Quote
Advert
Old 12-01-2011, 07:44 AM   #6
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Quote:
Originally Posted by meme View Post
Well, I'm not sure about the second part, but for the first part I think Artha is asking why does Sigil use <b></b> when selecting a subset of words in a paragraph/division and hitting the bold button, but uses an sgc class in the header when selecting the whole paragraph/division to mark bold. Why doesn't it always use the class approach?
This is a product of what Tidy does to the XHTML when it cleans it. The only way to change this is to modify Tidy (not a fun prospect).
user_none is offline   Reply With Quote
Old 12-01-2011, 08:37 AM   #7
meme
Sigil developer
meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.
 
Posts: 1,274
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
Yes, its easy to see this by selecting Tools -> Cleaning with HTML Tidy to uncheck it and then highlighting a paragraph and selecting the Bold button - the html is left as <b></b>. And when checking the Tidy setting the code is modified to a class as soon as you change something in the document.
meme is offline   Reply With Quote
Old 12-01-2011, 12:59 PM   #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
What I think Artha also wants to know why <i> instead of <em> and <b> instead of <strong>. Actually I am glad that it is this way. Let me explain. <i> and <b> are style settings. <em> and <strong> are giving structure. It could be that I will use italic for emphasis, but this is not a given. I should decide what I would use if text is emphasized or strong, not the renderer.
I know that <i> and I believe also <b> are deprecated, but I feel that was a mistake.
Toxaris is offline   Reply With Quote
Old 12-01-2011, 01:07 PM   #9
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,714
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
<em> and <strong> are just <i> and <b> by another name.
JSWolf is offline   Reply With Quote
Old 12-01-2011, 01:49 PM   #10
Serpentine
Evangelist
Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.
 
Posts: 416
Karma: 1045911
Join Date: Sep 2011
Location: Cape Town, South Africa
Device: Kindle 3
Can't say I remember anything saying that <i> tags have been deprecated. I prefer them much more than <em>, as semantically - what should emphasized text look like? to me it's bold or underlined rather than italicized.

I do get pretty annoyed when they're replaced by spans or 'cleaned' to other tags, they're not exactly used ambiguously very often :/
Serpentine is offline   Reply With Quote
Old 12-01-2011, 05:13 PM   #11
Artha
-----
Artha began at the beginning.
 
Posts: 114
Karma: 10
Join Date: Jun 2011
Device: Samsung SNE65
The same way <center> was removed from the specifications also <i> and <b> should go away. They mark a particular way of showing things. And that is up to the CSS. So far <em> defaults to <i> on all browsers I have tested and <strong> to <b>. On the other hand styling <i> to show red regular text on a blue background looks more like an abuse.
Artha is offline   Reply With Quote
Old 12-01-2011, 05:38 PM   #12
Serpentine
Evangelist
Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.
 
Posts: 416
Karma: 1045911
Join Date: Sep 2011
Location: Cape Town, South Africa
Device: Kindle 3
Quote:
Originally Posted by Artha View Post
On the other hand styling <i> to show red regular text on a blue background looks more like an abuse.
You could say that about anything, it's a very narrow minded approach. Most software that deals with mixed xhtml has no way to deal with CSS, browsers are not the only consumers of xhtml. Consider a simple script using xpath or regex, DOM?. Most readers that support any advanced CSS are just reusing browser components, if they arn't they are either crippled like Kindle or extremely buggy. Abuse can happen to any tag, should tables be removed because they're used by some people for layouts? should p's be replaced with divs?

Clean markup is far, far nicer to work with than verbose CSS use.

But hey, I guess we can enjoy the future of 'webkit in everything', urgh.
Serpentine is offline   Reply With Quote
Old 12-01-2011, 06:02 PM   #13
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Quote:
Originally Posted by Artha View Post
The same way <center> was removed from the specifications also <i> and <b> should go away.
<i> and <b> are part of XHTML (EPUB2) and they made it into HTML5 (EPUB3). Also they are not marked as deprecated in either.

Quote:
Originally Posted by Artha View Post
They mark a particular way of showing things. And that is up to the CSS.
That is entirely how you want to look at it. The fact of the matter <i> and <b> are valid tags for adding italic and bold.


Quote:
Originally Posted by Artha View Post
So far <em> defaults to <i> on all browsers I have tested and <strong> to <b>.
This is how many browsers render the tags but <i> had different meaning than <em> and <b> has different meaning than <em>. See descriptions for b, strong, i, and em to see that each of these has a distinct meaning.

<em> for example does not guarantee italic text it only says that the test should be emphasized. The meaning of emphasized is up to the renderer. Now quoting the description for <em>:

Quote:
Originally Posted by http://www.december.com/html/x1/element/em.html
Nesting an em inside of another element like b or i may or may not display bold, emphasized text.
So, again, using <em> does not guarantee that the text will be italic. Hence the use of the <i> which specifically denotes the text should be italic.
user_none is offline   Reply With Quote
Old 12-02-2011, 01:38 AM   #14
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
Quote:
Originally Posted by user_none View Post
This is how many browsers render the tags but <i> had different meaning than <em> and <b> has different meaning than <em>. See descriptions for b, strong, i, and em to see that each of these has a distinct meaning.

<em> for example does not guarantee italic text it only says that the test should be emphasized. The meaning of emphasized is up to the renderer. Now quoting the description for <em>:



So, again, using <em> does not guarantee that the text will be italic. Hence the use of the <i> which specifically denotes the text should be italic.
John, thank you! Exactly the point I was trying to make. There is a difference between style and structure.
Toxaris is offline   Reply With Quote
Old 12-04-2011, 01:09 PM   #15
ghostyjack
Guru
ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.
 
ghostyjack's Avatar
 
Posts: 718
Karma: 1085610
Join Date: Mar 2009
Location: Bristol, England
Device: PRS-T1, 1825PT, Galaxy Tab, One X, TF700T, Aura HD, Nexus 7
And I thought I was the only one who see's a need for both <i> & <em> and <b> & <strong>.

I routinely utilise all of them, depending on if it is symantic or document structure. This way I can better control the file.

e.g. a ship name needs to be in italics as you are not emphasising the name. So I'd expect a sentence to be like: "This is <em>not</em> HMS <i>Warspite</i>." This way I can immediately see which elements are being stressed, and which are structure.

So for me, bold and italic buttons need to be using bold and italic tags. I'd also like to have emphasis and strong buttons as well in Sigil, so that I can directly apply the correct tag instead of having the scan the file afterwards and may the switch to the other tags where needed.

On a side note, John, is there any likelyhood that the buttons will ever be made to work in code view?
ghostyjack is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Italic or Emphasis John2011 ePub 18 08-18-2011 12:14 PM
italic and bold ok in sigil but not on Kobo reader Mookiemon Sigil 14 07-23-2011 09:50 PM
Re Entering Title in Bold or Bold And Colour Font pricespringer Library Management 1 05-09-2011 04:45 AM
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 08:10 PM.


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