Jeremy, thanks a lot for quick reply.

Based on my earlier post https://goo.gl/P3INQY (in Ukrainian) I may suggest 
both phonetical and *reprocical* (to my believe) transliteration pairs for 
the Ukrainian (including Russian) alphabet as follows:
Ukrainian-Russian
А => A, Б => B, В => V, Д => D, Ж => ZH, З => Z, Й => J, К => K, Л => L, М 
=> M, Н => N, О => O, П => P, Р => R, С => S, Т => T, У => U, Ф => F, Х => 
X, Ц => C, Ч => CH, Ш => SH, Щ => W, Ь => Q, Ю => JU, Я => JA, ' => ~
Ukrainian-only
Г => GH, Ґ => G, Е => E, Є => JE, И => Y, І => I, Ї => JI, ' => ~
Russian-only
Г => G, Е => JE, Ё => JO, Ъ => ~, Ы => Y, Э => E

It'd be great if it helps.

Olegh

пʼятниця, 18 листопада 2016 р. 21:38:57 UTC+2 користувач Jeremy Ruston 
написав:
>
> Hi Oleg
>
>
> The problem is not something new. Namely, while generating a static html 
> filename from TW5 having cyrillic titles in a result one can sort of this:
>
>    - 
>    
> http://127.0.0.1:8080/#%D0%9F%D0%BE%D1%81%D1%96%D0%B1%D0%BD%D0%B8%D0%BA%20%D0%BA%D0%BE%D1%80%D0%B8%D1%81%D1%82%D1%83%D0%B2%D0%B0%D1%87%D0%B0%20%D0%A2%D1%96%D0%B4%D0%BB%D1%96%D0%B2%D1%96%D0%BA%D1%96:%5B%5B%D0%9F%D0%BE%D1%81%D1%96%D0%B1%D0%BD%D0%B8%D0%BA%20%D0%BA%D0%BE%D1%80%D0%B8%D1%81%D1%82%D1%83%D0%B2%D0%B0%D1%87%D0%B0%20%D0%A2%D1%96%D0%B4%D0%BB%D1%96%D0%B2%D1%96%D0%BA%D1%96%5D%5D/
>    
> A single cyrillic letter is encoded to 6 (!) ASCII signs. Bearing in mind 
> a typical path name length of 30-40 signs and limitation of many OS on 
> filename length of say 255, one obtains the title length limit 
> approximately around 35, which can be annoying.
>
> The point is when during static html generation the full path-and-filename 
> length exceeds 255 the process accidently stops with error message sort of 
> "Too long filename”.
>
>
> That makes sense. TiddlyWiki5 already incorporates code to transliterate 
> Cyrillic characters to their Latin equivalents, but it is only used within 
> the file system adaptor for filename generation, and isn’t used for 
> permalinks. Here’s the code:
>
>
> https://github.com/Jermolene/TiddlyWiki5/blob/master/plugins/tiddlywiki/filesystem/filesystemadaptor.js#L78-L85
>
> Here’s the code that generates permalinks:
>
>
> https://github.com/Jermolene/TiddlyWiki5/blob/master/core/modules/startup/story.js#L72-L79
>
> However, fixing the permalinks isn’t as simple as integrating the 
> transliteration. The problem is that the conversion process for mapping 
> tiddler titles needs to be bidirectional: we need to be able to recover the 
> original, Cyrillic tiddler title from the encoded form used in the 
> permalink.
>
> So, transliteration isn’t an option. It may be worth exploring whether 
> there is a more efficient encoding mechanisms that we could use. And I 
> guess it would be helpful to understand how other sites/apps deal with this 
> problem, if at all.
>
> Best wishes
>
> Jeremy
>
>
> I would be great to have a possibility of altering (sort of a checkbox in 
> Settings) a static html filename encoding method in order to shorten 
> filename length. It might be transliteration method, which, by the way, is 
> used in generating ".tid" filenames under Node.js. Or at least altering a 
> static html filename encoding method in JS source code.
>
>
> -- 
> 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] <javascript:>.
> To post to this group, send email to [email protected] 
> <javascript:>.
> Visit this group at https://groups.google.com/group/tiddlywiki.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/2bd639e4-56a7-4ffd-b273-840f8befb638%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/tiddlywiki/2bd639e4-56a7-4ffd-b273-840f8befb638%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/6749e757-d3c1-4f74-9d1a-97e1dbcb7c4a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to