![]() |
#1 |
mostly an observer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,518
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
Sigil-generated styles
One of the reasons I didn't Calibre was its seeming insistence on creating its own version of my styles. Now I notice that occasionally Sigil does the same thing, most recently this:
<i class="sgc-1"> I have pondered this and come to the conclusion that Sigil has chosen to correct my instances of bolded italics. Here's the relevant style: <style type="text/css"> i.sgc-1 {font-weight: bold} Is there something wrong or undesirable about going <i><b>bold italics</b></i>? Thanks! |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,307
Karma: 78876004
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
I might be wrong but if you use just the calibre EDITOR and not calibre CONVERSION styles are left excatly as you write them.
|
![]() |
![]() |
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
It seems as an action of HTML Tidy. Is it turned off?
|
![]() |
![]() |
![]() |
#4 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
All problems with changing CSS will only happen when using automated processes.
calibre conversions are the main offender -- as an end-use program it wil flatten all CSS for normalizing, carefully nuking all semantic meaning... as it is designed to do. Sigil will auto-clean sometimes, when it feels uncomfortable with the code. When opening a text file, and when switching to/from Book View, it will Tidy your files. Tidy is overeager, it also hates b/i tags. ![]() calibre editor will only do so when using the Beautify or Fix HTML buttons, and it is advisable to use Check Book instead of Fix, and before Beautify. Nevertheless, only the actions crucial to parsing the book as valid (X)HTML+CSS will be taken. Your styles will NEVER be renamed. |
![]() |
![]() |
![]() |
#5 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
You want to go into Edit - Preferences - Clean Source, and you want to make sure that "When Cleaning, Use This Type:" says "Pretty Print Tidy".
All of those sgc-1 classes are because "HTML Tidy" is on instead. You want that disabled. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Styles in Sigil but none in calibre? | neonbible | Sigil | 9 | 10-22-2014 02:01 PM |
Sigil 0.6 self-created styles - where are they? | JeffPalley | Sigil | 5 | 11-09-2012 02:17 AM |
auto-generated TOC with Sigil 0.4 | bobcdy | Sigil | 2 | 04-05-2011 12:48 AM |
Calibre and Sigil styles | LGN | Sigil | 5 | 01-29-2011 02:17 AM |
Sigil styles and CSS | View[+]Finder | Sigil | 4 | 05-27-2010 05:39 PM |