Future of some functions in the class KCharsets

Frans Englich englich at kde.org
Mon Sep 4 12:04:37 BST 2006


On Sunday 03 September 2006 11:40, Thiago Macieira wrote:
> Nicolas Goutte wrote:
> >As the functions are not related to QTextCodec and as the KCharsets
> > class has changed its main purpose since Qt2/KDE2, I intend to move
> > them out in they own class.
> >
> >I propose the name KEntity for that class. (I have chosen the singular
> > form, as there is already a file entities.c which is related.)
>
> Make that KHtmlEntity, since they are HTML-specific (except for < and
> &, which come from XML).

In what way is it HTML-specific? Isn't it only XML-specific? If it 
recognizes/uses HTML-specific entities such as nbsp, I think it's 
HTML-specific.

"entity" is also a very broad name(e.g, not XML/HTML specific), and in either 
case there are other types of entities than characters(that this class does 
not handle). The class neither is or represent an entity/character reference.

I would call it something involving "character reference" since that's what it 
do. Something like KCharacterReferenceHelper, but not so long..

http://www.w3.org/TR/REC-xml/#sec-references


Cheers,

		Frans




More information about the kde-core-devel mailing list