From: David Knight <david@ri...> - 2000-01-22 22:11:50
As it stands the entity insertion is only really usefull for pages using
iso-8859-1 as the character set.
I had a request to allow the disabling of the insertion, either explicitly,.
or by detecting the charset used by the page.
This has got me to thinking, currently the entities are identified in a
switch statement, now this leads to long code with all the case statements
making it slightly more difficult to follow, and is specific to the 1
character set. What I was thinking is to somehow change this, so that there
could be auto entity configuration files that were loaded for the different
Now the above would certainly be slower than the switch statement but its
just a question of implementation. I'm thinking along the lines of a binary
tree, based on the key code, and then store the entity name in the tree
along with the code. Then the tree would just need to be traversed to find
the key that was pressed, and hence the entity to use, or not if the keycode
Make your site SCREEM - Site Creating & Editing EnvironMent