Bug 1001

Summary: Add entry for t602 documents.
Product: shared-mime-info Reporter: Petr Tomasek <tomasek>
Component: freedesktop.org.xmlAssignee: Jonathan Blandford <jrb>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: high CC: bugzilla
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Definition for application/x-t602 mime-type.

Description Petr Tomasek 2004-08-06 12:34:03 UTC
Could You, please, add entry for T602 documents? (T602 was popular text editor
in early nineties in the Czech republic, but is still used by some people).
Comment 1 Petr Tomasek 2004-08-06 12:35:51 UTC
Created attachment 583 [details] [review]
Definition for application/x-t602 mime-type.
Comment 2 Christian - Manny Calavera - Neumair 2005-10-29 13:38:18 UTC
Thanks for your bug report and your patience!
According to http://tinyurl.com/96nkn the number after "@CT " is arbitrary. I
have no clue whether we can use a regexp-like syntax for that. Bastien, Christophe?
Comment 3 Christian - Manny Calavera - Neumair 2005-10-29 13:39:26 UTC
Petr: btw. the T602 files are text files, right, i.e. you can open them in an
arbitrary text editor and it won't turn out to be garbage?
Comment 4 Bastien Nocera 2006-07-09 03:14:38 UTC
Comment on attachment 583 [details] [review]
Definition for application/x-t602 mime-type.

><?xml version="1.0" encoding="UTF-8"?>
><mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">

Don't make a separate file out of those types, they should be integrated in
freedesktop.org.xml.in

>   <mime-type type="application/x-t602">
>     <comment>T602 document</comment>
>     <comment xml:lang="cs" xmlns:xml="http://www.w3.org/XML/1998/namespace">Dokument T602</comment>
>     <comment xml:lang="sk" xmlns:xml="http://www.w3.org/XML/1998/namespace">Dokument T602</comment>
>     <comment xml:lang="de" xmlns:xml="http://www.w3.org/XML/1998/namespace">T602 Dokument</comment>
>     <comment xml:lang="en_GB" xmlns:xml="http://www.w3.org/XML/1998/namespace">T602 document</comment>

don't put the lang in here, the default is en, but mark those as translatable
(_comment instead of comment)

>     <magic priority="70">
>       <match offset="0" type="string" value="@CT 0"/>
>       <match offset="0" type="string" value="@CT 1"/>
>       <match offset="0" type="string" value="@CT 2"/>

Are you sure about this magic? Do you have some example files that use this
magic?

>     </magic>
>     <glob pattern="*.602"/>
><!--     <glob pattern="*.txt" /> -->

Obviously, this should go.

>   </mime-type>
></mime-info>
Comment 5 Petr Tomasek 2006-07-09 06:08:04 UTC
>>     <magic priority="70">
>>       <match offset="0" type="string" value="@CT 0"/>
>>       <match offset="0" type="string" value="@CT 1"/>
>>       <match offset="0" type="string" value="@CT 2"/>
>
> Are you sure about this magic? Do you have some example files that use this
magic?

Yes. The t602 program used the "@CT x" statement to declare in which encoding
the file was (there were three possibilities: the ibm852 or so, the Kamenicky
and the socialist koi8). This happend to be the first statement in the file,
so it can be used for identifying...

>><!--     <glob pattern="*.txt" /> -->
>
>Obviously, this should go.

.txt was regulary used by many users as an ending for t602 documents - don't
blame me!(I don't really understand how to define it, but a file with *.txt with
a "@CT x" magic SHOULD be identitied as a valid t602 file. Without it e.g.
nautilus would complain, etc.).

>Petr: btw. the T602 files are text files, right, i.e. you can open them in an
arbitrary text editor and it won't turn out to be garbage?

Not really. It's almost text with some little garbage (special/unused ascii
chars were used for simple markup like bold, or italics).

> Don't make a separate file out of those types, they should be integrated in
> freedesktop.org.xml.in

Well, that's Your bussines, I just kindly asked to add support for this document
type ;)
Comment 6 Bastien Nocera 2007-02-06 02:59:32 UTC
2007-02-06  Bastien Nocera  <hadess@hadess.net>

        * freedesktop.org.xml.in: Patch from Petr Tomasek
        <tomasek@etf.cuni.cz> to add a mime-type for the T602 word
        processor documents (Closes: #1001)

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.