Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 04-04-2011, 09: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: 541
Karma: 1152752
Join Date: Aug 2010
Location: Evansville, IN, USA
Device: Samsung Galaxy Tab 4 Nook & Samsung Galaxy Tab S 10.5
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, 11:51 AM   #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: 541
Karma: 1152752
Join Date: Aug 2010
Location: Evansville, IN, USA
Device: Samsung Galaxy Tab 4 Nook & Samsung Galaxy Tab S 10.5
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
Advert
Old 04-04-2011, 12: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: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
You do realize that they don't hurt anything don't you?
DaleDe is offline   Reply With Quote
Old 04-04-2011, 12: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: 541
Karma: 1152752
Join Date: Aug 2010
Location: Evansville, IN, USA
Device: Samsung Galaxy Tab 4 Nook & Samsung Galaxy Tab S 10.5
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, 12: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: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
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
Advert
Old 04-04-2011, 12: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: 541
Karma: 1152752
Join Date: Aug 2010
Location: Evansville, IN, USA
Device: Samsung Galaxy Tab 4 Nook & Samsung Galaxy Tab S 10.5
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, 03: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: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
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


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 03:15 PM
/*<![CDATA[*/ - Strange Comment Fabe Sigil 8 12-16-2010 02:59 PM
Section breaks christineb Calibre 11 01-20-2009 05:54 PM


All times are GMT -4. The time now is 03:06 AM.


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