Re: [tw5] Re: .tid file format

2021-06-16 Thread Soren Bjornstad
Aha, you've accidentally solved the mystery of why I have two tiddlers 
stored as JSON in my Zettelkasten wiki! They have newlines in fields. 
Thanks. :-)

On Wednesday, June 16, 2021 at 9:32:37 AM UTC-5 jeremy...@gmail.com wrote:

> Just to add that the .tid file format really is as simple as it looks, 
> with the constraints implied by that simplicity:
>
> * Field names cannot contain colons
> * Field values (apart from the "text" field) cannot contain newlines
>
> The core works around these limitations by saving tiddlers in JSON format 
> if they don't meet the criteria for .tid files.
>
> Best wishes
>
> Jeremy
>
> --
> Jeremy Ruston
> jer...@jermolene.com
> https://jermolene.com
>
> On 16 Jun 2021, at 13:31, Soren Bjornstad  wrote:
>
> To be clear since it sounds like you might be trying to create them from 
> scratch without any reference to look off, you probably want to include at 
> least the fields *created*, *modified*, *tags*, *title*, and *type. *Type 
> is *text/vnd.tiddlywiki* for standard wikitext, and created/modified are 
> MMDDHHMMSSXXX timestamps (normalized to UTC).
>
> On Wednesday, June 16, 2021 at 7:29:11 AM UTC-5 Soren Bjornstad wrote:
>
>> David,
>>
>> I parse them all the time and there's not really much to it – most of the 
>> fields are at the top separated from their values by a colon and a space, 
>> and then after the first blank line is the *text* field.
>>
>> I imagine this may change slightly in the upcoming version 5.2 since 
>> field names are going to be allowed to contain more characters than they 
>> currently do (not sure what would happen if you put a colon in a field name 
>> in 5.2, for instance).
>>
>> On Wednesday, June 16, 2021 at 3:12:56 AM UTC-5 David Shaw wrote:
>>
>>> Is the format of a .tid file available anywhere?
>>>
>>> I ask because I am using Python to pull information from the Web, which 
>>> I then want to get into a Tiddlywiki and, for reasons that are far too 
>>> long, complicated and boring to go into here, I am having to do all this on 
>>> an Android device and can't get JSON import to work in Tiddloid. 
>>>
>>> Many thanks,
>>>
>>> David Shaw
>>>
>> -- 
> You received this message because you are subscribed to the Google Groups 
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to tiddlywiki+...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/c0a69b7a-3d77-479e-af4a-98722feb3d85n%40googlegroups.com
>  
> 
> .
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/7197e295-7719-41f6-8f57-2accfa23f190n%40googlegroups.com.


[tw5] Re: .tid file format

2021-06-16 Thread David Shaw
Thanks to all for your replies; that was exactly the information I was
looking for. Now to get Pythoning.

David Shaw

On Wed, 16 Jun 2021, 09:12 David Shaw,  wrote:

> Is the format of a .tid file available anywhere?
>
> I ask because I am using Python to pull information from the Web, which I
> then want to get into a Tiddlywiki and, for reasons that are far too long,
> complicated and boring to go into here, I am having to do all this on an
> Android device and can't get JSON import to work in Tiddloid.
>
> Many thanks,
>
> David Shaw
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAHODQvzO_Pcd-Jxc9vFP2GSobne29FnkrshVfcw_C83EydRe8g%40mail.gmail.com.


Re: [tw5] Re: .tid file format

2021-06-16 Thread Jeremy Ruston
Just to add that the .tid file format really is as simple as it looks, with the 
constraints implied by that simplicity:

* Field names cannot contain colons
* Field values (apart from the "text" field) cannot contain newlines

The core works around these limitations by saving tiddlers in JSON format if 
they don't meet the criteria for .tid files.

Best wishes

Jeremy

--
Jeremy Ruston
jer...@jermolene.com
https://jermolene.com

