Bug 12721 - Add NFO document mimetype
Summary: Add NFO document mimetype
Status: RESOLVED FIXED
Alias: None
Product: shared-mime-info
Classification: Unclassified
Component: freedesktop.org.xml (show other bugs)
Version: unspecified
Hardware: All All
: medium normal
Assignee: Jonathan Blandford
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-06 17:52 UTC by Osmo Salomaa
Modified: 2008-04-09 08:00 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Proposed patch (686 bytes, patch)
2007-10-06 17:53 UTC, Osmo Salomaa
Details | Splinter Review

Description Osmo Salomaa 2007-10-06 17:52:30 UTC
Currently *.nfo is a glob pattern for text/x-readme. Please consider splitting that to a mimetype of its own. NFO files usually include a lot ascii art drawn with box- and line characters in the cp437 codepage. This usually means that viewing or editing NFO files correctly requires special font and encoding settings specific to this type of files.

See especially the "Compatibility problems" section
http://en.wikipedia.org/wiki/.nfo
Comment 1 Osmo Salomaa 2007-10-06 17:53:34 UTC
Created attachment 11922 [details] [review]
Proposed patch
Comment 2 Bastien Nocera 2008-02-21 07:17:38 UTC
That patch means that applications that can handle text/x-readme (or even text/plain) will be able to open the file. Is there an existing application that can open NFO files on Unix systems and display them as anything better than normal text files?
Comment 3 Osmo Salomaa 2008-02-21 09:51:52 UTC
(In reply to comment #2)
> That patch means that applications that can handle text/x-readme (or even
> text/plain) will be able to open the file.

That is intended. One can read the informative text part of NFO files fine with any text editor, just the surrounding artwork done with CP437 drawing characters needs special settings to display right.

> Is there an existing application
> that can open NFO files on Unix systems and display them as anything better
> than normal text files?

I am aware of NFO Viewer [1], which I wrote myself and KNfoViewer [2]. Because such a viewer is fairly trivial to write there are other less polished viewers out there as well.

[1] http://home.gna.org/nfoview/
[2] http://www.kde-apps.org/content/show.php/KNfoViewer?content=71309
Comment 4 Bastien Nocera 2008-04-09 08:00:44 UTC
* freedesktop.org.xml.in: Add a mime-type for NFO files, patch by
Osmo Salomaa <otsaloma@cc.hut.fi> (Closes: #12721)


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.