|
|
#1 |
|
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 184
Karma: 2572
Join Date: Aug 2010
Device: Kindle
|
problem with added characters
<span class="underline">action</span> and <span class="underline">decision</span> But when I open the html file in Sigil, I see this: <span class="underline>action</span> and <span class=" underline="">decision</span> As a result, epub validator makes this complaint: attribute "underline" not allowed here; expected attribute "dir", "id", "style", "title" or "xml:lang" So, two questions: 1. Why do you suppose Sigil makes such radical changes in the text, accepting some instances of < and > but changing others, and again adding a space and a straight quote which seem to have created invalid epub? 2. Am I correct in thinking that epub validator is complaining about the space and the apparent extra " in the second instance, to wit: " underline=""> There are many instances of span="underline" in the document, but only three errors relating to the word "underline". Thanks! |
|
|
|
|
|
#2 | |
|
Staff to 4 Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,735
Karma: 2485850
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2,Black Astak PEz, K4NT(now Wifes)
|
Quote:
In this case, I think it is the uppercase-bracketed [B] You would be best served using the newer way of doing bold, using a selector <p class="bold">... </p> and in the CSS .bold { font-weight: bold; }
__________________
Using: Ubuntu(32 bit):Oneric,Precise and XPpro SP3, W7HP(64)- - Libre Office w/Writer2EPUB
Last edited by theducks; 09-12-2012 at 07:31 PM. Reason: Ooops! the braket was MR's,strike all |
|
|
|
|
|
Enthusiast
|
|
|
|
#3 | |
|
Det
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 720
Karma: 478020
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
|
Quote:
2. Epub-Validator takes the second underline as attribute-name, not as value and probably does not see the missing quote before the second underline. Don't think too much about it... |
|
|
|
|
|
|
#4 |
|
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 184
Karma: 2572
Join Date: Aug 2010
Device: Kindle
|
You would be best served using the newer way of doing bold,
But there is no bold in that set of underlinings! Are you saying that span class=underline should be p class="underline"? I should use paragraph tags within a sentence? Surely that will create a new line? And You probably missed the Quote between the first underline and the > I don't see any missing quote. It reads: <span class="underline">. That's pasted from the original html file. Perhaps I should have said that the html validates without a problem. I suppose I could simply use italics, though that's not true to the original. |
|
|
|
|
|
#5 | |
|
Staff to 4 Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,735
Karma: 2485850
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2,Black Astak PEz, K4NT(now Wifes)
|
Quote:
, just not enough
__________________
Using: Ubuntu(32 bit):Oneric,Precise and XPpro SP3, W7HP(64)- - Libre Office w/Writer2EPUB
|
|
|
|
|
|
|
#6 |
|
Staff to 4 Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,735
Karma: 2485850
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2,Black Astak PEz, K4NT(now Wifes)
|
All I can think of: there was a mismatch in the closing </span> or different quote marks were used. something unbalanced the span
__________________
Using: Ubuntu(32 bit):Oneric,Precise and XPpro SP3, W7HP(64)- - Libre Office w/Writer2EPUB
|
|
|
|
|
|
#7 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,840
Karma: 23400772
Join Date: Jan 2010
Device: Kindle Fire HD, Kindle 2
|
I've never seen Sigil turn a opening/closing tag into an entity on well-formed (x)html. I'm not saying yours isn't/wasn't well-formed ... I'm just saying that out of the 100 of thousands of lines of (x)html code I've run into/through Sigil ... every single instance of > or < has been my fault. 100%. Either I purposely entered the entities because I wanted them there, or I screwed up the code and Sigil failed to correctly guess what I did wrong.
I've tried importing, pasting, opening that line of html you posted and I just can't get Sigil to screw it up. The only way I can get Sigil to reproduce your problem is by forgetting one of the attribute quotes.
__________________
“Politics: A strife of interests masquerading as a contest of principles. The conduct of public affairs for private advantage.” Last edited by DiapDealer; 09-12-2012 at 07:41 PM. |
|
|
|
|
|
#8 |
|
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,148
Karma: 2505637
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon
|
Maybe some of the quotes are curly/directional (“”) instead of straight? Delete and write them again and see if that helps.
|
|
|
|
|
|
#9 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 679
Karma: 1085478
Join Date: Mar 2009
Location: Bristol, England
Device: PRS-600, Acer 1825PT, Galaxy Tab, PRS-T1, HTC One X, TF700T
|
I've had this happen to me a couple of times with the 0.6.0 beta's. I never could figure out what caused it as looking at my master copies of the files that had this, they looks perfectly fine. Certainly the quotes were all straight.
This seemed to be a random occurance, I could never replicate it. It just seemed to happen.
__________________
Get 5GB of online storage for free from SugarSync. Click here for an additional 500MB to give you 5.5GB for free. Always have your stuff when you need it with @Dropbox. 2GB account is free! Click here Currently working on updating some of my Lovecraft work after receiving some corrections |
|
|
|
|
|
#10 | |
|
Det
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 720
Karma: 478020
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
|
Quote:
Just try it out: turn well-fornmed check off, paste your code to a blank xhtml, remove that quote, save and close the file and open it again and look what sigil did with your code. |
|
|
|
|
|
|
#11 |
|
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 184
Karma: 2572
Join Date: Aug 2010
Device: Kindle
|
The problem seems to have been my using underline when I should have used u. The file now validates.
I shouldn't have confused the matter by asking about the messed-up characters. Sorry! |
|
|
|
|
|
#12 | |
|
Staff to 4 Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,735
Karma: 2485850
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2,Black Astak PEz, K4NT(now Wifes)
|
Quote:
Code:
<span class="underline"> I would expect that there would be a (at minimum): Code:
.underline { text-decoration: underline; }
__________________
Using: Ubuntu(32 bit):Oneric,Precise and XPpro SP3, W7HP(64)- - Libre Office w/Writer2EPUB
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problem with Turkish Characters | aeolus | Mobi | 13 | 02-22-2012 07:10 AM |
| Pdf to epub Problem with Turkish Characters | Nazimco | ePub | 2 | 01-19-2012 07:04 PM |
| Touch Problem handling multi-byte characters? | zhhbc | Kobo Reader | 12 | 06-22-2011 09:47 AM |
| Creator Problem with spanish characters | Darkitow | Mobi | 1 | 03-25-2011 08:53 AM |
| Non-english characters input problem | Celeblin | Calibre | 3 | 06-28-2009 02:05 PM |