Follow

@tedu Hi, thank you for making a lot of great softwares!

I just started using Honk in Japanese and found that thelistingoftheontologies skips an ontology if len(o.Name) > 24. In Japanese, where typical characters eat 2-3 bytes each, this limitation seems too tight.

How about counting the number of runes (Unicode scalar values) instead of bytes?

· · SubwayTooter · 2 · 0 · 0
@omasanori yeah, the limit is just to prevent a few really long hash tags from messing up the page. sometimes people post whole sentences as a joke, but it's not helpful to index them.
@omasanori okay, pushed a change to work with runes. it also changes the grouping instead of just first byte. let me know if that's helpful.

@tedu Thank you so much! Yes, given that the grouping is intended as grouped by the first “letter”, runes are closer than bytes in my case.

Sign in to participate in the conversation
:don:

The place to express your ❤️ more freely. / あなたの「すき」をもっと自由に書き表すための場所。