Hi Siniy-Kit, Jeremy,
>From my experience, naming fields with any Unicode (utf-8) names hasn't
brought any issues,
as far as I don't use the EditTemplate (which explicitly refuses non-ascii
characters for naming fields)
but rather an action widget like *action-setfield*. For instance,
<$button>
<$action-setfield $tiddler="проверка" $field="цвет" $value="красный"/>
Пойдем</$button>
<$list filter="[has[цвет]]">
<$text text={{{ [<currentTiddler>addprefix[The tiddler ]] }}}/>
<$text text={{{ [<currentTiddler>get[цвет]addprefix[ has a field named
цвет, with a value of ]] }}} />.
</$list>
Brings the expected results in current 5.1.22 and Firefox after you click
on *Пойдем*.
Siniy-Kit, do you have a counter-example where the field name is not
recognized in a filter?
-- Xavier
On Wed, Dec 23, 2020 at 2:01 PM Jeremy Ruston <[email protected]>
wrote:
> Hi Siniy-Kit
>
> As you’ve discovered, field names currently only work reliably and
> consistently if are composed of the a-z, 0-9, dash and underscore. It is
> not trivial to fix because of the way that the code expects to be able to
> roundtrip fieldnames into attribute names. I think it would require an
> update to the TiddlyWiki HTML file format.
>
> Best wishes
>
> Jeremy
>
> On 23 Dec 2020, at 08:01, Siniy-Kit <[email protected]> wrote:
>
> little demo for my question
> here
> https://heeg.ru/shop2_2.html?id=16gDZVsB8FOIxrsFKbkbBNWC37lPUAfKOGf-rCVxeOmY#567567811
> <https://heeg.ru/shop2_2.html?id=16gDZVsB8FOIxrsFKbkbBNWC37lPUAfKOGf-rCVxeOmY#567567811>
> if you edit tiddler you can see this
> <?????? ? ????? 202 0-12-23 105802.png>
> it will be nice to use this field in filters whithout +[decodeuri[]]
>
> среда, 23 декабря 2020 г. в 10:09:44 UTC+3, Siniy-Kit:
>
>> Many years ago I try to make new field "цвет" with value "красный" but it
>> was impossible, because all tiddlers are saved in this format
>>
>>
>> <div caption="tm-remove-field" created="20140908185153663"
>> modified="20140908185153663" tags="Messages" title="WidgetMessage:
>> tm-remove-field" type="text/vnd.tiddlywiki">
>>
>> <pre>The `tm-remove-field` message is handled by the FieldManglerWidget.
>> It removes the specified field......
>> </pre>
>> </div>
>>
>> So our *fields are html attributes*, so they can't contain Russian
>> letters :(
>>
>> BUT we can use js encodeURIComponent("цвет") and put it as attribute to
>> make it work.
>> Why this mechanism is still not working in Tiddlywiki?
>>
>>
>>
>>
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/a4836968-3efd-4fba-897f-fe91deb6e345n%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/a4836968-3efd-4fba-897f-fe91deb6e345n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> <?????? ? ????? 202 0-12-23 105802.png>
>
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/445A2331-444C-4B7D-A75B-DB1D8DF79C19%40gmail.com
> <https://groups.google.com/d/msgid/tiddlywiki/445A2331-444C-4B7D-A75B-DB1D8DF79C19%40gmail.com?utm_medium=email&utm_source=footer>
> .
>
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/CADeSwYMp3GwUr5%3DQukv0ditqss%3DVYhH0J%3DmbPZub4sUFBE4%3DxQ%40mail.gmail.com.