Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 04-04-2011, 10:01 AM   #1
bfollowell
Fanatic
bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.
 
Posts: 515
Karma: 1152752
Join Date: Aug 2010
Location: Evansville, IN, USA
Device: Amazon Kindle 3 Wi-Fi & B&N Nook Tablet & B&N Nook HD+
Problems with cdata section. I need help/info.

I'm having a problem with Sigil inserting some code into my ebooks. It just started all of a sudden and I'm not really sure why or what this code does. I Googled the term but I'm not sure I understand it any better after reading the explanation. It mentioned something about text inside the cdata section being ignored by the parser. What exactly does this mean?

Secondly, why would Sigil just start doing this all of a sudden? The code that this is being inserted around is code that I've always used in the past and Sigil inserting a cdata section around it is a fairly recent occurrence.

Here's a prime example. At the top of any particular html file within the ebook I have a line that sets up a very small margin:

Code:
@page { margin-bottom: 5.000000pt; margin-top: 5.000000pt; }
Now this code always comes out looking like this:

Code:
  /*<![CDATA[*/
                @page { margin-bottom: 5.000000pt; margin-top: 5.000000pt; }
  /*]]>*/
Any ideas why this is being done or why Sigil would've just started doing this all of a sudden?

Thanks for any information anyone may be able to provide.

Sincerely,
- Byron
bfollowell is offline   Reply With Quote
Old 04-04-2011, 12:51 PM   #2
bfollowell
Fanatic
bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.
 
Posts: 515
Karma: 1152752
Join Date: Aug 2010
Location: Evansville, IN, USA
Device: Amazon Kindle 3 Wi-Fi & B&N Nook Tablet & B&N Nook HD+
I hate answering my own posts but...

OK, even after I posted, I kept looking through older posts and Googling and I think I've answered this one myself. At some point the Cleaning with HTML Tidy option got turned off. HTML Tidy was cleaning these up before but they started appearing once I inadvertently turned this feature off. Once I realized what was going on and turned this feature back on and resaved one of my epubs all the cdata references disappeared.

I thought I'd post what I found out in case anyone else ever runs into a similar situation.

- Byron
bfollowell is offline   Reply With Quote
 
Advertisement
Old 04-04-2011, 01:09 PM   #3
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: 9,778
Karma: 5072196
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2
You do realize that they don't hurt anything don't you?
DaleDe is offline   Reply With Quote
Old 04-04-2011, 01:14 PM   #4
bfollowell
Fanatic
bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.
 
Posts: 515
Karma: 1152752
Join Date: Aug 2010
Location: Evansville, IN, USA
Device: Amazon Kindle 3 Wi-Fi & B&N Nook Tablet & B&N Nook HD+
Quote:
Originally Posted by DaleDe View Post
You do realize that they don't hurt anything don't you?
No, actually I don't. As I alluded to in my OP, I really don't understand much of anything about them at all.

From what little I do understand, it sound like whatever is in the cdata section is ignored. If that's the case, my margin section would have been ignored and I'm not really sure why.

- Byron
bfollowell is offline   Reply With Quote
Old 04-04-2011, 01:30 PM   #5
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: 9,778
Karma: 5072196
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2
Quote:
Originally Posted by bfollowell View Post
No, actually I don't. As I alluded to in my OP, I really don't understand much of anything about them at all.

From what little I do understand, it sound like whatever is in the cdata section is ignored. If that's the case, my margin section would have been ignored and I'm not really sure why.

- Byron
No, the CDATA is inside comments. It would be ignored except by an application like RSS readers that needs it. The margin section would not be ignored. It is a mechanism to have certain reading applications deal with constructs they wouldn't otherwise understand.
DaleDe is offline   Reply With Quote
Old 04-04-2011, 01:48 PM   #6
bfollowell
Fanatic
bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.
 
Posts: 515
Karma: 1152752
Join Date: Aug 2010
Location: Evansville, IN, USA
Device: Amazon Kindle 3 Wi-Fi & B&N Nook Tablet & B&N Nook HD+
Quote:
Originally Posted by DaleDe View Post
No, the CDATA is inside comments. It would be ignored except by an application like RSS readers that needs it. The margin section would not be ignored. It is a mechanism to have certain reading applications deal with constructs they wouldn't otherwise understand.
OK, that helps a little bit. Thanks for helping clear things up, even if they're just about as clear as mud. Either way, I found out why I wasn't seeing them before and why I am now, as well as knowing they won't hurt anything whether I see them or not.

Thanks for info.

- Byron
bfollowell is offline   Reply With Quote
Old 04-05-2011, 04:16 PM   #7
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: 3,182
Karma: 7180223
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
If you put your layour code in an external stylesheet, the code will not be added of course.
As a bonus you don't have to add it to each file, just a reference.
Toxaris is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
What do you think I would ask for in this section? Saras Which one should I buy? 4 01-20-2011 04:15 PM
/*<![CDATA[*/ - Strange Comment Fabe Sigil 8 12-16-2010 03:59 PM
Section breaks christineb Calibre 11 01-20-2009 06:54 PM


All times are GMT -4. The time now is 07:10 AM.


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