[TW5] pb with field name

73 views
Skip to first unread message

FrD

unread,
Apr 18, 2014, 1:19:34 PM4/18/14
to tiddl...@googlegroups.com
Hi,

On a fresh 5.0.9 TW I've tried to add a new field to a tiddler (text empty for now), called "durée" (french for duration or time).
It looks as it's not possible. I get the following warning :

"Illegal characters in field name "durée". Fields can only contain lowercase letters and the characters underscore (_), hyphen (-) and period (.)"

The pb is obviously the "é".

Of course I'd like to be able to use accented letters. Maybe it's related with the translations in other langages that are to come ?

FrD

Jeremy Ruston

unread,
Apr 18, 2014, 1:33:34 PM4/18/14
to TiddlyWiki
Hi FrD

At the moment we restrict field names to the non-accented latin lower case letters because the TiddlyWiki file format represents fields as attributes, and so field names need to be valid HTML attribute names. The format is a bit of an anachronism, and the plan is to update to a more robust, easy to parse format, at which point we could relax the restrictions on field names.

Best wishes

Jeremy



--
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 post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.



--
Jeremy Ruston
mailto:jeremy...@gmail.com

FrD

unread,
Apr 18, 2014, 4:06:25 PM4/18/14
to tiddl...@googlegroups.com, jeremy...@gmail.com
Hi Jeremy,

Thanks for the answer ; I'm fine with it.

FrD

Julie

unread,
Apr 19, 2014, 2:12:57 AM4/19/14
to tiddl...@googlegroups.com
Would you advise to change the accentuated characters before of after upgrading, when an existing 5.0.8 already uses accentuated fields names?

Jeremy Ruston

unread,
Apr 19, 2014, 5:12:44 AM4/19/14
to TiddlyWiki
Hi Julie

Would you advise to change the accentuated characters before of after upgrading, when an existing 5.0.8 already uses accentuated fields names?

Ouch, that's a pain. I'd suggest changing the accented characters before upgrading (maybe with search and replace in a text editor?). The enforcement of valid field names only happens at field creation time in the UI, so things would work after an upgrade until you tried to add a new one of those fields.


Best


--
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 post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Julie

unread,
Apr 22, 2014, 4:20:25 AM4/22/14
to tiddl...@googlegroups.com, jeremy...@gmail.com
Thanks for the advise and explanation.


Ouch, that's a pain.
I used the same trick as Alberto Molina for his thesis notebook : a "catégorie" field to trigger various display views. The French language makes intensive use of accented characters ^^


maybe with search and replace in a text editor?
Yes, it is what I had in mind. And being careful to only change fields names and operators/operand, not tiddler's content if the same word is used inside one of them. It'll be more annoying than a real pain, and it's the risk of using a (very nice) beta tool :)
Reply all
Reply to author
Forward
0 new messages