W3C home > Mailing lists > Public > public-annotation@w3.org > November 2015

[web-annotation] Selecting more than text

From: BigBlueHat via GitHub <sysbot+gh@w3.org>
Date: Tue, 10 Nov 2015 21:29:49 +0000
To: public-annotation@w3.org
Message-ID: <issues.opened-116206151-1447190988-sysbot+gh@w3.org>
BigBlueHat has just created a new issue for 

== Selecting more than text ==
Right now, we specify 5 

@tkanai points out in 
 that there is not currently a way to include an `<img>` tag (and it's
 representative visual output) within the selection.

>From the comment mentioned above:
> Could you tell me how to select "I (love)" words, or both "I" and 
the heart mark Image, from the html text below with the XPathSelector?
 I also would like to make sure how to select "I" only.
`<p>I <img src="love.png" /> New York</p>`

> As I frequently encounter such paragraphs while I'm reading Japanese
 eBooks, although images are "Kanji" characters, I am looking for an 
appropriate selector which can be applicable for non-normalized HTML 

Here is an example of such text which uses images (and `<ruby>` 
markup, fwiw) for presenting Kanji characters to the reader:

Here's an annotation made with Hypothes.is that shows the 
inefficiencies of the currently specified `Text*Selector` selectors:
and as JSON

Because the image content is not in the "normalized" markup, it can't 
be selected.

It *may* be possible to use an XPointer FragmentSelector, but that 
seems dubious given the lack of implementations and dearth of 
knowledge around it (sadly :cry:).

We need to consider this use case when specifying new selectors which 
are more "node focused" such as XPath and CSS based selectors--as they
 present an opportunity to support this use case directly...or at 
least lay the foundation...one hopes.

See https://github.com/w3c/web-annotation/issues/107
Received on Tuesday, 10 November 2015 21:29:52 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:54:42 UTC