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-15-2010, 09:43 AM   #1
Fabe
Dylanologist
Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.
 
Fabe's Avatar
 
Posts: 200
Karma: 146754
Join Date: Apr 2010
Location: Hanover, New Hampshire, USA
Device: none/all/any
/*<![CDATA[*/ - Strange Comment

I manually add some BOLDS in Book View and Sigil adds comments: /*<![CDATA[*/ & /*]]>*/ in Code View. It goes like this:

ORIGINAL
<style type="text/css">
p.sgc-1 {font-weight: bold;}
</style>
CHANGES TO
<style type="text/css">
/*<![CDATA[*/
p.sgc-1 {font-weight: bold;}
/*]]>*/
</style>
No harm, no foul, but I think they look extraneous and I want to eliminate them. A simple find & replace (with nothing) was unsuccessful. Can I eliminate them and if so, how?

I am running Sigil version 0.2.4 Thanks. - Fabe
Fabe is offline   Reply With Quote
Old 12-15-2010, 01:21 PM   #2
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
They may look strange but they have their use. Google CDATA.
DaleDe is offline   Reply With Quote
Advert
Old 12-15-2010, 01:48 PM   #3
Fabe
Dylanologist
Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.
 
Fabe's Avatar
 
Posts: 200
Karma: 146754
Join Date: Apr 2010
Location: Hanover, New Hampshire, USA
Device: none/all/any
Quote:
Originally Posted by DaleDe View Post
They may look strange but they have their use. Google CDATA.
Can you elaborate?
Fabe is offline   Reply With Quote
Old 12-15-2010, 02:57 PM   #4
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,714
Karma: 5703586
Join Date: Nov 2009
Device: many
Quote:
Originally Posted by Fabe View Post
Can you elaborate?
Just "google CDATA" which explains what it is for and why it may be needed. Here, for example, is a wikipedia article on it.

http://en.wikipedia.org/wiki/CDATA
KevinH is online now   Reply With Quote
Old 12-15-2010, 03:42 PM   #5
Fabe
Dylanologist
Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.
 
Fabe's Avatar
 
Posts: 200
Karma: 146754
Join Date: Apr 2010
Location: Hanover, New Hampshire, USA
Device: none/all/any
Thanks KevinH. Based on information in the link you provided, I see no use whatsoever for this extraneous code to be in my epub. - Fabe
Fabe is offline   Reply With Quote
Advert
Old 12-15-2010, 04:04 PM   #6
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,534
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
I see no use whatsoever for this extraneous code to be in my epub.
Maybe not, but it certainly can't hurt. And depending on what device (or application) a reader opens your epub with... it may make all the difference in readability.

While wrapping inline-css statements may happen less often than inline-javascript, it's still fairly common practice.

Better safe than sorry, I say.
DiapDealer is offline   Reply With Quote
Old 12-16-2010, 12:46 PM   #7
Fabe
Dylanologist
Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.
 
Fabe's Avatar
 
Posts: 200
Karma: 146754
Join Date: Apr 2010
Location: Hanover, New Hampshire, USA
Device: none/all/any
Quote:
Originally Posted by DiapDealer View Post
... depending on what device (or application) a reader opens your epub with... it may make all the difference in readability. ... Better safe than sorry, I say.
DiaoDealer, your response begs the question, Why?

In the ePub where I was adding in-line bolds, I worked a little harder on my pre-epub set-up and was able to create <p class"bold"> for 95% of the phrases where I needed them. I can manually add the class phrase for the rest and believe with a little more insight I will be able to capture those too.

So, my need to do in-lines is gone, I will not worry over extraneous comment lines. - Fabe
Fabe is offline   Reply With Quote
Old 12-16-2010, 01:04 PM   #8
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,534
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Fabe
DiaoDealer, your response begs the question, Why?
Simply put: you can't possibly foresee how every single epub reader (device or app) will choose to process in-line css statements. And I choose to believe that the Sigil developers didn't just toss that feature in willy-nilly... they must have seen a need.

This of course is all moot if you're planning on eliminating in-line css statements in your epub anyway.
DiapDealer is offline   Reply With Quote
Old 12-16-2010, 02:59 PM   #9
Fabe
Dylanologist
Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.
 
Fabe's Avatar
 
Posts: 200
Karma: 146754
Join Date: Apr 2010
Location: Hanover, New Hampshire, USA
Device: none/all/any
Quote:
Originally Posted by DiapDealer View Post
Simply put: you can't possibly foresee how every single epub reader (device or app) will choose to process in-line css statements. And I choose to believe that the Sigil developers didn't just toss that feature in willy-nilly... they must have seen a need.

This of course is all moot if you're planning on eliminating in-line css statements in your epub anyway.
Point taken, but I'll admit, I only write ePubs for 4 readers: iPad, Kindle, Nook and Kobo.

As to " the Sigil developers didn't just toss that feature in willy-nilly..." I think Valloric has a sense of humor that runs to the willy-nilly. :-) - Fabe
Fabe is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Comment on issue 425 crutledge Sigil 5 06-07-2010 04:08 PM
Seriously thoughtful A literary comment on DRM NormHart Lounge 4 08-24-2009 12:59 PM
PDF Comment and Question timezone iRex 8 08-15-2008 10:05 AM
Jim's comment on Turcic.com :) Alexander Turcic Lounge 0 02-19-2003 03:22 AM


All times are GMT -4. The time now is 03:49 PM.


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