[File] Adding text/gemtext to file

Christos Zoulas christos at zoulas.com
Fri Feb 28 16:21:50 UTC 2025



> On Feb 28, 2025, at 11:11 AM, file at ploum.eu wrote:
> 
> Le 25 fév 28 09:55, Christos Zoulas a écrit :
>> 
>> 
>>>> 
>>>> There is no magic number for gemtext, or any required structure that
>>>> file(1) can rely upon to identify the format.
>>>> 
>>> 
>>> Is there a way to solve that and create one?
>>> 
>>> (my question might be dumb, I’ve no knowledge about how all of that is working)
>>> 
>> 
>> The creators of the format could have required an Identifying string for all gemtext files,
>> for example every gemtext file should start with:
>> 
>> -GemText-
>> 
>> or something, but they did not do that because they wanted the format to resemble regular
>> text and to not have anything special about it.
>> 
>> christos
> 
> Is there a list about all those Identifying strings somewhere? That 
> would help me understand when a gemtext file is identified as something 
> else.

They are all in: https://github.com/file/file/tree/master/magic/Magdir

christos
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 235 bytes
Desc: Message signed with OpenPGP
URL: <https://mailman.astron.com/pipermail/file/attachments/20250228/19dbd676/attachment.asc>


More information about the File mailing list