![]() |
#1 |
noob
![]() Posts: 17
Karma: 10
Join Date: Mar 2013
Device: nook. kindel
|
Circumvent code death spiral
Ok..
Here is the situation in noobese: Have complete document. Everything in place. Needed to paste edited section. Pasted. In code view every line of pasted section reads: <p><span class="sgc-7"> content </span></p> SO-- i tried to correct this - bad idea. the automatic document repair has now migrated this to ALL of the document!!! <p> content <p> is what it was- and there are other irregularities now on the title page: even the blank lines show: <p class="sgc-2 sgc-4 sgc-4"><span class="sgc-7"><br /></span></p> <p class="sgc-2 sgc-4 sgc-4"><span class="sgc-7"><br /></span></p> <p class="sgc-2 sgc-4 sgc-4"><span class="sgc-7"><br /></span></p> <p class="sgc-2 sgc-4 sgc-4"><span class="sgc-7"><br /></span></p> <p class="sgc-2 sgc-4 sgc-4"><span class="sgc-7"><br /></span></p> <h1 class="sgc-2 sgc-5 sgc-5 sgc-5" id="sigil_toc_id_1"><span class="sgc-7"> can anyone help me get this back to a nice clean minimal code document. every time i manual fix i do something wrong- then auto fix and the repetitive, unwanted come multiplies.. its killing me with TIME and now is in a downward spiral where ANY fix just doubles the problems. heeyalp!? any advice appreciated : ) |
![]() |
![]() |
![]() |
#2 |
noob
![]() Posts: 17
Karma: 10
Join Date: Mar 2013
Device: nook. kindel
|
aslo-
what is this: � doing in there and how can i make it go? and some :nbs&b thing? find and replace only seems to continue the spiral with all of the above issues. |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,903
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
is a valid, but not always wanted in the current context, type of space that does not allow the words to break or be padded (justify ON). Non-breaking space. Seeing your other post, it appears you are mal-forming the code (rules as declared in the header), that tidy, then it attempts to fix. |
|
![]() |
![]() |
![]() |
#4 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,312
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Can you post the epub here for us to look at? It would be a lot easier to help if we actually see the doc.
|
![]() |
![]() |
![]() |
#5 | |
noob
![]() Posts: 17
Karma: 10
Join Date: Mar 2013
Device: nook. kindel
|
Quote:
as i mentioned- i started with a clean document (the forum mebers here explained how to do this) after pasting a section that had to be added.. from word, then notepad then to the sigil page.. this smal section had these extra command/comments preceeding each line of text. in an attempt to correct i used find/replace to take these new elements back out.. this cleaned the small section back to totally clean HOWEVER when saving i was prompted with the autofix/ manual fix prompt.. failing to manual fix - i accepted the autofix which resulted in the duplication of the crapy code reappearing and being duplicated at every line of the entire document . further inspection found   and other irregularities now spread through the document.. that was clean just a few clicks previous.. SO--- there is code- somewhere that can be corrected. so the question is: can someone direct me to that repair answer? |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,312
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
|
![]() |
![]() |
![]() |
#7 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,312
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
If you don't want to post it to a public forum, I understand. You can PM me if you wish and I will take a look at it.
|
![]() |
![]() |
![]() |
#8 | |
noob
![]() Posts: 17
Karma: 10
Join Date: Mar 2013
Device: nook. kindel
|
Quote:
thanks for helping : ) should i just post the: <style type="text/css"> h2.sgc-7 {text-align: center; text-decoration: underline} h4.sgc-6 {text-align: center;} h1.sgc-5 {text-align: center;} p.sgc-4 {text-align: center;} div.sgc-3 {text-align: center;} h5.sgc-2 {text-align: center;} h2.sgc-1 {text-align: center;} p {text-indent:1.1em;} div {text-indent:1.1em;} span.sgc-8 {text-indent: 1.1em;} span.sgc-12 {text-decoration: underline; text-indent: 1.1em} i.sgc-10 {text-indent: 1.1em;} span.sgc-20 {text-decoration: underline} h2.sgc-19 {font-style: italic; text-align: center; text-decoration: underline} span.sgc-18 {text-align: center;} h2.sgc-22 {font-style: italic; text-align: center} h2.sgc-23 {font-style: normal; text-decoration: underline} h3.sgc-27 {text-align: center;} h3.sgc-26 {font-weight: bold; text-align: center} </style> </head> and an example of every paragraph: <p><span class="sgc-7">'I pee just like a woman.. Jesus.'</span></p> or do we need more? |
|
![]() |
![]() |
![]() |
#9 |
noob
![]() Posts: 17
Karma: 10
Join Date: Mar 2013
Device: nook. kindel
|
previously the was no <span>
only <p> bookends.. now a <span> appears at the end of each line ?????????? does any of this give a clue to the issue? o wizards of the code? |
![]() |
![]() |
![]() |
#10 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,903
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
All this says is:
1) There is no CSS, you are using inline styles. 2) All those are Sigil styles, probably from the use of the styling buttons in BV. 2a) the Div and P styles are the ones inherited from the source. A bare minimal source. 3) there is nothing wrong, just the way you chose to create the styling. |
![]() |
![]() |
![]() |
#11 | |
noob
![]() Posts: 17
Karma: 10
Join Date: Mar 2013
Device: nook. kindel
|
Quote:
hmmm i loaded a basic style sheet. <style type="mainstyle"> but anyway- let me ask this then; my perception of something wrong comes from the idea that clean means minimal code in the content. is this true? further- if the document had only <p>'I pee just like a woman.. Jesus.'</p> but the same entry now shows <p><span class="sgc-7">'I pee just like a woman.. Jesus.'</span></p> isnt that wrong if the intent is to keep it clean? i could have this all confused so- please feel free to explain the reality : ) |
|
![]() |
![]() |
![]() |
#12 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,312
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Well...first off. <span class="sgc-7"> won't do anything because sgc-7 is only defined for h2 according to your css.
When I find useless spans surrounding every paragraph - and it happens more often than you would think - I just use a search and replace to delete them. in this case I would use: search: <p><span class="sgc-7">(.*?)</span></p> replace: <p>\1</p> use regex and apply it to all html files That will get rid of the span issue, but it doesn't address the error you said you were having about it automatically adding all that stuff in there in the first place. As ducks mentioned, you are using inline styles. Personally I would prefer putting all the stuff you have between <style> </style> into a css file and then linking your document to that css file. I also would clean all the extra sgc-# items off of the css styles...they aren't really necessary - or clean - but you would need to use F/R to clean the document before you delete them. Again, ducks mentioned that they probably come from you editing in the book view. I would recommend minimizing the amount of editing you do in book view...code view is much better and you can see exactly what is going on as you work. |
![]() |
![]() |
![]() |
#13 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,903
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
there is no span.sgc-7 declared
there is a h2.sgc7 This leads me to believe you changed a tag somehow BTW if the above read just: .sgc-7 it would apply to all tags. No external stylesheet has bee imported/declared I will provide no further support as you have repeatedly refused to post a complete,validated sample. |
![]() |
![]() |
![]() |
#14 | |
noob
![]() Posts: 17
Karma: 10
Join Date: Mar 2013
Device: nook. kindel
|
Quote:
many thanks for explaining- lots if good nuggets in there. i will apply all of the above and get back ![]() |
|
![]() |
![]() |
![]() |
#15 | |
noob
![]() Posts: 17
Karma: 10
Join Date: Mar 2013
Device: nook. kindel
|
Quote:
SOLVED! thank you.. after hours of butchering the book.. it only took your simple instructions to fix everything in minutes. i did the F/R and that did the trick with all the extraneous code.. then the auto/manual error box led me to all the mysterious entries that appeared and i simply took them out one by one. ALL CLEAN! now working on your other clean up and stylesheet suggestions.. but jeeezas! thank you! death spiral averted! |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
I guess B&N is in their final death spiral | taustin | Barnes & Noble NOOK | 30 | 04-19-2013 09:32 PM |
B&N "death spiral"? | BeccaPrice | News | 40 | 02-01-2013 03:25 PM |
Spiral X - Paranormal Action for $.99 | JJWestendarp | Self-Promotions by Authors and Publishers | 6 | 05-06-2011 10:02 PM |
Easiest drm to circumvent | echoleaf | Workshop | 23 | 02-08-2009 10:58 PM |
iLiad Should we post everything we know even if iRex can circumvent us again? | TadW | iRex Developer's Corner | 13 | 08-24-2006 05:31 AM |