Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 07-13-2013, 10:27 AM   #1
Notjohn
Addict
Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.
 
Posts: 233
Karma: 246332
Join Date: Dec 2012
Device: Kindle
Sigil doesn't like named entities

I am revising a book published a few years ago when I still trusted Word's export to html, but when I open it in Sigil, I get an error at the first named entity, which was an – and when I fixed that, it choked at the very next one, with many more waiting down the line.

Since Sigil has never before complained about my use of named entities (I prefer them to numerical entities because I can read them as I go), I'm guessing that this is because Microsoft has its own peculiar way of rendering html entities, which show on my text editor as ^R, ^V, and so forth.

Is there an easy fix for this, such as by telling Sigil there are two entity modes in use?

Mixing Word export and named entities has never caused me a problem in uploading html to Amazon or Barnes & Noble for conversion. Indeed, the very html file I have opened is already on sale as a Kindle and an epub book.
Notjohn is offline   Reply With Quote
Old 07-13-2013, 11:46 AM   #2
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 15,059
Karma: 5939999
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
I use them all the time in Sigil
(recently used &bul; ° 10 ° &bul; as a chapter # decoration)

Something else is wrong. codepage?
theducks is offline   Reply With Quote
Old 07-13-2013, 12:42 PM   #3
Notjohn
Addict
Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.
 
Posts: 233
Karma: 246332
Join Date: Dec 2012
Device: Kindle
Perhaps Sigil wants to see two codepages, one for Word-generated html, the other for named entities?

I ran the Word doc through word2cleanhtml.com online, and now all is fine, with the minor cavil that all the entities (Word's and mine) have become numerical entities. In any event, Sigil has no problem opening the book.
Notjohn is offline   Reply With Quote
Old 07-13-2013, 12:48 PM   #4
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 15,059
Karma: 5939999
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
NJ did you think to Validate one of the failing files before feeding it to Sigil?
That might give a clue.
theducks is offline   Reply With Quote
Old 07-13-2013, 01:50 PM   #5
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 9,409
Karma: 43171350
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Gotta be the declaration.
Named entities work fine, for the most part, but not unless the doctype and all the namespace declarations allow for them.
DiapDealer is online now   Reply With Quote
Old 07-13-2013, 04:41 PM   #6
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 2,588
Karma: 14407087
Join Date: Apr 2010
Location: Phoenix, AZ
Device: Kindle2, iPad, KindleFire and NookColor
Quote:
Originally Posted by DiapDealer View Post
Gotta be the declaration.
Named entities work fine, for the most part, but not unless the doctype and all the namespace declarations allow for them.
Agreed. We used named entities all the time, it's our inhouse rule. Sigil may/mayn't change them, but going in, they're all named. Never had a problem except when I mistype them (which is, blush, often). ;-)

Hitch
Hitch is offline   Reply With Quote
Old 07-13-2013, 04:47 PM   #7
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 15,059
Karma: 5939999
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by Hitch View Post
Never had a problem except when I mistype them (which is, blush, often). ;-)

Hitch
Welcome to that club
Which makes me wonder ? WHY ? EPUB3 supposedly does not allow named entities.
Try and remember a frickn' number

They call them (named entities) mnemonics for a reason
theducks is offline   Reply With Quote
Old 07-13-2013, 06:08 PM   #8
Notjohn
Addict
Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.
 
Posts: 233
Karma: 246332
Join Date: Dec 2012
Device: Kindle
I wish I had a mnemonic so I would remember where that word came from!

Yes, "declaration" must be the term I was looking for. I just use a generic <!DOCTYPE HTML>. Odd that Microsoft's ^R would pass muster, and the named entity not, when both are in the same file. I'd be less surprised if it were the other way around.

Speaking of declarations, does MathML work in any e-book format?
Notjohn is offline   Reply With Quote
Old 07-13-2013, 06:45 PM   #9
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 2,588
Karma: 14407087
Join Date: Apr 2010
Location: Phoenix, AZ
Device: Kindle2, iPad, KindleFire and NookColor
Quote:
Originally Posted by Notjohn View Post
I wish I had a mnemonic so I would remember where that word came from!

Yes, "declaration" must be the term I was looking for. I just use a generic <!DOCTYPE HTML>. Odd that Microsoft's ^R would pass muster, and the named entity not, when both are in the same file. I'd be less surprised if it were the other way around.

Speaking of declarations, does MathML work in any e-book format?
Well, it meant mindful, back when it was "mnēmōn" in Greek, if that helps.

With regard to your second:

Even the big fancy iBooks volume on Algebra uses all images of the equations and forumlae. Maybe ePUB3 does, but I admit: I knoweth not if it does.

Hitch
Hitch is offline   Reply With Quote
Old 07-14-2013, 04:08 AM   #10
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 6,253
Karma: 4801165
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
If I remember correctly, the DOCTYPE is not needed in ePub. But if it's present it must be correct (which implies you cannot have SVG code, for instance). It may be that Sigil wants it, but according to the spec, files without a DOCTYPE should be XHTML anyway (which normal named entities).

The above is valid only for HTML-like files, of course, you cannot use named entities in XML files, such as the OPF or NCX, you must use numerical entities or the actual characters there. This means that you'd better not use named entities in titles, I guess (maybe Sigil could automatically convert entities to characters when creating the TOC, if it doesn't already).
Jellby is offline   Reply With Quote
Old 07-14-2013, 11:35 AM   #11
ventdefolie
Junior Member
ventdefolie began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Nov 2011
Device: none
Quote:
Originally Posted by Notjohn View Post
I am revising a book published a few years ago when I still trusted Word's export to html, but when I open it in Sigil, I get an error at the first named entity, which was an &ndash; and when I fixed that, it choked at the very next one, with many more waiting down the line.
I had the same problem and solved it by inserting the doctype in the Xhtml files:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
i.e Search : <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
Replace : <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

