![]() |
#1 |
Dylanologist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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"> CHANGES TOp.sgc-1 {font-weight: bold;} </style> <style type="text/css"> 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?/*<![CDATA[*/ p.sgc-1 {font-weight: bold;} /*]]>*/ </style> I am running Sigil version 0.2.4 Thanks. - Fabe |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Dylanologist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 200
Karma: 146754
Join Date: Apr 2010
Location: Hanover, New Hampshire, USA
Device: none/all/any
|
|
![]() |
![]() |
![]() |
#4 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,714
Karma: 5703586
Join Date: Nov 2009
Device: many
|
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 |
![]() |
![]() |
![]() |
#5 |
Dylanologist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,534
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
While wrapping inline-css statements may happen less often than inline-javascript, it's still fairly common practice. Better safe than sorry, I say. ![]() |
|
![]() |
![]() |
![]() |
#7 | |
Dylanologist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 200
Karma: 146754
Join Date: Apr 2010
Location: Hanover, New Hampshire, USA
Device: none/all/any
|
Quote:
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 |
|
![]() |
![]() |
![]() |
#8 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,534
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
This of course is all moot if you're planning on eliminating in-line css statements in your epub anyway. ![]() |
|
![]() |
![]() |
![]() |
#9 | |
Dylanologist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 200
Karma: 146754
Join Date: Apr 2010
Location: Hanover, New Hampshire, USA
Device: none/all/any
|
Quote:
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 |
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |