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.)
Atualmente, há dez vezes mais anotações por aí do que havia há 3 anos.
Gosto muito do Discourse e realmente gostaria de poder usar o Hypothesis para anotar os trechos que acho interessantes ou dignos de nota, além de compartilhar links para essas anotações.
Atualmente, recorro a uma solução alternativa: abro a página usando a opção “compartilhar link desta postagem” na primeira postagem no topo da página, depois faço as anotações, e assim funciona.
As anotações do Hypothesis podem aumentar significativamente a descoberta viral de conteúdo e das plataformas que os agregam.
Acredito que o Hypothesis possa acessar páginas não públicas, desde que o usuário esteja logado.
É possível adicionar a anotação, mas você só obtém o caminho correto apontando para a página se abri-la primeiro usando a opção ‘compartilhar esta página com link’.
Se eu fizer isso, a anotação correta é criada. Caso contrário, as anotações ficam órfãs.
Suspeito, @tophee, que você e eu pensamos de forma semelhante, já que tenho seguido seus tópicos no Meta ultimamente.
De fato, e acho que essa discussão poderia ganhar mais tração se o título fosse alterado ou se fosse recriada com foco mais direto no(s) conceito(s) mais amplo(s) e (na minha opinião) mais interessante(s).
Isso parece uma solução alternativa potencialmente desnecessária. Com certeza existe (ou poderia existir) uma maneira mais geral de fazer isso.
Há pelo menos três coisas distintas sendo discutidas aqui, e acho que as três merecem consideração, talvez em tópicos separados.
Primeiro, o Discourse poder apresentar melhor o conteúdo Onebox do Hypothesis. Isso seria bom, mas parece ter uso relativamente limitado, na minha opinião, desde que se considere o caso mais geral (descrito no ponto 3 abaixo).
Segundo, o Hypothesis poder anotar fóruns do Discourse. Isso pode ser um problema já resolvido, a julgar por algumas respostas acima, mas, se não for, parece que seria bom que funcionasse. Argumentavelmente, isso é mais importante/útil do que o Oneboxing do Hypothesis que permitia citar partes específicas de uma página, à luz de…
Terceiro, a ideia mais geral de poder citar qualquer coisa em qualquer página de qualquer site usando o Discourse, o que, na minha visão, não deveria estar vinculado especificamente ao Hypothesis. Na verdade, achei que o Discourse tem uma das melhores implementações de citação em qualquer sistema, desde a persistência e facilidade de citar várias mensagens, até a expansão opcional do contexto e o acesso rápido à fonte; é uma implementação elegante. Seria realmente notável, acho, se o Discourse pudesse fazer isso em qualquer site, não apenas no próprio fórum do Discourse. Curiosamente, acho que se poderia argumentar que isso seria especialmente útil no contexto do Discourse for Teams, por exemplo, em projetos de pesquisa, análise competitiva, etc.
Obviamente, isso exigiria ou um plugin de navegador, ou algum tipo de navegador de página incorporado, ou alguma outra abordagem da qual não tenho conhecimento, e provavelmente seria algo não trivial. Mas acho que tem promessa suficiente para valer a pena investigar. Acredito que poderia apresentar um argumento mais forte para isso em um tópico próprio, se parecer justificado…