Suggestion: <<dfn term dict:"Glossary">>
Hi,
I would like to suggest adding support for <dfn> (). This way we can also define terms, not just abbreviations.
The abbreviation system is already good, I think we just need a new macro(?) like <<dfn term dict:"Glossary">> which generates <dfn>some word or phrase</dfn>, and if a user hovers over it, it pulls data from the dict.
If it's possible to combine the two, at least as per the HTML spec it is allowed (something like: <dfn><abbr title="">HTML</abbr></dfn> (or as examples in the above linked MDL page), it would be great, but not important.
That's all, thank you!
(I'm not sure how to add it manually, but I think if it becomes part of the plugin, everyone will benefit too.)
Regards
I read the https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dfn I did not understand what the benefit is here! Please explain what you want to get here. I would be happy to add it to plugin once I understand how to use it.
Hi,
No worries!
Since <abbr> is used for abbreviations, the <dfn> is used for definitions. For example, in the project I'm restoring we use some existing words differently, we also have words taken from another language (and romanized), and new words invented.
Example sentence: Hyonsil is a collection or group of yekum.
Using the existing features behind <<abbr>> we can do a <<dfn>>.
<<dfn Hyonsil dict:Glossary>> is a collection or group of <<dfn yekum>>. Which will render similarly to <<abbr>> but instead of using the HTML element <abbr> it uses <dfn>; and when a user hovers over it, a tooltip will show up with the definition.
Then in the dict:Glossary we can add words we want to define other than abbreviations.
ap: ActivityPub
fediverse: the social web network powered by ActivityPub protocol
hyonsil: also known as multiverse
kwwp: Kolverse Worldbuilding and Writing Project
yekum: worlds, universes, timelines, dimensions
The above would mean an editor can use <<abbr fediverse>> and <<dfn kwwp>> but I think it's up to the editor to know which one to use (and which dict they have to use in case they have separate ones for abbreviations and definitions).
Of course, it's up to you how you prefer to implement it. It could be totally separate so there's less confusion for editors between <<abbr>> and <<dfn>>.
Regards
Thank you for clarification! I will notify you as soon as create a test.
it's up to you how you prefer to implement it. It could be totally separate so there's less confusion for editors between
<<abbr>>and<<dfn>>.
Will they use the same dictionary tiddler? or you want to have two different tiddler one for abbr one for dfn?
Will they use the same dictionary tiddler? or you want to have two different tiddler one for abbr one for dfn?
Hmm… at least the way I see it, it's fine to use the same dictionary tiddler for both abbr and dfn, since we have to define the acronym or term in the <<abbr>> or <<dfn>>. It's just more of the HTML output, since <<abbr> produces <abbr>.
So, I think the existing dictionary tiddler is good for both, including the current format.
ActivityPub: Is a protocol used for communication in the social web.
CSS: Cascading Stylesheet
fediverse: Is the social network name for the web standards protocol called ActivityPub.
HTML: Hypertext Markup Language
(Apologies for the delay.)