Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 11-11-2014, 09:39 AM   #1
Notjohn
mostly an observer
Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.
 
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!
Notjohn is offline   Reply With Quote
Old 11-11-2014, 09:44 AM   #2
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
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.
PeterT is offline   Reply With Quote
Old 11-11-2014, 10:17 AM   #3
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
It seems as an action of HTML Tidy. Is it turned off?
Toxaris is offline   Reply With Quote
Old 11-11-2014, 04:07 PM   #4
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
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.
eschwartz is offline   Reply With Quote
Old 11-11-2014, 07:16 PM   #5
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
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.
Tex2002ans is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 02:53 PM.


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