cosmocode / dokuwiki-plugin-structautolink

Automatic page linking based on struct data
https://www.dokuwiki.org/plugin:structautolink
GNU General Public License v2.0
1 stars 1 forks source link

Doesn't work with certain characters at beginning or end of name #2

Open vaniwiki opened 3 months ago

vaniwiki commented 3 months ago

Issue Description

This plugin works like a charm! But several of my search terms are not giving any matches. They all have in common that they start or end with special characters, like Paramātmā. I would like these to be linked up to their respective articles as well.

Previously I solved a similar issue with the AutoLink4 plugin, by patching DokuWiki in this fashion: image

So I'm thinking it may be something similar somwhere?

ZhongXiYi commented 1 month ago

@vaniwiki Dear Master,Please forgive me for leaving you a message here,Because I really have no choice, and I can't find the relevant information,Please help me. I've installed Struct, Structautolink, and sqlite. A schema named :jiagou was created, and a field called :ziduan was created.Take a look at the image below. image Can you give me an example of what I should do next? Let's say I have a "hello" page, in the welcome namespace. How do I make this "hello" page automatically link to other pages?

vaniwiki commented 1 month ago

You need to go to the article, and underneath the edit box will be shown a field where to enter its terms. Also you need your enable the autostruct renderer config setting.

ZhongXiYi commented 1 month ago

Thank you very much for your reply and answer! In the settings I've set the renderer to structautolink But it still doesn't work, is it because I set the page and namespace incorrectly? You look at the picture below. image I beg you to help me!

ZhongXiYi commented 1 month ago

@vaniwiki 中医:中药学:解表药:辛温解表药:麻黄This is the namespace and the page. 麻黄This is the page. I've tried two ways and it still doesn't work with automatic linking. Please help me, what's going on? Looking forward to hearing from you. Thank you again for your kind help!

vaniwiki commented 1 month ago

Maybe there is an issue with Chinese characters?

Have you tried autolink4 plugin? It is much easier to work with, and it has a setting "inword" that solves an issue with Chinese characters.

Of course, these two work differently, linking up either actual pages one at a time, or according to a list of words. But depending on the scope of your website, maybe that is sufficient for you, if it works.

Otherwise maybe we can ask on the DokuWiki forum?

On Thursday, July 18, 2024, ZhongXiYi @.***> wrote:

@vaniwiki https://github.com/vaniwiki 中医:中药学:解表药:辛温解表药:麻黄This is the namespace and the page. 麻黄This is the page. I've tried two ways and it still doesn't work with automatic linking. Please help me, what's going on? Looking forward to hearing from you. Thank you again for your kind help!

— Reply to this email directly, view it on GitHub https://github.com/cosmocode/dokuwiki-plugin-structautolink/issues/2#issuecomment-2235334183, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACQIGA2BPLLB6H645O2AJTZM5DS7AVCNFSM6AAAAABIBJACMWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZVGMZTIMJYGM . You are receiving this because you were mentioned.Message ID: @.***>

ZhongXiYi commented 1 month ago

@vaniwiki I've used it too, but I may need to autolink4 even up to 5000 or more, but autolink4 seems to have some limitations in future use. So I want to try to find something that can be used for a long time. It's a pity that there are too few tutorials for using structautolink.. Can I contact you by email? Maybe remote debugging is a better solution! I hope you agree, thank you!

splitbrain commented 1 month ago

Guys, this is not a forum. Everything that has nothing to do with the issue at hand is offtopic here. Use the forum if you need help with usage.