View Single Post
Old 07-22-2014, 10:54 AM   #71
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,809
Karma: 6000000
Join Date: Nov 2009
Device: many
Hi,

Quote:
Originally Posted by Doitsu View Post
I assumed that this was only necessary for non-standard entities.
After adding them to the list everything worked as advertised.

I'm sorry for causing you extra work.
Qt's source has a file with just the known named entities and their codes in it called HTMLEntityNames.in (you can find it in the source tree of Qt). That file has over 2231 different named entities in it. Then when you add in all of the possible numeric entities both as normal (base 10) and hex (base 16) codepoints to that you end up with a huge list.

So instead of trying to deal with all of those possibilities (and there are too many of them for the approach used here to work anyway), I decided to go with the concept of "working sets" which are the ones a developer/ebook editor tends to use. The Preferences settings allows you to easily add or change your working sets of named/numbered entities.

I did just set the default to have & nbsp ; , but if there is a short list of the most common named entities, I could easily change the code to default to that short list upon start-up.

I would just need a list of the most common ones real book-editors tend to want to use. So if you have or could make such a short list, I would love to have it.

Thanks,

KevinH
KevinH is online now   Reply With Quote