View Single Post
Old 08-30-2015, 02:48 AM   #42
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: 7,560
Karma: 20150435
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by Turtle91 View Post
Quick question... why would anyone use entities in the first place? Why not just insert the actual unicode character??? Much easier to understand what the entity is if you just read it. And most readers/apps support unicode, don't they?
You can always type an entity, but the Unicode character may not be easily accessible in your keyboard layout (you could use ALT+code, but then you need to know the code, which is harder, and it doesn't work in all platforms).

Some characters are not visually distinguishable, like &nbps; and space, or m- and n-dash in a monospace font. Some characters are actually the same, like curly apostrophe and curly right single quote (I sometimes use entities for one of them, so I can know which is which if I want to bulk-replace quotes, for example). You may want to explicitly save some accented characters as precomposed and others as accent + base character, with entities you can see the difference, without... the editor may convert one to the other.

But entities are a pain in the arse for regex and searching in general.
Jellby is offline   Reply With Quote