![]() |
#1 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
italic, bold etc to normal
sigil has easy to use bottons for book mode which add italic, bold underline to marked text. but I see no reverse option i.e. change italic back to normal. can that be done in book mode ?
|
![]() |
![]() |
![]() |
#2 |
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,720
Karma: 2197770
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
You can just toggle the style button again (i.e. click italic a second time). Or you can select "normal" from the dropdown of heading styles.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
Quote:
thanks for answering. |
|
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
However, it does not always work. If the italic is in the style, I find that the italic cannot be undone via the button. Sounds logical too, how would Sigil know what style to use then?
|
![]() |
![]() |
![]() |
#5 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 114
Karma: 5246
Join Date: Jul 2010
Device: none
|
IIUC, it works as it should. The button in Sigil wraps the text you want italicise in <i> </i> tags; so one click adds those tags a second click removes them. Naturally this wouldn't work on text italicised by a css rule e.g. <span class="name-of-italic-class"> </span>.
|
![]() |
![]() |
![]() |
#7 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
Quote:
|
|
![]() |
![]() |
![]() |
#8 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 615
Karma: 575652
Join Date: Oct 2010
Location: Hampton, NH
Device: Kobo Aura H20; Kobo ClaraBW
|
Yes, I had the same problem trying to remove an underline. My first reaction upon reading this thread was to wonder why Sigil cannot remove the css rule surrounding the text in question. However, upon thinking a little, I realized that Sigil has no knowledge of what the css rule is doing, so it cannot remove it, unlike removing standard HTML.
It does seem that it is something that should be documented, if for no other reason but to stop people from complaining about the "bug" in Sigil. In my case, I am trying to show a person who has no HTML knowledge how to fix typos in an epub file using Sigil. In a case like this, trying to remove underlines, I'll have no choice it seems but to show them how to go into HTML view and remove the spanned css rule. Oh well... |
![]() |
![]() |
![]() |
#9 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,888
Karma: 59840450
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Select the Text
IF the buttons appear depressed, Sigil probably will let you pop them back out. with a click ![]() Otherwis... CV to find the selector(s) and off to the stylesheet you go ![]() |
![]() |
![]() |
![]() |
#10 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 615
Karma: 575652
Join Date: Oct 2010
Location: Hampton, NH
Device: Kobo Aura H20; Kobo ClaraBW
|
The problem I had with underlining was compounded by Sigil adding its own local style on top of a style in the stylesheet. I don't know why it did that.
The original HTML shows this: <u>meself</u> After conversion in Calibre to epub, it shows this: <span class="calibre20 sgc-1">meself</span> where calibre20 is defined in the stylesheet.css as: .calibre20 { line-height: 1.1; text-decoration: underline } but sgc-1 is defined at the top of any chapter that has an underline, in the html file as: span.sgc-1 {text-decoration:underline} So to change the underline to italic, I wanted to just change the definition in the stylesheet, but it wouldn't work. I had to also do a global change of the sgc-1 definition. Fortunately, Sigil's Find tool has the ability to do such a change, but I do wonder why Sigil added that extra local definition. |
![]() |
![]() |
![]() |
#11 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
i was told, in another thread, that the html tidy option creates those sgc-1 styles, and can be disabled.
|
![]() |
![]() |
![]() |
#12 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 615
Karma: 575652
Join Date: Oct 2010
Location: Hampton, NH
Device: Kobo Aura H20; Kobo ClaraBW
|
Ah, that's interesting. I did do some searching about this topic and found some threads from a few years ago that said some things would be optional, but finding no "Options" settings in Sigil, I kind of figured it hadn't been done yet.
But I now see that the Tidy button is a toggle, and it was set in my version (probably the default). So I'll try unsetting it in the future and that will no doubt help in a case like this. Thanks for the tip! |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How can I change body text from bold to normal? | Michaelus | Calibre | 13 | 07-28-2022 04:42 PM |
Lit -> Mobi Linebreak after italic | asilentstranger | Calibre | 4 | 01-04-2011 01:31 AM |
Emphasis or Italic for Language | ghostyjack | Workshop | 3 | 11-02-2010 10:46 AM |
Italic fonts dropping in epubs. | Lester. | ePub | 9 | 08-31-2010 02:59 PM |
PRS-500 Tags for Bold, Italic, Center, Etc. in LRF? | EatingPie | Sony Reader Dev Corner | 9 | 04-07-2007 01:06 AM |