Bug 15852 - "Gnuplot document" should be "Gnuplot script"
Summary: "Gnuplot document" should be "Gnuplot script"
Status: RESOLVED FIXED
Alias: None
Product: shared-mime-info
Classification: Unclassified
Component: freedesktop.org.xml (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Jonathan Blandford
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-07 05:11 UTC by Krzysztof Kosiński
Modified: 2008-06-11 09:53 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Krzysztof Kosiński 2008-05-07 05:11:59 UTC
Gnuplot is a command line program and I presume that application/x-gnuplot is for files which contain Gnuplot commands. A better definition would be:

  <mime-type type="text/x-gnuplot">
    <_comment>Gnuplot script</_comment>
    <alias type="application/x-gnuplot"/>
    <sub-class-of type="text/plain"/>
    <generic-icon name="text-x-script"/>
    <glob pattern="*.gp"/>
    <glob pattern="*.gplt"/>
    <glob pattern="*.gnuplot"/>
  </mime-type>

As a related note, scripting language types in general like application/x-php and application/x-perl fit better in the text/* namespace, because they are human-readable (I understand the text/* namespace to encompass human-readable text files), but that's probably another bug.
Comment 1 Bastien Nocera 2008-06-11 09:53:19 UTC
(In reply to comment #0)
> Gnuplot is a command line program and I presume that application/x-gnuplot is
> for files which contain Gnuplot commands. A better definition would be:
> 
>   <mime-type type="text/x-gnuplot">
>     <_comment>Gnuplot script</_comment>

Whether it's a scripting language or not, it's hard to say that Gnuplot documents are scripts. Otherwise you could consider SVG files scripts as well...

>     <alias type="application/x-gnuplot"/>
>     <sub-class-of type="text/plain"/>

I've added the subclass for text/plain, makes it easily editable in text editors if there's no other handler.

>     <generic-icon name="text-x-script"/>
>     <glob pattern="*.gp"/>
>     <glob pattern="*.gplt"/>
>     <glob pattern="*.gnuplot"/>
>   </mime-type>
> 
> As a related note, scripting language types in general like application/x-php
> and application/x-perl fit better in the text/* namespace, because they are
> human-readable (I understand the text/* namespace to encompass human-readable
> text files), but that's probably another bug.

They already have sub-class-of properties, so it makes little difference.


* freedesktop.org.xml.in: Make application/x-gnuplot a
sub-class-of text/plain (Closes: #15852)


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.