[tw5] Re: Freelink and non-english tiddler title
@Mark S. Wanted to report back that it works for my purposes. I can now continue with my project which has been on hold for over 2 years. You are a godsend. Your efforts are much appreciated. On Sunday, January 16, 2022 at 5:23:02 PM UTC-8 Mark S. wrote: > Absolutely make a backup before unzipping, importing, saving, and > reloading with the attached file. I am definitely out of my depth! You will > probably need a modern (e.g. Chrome, Firefox) browser. This is not a > universal solution (only adds Kannada), and there may be tweaks that need > to be done (or actually undone) re case folding. > > But it did appear to work – you can see the faint Kannada characters in > this screen grab: > > [image: freelinks-kannada.png] > > On Sunday, January 16, 2022 at 2:40:07 PM UTC-8 keSh wrote: > >> @Mark S. Thanks, >> >> I'm using South Indian script Kannada: U+0C80–U+0CFF . >> How do I include unicode range in the regexpStr ? >> >> Browser is whatever engine comes with TiddlyDesktop on macOS. >> I can change to a more suitable browser if needed to support this >> feature. >> >> >> On Monday, December 27, 2021 at 1:08:15 PM UTC-8 Mark S. wrote: >> >>> >>> What language or character set are you targeting ? >>> >>> It seems like a change to one line of code in the plugin can accommodate >>> PMario's example. But not sure whether that would work for other languages. >>> >>> var regexpStr = "(?<=^|[^a-zA-Zö])(?:" + reparts.join("|") + >>> ")(?=$|[^a-zA-Zö])"; >>> >>> Yes, it depends on the browser having look-ahead. >>> On Monday, December 27, 2021 at 10:07:41 AM UTC-8 keSh wrote: >>> That is exactly my use case. Only difference is that tiddler content and titles are not in English. Thanks for looking into the issue. -kesh On Sunday, December 26, 2021 at 2:44:54 AM UTC-8 PMario wrote: > @Mark S. > The advantage of freelinks is in a context, where you can't modify the > content but you still want to have links. eg: Submitted homework tiddlers > from students. Adding links to those tiddlers would mean to modify the > original work in an unreasonable way. It wouldn't be the students work > anymore. > -m > > -- 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/88d4b078-a110-4265-989f-8de9024676cen%40googlegroups.com.
[tw5] Re: Freelink and non-english tiddler title
Absolutely make a backup before unzipping, importing, saving, and reloading with the attached file. I am definitely out of my depth! You will probably need a modern (e.g. Chrome, Firefox) browser. This is not a universal solution (only adds Kannada), and there may be tweaks that need to be done (or actually undone) re case folding. But it did appear to work – you can see the faint Kannada characters in this screen grab: [image: freelinks-kannada.png] On Sunday, January 16, 2022 at 2:40:07 PM UTC-8 keSh wrote: > @Mark S. Thanks, > > I'm using South Indian script Kannada: U+0C80–U+0CFF . > How do I include unicode range in the regexpStr ? > > Browser is whatever engine comes with TiddlyDesktop on macOS. > I can change to a more suitable browser if needed to support this feature. > > > On Monday, December 27, 2021 at 1:08:15 PM UTC-8 Mark S. wrote: > >> >> What language or character set are you targeting ? >> >> It seems like a change to one line of code in the plugin can accommodate >> PMario's example. But not sure whether that would work for other languages. >> >> var regexpStr = "(?<=^|[^a-zA-Zö])(?:" + reparts.join("|") + >> ")(?=$|[^a-zA-Zö])"; >> >> Yes, it depends on the browser having look-ahead. >> On Monday, December 27, 2021 at 10:07:41 AM UTC-8 keSh wrote: >> >>> That is exactly my use case. Only difference is that tiddler content and >>> titles are not in English. >>> Thanks for looking into the issue. >>> >>> -kesh >>> >>> On Sunday, December 26, 2021 at 2:44:54 AM UTC-8 PMario wrote: >>> @Mark S. The advantage of freelinks is in a context, where you can't modify the content but you still want to have links. eg: Submitted homework tiddlers from students. Adding links to those tiddlers would mean to modify the original work in an unreasonable way. It wouldn't be the students work anymore. -m -- 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/662cffd7-cfde-4939-9b8e-ba483bcc6312n%40googlegroups.com. <>
[tw5] Re: Freelink and non-english tiddler title
@Mark S. Thanks, I'm using South Indian script Kannada: U+0C80–U+0CFF . How do I include unicode range in the regexpStr ? Browser is whatever engine comes with TiddlyDesktop on macOS. I can change to a more suitable browser if needed to support this feature. On Monday, December 27, 2021 at 1:08:15 PM UTC-8 Mark S. wrote: > > What language or character set are you targeting ? > > It seems like a change to one line of code in the plugin can accommodate > PMario's example. But not sure whether that would work for other languages. > > var regexpStr = "(?<=^|[^a-zA-Zö])(?:" + reparts.join("|") + > ")(?=$|[^a-zA-Zö])"; > > Yes, it depends on the browser having look-ahead. > On Monday, December 27, 2021 at 10:07:41 AM UTC-8 keSh wrote: > >> That is exactly my use case. Only difference is that tiddler content and >> titles are not in English. >> Thanks for looking into the issue. >> >> -kesh >> >> On Sunday, December 26, 2021 at 2:44:54 AM UTC-8 PMario wrote: >> >>> @Mark S. >>> The advantage of freelinks is in a context, where you can't modify the >>> content but you still want to have links. eg: Submitted homework tiddlers >>> from students. Adding links to those tiddlers would mean to modify the >>> original work in an unreasonable way. It wouldn't be the students work >>> anymore. >>> -m >>> >>> -- 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/006c8bfb-aebd-4460-b0c9-b9f13977bc3en%40googlegroups.com.
[tw5] Re: Freelink and non-english tiddler title
What language or character set are you targeting ? It seems like a change to one line of code in the plugin can accommodate PMario's example. But not sure whether that would work for other languages. var regexpStr = "(?<=^|[^a-zA-Zö])(?:" + reparts.join("|") + ")(?=$|[^a-zA-Zö])"; Yes, it depends on the browser having look-ahead. On Monday, December 27, 2021 at 10:07:41 AM UTC-8 keSh wrote: > That is exactly my use case. Only difference is that tiddler content and > titles are not in English. > Thanks for looking into the issue. > > -kesh > > On Sunday, December 26, 2021 at 2:44:54 AM UTC-8 PMario wrote: > >> @Mark S. >> The advantage of freelinks is in a context, where you can't modify the >> content but you still want to have links. eg: Submitted homework tiddlers >> from students. Adding links to those tiddlers would mean to modify the >> original work in an unreasonable way. It wouldn't be the students work >> anymore. >> -m >> >> -- 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/e1d6b6a7-b829-4b87-850f-a63396d91e4dn%40googlegroups.com.
[tw5] Re: Freelink and non-english tiddler title
That is exactly my use case. Only difference is that tiddler content and titles are not in English. Thanks for looking into the issue. -kesh On Sunday, December 26, 2021 at 2:44:54 AM UTC-8 PMario wrote: > @Mark S. > The advantage of freelinks is in a context, where you can't modify the > content but you still want to have links. eg: Submitted homework tiddlers > from students. Adding links to those tiddlers would mean to modify the > original work in an unreasonable way. It wouldn't be the students work > anymore. > -m > > -- 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/61c97029-c553-49a7-92c2-bf00f86e4e8bn%40googlegroups.com.
[tw5] Re: Freelink and non-english tiddler title
@Mark S. The advantage of freelinks is in a context, where you can't modify the content but you still want to have links. eg: Submitted homework tiddlers from students. Adding links to those tiddlers would mean to modify the original work in an unreasonable way. It wouldn't be the students work anymore. -m -- 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/032a3523-a589-4d4a-9670-6210319e6e03n%40googlegroups.com.
[tw5] Re: Freelink and non-english tiddler title
With the link edit tool, it's pretty easy to insert the actual link to a tiddler. *freelinks* depends on you matching an exact title, which can be difficult even with english titles. On Saturday, September 11, 2021 at 9:55:18 AM UTC-7 keSh wrote: > I'm desperately trying to get this to work. Non-english tiddler titles are > essential for my project. > I wonder if it will work with other browsers (Chrome, Edge, Firefox). I'm > not restricted to Safari or TiddlyDesktop. > > -keSh > > On Wednesday, September 8, 2021 at 1:16:01 PM UTC-7 PMario wrote: > >> On Wednesday, September 8, 2021 at 9:59:35 PM UTC+2 keSh wrote: >> >> You may have already seen this discussion on stack overflow. >>> https://stackoverflow.com/a/60188132 >>> I don't know enough javascript to try it out. >>> >> >> look behind is not supported by safari. >> >> -m >> > -- 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/2f44c9ed-70f3-4f3c-8a7b-cb91d4c3c71fn%40googlegroups.com.
[tw5] Re: Freelink and non-english tiddler title
Hi, Jeremy has changed the core regexp construction a little bit, but I didn't find a performant way to use an unicode regexp that JavaScript does understand. ... May be I missed something. ... So no improvements atm :/ -mario -- 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/f6092e84-c684-43c5-89ba-12d71b6dc5b8n%40googlegroups.com.
[tw5] Re: Freelink and non-english tiddler title
I'm following the issue at GitHub. Any updates ? -kesh On Saturday, September 11, 2021 at 11:20:21 AM UTC-7 PMario wrote: > Hi, > I did create an issue at github: > https://github.com/Jermolene/TiddlyWiki5/issues/6029 ... > > There is no workaround and using any other browser won't help either. ... > > Even if we find a matching regexp pattern, which can be used, there is > some risk, that it will be way to slow, with a higher number of tiddlers. > > -mario > -- 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/81990623-2085-4f64-bf85-7b6ab16daa64n%40googlegroups.com.
[tw5] Re: Freelink and non-english tiddler title
Hi, I did create an issue at github: https://github.com/Jermolene/TiddlyWiki5/issues/6029 ... There is no workaround and using any other browser won't help either. ... Even if we find a matching regexp pattern, which can be used, there is some risk, that it will be way to slow, with a higher number of tiddlers. -mario -- 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/78227f68-e0e3-466d-9434-f340a76db3fan%40googlegroups.com.
[tw5] Re: Freelink and non-english tiddler title
I have no idea if this would technically work. Even if it technically worked, I have no idea whether or not it would be crap (pardon my language!) What if you kept tiddler titles in English, but then had non-english titles with unicode characters as aliases? That aside, would the pending TiddlyWiki version 5.2.0 fix things? On Wednesday, September 8, 2021 at 3:31:23 PM UTC-3 keSh wrote: > Hi all, > > Freelink does not recognize if tiddler title has non-english characters > (unicode). > Confirmed to work as described only for english titles. > > > TiddlyDesktop version 0.14 > TiddlyWiki version 5.1.22 > > Does anyone have a workaround for this issue? > > thanks > -- 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/090ce747-775e-4432-a480-f8dba97d60a9n%40googlegroups.com.
[tw5] Re: Freelink and non-english tiddler title
I'm desperately trying to get this to work. Non-english tiddler titles are essential for my project. I wonder if it will work with other browsers (Chrome, Edge, Firefox). I'm not restricted to Safari or TiddlyDesktop. -keSh On Wednesday, September 8, 2021 at 1:16:01 PM UTC-7 PMario wrote: > On Wednesday, September 8, 2021 at 9:59:35 PM UTC+2 keSh wrote: > > You may have already seen this discussion on stack overflow. >> https://stackoverflow.com/a/60188132 >> I don't know enough javascript to try it out. >> > > look behind is not supported by safari. > > -m > -- 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/4c149df2-ffb2-4222-b2b5-eae441378d71n%40googlegroups.com.
[tw5] Re: Freelink and non-english tiddler title
On Wednesday, September 8, 2021 at 9:59:35 PM UTC+2 keSh wrote: You may have already seen this discussion on stack overflow. > https://stackoverflow.com/a/60188132 > I don't know enough javascript to try it out. > look behind is not supported by safari. -m -- 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/4bd9ce92-59ad-4bb9-94e4-8451df625f19n%40googlegroups.com.
[tw5] Re: Freelink and non-english tiddler title
Hi Mario. You may have already seen this discussion on stack overflow. https://stackoverflow.com/a/60188132 I don't know enough javascript to try it out. thanks again. -keSh On Wednesday, September 8, 2021 at 12:22:21 PM UTC-7 PMario wrote: > Hi keSh, > > I did have a look at the source code. There is a problem with the regexp, > that is used. We will need to create javascript fix > There is no workaround for this problem. > > I did test "asdf sdfö" where "asdf" is recognized, but "sdfö" is not. > > The plugin uses `\b` to define "word boundaries" but \b in JS only uses: > [a-zA-Z0-9_] as word characters. .. That's the problem. > > -mario > -- 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/a2a1afaf-d3aa-427e-b7ab-a1ab2c33d1b2n%40googlegroups.com.
[tw5] Re: Freelink and non-english tiddler title
Hi keSh, I did have a look at the source code. There is a problem with the regexp, that is used. We will need to create javascript fix There is no workaround for this problem. I did test "asdf sdfö" where "asdf" is recognized, but "sdfö" is not. The plugin uses `\b` to define "word boundaries" but \b in JS only uses: [a-zA-Z0-9_] as word characters. .. That's the problem. -mario -- 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/cbf8189e-e5ee-412f-81a2-857fa49f3344n%40googlegroups.com.