Anchors¶
Functions for loading TextQuoteSelectors.
Create new selector from JSON user input.
Create list of
TextQuoteSelector
s from JSON user input.If the input is a
str
, tries to break up the string intoprefix
,exact
, andsuffix
, by splitting on the pipe characters.
Get list containing any available text anchors.
- Return type
List
[TextQuoteSelector
]
Move anchors fields to a dict linking object names to lists of anchors.
To be used during loading of
Holding
s. Keys areFactor
s,Enactment
s, orHolding
s, and values are lists of theOpinion
passages that reference them.Assumes that the value of the anchors field is a list (not a dict representing a single text anchor, and not a string in the “shorthand” anchor format).