0.2.18 • Published 5 years ago

peritext-utils v0.2.18

Weekly downloads
1
License
AGPL-3.0-or-later
Repository
github
Last release
5 years ago

peritext-utils

Collection of utilities for the peritext ecosystem.

Please refer to the peritext repositories to see related modules allowing to build an publishing system.

API overview

Here is a brief overview of the utilities exposed by this package. Refer to the source code documentation to get a better documentation about each utility API.

buildBibliography : builds display-related data for rendering the bibliography of an edition

buildCitations : builds display-related data for rendering the bibliographic citations of an edition

buildContextContent : builds display-related data for rendering a resource's related contextualizations

buildGlossary : builds display-related data for rendering the glossary of an edition

resourceToCslJSON : converts a peritext resource into a CSL-JSON object

generateOpenUrl : generates an open URL out of csl-json data

StructuredCOinS : provides a span encoded with the Context Objects in Span / openURL specification

getRelatedAssetsIds : computes related ids for a given edition

chooseAppropriateAsset : defines the appropriate asset for rendering a contextualization based on a contextualizer's profile and a map of available assets

chooseAppropriateSubAsset : defines the appropriate asset for rendering a contextualization based on a contextualizer's profile and a map of available assets

getContextualizationsFromEdition : compute related contextualizations for an edition

loadAssetsForEdition : loads related assets for an edition

buildHTMLMetadata : builds HTML metadata for an edition

abbrevString : abbreviates a string if it exceeds a given maximum

bibToSchema : converts bibliographic data to microformat data

0.2.18

5 years ago

0.2.16

5 years ago

0.2.17

5 years ago

0.2.14

5 years ago

0.2.13

5 years ago

0.2.12

6 years ago

0.2.11

6 years ago

0.2.10

6 years ago

0.2.9

6 years ago

0.2.7

6 years ago

0.2.6

6 years ago

0.2.5

6 years ago

0.2.4

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago