realtimeprojects / mkdocs-ezglossary

Glossary support for mkdocs
MIT License
8 stars 1 forks source link

Cyrillic glossary entires are not recognized #7

Closed syberside closed 2 months ago

syberside commented 2 months ago

Hi!

Thank you for great plugin. It's great, but I faced an issue while trying to build glossary for my project.

When I put cyrillic entry to glossary it does not recognized properly. Looks like only english entries are supported.

Sample: Glossary file

МП
: мобильное приложение

Ref in other document <МП:>

Result: no highlighting of term.

Settings

  - ezglossary:
      use_default: true
      tooltip: full
      inline_refs: short
nfelt14 commented 2 months ago

I am running into a similar issue (I think) where I am using emoji icons (like 🚧) and the links are not being created.

realtimeprojects commented 2 months ago

The root cause problem is that in case you use advanced unicode characters, links written in the syntax <section:term> will be converted to &lt;section:term&gt; so that we cannot identify them anymore.

In this case, starting from version 1.6.0, you can now use markdown links to link to this terms.

realtimeprojects commented 2 months ago

Regarding the usage of emojis:

In case you use emojis only at the beginning or the end of the term, using emojis works as well with markdown links by ommiting the emoji itself in the link like in the example. However, you have to make sure that your term is unique without emoji.

Let me know if you have any further ideas for improvement.

syberside commented 2 months ago

@realtimeprojects thank you very much!