![]() |
#1 |
Hedge Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 802
Karma: 19999999
Join Date: May 2011
Location: UK/Philippines
Device: Kobo Touch, Nook Simple
|
Finding Naked Text in HML
Is there a way of easily finding naked text (i.e. text not enclosed in tags) in Sigil?
F7 Well Formed HTML does not appear to flag them up. Sometimes when I get rid of a load of "divs" I end up with some naked text. I am currently switching to Calibre Editor which can easily find them and put basic "<p>" tags around each occurrence. |
![]() |
![]() |
![]() |
#2 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,662
Karma: 168431851
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Code:
<p> </p> this is an unenclosed line! <p>This is an enclosed line!</p> <p> </p> |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,352
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
EPUB2
Flightcrew: "Error schema not satisfied : no character data is allowed by content model near column 1" EpubCheck: Col: 1: ERROR(RSC-005): Error while parsing file 'text not allowed here; expected the element end-tag or element "address", "blockquote", "del", "div", "dl", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "ins", "noscript", "ns:svg", "ol", "p", "pre", "script", "table" or "ul" (with xmlns:ns="http://www.w3.org/2000/svg")'. EPUB3 Flightcrew: doesn't work EpubCheck: doesn't care I'm assuming since Epubcheck doesn't seem to flag it, that naked text allowable in EPUB3/HTML5. I'm going to take the opportunity to remind everyone that Sigil's Well-Formed Check is not to be considered any kind of specification validation. As its name implies, it merely checks to see that html is, in fact, parseable. Parseable meaning that tags are all closed and none are improperly nested. Nothing more. It will not catch html/css/xml/epub specification warnings/errors. That is what the validation plugins are for. The Well Formed Check is a quick and dirty "can-I-do-some-automated-processing-on-this-code-without-worrying-about-doing-any-further-syntactical-damage" kind of thing. Last edited by DiapDealer; 08-22-2018 at 09:03 AM. |
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,352
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
By the way, it sounds like a plugin to find and wrap naked text might be in order, for anyone who might be looking for a project to work on.
![]() |
![]() |
![]() |
![]() |
#5 | |
Hedge Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 802
Karma: 19999999
Join Date: May 2011
Location: UK/Philippines
Device: Kobo Touch, Nook Simple
|
Quote:
![]() |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Hedge Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 802
Karma: 19999999
Join Date: May 2011
Location: UK/Philippines
Device: Kobo Touch, Nook Simple
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#7 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 681
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
You can put something in the CSS to make everything else disappear, e.g.
e.g. add color:white; or font-size:0; to your p tag. Now all p tags will be invisible, leaving you with the untagged text (as well as h1, etc. tags and others, you can white them out too if you have a lot). So quickly scan through the book to find them. Last edited by AlanHK; 08-23-2018 at 01:46 AM. |
![]() |
![]() |
![]() |
#8 | |
Hedge Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 802
Karma: 19999999
Join Date: May 2011
Location: UK/Philippines
Device: Kobo Touch, Nook Simple
|
Quote:
|
|
![]() |
![]() |
![]() |
#9 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 681
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
Improved version:
paste this: p,div,h1,h2,h3,h4,blockquote,li {font-size:0;} at bottom of CSS file, will override any of your definitions. Size 0 means you see the whole file on one screen. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Walking around naked. | travfar | Amazon Kindle | 35 | 08-27-2011 08:18 PM |
I'm going naked | Ditchleyportrait | General Discussions | 68 | 08-08-2011 06:33 AM |
PRS-950 light for naked 950? | ayryq | Sony Reader | 15 | 01-21-2011 04:01 PM |
Unutterably Silly Can I Get Naked? | Dr. Drib | Lounge | 65 | 03-07-2009 10:18 AM |
Naked Kindle | PHugger | Amazon Kindle | 1 | 11-30-2007 03:33 PM |