After that Sigil doesn't complain any more !
ventdefolie is offline   Reply With Quote
Old 07-14-2013, 11:36 AM   #12
Notjohn
Addict
Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.
 
Posts: 233
Karma: 246332
Join Date: Dec 2012
Device: Kindle
Quote:
Originally Posted by Hitch View Post
Well, it meant mindful, back when it was "mnēmōn" in Greek, if that helps.
I have always regretted that I didn't take at least enough Greek to be able to read the letters and pronounce the words!

I can handle some Cyrillic because I once noticed that RESTAURANT was spelled PECTOPAH.
Notjohn is offline   Reply With Quote
Old 07-14-2013, 11:47 AM   #13
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: 9,730
Karma: 5072190
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2
Quote:
Originally Posted by Notjohn View Post
I wish I had a mnemonic so I would remember where that word came from!

Yes, "declaration" must be the term I was looking for. I just use a generic <!DOCTYPE HTML>. Odd that Microsoft's ^R would pass muster, and the named entity not, when both are in the same file. I'd be less surprised if it were the other way around.

Speaking of declarations, does MathML work in any e-book format?
MathML is supported in ePub 3. See the wiki for more on this.
DaleDe is offline   Reply With Quote
Old 07-15-2013, 12:12 AM   #14
st_albert
Fanatic
st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.
 
Posts: 549
Karma: 94420
Join Date: Feb 2010
Device: none
Quote:
Originally Posted by Notjohn View Post
I have always regretted that I didn't take at least enough Greek to be able to read the letters and pronounce the words!

I can handle some Cyrillic because I once noticed that RESTAURANT was spelled PECTOPAH.
Heh. Having studied English, Spanish, Russian, Latin, and German, and having lightly perused a Greek language textbook, my opinion is: you can learn the Greek alphabet ( and you should. If you can read cyrillic, you're half way there.) but NEVER regret not learning the (classical) Greek language. Had I tried it, my brain would probably have melted. My "classical" education falters at that point.

No flames please; this is just MHO. ::grin, duck, run::

Albert
st_albert is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
can sigil convert html entities to regular punctuation? Gregg Bell Sigil 31 07-01-2013 10:29 AM
Epub no support for some named entities? Points ePub 25 11-19-2012 07:42 PM
named anchors fail validation in sigil lkasdorf Sigil 2 04-20-2012 11:55 PM
decimal entities in ePub instead of character entities epub4ever Calibre 4 04-20-2012 03:27 AM
Named entities or not? alecE ePub 17 07-21-2009 01:24 PM


All times are GMT -4. The time now is 01:27 AM.


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