Ok, I've done simple tests. Adding

абвгдеёжзийклмнопрстуфхцчшщъыьэюяАБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ

(a space in the end) to each of the ([\.\w]+) parts let me get this
working:

==== Tiddler: [[Сегменты с русскими именами: тесты]] ====
|Slicename|slice content|
|Slice name|slice content 2|
|Имясегмента|содержимое сегмента 3|
|Имя сегмента|содержимое сегмента 4|
{{{<<tiddler [[Сегменты с русскими именами: тесты::Slicename]]>>}}}
<<tiddler [[Сегменты с русскими именами: тесты::Slicename]]>>
{{{<<tiddler [[Сегменты с русскими именами: тесты::Slice name]]>>}}}
<<tiddler [[Сегменты с русскими именами: тесты::Slice name]]>>
{{{<<tiddler [[Сегменты с русскими именами: тесты::Имясегмента]]>>}}}
<<tiddler [[Сегменты с русскими именами: тесты::Имясегмента]]>>
{{{<<tiddler [[Сегменты с русскими именами: тесты::Имя сегмента]]>>}}}
<<tiddler [[Сегменты с русскими именами: тесты::Имя сегмента]]>>

(each of the four tiddler macro shows the content).

But the thing is -- I got this working when I changed the core. First,
I wrote a plugin:

TiddlyWiki.prototype.slicesRE = /(?:^([\'\/]{0,2})~?([\.
\wабвгдеёжзийклмнопрстуфхцчшщъыьэюяАБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ ]
+)\:\1[\t\x20]*([^\n]*)[\t\x20]*$)|(?:^\|([\'\/]{0,2})~?([\.
\wабвгдеёжзийклмнопрстуфхцчшщъыьэюяАБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ ]
+)\:?\4\|[\t\x20]*([^\|\n]*)[\t\x20]*\|$)/gm;

which didn't work. I guess it's because the definition of the slicesRE
is changed after slices hashmap is built. Is anybody aware of fast
method of rebuilding the slices? Of'course, I can copy the store, than
purge the main one, than copy tiddlers back to the main store, but
this is bulky for each-startup procedure.

On the other hand, I'm going to analyse the syntax and do some tests
and then discuss this for the core update, so perhaps the first
question is not of that importance.

On 12 фев, 16:31, PMario <pmari...@gmail.com> wrote:
> On Feb 12, 1:20 pm, Yakov <yakov.litvin.publi...@gmail.com> wrote:> On 11 
> фев, 17:26, PMario <pmari...@gmail.com> wrote:
>
> > > On Feb 10, 10:31 pm, Yakov <yakov.litvin.publi...@gmail.com> wrote:> ... 
> > > (not sure what does the "hashmap" term
> > > > means here) So at first glance it seems that it's possible to have
> > > > slices with any symbols.. Let me know if I miss something.
>
> > > In this case it's just a "lookup table" [2] to have fast access to a
> > > tiddler, based on it's title.
> > > see:https://github.com/TiddlyWiki/tiddlywiki/blob/master/js/TiddlyWiki.js...
>
> > So, what's different with slices? I looked up TiddlyWiki.js and it
> > seems that slices are used the same way.. Although, they can be used
> > differently in other .js parts.
>
> ahhh, :)
> imo nothing. but there may be some chars, that are not allowed within
> an object element. To handle this an escape mechanism has to be found.
> I think you should extend your formatter with a plugin and run several
> tests, to find out if it works ;)
>
> -m

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.

Reply via email to