Special onebox for hypothes.is

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:

image

3 إعجابات

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?

إعجابَين (2)

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:

  1. Let discourse be iframed by via.hypothes.is
  2. 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.)

So there is some food for thought…

PS: Not only does discourse need hypothesis, hypothesis obviously needs a discourse forum :wink:

إعجاب واحد (1)

You can have someone submit a PR to add an engine: onebox/lib/onebox/engine at main · discourse/onebox · GitHub

5 إعجابات

Do you have some rough indication of how much work/money this would require?

Certainly less than a plugin. I remember when writing a onebox engine that it was fairly straightforward, with only a few confusing parts.

إعجاب واحد (1)

مرحباً

أرى أن هذا النقاش قديم.
أنا مستخدم نشط جداً لـ Hypothesis. قمت بإنشاء أكثر من 5000 ملاحظة على مدى عامين.

Discourse هي واحدة من المواقع القليلة التي واجهت فيها مشاكل.

من الغريب أن منتدى مخصص لتسهيل النقاش هو الذي لا يتوافق بشكل جيد مع Hypothesis.

عدد الملاحظات الموجودة حاليًا في العالم الخارجي أكبر بعشر مرات مما كان عليه قبل 3 سنوات.

أحب منصة Discourse كثيرًا، وأود حقًا أن أتمكن من استخدام Hypothesis لتدوين الملاحظات على الأجزاء التي أجدها مثيرة للاهتمام أو جديرة بالملاحظة، ومشاركة الروابط إلى هذه الملاحظات.

حاليًا، أعتمد على حل بديل: افتح الصفحة باستخدام خيار “مشاركة رابط هذا المنشور” في المنشور الأول في أعلى الصفحة، ثم قم بالتدوين، وبهذه الطريقة يعمل الأمر بشكل صحيح.

يمكن لملاحظات Hypothesis أن تزيد بشكل كبير من قابلية اكتشاف المحتوى وانتشاره عبر المنصات التي تجمعها.

إعجابَين (2)

تمت تجربة استخدام Hypothesis هنا.

يبدو أنه يعمل.
لذا قد يكون الأمر مجرد إعداد ما؟ أو إصدار معين؟

إحدى المنتديات التي واجهت فيها مشكلات هي https://forum.openglobalmind.com/

حسنًا، هذا ليس منتدىً عامًا. لا يعمل Hypothesis إلا على الصفحات التي يمكنه الوصول إليها، مما يستبعد المنتديات الخاصة، أليس كذلك؟

أعتقد أن Hypothesis يمكنها الوصول إلى الصفحات غير العامة طالما أن المستخدم مسجل الدخول.
من الممكن إضافة التعليق التوضيحي، لكنك تحصل على المسار الصحيح الذي يشير إلى الصفحة فقط إذا قمت بفتحها أولاً باستخدام خيار ‘مشاركة هذه الصفحة برابط’.

إذا قمت بذلك، سيتم إنشاء التعليق التوضيحي بشكل صحيح. وإلا فإن التعليقات التوضيحية ستصبح غير مرتبطة.

مثل هذا

من الرابط كما يلي

إذا قمت بحذف معامل الاستعلام أولاً

سيكون الرابط الموجه إلى التوضيح فعالًا بعد ذلك

https://hyp.is/oGzhgi2SEeu6ypOSaqf4kQ/meta.discourse.org/t/special-onebox-for-hypothes-is/70946

أشك في أنك وأنا نفكر بشكل متشابه، يا @tophee، حيث يبدو أنني أتابع خيوطك على Meta مؤخرًا. :smiley:

بالفعل، وأعتقد أن هذا النقاش قد يكتسب زخمًا أكبر إذا تم إعادة تسميته أو نشره من جديد مع التركيز بشكل أكثر مباشرة على المفهوم (أو المفاهيم) الأوسع والأكثر إثارة للاهتمام (من وجهة نظري).

يبدو هذا وكأنه حل بديل غير ضروري محتمل. بالتأكيد يوجد (أو يمكن أن يوجد) طريقة أكثر عمومية للقيام بذلك.

هناك على الأقل ثلاثة أشياء منفصلة يتم مناقشتها هنا، وأعتقد أن الثلاثة جميعها تستحق النظر، وربما في خيوط منفصلة.

أولاً: قدرة Discourse على عرض محتوى Onebox من Hypothesis بشكل أفضل. سيكون هذا أمرًا جيدًا، لكنه يبدو محدود الفائدة إلى حد ما في رأيي، بشرط أن تنظر في الحالة الأكثر عمومية (الموضحة في النقطة الثالثة أدناه).

ثانيًا: قدرة Hypothesis على إضافة تعليقات توضيحية على منتديات Discourse. قد تكون هذه مشكلة تم حلها بالفعل بناءً على بعض الردود أعلاه، ولكن إذا لم تكن كذلك، فيبدو أنه سيكون من الجيد لو عملت. يمكن القول إن هذا أكثر أهمية/فائدة من Oneboxing في Hypothesis الذي سمح بترجمة أجزاء محددة من صفحة، في ضوء…

ثالثًا: الفكرة الأعم بشكل عام المتمثلة في القدرة على اقتباس أي شيء على أي صفحة من أي موقع باستخدام Discourse، والتي لا ينبغي في رأيي أن تكون مرتبطة بـ Hypothesis تحديدًا. لقد وجدت فعليًا أن Discourse يمتلك واحدة من أفضل تطبيقات الاقتباس في أي نظام، من حيث الثبات وسهولة الاقتباس من رسائل متعددة، إلى التوسع الاختياري في السياق، والانتقال السريع إلى المصدر، إنها تطبيق أنيق. سيكون من المثير للاهتمام حقًا، أعتقد، إذا تمكنت Discourse من القيام بذلك على أي موقع، وليس فقط منتدى Discourse نفسه. ومن المثير للاهتمام أنني أعتقد أنه يمكن إثبات أن هذا قد يكون مفيدًا بشكل خاص في سياق Discourse للفرق، على سبيل المثال في مشاريع البحث، والتحليل التنافسي، وما إلى ذلك.

من الواضح أن هذا سيتطلب إما إضافة متصفح، أو نوعًا ما من متصفح صفحات مضمن، أو نهجًا آخر غير مدرك له، ومن المرجح أن يكون الأمر غير تافه. لكنني أعتقد أنه يحمل وعودًا كافية تستحق الاستكشاف. أعتقد أنني يمكنني تقديم حجة أقوى له في خيط خاص به إذا بدا ذلك مبررًا…

4 إعجابات