Coder Social home page Coder Social logo

xtannier / webannotator Goto Github PK

View Code? Open in Web Editor NEW
47.0 47.0 11.0 154 KB

WebAnnotator is a tool for annotating Web pages. WebAnnotator is implemented as a Firefox extension (https://addons.mozilla.org/en-US/firefox/addon/webannotator/), allowing annotation of both offline and inline pages. The HTML rendering is fully preserved and all annotations consist in new HTML spans with specific styles. WebAnnotator provides an easy and general-purpose framework and is made available under CeCILL free license (close to GNU GPL — see the license text), so that use and further contributions are made simple. All parts of an HTML document can be annotated: text, images, videos, tables, menus, etc. The annotations are created by simply selecting a part of the document and clicking on the relevant type and subtypes. The annotated elements are then highlighted in a specific color. Annotation schemas can be defined by the user by creating a simple DTD representing the types and subtypes that must be highlighted. Finally, annotations can be saved (HTML with highlighted parts of documents) or exported (in a machine-readable format).

JavaScript 99.48% CSS 0.46% Shell 0.06%

webannotator's People

Contributors

kmike avatar xtannier avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

webannotator's Issues

Locale handling

When everything is stabilized I'll move all English text to the locale directory.

Doubt regarding its usage

Hello,
Firefox extension of this is not available. Any other possibilities to use this or alternatives ?

Thanks in advance

Sometimes links are not disabled

Check e.g. https://www.facebook.com/MadHatterCafeWeymouth - for me links are half-enabled on first load (check a link with an address):

<a href="http://bing.com/maps/default.aspx?v=2&amp;pc=FACEBK&amp;mid=8100&amp;where1=119+Main+Street%2C+Weymouth%2C+Massachusetts+02188&amp;FORM=FBKPL0&amp;name=Mad+Hatter+Cafe&amp;mkt=en-US"
 wa_temp_href="http://www.facebook.com/l.php?u=http%3A%2F%2Fbing.com%2Fmaps%2Fdefault.aspx%3Fv%3D2%26pc%3DFACEBK%26mid%3D8100%26where1%3D119%2BMain%2BStreet%252C%2BWeymouth%252C%2BMassachusetts%2B02188%26FORM%3DFBKPL0%26name%3DMad%2BHatter%2BCafe%26mkt%3Den-US&amp;h=WAQF6FsBT&amp;s=1"  
 wa_temp_onclick="LinkshimAsyncLink.swap(this, &quot;http:\/\/www.facebook.com\/l.php?u=http\u00253A\u00252F\u00252Fbing.com\u00252Fmaps\u00252Fdefault.aspx\u00253Fv\u00253D2\u002526pc\u00253DFACEBK\u002526mid\u00253D8100\u002526where1\u00253D119\u00252BMain\u00252BStreet\u0025252C\u00252BWeymouth\u0025252C\u00252BMassachusetts\u00252B02188\u002526FORM\u00253DFBKPL0\u002526name\u00253DMad\u00252BHatter\u00252BCafe\u002526mkt\u00253Den-US&amp;h=WAQF6FsBT&amp;s=1&quot;);" 
 target="_blank" 
 rel="nofollow" 
 onmouseover="LinkshimAsyncLink.swap(this, &quot;http:\/\/bing.com\/maps\/default.aspx?v=2&amp;pc=FACEBK&amp;mid=8100&amp;where1=119+Main+Street\u00252C+Weymouth\u00252C+Massachusetts+02188&amp;FORM=FBKPL0&amp;name=Mad+Hatter+Cafe&amp;mkt=en-US&quot;);">119 Main Street, Weymouth, Massachusetts 02188</a>

Then, after clicking "Activate links", some attributes changes:

<a onclick="LinkshimAsyncLink.swap(this, &quot;http:\/\/www.facebook.com\/l.php?u=http\u00253A\u00252F\u00252Fbing.com\u00252Fmaps\u00252Fdefault.aspx\u00253Fv\u00253D2\u002526pc\u00253DFACEBK\u002526mid\u00253D8100\u002526where1\u00253D119\u00252BMain\u00252BStreet\u0025252C\u00252BWeymouth\u0025252C\u00252BMassachusetts\u00252B02188\u002526FORM\u00253DFBKPL0\u002526name\u00253DMad\u00252BHatter\u00252BCafe\u002526mkt\u00253Den-US&amp;h=WAQF6FsBT&amp;s=1&quot;);" 
 href="http://bing.com/maps/default.aspx?v=2&amp;pc=FACEBK&amp;mid=8100&amp;where1=119+Main+Street%2C+Weymouth%2C+Massachusetts+02188&amp;FORM=FBKPL0&amp;name=Mad+Hatter+Cafe&amp;mkt=en-US" wa_temp_href="http://www.facebook.com/l.php?u=http%3A%2F%2Fbing.com%2Fmaps%2Fdefault.aspx%3Fv%3D2%26pc%3DFACEBK%26mid%3D8100%26where1%3D119%2BMain%2BStreet%252C%2BWeymouth%252C%2BMassachusetts%2B02188%26FORM%3DFBKPL0%26name%3DMad%2BHatter%2BCafe%26mkt%3Den-US&amp;h=WAQF6FsBT&amp;s=1" 
target="_blank" 
rel="nofollow" 
onmouseover="LinkshimAsyncLink.swap(this, &quot;http:\/\/bing.com\/maps\/default.aspx?v=2&amp;pc=FACEBK&amp;mid=8100&amp;where1=119+Main+Street\u00252C+Weymouth\u00252C+Massachusetts+02188&amp;FORM=FBKPL0&amp;name=Mad+Hatter+Cafe&amp;mkt=en-US&quot;);">119 Main Street, Weymouth, Massachusetts 02188</a>

Then, after clicking "Disable links" again, I get the following results:

<a wa_temp_onmouseover="LinkshimAsyncLink.swap(this, &quot;http:\/\/bing.com\/maps\/default.aspx?v=2&amp;pc=FACEBK&amp;mid=8100&amp;where1=119+Main+Street\u00252C+Weymouth\u00252C+Massachusetts+02188&amp;FORM=FBKPL0&amp;name=Mad+Hatter+Cafe&amp;mkt=en-US&quot;);" 
 onclick="LinkshimAsyncLink.swap(this, &quot;http:\/\/www.facebook.com\/l.php?u=http\u00253A\u00252F\u00252Fbing.com\u00252Fmaps\u00252Fdefault.aspx\u00253Fv\u00253D2\u002526pc\u00253DFACEBK\u002526mid\u00253D8100\u002526where1\u00253D119\u00252BMain\u00252BStreet\u0025252C\u00252BWeymouth\u0025252C\u00252BMassachusetts\u00252B02188\u002526FORM\u00253DFBKPL0\u002526name\u00253DMad\u00252BHatter\u00252BCafe\u002526mkt\u00253Den-US&amp;h=WAQF6FsBT&amp;s=1&quot;);" 
 wa_temp_href="http://bing.com/maps/default.aspx?v=2&amp;pc=FACEBK&amp;mid=8100&amp;where1=119+Main+Street%2C+Weymouth%2C+Massachusetts+02188&amp;FORM=FBKPL0&amp;name=Mad+Hatter+Cafe&amp;mkt=en-US" 
target="_blank" 
rel="nofollow">119 Main Street, Weymouth, Massachusetts 02188</a>

On other pages links disabling also was inconsistent. I recall for some pages links were not disabled, but after restarting browser and activating session again they became disabled.

It seems that there is some flaw or a bug in a way links are disabled.

Update?

Bonjour.
Est-ce qu'il y a la moindre chance que le code soit porté pour le nouveau Firefox?

Merci beaucoup.

Title annotation <div> appears in saved page

I noticed that the new title annotation <div> appears in the saved page, even if it was never toggled on. Moreover the position of the div is very variable.
Can I make the <div> hidden while saving?

An issue with deleting annotation

  1. Go to http://scrapinghub.com/contact
  2. activate the extension and start annotation session;
  3. double-click "Contact" word in the title to select it;
  4. assign it some label;
  5. double-click this word again to select it again;
  6. popup with labels will appear - click "Cancel" to close it ("Contact" word should remain selected);
  7. hover mouse to "Contact" word - a small popup with "edit" and "delete" icons will appear;
  8. click "delete" icon.

Instead of deleting the annotation "Are you sure you want to delete annotation #null?" message will appear, and regardless of the answer annotation won't be deleted.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.