Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
8821246e
Commit
8821246e
authored
Nov 26, 2013
by
csillag
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cosmetic Annotator changes
parent
73a62423
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
10 deletions
+10
-10
annotator.coffee
h/lib/_annotator_mapsrc/src/annotator.coffee
+1
-1
domtextmapper.coffee
h/lib/_annotator_mapsrc/src/plugin/domtextmapper.coffee
+1
-1
annotator.domtextmapper.js
h/lib/annotator.domtextmapper.js
+3
-3
annotator.domtextmapper.map
h/lib/annotator.domtextmapper.map
+1
-1
annotator.js
h/lib/annotator.js
+3
-3
annotator.map
h/lib/annotator.map
+1
-1
No files found.
h/lib/_annotator_mapsrc/src/annotator.coffee
View file @
8821246e
...
...
@@ -125,7 +125,7 @@ class Annotator extends Delegator
@
documentAccessStrategies
=
[
# Default dummy strategy for simple HTML documents.
# The generic fallback.
name
:
"D
OM generic
"
name
:
"D
ummy
"
mapper
:
DummyDocumentAccess
]
...
...
h/lib/_annotator_mapsrc/src/plugin/domtextmapper.coffee
View file @
8821246e
...
...
@@ -5,6 +5,6 @@ class Annotator.Plugin.DomTextMapper extends Annotator.Plugin
@
annotator
.
documentAccessStrategies
.
unshift
# Document access strategy for simple HTML documents,
# with enhanced text extraction and mapping features.
name
:
"DOM
generic
"
name
:
"DOM
-Text-Mapper
"
mapper
:
window
.
DomTextMapper
init
:
=>
@
annotator
.
domMapper
.
setRootNode
@
annotator
.
wrapper
[
0
]
h/lib/annotator.domtextmapper.js
View file @
8821246e
// Generated by CoffeeScript 1.6.3
/*
** Annotator 1.2.6-dev-
fa01c96
** Annotator 1.2.6-dev-
4f0961d
** https://github.com/okfn/annotator/
**
** Copyright 2012 Aron Carroll, Rufus Pollock, and Nick Stenning.
** Dual licensed under the MIT and GPLv3 licenses.
** https://github.com/okfn/annotator/blob/master/LICENSE
**
** Built at: 2013-11-2
1 17:23:55
Z
** Built at: 2013-11-2
6 14:54:29
Z
*/
...
...
@@ -33,7 +33,7 @@
DomTextMapper
.
prototype
.
pluginInit
=
function
()
{
var
_this
=
this
;
return
this
.
annotator
.
documentAccessStrategies
.
unshift
({
name
:
"DOM
generic
"
,
name
:
"DOM
-Text-Mapper
"
,
mapper
:
window
.
DomTextMapper
,
init
:
function
()
{
return
_this
.
annotator
.
domMapper
.
setRootNode
(
_this
.
annotator
.
wrapper
[
0
]);
...
...
h/lib/annotator.domtextmapper.map
View file @
8821246e
{"version":3,"file":"annotator.domtextmapper.js","sources":["_preamble.coffee","_annotator_mapsrc/src/plugin/domtextmapper.coffee"],"names":[],"mappings":";AAAA;;;;;;;;;;CAAA;CAAA;;;;;;;ACCA;CAAA,GAAA,EAAA;KAAA;oSAAA;;CAAA,CAAM,IAAgB,GAAP;CAEb;;;;;CAAA;;CAAA,EAAY,MAAA,CAAZ;CACE,SAAA,EAAA;CAAC,GAAA,GAAD,EAAU,IAAV,WAAmC;CAGjC,CAAM,EAAN,IAAA,KAAA;CAAA,CACQ,IAAR,EAAA,KADA;CAAA,CAEM,CAAA,CAAN,IAAA,CAAM;CAAI,IAAA,EAAmD,EAA1C,EAAV,MAAA;CAFT,QAEM;CANE,OACV;CADF,IAAY;;CAAZ;;CAF2C,QAAS;CAAtD"}
\ No newline at end of file
{"version":3,"file":"annotator.domtextmapper.js","sources":["_preamble.coffee","_annotator_mapsrc/src/plugin/domtextmapper.coffee"],"names":[],"mappings":";AAAA;;;;;;;;;;CAAA;CAAA;;;;;;;ACCA;CAAA,GAAA,EAAA;KAAA;oSAAA;;CAAA,CAAM,IAAgB,GAAP;CAEb;;;;;CAAA;;CAAA,EAAY,MAAA,CAAZ;CACE,SAAA,EAAA;CAAC,GAAA,GAAD,EAAU,IAAV,WAAmC;CAGjC,CAAM,EAAN,IAAA,SAAA;CAAA,CACQ,IAAR,EAAA,KADA;CAAA,CAEM,CAAA,CAAN,IAAA,CAAM;CAAI,IAAA,EAAmD,EAA1C,EAAV,MAAA;CAFT,QAEM;CANE,OACV;CADF,IAAY;;CAAZ;;CAF2C,QAAS;CAAtD"}
\ No newline at end of file
h/lib/annotator.js
View file @
8821246e
// Generated by CoffeeScript 1.6.3
/*
** Annotator 1.2.6-dev-
989382f
** Annotator 1.2.6-dev-
4f0961d
** https://github.com/okfn/annotator/
**
** Copyright 2012 Aron Carroll, Rufus Pollock, and Nick Stenning.
** Dual licensed under the MIT and GPLv3 licenses.
** https://github.com/okfn/annotator/blob/master/LICENSE
**
** Built at: 2013-11-26 14:
05:21
Z
** Built at: 2013-11-26 14:
54:04
Z
*/
...
...
@@ -1083,7 +1083,7 @@
Annotator
.
prototype
.
_setupDocumentAccessStrategies
=
function
()
{
this
.
documentAccessStrategies
=
[
{
name
:
"D
OM generic
"
,
name
:
"D
ummy
"
,
mapper
:
DummyDocumentAccess
}
];
...
...
h/lib/annotator.map
View file @
8821246e
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment