X-KDE-IsAlso=text/plain

Nicolas Goutte nicolasg at snafu.de
Tue Jul 26 20:47:07 BST 2005


On Tuesday 26 July 2005 21:21, Andras Mantia wrote:
> On Tuesday 26 July 2005 22:11, Nicolas Goutte wrote:
> > Sorry I do not like it.
> >
> > The mime type text/plain is about human-readable text, which things
> > like application/xhtml+xml or text/html or even source mime types are
> > certainly not.
> >
> > RFC 2046:
> >
> > <quote>The subtype "plain" in
> >           particular indicates plain text containing no
> >           formatting commands or directives of any sort. Plain
> >           text is intended to be displayed "as-is".</quote>
>
> Than how can we know if a files can be opened in a text editor or not?
> Either using the old way ([Property::X-KDE-text]) or adding text/plain
> to X-KDE-IsAlso. For me it's the same, but we should decide, so I can
> code applications (Quanta & KDevelop) in the right way. Right now some
> mimetypes have [Property::X-KDE-text], others have X-KDE-IsAlso as
> well. Quanta uses the first, KDevelop uses the second approach to see
> if the file is text, thus can be opened in a text editor. Other
> applications that can edit text files (any kind of text files) might
> use other approaches.
>  This is just insane, so better decide one, common way.

If your goal is to open text files, then I suppose that it is why X-KDE-Text 
was created (by the Kate developers if I remember well).

In any case, if a mime type has not a X-KDE-Text but is text-based, then this 
property should be added to that mime type.

Also X-KDE-.Text is also part of the mime type database of freedesktop.org, so 
if we are switching to this database in KDE4, we should be careful that we 
would not have control anymore of what mime type "is also" another mime type.

Have a nice day!

>
> Andras





More information about the kde-core-devel mailing list