FYI: I was able to verify the button provided by Xavier on the sample TW 
that Siniy-Kit provided. His link opens a specific Tiddler. I edited that 
tiddler and pasted in the below code. I was also able to verify Eric 
Shulman's comment that the field names are converted to lower case upon 
saving.

The sample Tiddler already had two fields with a "parametr-" prefixed name. 
Those are shown in the "See already existing fields". His fields looked 
like this.

Field: -parametr-%D1%86%D0%B2%D0%B5%D1%82-
Field: -parametr-%D1%80%D0%B0%D0%B7%D0%BC%D0%B5%D1%80-  

The button provided by Xavier did set the value correctly.

After saving the wiki and re-opening from my Downloads directory, I added 
the "#567567811" bookmark tag to the end of the address bar. This brought 
up the originally edited Tiddler. The field name set by the button provided 
by Xavier was persisted and still showed correctly. The original 
"paremetr-" prefixed fields had their hexadecimal values turned into 
lowercase.

Field: -parametr-%d1%86%d0%b2%d0%b5%d1%82-
Field: -parametr-%d1%80%d0%b0%d0%b7%d0%bc%d0%b5%d1%80-  


```
!!Set field using button

<$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>

!!See already existing fields
<$list filter="[fields[]prefix[para]]">Field: -<<currentTiddler>>-<br>
</$list>
```

On Wednesday, December 23, 2020 at 9:36:27 AM UTC-8 Eric Shulman wrote:

> On Wednesday, December 23, 2020 at 9:09:20 AM UTC-8 Xavier wrote:
>
>> From my experience, naming fields with any Unicode (utf-8) names hasn't 
>> brought any issues, 
>>
>
> While $action-setfield allows you to create a field name using almost any 
> characters, the issue is whether the field name remains unchanged after 
> saving and reloading the file.
>
> For example, I can use $action-setfield to create a tiddler field name 
> that uses mixed case (e.g., "SomeFieldName"), and that fieldname will work 
> just fine in a filter during that session (e.g., "{{{ 
> [[SomeTiddler]get[SomeFieldName]] }}}").
>
> However, after I save and reload the file, the fieldname will become 
> "somefieldname", and the filter then fails.
>
> -e
>

-- 
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/896d6917-49f6-451f-b728-0a0d43fea7f7n%40googlegroups.com.

Reply via email to