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
ffaf4253
Commit
ffaf4253
authored
May 28, 2014
by
csillag
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Annotator to 4158d0a5 (typed-packaging branch)
parent
b09290fc
Changes
23
Show whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
62 additions
and
51 deletions
+62
-51
domtextmapper.coffee
h/lib/_annotator_mapsrc/src/plugin/domtextmapper.coffee
+4
-0
fuzzytextanchors.coffee
h/lib/_annotator_mapsrc/src/plugin/fuzzytextanchors.coffee
+6
-3
textposition.coffee
h/lib/_annotator_mapsrc/src/plugin/textposition.coffee
+4
-5
textquote.coffee
h/lib/_annotator_mapsrc/src/plugin/textquote.coffee
+1
-1
textrange.coffee
h/lib/_annotator_mapsrc/src/plugin/textrange.coffee
+1
-1
annotator.auth.js
h/lib/annotator.auth.js
+2
-2
annotator.document.js
h/lib/annotator.document.js
+2
-2
annotator.domtextmapper.js
h/lib/annotator.domtextmapper.js
+6
-2
annotator.domtextmapper.map
h/lib/annotator.domtextmapper.map
+1
-1
annotator.fuzzytextanchors.js
h/lib/annotator.fuzzytextanchors.js
+8
-6
annotator.fuzzytextanchors.map
h/lib/annotator.fuzzytextanchors.map
+1
-1
annotator.js
h/lib/annotator.js
+2
-2
annotator.pdf.js
h/lib/annotator.pdf.js
+2
-2
annotator.permissions.js
h/lib/annotator.permissions.js
+2
-2
annotator.store.js
h/lib/annotator.store.js
+2
-2
annotator.textanchors.js
h/lib/annotator.textanchors.js
+2
-2
annotator.texthighlights.js
h/lib/annotator.texthighlights.js
+2
-2
annotator.textposition.js
h/lib/annotator.textposition.js
+5
-6
annotator.textposition.map
h/lib/annotator.textposition.map
+1
-1
annotator.textquote.js
h/lib/annotator.textquote.js
+3
-3
annotator.textquote.map
h/lib/annotator.textquote.map
+1
-1
annotator.textrange.js
h/lib/annotator.textrange.js
+3
-3
annotator.textrange.map
h/lib/annotator.textrange.map
+1
-1
No files found.
h/lib/_annotator_mapsrc/src/plugin/domtextmapper.coffee
View file @
ffaf4253
...
...
@@ -2,6 +2,10 @@
class
Annotator
.
Plugin
.
DomTextMapper
extends
Annotator
.
Plugin
pluginInit
:
->
if
@
options
.
skip
console
.
log
"Not registering DOM-Text-Mapper."
return
@
annotator
.
documentAccessStrategies
.
unshift
# Document access strategy for simple HTML documents,
# with enhanced text extraction and mapping features.
...
...
h/lib/_annotator_mapsrc/src/plugin/fuzzytextanchors.coffee
View file @
ffaf4253
...
...
@@ -6,9 +6,6 @@ class Annotator.Plugin.FuzzyTextAnchors extends Annotator.Plugin
unless
@
annotator
.
plugins
.
TextAnchors
console
.
warn
"The FuzzyTextAnchors Annotator plugin requires the TextAnchors plugin. Skipping."
return
unless
@
annotator
.
plugins
.
DomTextMapper
console
.
warn
"The FuzzyTextAnchors Annotator plugin requires the DomTextMapper plugin. Skipping."
return
@
Annotator
=
Annotator
...
...
@@ -31,6 +28,9 @@ class Annotator.Plugin.FuzzyTextAnchors extends Annotator.Plugin
code
:
this
.
fuzzyMatching
twoPhaseFuzzyMatching
:
(
annotation
,
target
)
=>
# This won't work without DTM
return
unless
@
annotator
.
domMapper
.
getInfoForNode
?
# Fetch the quote and the context
quoteSelector
=
@
annotator
.
findSelector
target
.
selector
,
"TextQuoteSelector"
prefix
=
quoteSelector
?
.
prefix
...
...
@@ -74,6 +74,9 @@ class Annotator.Plugin.FuzzyTextAnchors extends Annotator.Plugin
unless
match
.
exact
then
match
.
exactExceptCase
fuzzyMatching
:
(
annotation
,
target
)
=>
# This won't work without DTM
return
unless
@
annotator
.
domMapper
.
getInfoForNode
?
# Fetch the quote
quoteSelector
=
@
annotator
.
findSelector
target
.
selector
,
"TextQuoteSelector"
quote
=
quoteSelector
?
.
exact
...
...
h/lib/_annotator_mapsrc/src/plugin/textposition.coffee
View file @
ffaf4253
...
...
@@ -45,11 +45,6 @@ class Annotator.Plugin.TextPosition extends Annotator.Plugin
@
Annotator
=
Annotator
# Do we have the basic text anchors plugin loaded?
unless
@
annotator
.
plugins
.
DomTextMapper
console
.
warn
"The TextPosition Annotator plugin requires the DomTextMapper plugin. Skipping."
return
# Register the creator for text quote selectors
@
annotator
.
selectorCreators
.
push
name
:
"TextPositionSelector"
...
...
@@ -67,8 +62,12 @@ class Annotator.Plugin.TextPosition extends Annotator.Plugin
# Create a TextPositionSelector around a range
_getTextPositionSelector
:
(
selection
)
=>
# We only care about "text range" selections.
return
[]
unless
selection
.
type
is
"text range"
# We need dom-text-mapper - style functionality
return
[]
unless
@
annotator
.
domMapper
.
getStartPosForNode
?
startOffset
=
@
annotator
.
domMapper
.
getStartPosForNode
selection
.
range
.
start
endOffset
=
@
annotator
.
domMapper
.
getEndPosForNode
selection
.
range
.
end
...
...
h/lib/_annotator_mapsrc/src/plugin/textquote.coffee
View file @
ffaf4253
...
...
@@ -34,7 +34,7 @@ class Annotator.Plugin.TextQuote extends Annotator.Plugin
unless
rangeEnd
?
throw
new
Error
"Called getTextQuoteSelector() on a range with no valid end."
if
@
annotator
.
plugins
.
DomTextMapper
if
@
annotator
.
domMapper
.
getStartPosForNode
?
# Calculate the quote and context using DTM
startOffset
=
@
annotator
.
domMapper
.
getStartPosForNode
rangeStart
...
...
h/lib/_annotator_mapsrc/src/plugin/textrange.coffee
View file @
ffaf4253
...
...
@@ -85,7 +85,7 @@ class Annotator.Plugin.TextRange extends Annotator.Plugin
return
null
# Get the text of this range
currentQuote
=
@
annotator
.
normalizeString
if
@
annotator
.
plugins
.
DomTextMapper
currentQuote
=
@
annotator
.
normalizeString
if
@
annotator
.
domMapper
.
getInfoForNode
?
# Determine the current content of the given range using DTM
startInfo
=
@
annotator
.
domMapper
.
getInfoForNode
normedRange
.
start
...
...
h/lib/annotator.auth.js
View file @
ffaf4253
// Generated by CoffeeScript 1.6.3
/*
** Annotator 1.2.6-dev-
9e987d3
** Annotator 1.2.6-dev-
4158d0a
** 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: 2014-05-2
4 00:12:28
Z
** Built at: 2014-05-2
8 15:05:59
Z
*/
...
...
h/lib/annotator.document.js
View file @
ffaf4253
// Generated by CoffeeScript 1.6.3
/*
** Annotator 1.2.6-dev-
9e987d3
** Annotator 1.2.6-dev-
4158d0a
** 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: 2014-05-2
4 00:12:2
9Z
** Built at: 2014-05-2
8 15:05:5
9Z
*/
...
...
h/lib/annotator.domtextmapper.js
View file @
ffaf4253
// Generated by CoffeeScript 1.6.3
/*
** Annotator 1.2.6-dev-
9e987d3
** Annotator 1.2.6-dev-
4158d0a
** 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: 2014-05-2
4 00:12:3
5Z
** Built at: 2014-05-2
8 15:06:0
5Z
*/
...
...
@@ -32,6 +32,10 @@
DomTextMapper
.
prototype
.
pluginInit
=
function
()
{
var
_this
=
this
;
if
(
this
.
options
.
skip
)
{
console
.
log
(
"Not registering DOM-Text-Mapper."
);
return
;
}
return
this
.
annotator
.
documentAccessStrategies
.
unshift
({
name
:
"DOM-Text-Mapper"
,
mapper
:
window
.
DomTextMapper
,
...
...
h/lib/annotator.domtextmapper.map
View file @
ffaf4253
{"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
{"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;CAAA,GAAG,EAAH,CAAW;CACT,EAAA,IAAO,CAAP,0BAAA;CACA,aAAA;QAFF;CAIC,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;CAVE,OAKV;CALF,IAAY;;CAAZ;;CAF2C,QAAS;CAAtD"}
\ No newline at end of file
h/lib/annotator.fuzzytextanchors.js
View file @
ffaf4253
// Generated by CoffeeScript 1.6.3
/*
** Annotator 1.2.6-dev-
9e987d3
** Annotator 1.2.6-dev-
4158d0a
** 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: 2014-05-2
4 00:12:39
Z
** Built at: 2014-05-2
8 15:06:11
Z
*/
...
...
@@ -39,10 +39,6 @@
console
.
warn
(
"The FuzzyTextAnchors Annotator plugin requires the TextAnchors plugin. Skipping."
);
return
;
}
if
(
!
this
.
annotator
.
plugins
.
DomTextMapper
)
{
console
.
warn
(
"The FuzzyTextAnchors Annotator plugin requires the DomTextMapper plugin. Skipping."
);
return
;
}
this
.
Annotator
=
Annotator
;
this
.
textFinder
=
new
DomTextMatcher
(
function
()
{
return
_this
.
annotator
.
domMapper
.
getCorpus
();
...
...
@@ -59,6 +55,9 @@
FuzzyTextAnchors
.
prototype
.
twoPhaseFuzzyMatching
=
function
(
annotation
,
target
)
{
var
expectedEnd
,
expectedStart
,
match
,
options
,
posSelector
,
prefix
,
quote
,
quoteSelector
,
result
,
suffix
;
if
(
this
.
annotator
.
domMapper
.
getInfoForNode
==
null
)
{
return
;
}
quoteSelector
=
this
.
annotator
.
findSelector
(
target
.
selector
,
"TextQuoteSelector"
);
prefix
=
quoteSelector
!=
null
?
quoteSelector
.
prefix
:
void
0
;
suffix
=
quoteSelector
!=
null
?
quoteSelector
.
suffix
:
void
0
;
...
...
@@ -85,6 +84,9 @@
FuzzyTextAnchors
.
prototype
.
fuzzyMatching
=
function
(
annotation
,
target
)
{
var
expectedStart
,
len
,
match
,
options
,
posSelector
,
quote
,
quoteSelector
,
result
;
if
(
this
.
annotator
.
domMapper
.
getInfoForNode
==
null
)
{
return
;
}
quoteSelector
=
this
.
annotator
.
findSelector
(
target
.
selector
,
"TextQuoteSelector"
);
quote
=
quoteSelector
!=
null
?
quoteSelector
.
exact
:
void
0
;
if
(
quote
==
null
)
{
...
...
h/lib/annotator.fuzzytextanchors.map
View file @
ffaf4253
{"version":3,"file":"annotator.fuzzytextanchors.js","sources":["_preamble.coffee","_annotator_mapsrc/src/plugin/fuzzytextanchors.coffee"],"names":[],"mappings":";AAAA;;;;;;;;;;CAAA;CAAA;;;;;;;ACCA;CAAA,GAAA,EAAA;KAAA;;oSAAA;;CAAA,CAAM,IAAgB,GAAP;CAEb;;;;;;;CAAA;;CAAA,EAAY,MAAA,CAAZ;CAEE,SAAA,EAAA;AAAO,CAAP,GAAA,EAAA,CAAyB,EAAR,EAAjB;CACE,GAAA,GAAO,CAAP,0EAAA;CACA,aAAA;QAFF;AAGO,CAAP,GAAA,EAAA,CAAyB,EAAR,IAAjB;CACE,GAAA,GAAO,CAAP,4EAAA;CACA,aAAA;QALF;CAAA,EAOa,CAAZ,EAAD,GAAA;CAPA,EAUkB,CAAjB,EAAD,GAAiC,CAAjC,IAAkB;CAAmB,IAAA,IAAS,MAAV;CAAlB,MAAe;CAVjC,GAaC,EAAD,GAAU,UAAoB;CAI5B,CAAM,EAAN,IAAA,SAAA;CAAA,CACM,EAAN,IAAA,aADA;CAjBF,OAaA;CAOC,GAAA,KAAS,IAAV,MAA8B;CAI5B,CAAM,EAAN,IAAA,SAAA;CAAA,CACM,EAAN,IAAA,KADA;CA1BQ,OAsBV;CAtBF,IAAY;;CAAZ,CA6BoC,CAAb,GAAA,GAAC,CAAD,WAAvB;CAEE,SAAA,2FAAA;CAAA,CAAyD,CAAzC,CAAC,EAAjB,EAAgB,CAAU,GAAV,CAAhB,MAAgB;CAAhB,EACS,GAAT,OAAsB;CADtB,EAES,GAAT,OAAsB;CAFtB,EAGQ,EAAR,CAAA,OAAqB;AAGd,CAAP,GAAA,EAAA,UAAQ;CAA0B,GAAA,WAAO;QANzC;CAAA,CASuD,CAAzC,CAAC,EAAf,EAAc,CAAU,EAAxB,CAAc,UAAA;CATd,EAUgB,GAAhB,KAA2B,EAA3B;CAVA,EAWc,GAAd,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f;;CAF8C,QAAS;CAAzD"}
\ No newline at end of file
{"version":3,"file":"annotator.fuzzytextanchors.js","sources":["_preamble.coffee","_annotator_mapsrc/src/plugin/fuzzytextanchors.coffee"],"names":[],"mappings":";AAAA;;;;;;;;;;CAAA;CAAA;;;;;;;ACCA;CAAA,GAAA,EAAA;KAAA;;oSAAA;;CAAA,CAAM,IAAgB,GAAP;CAEb;;;;;;;CAAA;;CAAA,EAAY,MAAA,CAAZ;CAEE,SAAA,EAAA;AAAO,CAAP,GAAA,EAAA,CAAyB,EAAR,EAAjB;CACE,GAAA,GAAO,CAAP,0EAAA;CACA,aAAA;QAFF;CAAA,EAIa,CAAZ,EAAD,GAAA;CAJA,EAOkB,CAAjB,EAAD,GAAiC,CAAjC,IAAkB;CAAmB,IAAA,IAAS,MAAV;CAAlB,MAAe;CAPjC,GAUC,EAAD,GAAU,UAAoB;CAI5B,CAAM,EAAN,IAAA,SAAA;CAAA,CACM,EAAN,IAAA,aADA;CAdF,OAUA;CAOC,GAAA,KAAS,IAAV,MAA8B;CAI5B,CAAM,EAAN,IAAA,SAAA;CAAA,CACM,EAAN,IAAA,KADA;CAvBQ,OAmBV;CAnBF,IAAY;;CAAZ,CA0BoC,CAAb,GAAA,GAAC,CAAD,WAAvB;CAEE,SAAA,2FAAA;CAAA,GAAc,EAAd,yCAAA;CAAA,aAAA;QAAA;CAAA,CAGyD,CAAzC,CAAC,EAAjB,EAAgB,CAAU,GAAV,CAAhB,MAAgB;CAHhB,EAIS,GAAT,OAAsB;CAJtB,EAKS,GAAT,OAAsB;CALtB,EAMQ,EAAR,CAAA,OAAqB;AAGd,CAAP,GAAA,EAAA,UAAQ;CAA0B,GAAA,WAAO;QATzC;CAAA,CAYuD,CAAzC,CAAC,EAAf,EAAc,CAAU,EAAxB,CAAc,UAAA;CAZd,EAagB,GAAhB,KAA2B,EAA3B;CAbA,EAcc,GAAd,KAAA;CAdA,EAiBE,GADF,CAAA;CACE,CAAsB,CAA0C,CAAzC,EAAD,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AzD"}
\ No newline at end of file
h/lib/annotator.js
View file @
ffaf4253
// Generated by CoffeeScript 1.6.3
/*
** Annotator 1.2.6-dev-
9e987d3
** Annotator 1.2.6-dev-
4158d0a
** 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: 2014-05-2
4 00:12:24
Z
** Built at: 2014-05-2
8 15:05:55
Z
*/
...
...
h/lib/annotator.pdf.js
View file @
ffaf4253
// Generated by CoffeeScript 1.6.3
/*
** Annotator 1.2.6-dev-
9e987d3
** Annotator 1.2.6-dev-
4158d0a
** 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: 2014-05-2
4 00:12:40
Z
** Built at: 2014-05-2
8 15:06:12
Z
*/
...
...
h/lib/annotator.permissions.js
View file @
ffaf4253
// Generated by CoffeeScript 1.6.3
/*
** Annotator 1.2.6-dev-
9e987d3
** Annotator 1.2.6-dev-
4158d0a
** 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: 2014-05-2
4 00:12:32
Z
** Built at: 2014-05-2
8 15:06:03
Z
*/
...
...
h/lib/annotator.store.js
View file @
ffaf4253
// Generated by CoffeeScript 1.6.3
/*
** Annotator 1.2.6-dev-
9e987d3
** Annotator 1.2.6-dev-
4158d0a
** 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: 2014-05-2
4 00:12:33
Z
** Built at: 2014-05-2
8 15:06:04
Z
*/
...
...
h/lib/annotator.textanchors.js
View file @
ffaf4253
// Generated by CoffeeScript 1.6.3
/*
** Annotator 1.2.6-dev-
9e987d3
** Annotator 1.2.6-dev-
4158d0a
** 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: 2014-05-2
4 00:12:36
Z
** Built at: 2014-05-2
8 15:06:07
Z
*/
...
...
h/lib/annotator.texthighlights.js
View file @
ffaf4253
// Generated by CoffeeScript 1.6.3
/*
** Annotator 1.2.6-dev-
9e987d3
** Annotator 1.2.6-dev-
4158d0a
** 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: 2014-05-2
4 00:12:35
Z
** Built at: 2014-05-2
8 15:06:06
Z
*/
...
...
h/lib/annotator.textposition.js
View file @
ffaf4253
// Generated by CoffeeScript 1.6.3
/*
** Annotator 1.2.6-dev-
9e987d3
** Annotator 1.2.6-dev-
4158d0a
** 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: 2014-05-2
4 00:12:38
Z
** Built at: 2014-05-2
8 15:06:10
Z
*/
...
...
@@ -66,10 +66,6 @@
TextPosition
.
prototype
.
pluginInit
=
function
()
{
this
.
Annotator
=
Annotator
;
if
(
!
this
.
annotator
.
plugins
.
DomTextMapper
)
{
console
.
warn
(
"The TextPosition Annotator plugin requires the DomTextMapper plugin. Skipping."
);
return
;
}
this
.
annotator
.
selectorCreators
.
push
({
name
:
"TextPositionSelector"
,
describe
:
this
.
_getTextPositionSelector
...
...
@@ -86,6 +82,9 @@
if
(
selection
.
type
!==
"text range"
)
{
return
[];
}
if
(
this
.
annotator
.
domMapper
.
getStartPosForNode
==
null
)
{
return
[];
}
startOffset
=
this
.
annotator
.
domMapper
.
getStartPosForNode
(
selection
.
range
.
start
);
endOffset
=
this
.
annotator
.
domMapper
.
getEndPosForNode
(
selection
.
range
.
end
);
if
((
startOffset
!=
null
)
&&
(
endOffset
!=
null
))
{
...
...
h/lib/annotator.textposition.map
View file @
ffaf4253
{"version":3,"file":"annotator.textposition.js","sources":["_preamble.coffee","_annotator_mapsrc/src/plugin/textposition.coffee"],"names":[],"mappings":";AAAA;;;;;;;;;;CAAA;CAAA;;;;;;;ACEA;CAAA,KAAA,kBAAA;KAAA;;uFAAA;;CAAA,CAAM;CAEJ;;CAAA,EAAa,CAAb,KAAA,SAAC;;CAEY,CAAY,CAAZ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,gBAAC;CAIZ,EAHG,CAAA,CAGH,CAHE;CAGF,EAHW,CAAA,EAAD;CAGV,CAAiB,GAAjB,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,wCAAM;CAMN,GAAO,EAAP,YAAA;CAAoB,GAAU,CAAA,SAAA,MAAA;QAN9B;CAOA,GAAO,EAAP,UAAA;CAAkB,GAAU,CAAA,SAAA,IAAA;QAP5B;CAAA,EASa,CAAZ,EAAD,GAAA,SAA+B;CAfjC,IAEa;;CAFb,EAkBkB,CAAA,KAAC,OAAnB;CAGE,SAAA,oCAAA;CAAA,CAAgE,CAArD,CAAC,CAAD,CAAX,EAAA,CAAqB,cAAV;CAAX,EAGY,CAAkB,EAA9B,EAAoB,CAApB;CAHA,EAMmB,CAAA,CAAgB,CAAnC,GAA6B,GAA7B;CANA,EASc,CAAwB,EAAtC,CAAwD,EAA1C,EAAd,CAA0B;CAGrB,CAA8B,EAA/B,KAAU,EAAV,EAAA;CAjCN,IAkBkB;;CAlBlB;;CAF+B,QAAS;;CAA1C,CAuCM,IAAgB,GAAP;CAEb;;;;;;;CAAA;;CAAA,EAAY,MAAA,CAAZ;CAEE,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,WAAO;QATT;CAAA,EAWU,CAAC,EAAX,CAAA,EAAoB,6CAAwD;CAX5E,EAYe,CAAC,EAAhB,CAAe,EAAU,GAAzB,GAAe;CAZf,IAauB,CAAvB,IAAA;CACA,GAAG,CAAkC,CAArC,IAAA,EAAmB,QAAhB;CAOD,GAAA,WAAO;QArBT;CAwBuB,CAAY,CAA/B,CAAA,CAAA,CAAA,EACM,CADN,CAAA,EAAA,CAAA,KAAA;CA/EN,IAoD4B;;CApD5B;;CAF0C,QAAS;CAvCrD"}
\ No newline at end of file
{"version":3,"file":"annotator.textposition.js","sources":["_preamble.coffee","_annotator_mapsrc/src/plugin/textposition.coffee"],"names":[],"mappings":";AAAA;;;;;;;;;;CAAA;CAAA;;;;;;;ACEA;CAAA,KAAA,kBAAA;KAAA;;uFAAA;;CAAA,CAAM;CAEJ;;CAAA,EAAa,CAAb,KAAA,SAAC;;CAEY,CAAY,CAAZ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,gBAAC;CAIZ,EAHG,CAAA,CAGH,CAHE;CAGF,EAHW,CAAA,EAAD;CAGV,CAAiB,GAAjB,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,wCAAM;CAMN,GAAO,EAAP,YAAA;CAAoB,GAAU,CAAA,SAAA,MAAA;QAN9B;CAOA,GAAO,EAAP,UAAA;CAAkB,GAAU,CAAA,SAAA,IAAA;QAP5B;CAAA,EASa,CAAZ,EAAD,GAAA,SAA+B;CAfjC,IAEa;;CAFb,EAkBkB,CAAA,KAAC,OAAnB;CAGE,SAAA,oCAAA;CAAA,CAAgE,CAArD,CAAC,CAAD,CAAX,EAAA,CAAqB,cAAV;CAAX,EAGY,CAAkB,EAA9B,EAAoB,CAApB;CAHA,EAMmB,CAAA,CAAgB,CAAnC,GAA6B,GAA7B;CANA,EASc,CAAwB,EAAtC,CAAwD,EAA1C,EAAd,CAA0B;CAGrB,CAA8B,EAA/B,KAAU,EAAV,EAAA;CAjCN,IAkBkB;;CAlB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,GAAO,EAAP,cAAA;CACE,EAAA,IAAO,CAAP,8DAAA;CACA,GAAA,WAAO;QATT;CAAA,EAWU,CAAC,EAAX,CAAA,EAAoB,6CAAwD;CAX5E,EAYe,CAAC,EAAhB,CAAe,EAAU,GAAzB,GAAe;CAZf,IAauB,CAAvB,IAAA;CACA,GAAG,CAAkC,CAArC,IAAA,EAAmB,QAAhB;CAOD,GAAA,WAAO;QArBT;CAwBuB,CAAY,CAA/B,CAAA,CAAA,CAAA,EACM,CADN,CAAA,EAAA,CAAA,KAAA;CA9EN,IAmD4B;;CAnD5B;;CAF0C,QAAS;CAvCrD"}
\ No newline at end of file
h/lib/annotator.textquote.js
View file @
ffaf4253
// Generated by CoffeeScript 1.6.3
/*
** Annotator 1.2.6-dev-
9e987d3
** Annotator 1.2.6-dev-
4158d0a
** 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: 2014-05-2
4 00:12:39
Z
** Built at: 2014-05-2
8 15:06:10
Z
*/
...
...
@@ -69,7 +69,7 @@
if
(
rangeEnd
==
null
)
{
throw
new
Error
(
"Called getTextQuoteSelector() on a range with no valid end."
);
}
if
(
this
.
annotator
.
plugins
.
DomTextMapper
)
{
if
(
this
.
annotator
.
domMapper
.
getStartPosForNode
!=
null
)
{
startOffset
=
this
.
annotator
.
domMapper
.
getStartPosForNode
(
rangeStart
);
endOffset
=
this
.
annotator
.
domMapper
.
getEndPosForNode
(
rangeEnd
);
if
((
startOffset
!=
null
)
&&
(
endOffset
!=
null
))
{
...
...
h/lib/annotator.textquote.map
View file @
ffaf4253
{"version":3,"file":"annotator.textquote.js","sources":["_preamble.coffee","_annotator_mapsrc/src/plugin/textquote.coffee"],"names":[],"mappings":";AAAA;;;;;;;;;;CAAA;CAAA;;;;;;;ACCA;CAAA,GAAA,EAAA;KAAA;;oSAAA;;CAAA,CAAM,I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CAaE,CAA2D,CAA3D,IAAO,EAAP,CAAA,CAAA,kCAAA;CAbF,gBAcE;UApBJ;MAAA,EAAA;eAuBE;WACE;CAAA,CAAM,EAAN,QAAA,OAAA;CAAA,CACO,EAAA,CAAP,IAAgB,GAAhB;YAFF;CAvBF;QAbqB;CApBvB,IAoBuB;;CApBvB;;CAFuC,QAAS;CAAlD"}
\ No newline at end of file
{"version":3,"file":"annotator.textquote.js","sources":["_preamble.coffee","_annotator_mapsrc/src/plugin/textquote.coffee"],"names":[],"mappings":";AAAA;;;;;;;;;;CAAA;CAAA;;;;;;;ACCA;CAAA,GAAA,EAAA;KAAA;;oSAAA;;CAAA,CAAM,IAAgB,GAAP;CAEb;;;;;;CAAA;;CAAA,EAAa,CAAb,KAAC;;CAAD,EACK,CAAL,KAAC;;CADD,EAIY,MAAA,CAAZ;CAGE,SAAA,EAAA;CAAA,GAAC,EAAD,GAAU,OAAiB;CACzB,CAAM,EAAN,IAAA,WAAA;CAAA,CACU,EAAC,IAAX,aADA;CADF,OAAA;CAKC,EAA8B,CAA9B,EAA8B,GAArB,IAAV,IAAA;CACE,OAAA,IAAA;CAAA,CAAoD,CAAzC,EAAC,CAA6B,EAAzC,CAAqB,GAAV,OAAA;CACX,GAAG,IAAH,QAAA;CACG,IAAA,GAAkC,CAAzB,MAAV,EAAA;MADF,IAAA;CAAA,gBAGE;UAL2B;CARrB,MAQqB;CAZjC,IAIY;;CAJZ,EAoBuB,MAAC,YAAxB;CACE,SAAA,gEAAA;CAAA,GAAiB,CAAkB,CAAnC,GAA0B,GAA1B;CAAA,CAAA,aAAO;QAAP;CAEA,GAAO,EAAP,iBAAA;CACE,GAAU,CAAA,SAAA,kCAAA;QAHZ;CAAA,EAKa,EAAe,CAA5B,GAAsB,CAAtB;CACA,GAAO,EAAP,YAAA;CACE,GAAU,CAAA,SAAA,iDAAA;QAPZ;CAAA,EAQW,EAAe,CAA1B,EAAA,CAAoB;CACpB,GAAO,EAAP,UAAA;CACE,GAAU,CAAA,SAAA,+CAAA;QAVZ;CAYA,GAAG,EAAH,6CAAA;CAGE,EAAc,CAAC,IAAf,CAAwB,CAAV,CAAd,OAAc;CAAd,EACY,CAAC,IAAb,CAAA,OAAY;CAEZ,GAAG,IAAH,WAAA,EAAG;CACD,EAAQ,CAAC,CAAT,IAAkB,CAAlB,sCAAoE;CAApE,CAC4E,EAAxD,IAAD,CAAU,CAA7B,CAAmB,WAAA;iBAEnB;aACE;CAAA,CAAM,EAAN,UAAA,KAAA;CAAA,CACO,GAAP,SAAA;CADA,CAEQ,IAAR,QAAA;CAFA,CAGQ,IAAR,QAAA;cAJF;CAJF;MAAA,IAAA;CAaE,CAA2D,CAA3D,IAAO,EAAP,CAAA,CAAA,kCAAA;CAbF,gBAcE;UApBJ;MAAA,EAAA;eAuBE;WACE;CAAA,CAAM,EAAN,QAAA,OAAA;CAAA,CACO,EAAA,CAAP,IAAgB,GAAhB;YAFF;CAvBF;QAbqB;CApBvB,IAoBuB;;CApBvB;;CAFuC,QAAS;CAAlD"}
\ No newline at end of file
h/lib/annotator.textrange.js
View file @
ffaf4253
// Generated by CoffeeScript 1.6.3
/*
** Annotator 1.2.6-dev-
9e987d3
** Annotator 1.2.6-dev-
4158d0a
** 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: 2014-05-2
4 00:12:37
Z
** Built at: 2014-05-2
8 15:06:09
Z
*/
...
...
@@ -98,7 +98,7 @@
error
=
_error
;
return
null
;
}
currentQuote
=
this
.
annotator
.
normalizeString
(
this
.
annotator
.
plugins
.
DomTextMapper
?
(
startInfo
=
this
.
annotator
.
domMapper
.
getInfoForNode
(
normedRange
.
start
),
startOffset
=
startInfo
.
start
,
endInfo
=
this
.
annotator
.
domMapper
.
getInfoForNode
(
normedRange
.
end
),
endOffset
=
endInfo
.
end
,
this
.
annotator
.
domMapper
.
getCorpus
().
slice
(
startOffset
,
+
(
endOffset
-
1
)
+
1
||
9
e9
).
trim
())
:
normedRange
.
text
().
trim
());
currentQuote
=
this
.
annotator
.
normalizeString
(
this
.
annotator
.
domMapper
.
getInfoForNode
!=
null
?
(
startInfo
=
this
.
annotator
.
domMapper
.
getInfoForNode
(
normedRange
.
start
),
startOffset
=
startInfo
.
start
,
endInfo
=
this
.
annotator
.
domMapper
.
getInfoForNode
(
normedRange
.
end
),
endOffset
=
endInfo
.
end
,
this
.
annotator
.
domMapper
.
getCorpus
().
slice
(
startOffset
,
+
(
endOffset
-
1
)
+
1
||
9
e9
).
trim
())
:
normedRange
.
text
().
trim
());
savedQuote
=
typeof
(
_base
=
this
.
annotator
).
getQuoteForTarget
===
"function"
?
_base
.
getQuoteForTarget
(
target
)
:
void
0
;
if
((
savedQuote
!=
null
)
&&
currentQuote
!==
savedQuote
)
{
return
null
;
...
...
h/lib/annotator.textrange.map
View file @
ffaf4253
{"version":3,"file":"annotator.textrange.js","sources":["_preamble.coffee","_annotator_mapsrc/src/plugin/textrange.coffee"],"names":[],"mappings":";AAAA;;;;;;;;;;CAAA;CAAA;;;;;;;ACmBA;CAAA,KAAA,eAAA;KAAA;;uFAAA;;CAAA,CAAM;CAEJ;;CAAA,EAAa,CAAb,KAAA,MAAC;;CAEY,CAAY,CAAZ,CAAA,CAAA,CAAA,GAAA,CAAA,eAAC;CAEZ,EAF4C,CAAA,CAE5C,CAF2C;CAE3C,CAAiB,GAAjB,CAAA,GAAA,CAAA,uCAAM;CAEN,GAAO,EAAP,YAAA;CAAoB,GAAU,CAAA,SAAA,MAAA;QAF9B;CAAA,EAIa,CAAZ,EAAD,GAAA,MAA4B;CAR9B,IAEa;;CAFb,EAWkB,MAAA,OAAlB;CAGO,CAA8B,EAA/B,CAAA,IAAU,IAAV;CAdN,IAWkB;;CAXlB;;CAF4B,QAAS;;CAAvC,CAqBM,IAAgB,GAAP;CAEb;;;;;;;CAAA;;CAAA,EAAY,MAAA,CA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C;aACd;SACE;CAAA,CAAM,EAAN,MAAA,KAAA;CAAA,CACgB,QAAhB,IAAA;CADA,CAEa,QAAb,CAAA;CAFA,CAGc,QAAd,EAAA;CAHA,CAIW,OAAX,CAAA;UALF;CAHiB;CApBnB,IAoBmB;;CApBnB,CAiCsC,CAAb,GAAA,GAAC,CAAD,aAAzB;CACE,SAAA,oHAAA;CAAA,CAAoD,CAAzC,CAAC,EAAZ,EAAA,CAAqB,GAAV,GAAA;CACX,GAAO,EAAP,UAAA;CAAsB,GAAA,WAAO;QAD7B;CAIA;CACE,EAAQ,CAAC,CAAT,GAAA,CAAkB;CAAlB,EACc,CAAiB,CAAZ,EAA8B,CAAjD,CAAc,EAAd;MAFF,EAAA;CAIE,KAAA,EADI;CACJ,GAAA,WAAO;QART;CAAA,CAeE,CAJa,CAAC,CAGF,CAHd,CAKE,EALuB,EAGoC,CAH7D,EAGc,CAHC,gCAA2B,CAOoB;CAlB9D,IAyBuB,CAAvB,IAAA;CACA,GAAG,CAAkC,CAArC,IAAA,EAAmB,QAAhB;CAID,GAAA,WAAO;QA9BT;CAgCA,GAAG,EAAH,4CAAA,MAAG;CAII,CAAyC,CAA1C,CAAA,CAAA,CAAA,CACsB,EADZ,CAAV,EAAA,GAAA,GAAA;MAJN,EAAA;CAWsB,CAAY,EAA5B,EAAA,GAAA,CAAA,CAAA,CAAA,GAAA;QA5CiB;CAjCzB,IAiCyB;;CAjCzB;;CAFuC,QAAS;CArBlD"}
\ No newline at end of file
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