Can discourse forum provide a way to use CamelCase or pascalCase for tags?
there’s a question (needed feature) of grouping:
- #ElectronicMusic
- #electronicMusic
- #electronicmusic
- #electronic-music
should all lead to same content.
more:
Can discourse forum provide a way to use CamelCase or pascalCase for tags?
there’s a question (needed feature) of grouping:
should all lead to same content.
more:
@prinlu, thank you for bringing this up. The question is: how do we want to express tags with combined words here in TSMN?
If you look at the full list of tags, right now we are doing this with dashes, in tags that are always lower case: lorenzos-music-podcast-feed - mirlo-news-feed - bandwagon-blog-feed - listening-parties - jam-sessions …
If we want to use CamelCase instead of dashes, we can. It’s just a matter of agreeing in one way of combining words and using them consistently.
Discourse allows to create synonym tags (the grouping you are referring to). However, we don’t need it for this case. Discourse suggests existing tags as you start typing. Therefore, if a TSMN use starts typing “#elec…” the full electronic-music tag will be suggested.
As we have TSMN configured now, only regular members, moderators and administrators can create new tags. This helps avoiding accidental duplicates.
The articles linked compare tags with and without CamelCase, where the winner is clearly CamelCase. They don’t mention tags with dashes. If screen readers read “dash” when a “-” is found, then CamelCase is better as well.
I suggest we settle on CamelCase unless someone has a better suggestion… by the end of this week?
There’s a habit of mine in play here - probably from mastodon, where tags with dashes don’t work (I’m actually not 100% about this - need to check*), but I always use camel case. The main focus here is accessibility for screen readers of visually impaired. If dashes work for them, that’s all we need and we don’t even need to change anything.
* EDIT: no, dash-delimited hashtags on mastodon don’t work - Prince Lucija (DRAGX̶FUNK): "#accessibility question: do screen readers, used …" - SoNoMu
* EDIT2:
testing a dash delimited federated-topics
also some discussion is here:
Seems like it might be really better to go for camelCase or PascalCase or however it is called (wikipedia) for tags:
(thanks to Silvia Maggi - Silvia Maggi: "@luka@sonomu.club This post might be more useful …" - mastodon.design)
Thank you for bringing an informed opinion, @prinlu. CamelCase it is, then (StaringEveryWordWithUpperCase).
All tags are now PascalCase (yeah, I’m a nerd, so I make the distinction between that and camelCase). I also cleaned up some inconsistencies while I was at it, e.g “creativecommons” which was written as one word, and is now “CreativeCommons”
thank you, wow, now The Social Music Network looks really neat!