Discourse supports hypothes.is oneboxing out of the box, but it is the default onebox:
It puts the annotated text as the title and the annotation as the content. It’s an ok solution but it’s not intuitive. Someone who sees that onebox has no clue that what it’s referring to is actually a web annotation, i.e. a piece of text on the net plus a comment on that piece of text.
It would be great to have a special onebox for this. Perhaps something that looks more like how the annotation is displayed by hypothes.is itself:
I don’t think Discourse Core is going to want to add this, but maybe this could go into Marketplace and make a plugin for it? Is it possible to make a plugin that provides a overridden custom onebox?
I suppose this can be done in a plugin, but let me explain a bit more. I suppose I misframed this topic by describing it as a onebox question. Yes, a better onebox for hypothes.is would be nice. But I think there is much, much more to be gained for discourse from a closer integration of hypothesis (or supporting Open Annotation more generally). Honestly, I think this is huge:
But let’s stay focused and figure out how discourse might use hypothesis. The most obvious use seems to be that it allows for a much smoother quoting of external webpages. Not the url but any specific piece of text on that page.
Concretely: I navigate to some website that I want to refer to in my discourse post, I highlight the snippet I want to quote and save it. Hypothesis gives me a link to that specific annotation and I simply paste it into my post. Currently, it is rendered like this:
(Note the misleading url and image)
But it should be very easy to make it render like this:
From: The Day The Trackbacks Died at https://blog.codinghorror.com:
I want to read your response to my posts, whether it’s on your site, or mine as a comment. So rather than relying on direct peer-to-peer links, I’m exploring the use of external indexing services.
By default, hypothesis only provides public links for annotations, not for highlights, which means you have to write a comment into hypothesis even if you just want to share the text snippet you are commenting on, but nobody forces discourse to display that comment. (The UX problem remains, though, that it doesn’t make sense to type the same comment both into hypothesis and into discourse, but I think a solution could be found here.) So I in my mockup, I have stripped the annotation that is shown in the onebox.
So that would be discourse referring to the world. The other way around would, of course, also be nice. In principle this already works: a discourse post can be annotated just like any other website (or pdf, BTW). The problem is, it only works if you have the Hypothesis Extension for Chrome installed because Discourse doesn’t like being shown in an iframe which means the hypothesis’ proxy solution (called “via”) doesn’t work with discourse forums. Which is a pity.
This can be solved in at least two ways:
Let discourse be iframed by via.hypothes.is
Customize discourse to include this JS snippet: <script src="https://hypothes.is/embed.js" async></script>
The problem with the embedded JS is that you will have the hypothesis sidebar displayed on the right edge of your screen (though perhaps it can be configured so that it is only displayed when some explicitly requests to see a specific annotation, i.e. people following an annotation link.)
Ora ci sono dieci volte più annotazioni in giro rispetto a tre anni fa.
Mi piace molto Discourse e vorrei davvero poter usare Hypothesis per annotare i passaggi che trovo interessanti o degni di nota, e condividere link a queste annotazioni.
Attualmente mi affido a una soluzione alternativa: apro la pagina usando “condividi un link a questo post” nel primo messaggio in alto nella pagina. Poi annoto, e in questo modo funziona.
Le annotazioni di Hypothesis possono aumentare notevolmente la possibilità di scoperta virale dei contenuti e delle piattaforme che le aggregano.
Credo che Hypothesis possa accedere a pagine non pubbliche finché l’utente è loggato.
È possibile aggiungere un’annotazione, ma si ottiene il percorso corretto che punta alla pagina solo se la si apre prima con la funzione ‘condividi questa pagina tramite link’.
Se lo faccio, viene creata l’annotazione corretta. Altrimenti, le annotazioni rimangono orfane.
Sospetto che tu e io, @tophee, la pensiamo in modo simile, dato che ultimamente sembra che io stia seguendo i tuoi thread su Meta.
Infatti, e penso che questa discussione potrebbe ottenere più risalto se rinominata o pubblicata nuovamente, con un focus più diretto sul concetto (o i concetti) più ampio e (secondo me) più interessante.
Questo sembra un workaround potenzialmente inutile. Sicuramente esiste (o potrebbe esistere) un modo più generale per farlo.
Qui si stanno discutendo almeno tre cose separate, e penso che tutte e tre meritino considerazione, forse in thread separati.
Innanzitutto, la capacità di Discourse di presentare meglio i contenuti Onebox provenienti da Hypothesis. Sarebbe bello, ma mi sembra di utilità piuttosto limitata, a condizione che si consideri il caso più generale (descritto al punto 3 qui sotto).
In secondo luogo, la capacità di Hypothesis di annotare i forum di Discourse. A giudicare da alcune delle risposte sopra, potrebbe già essere un problema risolto, ma se non lo è, sarebbe senz’altro utile se funzionasse. A mio avviso, questo è più importante/utile rispetto ai Onebox di Hypothesis che permettevano di citare parti specifiche di una pagina, alla luce di…
In terzo luogo, l’idea più generale di poter citare qualsiasi cosa su qualsiasi pagina di qualsiasi sito utilizzando Discourse, cosa che, a mio avviso, non dovrebbe essere legata specificamente a Hypothesis. In realtà, ho trovato che Discorse abbia una delle implementazioni di citazione migliori in assoluto, dalla persistenza e facilità di citare da più messaggi, all’espansione opzionale del contesto, fino al rapido salto alla fonte: è un’implementazione elegante. Sarebbe davvero notevole, penso, se Discourse potesse farlo su qualsiasi sito, non solo sul forum di Discourse stesso. Interessante a mio avviso è che si potrebbe sostenere che ciò potrebbe essere particolarmente utile nel contesto di Discourse for Teams, ad esempio in progetti di ricerca, analisi competitive, ecc.
Ovviamente ciò richiederebbe o un plugin per browser, o una sorta di browser di pagine incorporato, o qualche altro approccio di cui non sono a conoscenza, ed è probabile che non sia banale. Ma penso che abbia abbastanza potenziale da valere la pena di esaminarlo. Penso di poter sostenere una tesi più forte al riguardo in un thread dedicato, se sembra giustificato…