06-02-2010, 05:36 AM | #1 |
Junior Member
Posts: 7
Karma: 10
Join Date: May 2010
Device: Apple iPad
|
HTML special characters - tip for the unwary
I am continuing a mammoth recompile and have now discovered an interesting feature in Sigil (bearing in mind I am recompiling stuff already done in Calibre).
A common abbreviation for 'et cetera' is '&c.' as well as 'etc.' If you leave '&c.' in your source file, the parser in Sigil thinks this is the start of a Special Character (like — and so on), and promptly drops the rest of the file, since it is looking for a concluding semi-colon and a valid Special HTML Character. Remedy: global replace of '&c.' by 'etc.' (I have just done a text where there were ten of these). I am not raising a bug report about this, because it is easier to fix the 'feature' by getting the source clean to start with. John |
06-02-2010, 07:00 AM | #2 |
frumious Bandersnatch
Posts: 7,514
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Doesn't it work if you replace & with & (the correct way to have an ampersand in HTML)?
|
Advert | |
|
06-02-2010, 01:40 PM | #3 |
Junior Member
Posts: 7
Karma: 10
Join Date: May 2010
Device: Apple iPad
|
I am sure it would.
J |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Content Special Characters in Collections | bear4hunter | Amazon Kindle | 2 | 08-06-2010 07:11 PM |
special characters in epub? | biltron | Introduce Yourself | 5 | 12-20-2009 03:50 PM |
Epub and special characters again | mtravellerh | Calibre | 3 | 01-04-2009 12:55 PM |
REFERENCE: Special Characters | nrapallo | IMP | 2 | 04-07-2008 01:29 PM |
Special Characters / Fonts | Gatton | IMP | 4 | 03-21-2008 01:43 AM |