> On 16 Jun 2021, at 13:31, Soren Bjornstad  wrote:
> To be clear since it sounds like you might be trying to create them from 
> scratch without any reference to look off, you probably want to include at 
> least the fields created, modified, tags, title, and type. Type is 
> text/vnd.tiddlywiki for standard wikitext, and created/modified are 
> MMDDHHMMSSXXX timestamps (normalized to UTC).
> 
>> On Wednesday, June 16, 2021 at 7:29:11 AM UTC-5 Soren Bjornstad wrote:
>> David,
>> 
>> I parse them all the time and there's not really much to it – most of the 
>> fields are at the top separated from their values by a colon and a space, 
>> and then after the first blank line is the text field.
>> 
>> I imagine this may change slightly in the upcoming version 5.2 since field 
>> names are going to be allowed to contain more characters than they currently 
>> do (not sure what would happen if you put a colon in a field name in 5.2, 
>> for instance).
>> 
>>> On Wednesday, June 16, 2021 at 3:12:56 AM UTC-5 David Shaw wrote:
>>> Is the format of a .tid file available anywhere?
>>> 
>>> I ask because I am using Python to pull information from the Web, which I 
>>> then want to get into a Tiddlywiki and, for reasons that are far too long, 
>>> complicated and boring to go into here, I am having to do all this on an 
>>> Android device and can't get JSON import to work in Tiddloid. 
>>> 
>>> Many thanks,
>>> 
>>> David Shaw
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to tiddlywiki+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/c0a69b7a-3d77-479e-af4a-98722feb3d85n%40googlegroups.com.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/AB9CA16B-44BC-4E58-9C91-231CEFE81359%40gmail.com.


[tw5] Re: .tid file format

2021-06-16 Thread Soren Bjornstad
To be clear since it sounds like you might be trying to create them from 
scratch without any reference to look off, you probably want to include at 
least the fields *created*, *modified*, *tags*, *title*, and *type. *Type 
is *text/vnd.tiddlywiki* for standard wikitext, and created/modified are 
MMDDHHMMSSXXX timestamps (normalized to UTC).

On Wednesday, June 16, 2021 at 7:29:11 AM UTC-5 Soren Bjornstad wrote:

> David,
>
> I parse them all the time and there's not really much to it – most of the 
> fields are at the top separated from their values by a colon and a space, 
> and then after the first blank line is the *text* field.
>
> I imagine this may change slightly in the upcoming version 5.2 since field 
> names are going to be allowed to contain more characters than they 
> currently do (not sure what would happen if you put a colon in a field name 
> in 5.2, for instance).
>
> On Wednesday, June 16, 2021 at 3:12:56 AM UTC-5 David Shaw wrote:
>
>> Is the format of a .tid file available anywhere?
>>
>> I ask because I am using Python to pull information from the Web, which I 
>> then want to get into a Tiddlywiki and, for reasons that are far too long, 
>> complicated and boring to go into here, I am having to do all this on an 
>> Android device and can't get JSON import to work in Tiddloid. 
>>
>> Many thanks,
>>
>> David Shaw
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c0a69b7a-3d77-479e-af4a-98722feb3d85n%40googlegroups.com.


[tw5] Re: .tid file format

2021-06-16 Thread Soren Bjornstad
David,

I parse them all the time and there's not really much to it – most of the 
fields are at the top separated from their values by a colon and a space, 
and then after the first blank line is the *text* field.

I imagine this may change slightly in the upcoming version 5.2 since field 
names are going to be allowed to contain more characters than they 
currently do (not sure what would happen if you put a colon in a field name 
in 5.2, for instance).

On Wednesday, June 16, 2021 at 3:12:56 AM UTC-5 David Shaw wrote:

> Is the format of a .tid file available anywhere?
>
> I ask because I am using Python to pull information from the Web, which I 
> then want to get into a Tiddlywiki and, for reasons that are far too long, 
> complicated and boring to go into here, I am having to do all this on an 
> Android device and can't get JSON import to work in Tiddloid. 
>
> Many thanks,
>
> David Shaw
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/d8b79596-679a-4c4d-a8c4-41da0e26069dn%40googlegroups.com.