01-12-2024, 11:25 PM | #1 |
EBook-obsessive gal
Posts: 39
Karma: 10
Join Date: Mar 2011
Location: La ciudad de la eterna primavera
Device: Kobo Clara HD
|
Sigil+HTML question: How to show/visualize entities and code?
Hi, everybody.
I want to show some text like this small example, as it is: Podemos usar una entidad word-joiner (⁠ en hexadecimal o *** en decimal). Es decir, así quedaría el código: —⁠un inciso o comentario subordinado⁠— o tal vez con «⁠comillas francesas⁠» o con “⁠comillas inglesas⁠”. Since Code:
⁠ Code:
*** How do I ask Sigil to stop converting that code to real entities, and instead show the codes? I already tried <code> and <pre> tags, but they do not work. I do not want to use &£x2060: notoation because it would be extremely long and prone to error. (*** I neither cannot show here the decimal code for the word-joiner entity). Last edited by celiapgt; 01-12-2024 at 11:31 PM. |
01-13-2024, 09:11 AM | #2 |
Sigil Developer
Posts: 7,727
Karma: 5444398
Join Date: Nov 2009
Device: many
|
Sigil Preferences Preserve Entities has a setting to list the entities to preserve in CodeView.
In Preview you can not "preserve entities" unless you indeed xml encode the entity code itself by escaping the leading ampersand (use &#x2060; notation). Without that lead & it is not considered an entity any more by Preview (just a string of characters). Note that under modern epub3 specs, except for the base xml entities, only numeric entities are valid. Last edited by KevinH; 01-13-2024 at 11:31 AM. |
Advert | |
|
01-13-2024, 05:44 PM | #3 |
EBook-obsessive gal
Posts: 39
Karma: 10
Join Date: Mar 2011
Location: La ciudad de la eterna primavera
Device: Kobo Clara HD
|
I see, @KevinH.
Thanks for the response! |
01-13-2024, 11:41 PM | #4 |
A Hairy Wizard
Posts: 3,119
Karma: 18727091
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
You can also use the 'clips' function in Sigil to put the & in front of your entity code… it’ll save some typing and you won’t have to worry about misspelling it.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sigil removes required HTML Table code | lomtickofbooks | Sigil | 12 | 09-24-2019 04:35 AM |
Automatic change of coded HTML Entities into special chars in Sigil 0.9.9 upon saving | Barto | Sigil | 20 | 12-01-2018 05:56 AM |
Quick html code question... | pargoo | Sigil | 4 | 11-19-2013 03:05 PM |
can sigil convert html entities to regular punctuation? | Gregg Bell | Sigil | 31 | 07-01-2013 09:29 AM |
Untitled.ePub-Sigil and Code question | soulartist | Sigil | 3 | 12-09-2010 05:06 PM |