|
|
#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 |
|
|
|
|
|
#2 |
|
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,570
Karma: 20150435
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 | |
|
|
|
|
#3 |
|
Junior Member
![]() Posts: 7
Karma: 10
Join Date: May 2010
Device: Apple iPad
|
I am sure it would.
J |
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Content Special Characters in Collections | bear4hunter | Amazon Kindle | 2 | 08-06-2010 08:11 PM |
| special characters in epub? | biltron | Introduce Yourself | 5 | 12-20-2009 04:50 PM |
| Epub and special characters again | mtravellerh | Calibre | 3 | 01-04-2009 01:55 PM |
| REFERENCE: Special Characters | nrapallo | IMP | 2 | 04-07-2008 02:29 PM |
| Special Characters / Fonts | Gatton | IMP | 4 | 03-21-2008 02:43 AM |