Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

⚙️ a library of reusable utilities for the peritext ecosystem

License

Notifications You must be signed in to change notification settings

peritext/peritext-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

51 Commits

Repository files navigation

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

About

⚙️ a library of reusable utilities for the peritext ecosystem

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /