[O] mimetype for orgmode files

2017-06-21 Thread John Kitchin
Is there an official mimetype for orgmode files?

John

---
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu


Re: [O] mimetype for orgmode files

2017-06-21 Thread Grant Rettke
On Wed, Jun 21, 2017 at 9:52 AM, John Kitchin  wrote:
> Is there an official mimetype for orgmode files?

In `mailcap-mime-extensions' there is a value `(".org"   . "text/x-org")'.

Maybe that is for Org-Mode.



Re: [O] mimetype for orgmode files

2017-06-21 Thread Mario Martelli
>> Is there an official mimetype for orgmode files?
> 
> In `mailcap-mime-extensions' there is a value `(".org"   . "text/x-org")'.
> 
> Maybe that is for Org-Mode.

It is :)
https://lists.gnu.org/archive/html/emacs-orgmode/2011-01/msg00977.html 


If official would mean registered with IANA, then it’s not.
https://www.iana.org/assignments/media-types/media-types.xhtml 


Link regards
Mario
— 




smime.p7s
Description: S/MIME cryptographic signature


Re: [O] mimetype for orgmode files

2017-06-21 Thread William Denton

On 21 June 2017, Mario Martelli wrote:


If official would mean registered with IANA, then it’s not.
https://www.iana.org/assignments/media-types/media-types.xhtml 



On a related note, the =file= command [1] doesn't have the magic to identify Org 
files.


$ file work-notes.org
work-notes.org: UTF-8 Unicode text, with very long lines

Writing a pattern to make this work could be an interesting project if someone 
has some spare time some day ...


Bill

[1] https://en.wikipedia.org/wiki/File_%28command%29
--
William Denton :: Toronto, Canada :: https://www.miskatonic.org/
Caveat lector.

Re: [O] mimetype for orgmode files

2017-06-21 Thread John Kitchin
hm. I tried to use this to update the mime-types on Github
(https://github.com/jshttp/mime-db/pull/82#pullrequestreview-45516223),
but the email isn't primary enough for them.

It seems like if we had something on orgmode.org specifying a mimetype
it might work, although better would be to get it in IANA.

Could we come to an agreement on "text/x-org" or "text/x-orgmode" and
document that on orgmode.org?

Mario Martelli writes:

>  Is there an official mimetype for orgmode files?
>
>  In `mailcap-mime-extensions' there is a value `(".org" . "text/x-org")'.
>
>  Maybe that is for Org-Mode.
>
> It is :)
> https://lists.gnu.org/archive/html/emacs-orgmode/2011-01/msg00977.html
>
> If official would mean registered with IANA, then it’s not.
> https://www.iana.org/assignments/media-types/media-types.xhtml
>
> Link regards
> Mario
> —


--
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu



Re: [O] mimetype for orgmode files

2017-06-21 Thread Gergely Polonkai
I'd say text/orgmode (text/x-orgmode if getting into IANA is not an
option). text/org feels too generic, as not everyone is familiar with Org.

On Wed, Jun 21, 2017, 21:36 John Kitchin  wrote:

> hm. I tried to use this to update the mime-types on Github
> (https://github.com/jshttp/mime-db/pull/82#pullrequestreview-45516223),
> but the email isn't primary enough for them.
>
> It seems like if we had something on orgmode.org specifying a mimetype
> it might work, although better would be to get it in IANA.
>
> Could we come to an agreement on "text/x-org" or "text/x-orgmode" and
> document that on orgmode.org?
>
> Mario Martelli writes:
>
> >  Is there an official mimetype for orgmode files?
> >
> >  In `mailcap-mime-extensions' there is a value `(".org" . "text/x-org")'.
> >
> >  Maybe that is for Org-Mode.
> >
> > It is :)
> > https://lists.gnu.org/archive/html/emacs-orgmode/2011-01/msg00977.html
> >
> > If official would mean registered with IANA, then it’s not.
> > https://www.iana.org/assignments/media-types/media-types.xhtml
> >
> > Link regards
> > Mario
> > —
>
>
> --
> Professor John Kitchin
> Doherty Hall A207F
> Department of Chemical Engineering
> Carnegie Mellon University
> Pittsburgh, PA 15213
> 412-268-7803
> @johnkitchin
> http://kitchingroup.cheme.cmu.edu
>
>


Re: [O] mimetype for orgmode files

2017-06-21 Thread Adonay Felipe Nogueira
`xdg-mime query filetype "[Path to some .org file.]"` shows
"text/plain", but Gnus in GNU Emacs shows it as "text/x-org".

-- 
- [[https://libreplanet.org/wiki/User:Adfeno]]
- Palestrante e consultor sobre /software/ livre (não confundir com
  gratis).
- "WhatsApp"? Ele não é livre, por isso não uso. Iguais a ele prefiro
  GNU Ring, ou Tox. Quer outras formas de contato? Adicione o vCard
  que está no endereço acima aos teus contatos.
- Pretende me enviar arquivos .doc, .ppt, .cdr, ou .mp3? OK, eu
  aceito, mas não repasso. Entrego apenas em formatos favoráveis ao
  /software/ livre. Favor entrar em contato em caso de dúvida.



Re: [O] mimetype for orgmode files

2017-07-03 Thread Bastien
Hi John,

John Kitchin  writes:

> Could we come to an agreement on "text/x-org" or "text/x-orgmode" and
> document that on orgmode.org?

I'd vote for "text/x-org".  The "mode" part sounds emacsy,
which is precisely not the point for a mimetype.

I can add this sentence to orgmode.org's homepage: 

  The /de facto/ mimetype for org attachments is "text/x-org".

Or any better suggestion?

-- 
 Bastien



Re: [O] mimetype for orgmode files

2017-07-07 Thread John Kitchin
That would work fine for me.

Let me know the url to that note when you update it so I can use it as a
primary source for the github registration.

Bastien writes:

> Hi John,
>
> John Kitchin  writes:
>
>> Could we come to an agreement on "text/x-org" or "text/x-orgmode" and
>> document that on orgmode.org?
>
> I'd vote for "text/x-org".  The "mode" part sounds emacsy,
> which is precisely not the point for a mimetype.
>
> I can add this sentence to orgmode.org's homepage: 
>
>   The /de facto/ mimetype for org attachments is "text/x-org".
>
> Or any better suggestion?


-- 
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu



Re: [O] mimetype for orgmode files

2017-08-30 Thread Bastien Guerry
Hi John,

John Kitchin  writes:

> Let me know the url to that note when you update it so I can use it as a
> primary source for the github registration.

It is now on orgmode.org homepage: http://orgmode.org/index.html

Best,

-- 
 Bastien



Re: [O] mimetype for orgmode files

2017-09-04 Thread John Kitchin
Thanks for letting me know. I let the people at
https://github.com/jshttp/mime-db/pull/82 know that. It looks like org
might be registered as a mimetype now.

Bastien Guerry writes:

> Hi John,
>
> John Kitchin  writes:
>
>> Let me know the url to that note when you update it so I can use it as a
>> primary source for the github registration.
>
> It is now on orgmode.org homepage: http://orgmode.org/index.html
>
> Best,


-- 
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu



Re: [O] mimetype for orgmode files

2017-09-04 Thread Yasushi SHOJI
Hi,

There is RFC 6648, which "deprecating the "X-" Prefix".

So, it might be better to use "text/org".

https://tools.ietf.org/html/rfc6648
-- 
   yashi



Re: [O] mimetype for orgmode files

2017-09-04 Thread Bastien Guerry
Hi Yasushi,

Yasushi SHOJI  writes:

> There is RFC 6648, which "deprecating the "X-" Prefix".

Thanks for letting us know!

> So, it might be better to use "text/org".

I’m fine with "text/org".  John?  Others?

I’ll make the change later this week if nobody disagrees.

Thanks,

-- 
 Bastien



Re: [O] mimetype for orgmode files

2017-09-05 Thread Carsten Dominik
On Tue, Sep 5, 2017 at 8:30 AM, Bastien Guerry  wrote:

> Hi Yasushi,
>
> Yasushi SHOJI  writes:
>
> > There is RFC 6648, which "deprecating the "X-" Prefix".
>
> Thanks for letting us know!
>
> > So, it might be better to use "text/org".
>
> I’m fine with "text/org".  John?  Others?
>

text/org seems to be perfect.

Carsten


>
> I’ll make the change later this week if nobody disagrees.
>
> Thanks,
>
> --
>  Bastien
>
>


Re: [O] mimetype for orgmode files

2017-09-05 Thread John Kitchin
I guess I have no objections. Let me know when it is done, and I will
see about updating mimedb.

Carsten Dominik writes:

> On Tue, Sep 5, 2017 at 8:30 AM, Bastien Guerry  wrote:
>
>> Hi Yasushi,
>>
>> Yasushi SHOJI  writes:
>>
>> > There is RFC 6648, which "deprecating the "X-" Prefix".
>>
>> Thanks for letting us know!
>>
>> > So, it might be better to use "text/org".
>>
>> I’m fine with "text/org".  John?  Others?
>>
>
> text/org seems to be perfect.
>
> Carsten
>
>
>>
>> I’ll make the change later this week if nobody disagrees.
>>
>> Thanks,
>>
>> --
>>  Bastien
>>
>>


-- 
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu



Re: [O] mimetype for orgmode files

2017-09-05 Thread Bastien Guerry
John Kitchin  writes:

> I guess I have no objections. Let me know when it is done, and I will
> see about updating mimedb.

Done!

-- 
 Bastien