npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

sedra-parse

v1.1.8

Published

Parse Sedra 3 text database records and build JavaScript representation

Downloads

10

Readme

sedra-parse

npm version npm module downloads Build Status License: MIT Dependency Status Coverage Status Gitter

Parse Sedra 3 text database records and return their JavaScript representation

Installation

In order to use this library, Node.js should be installed. Then run:

npm install sedra-parse --save

Following bundles are available:

  • sedra-parse.js - UMD ES5 version for use in browser, node, etc.
  • sedra-parse.min.js - minified version of sedra-parse.js
  • sedra-parse.esm.js - ES6 module version, suitable for bundling with other libraries and applications

The package could also be downloaded directly from: https://registry.npmjs.org/sedra-parse/-/sedra-parse-1.1.8.tgz

More information

Peshitta App

Beth Mardutho

CAL

License

MIT

Contributing

The final goal for this work is to learn the Word of God as recorded by Peshitta. You are welcomed to improve this implementation or provide feedback. Please feel free to Fork, create a Pull Request or submit Issues.

To read quick updates about Peshitta app or post questions or feedback, follow @peshittap at @peshittapor Gitter

Development

npm install
npm run build

API Reference

sedraParse.getRoots(content) ⇒ string

Build roots javascript from root records e.g. 0:2,"AB","ab |A",0

Kind: static method of sedraParse
Returns: string - JavaScript root representation

| Param | Type | Description | | --- | --- | --- | | content | string | Sedra root records |

sedraParse.getLexemes(content) ⇒ string

Build lexemes javascript from lexeme records e.g. 1:2,0:2,"ABA",41960448,16

Kind: static method of sedraParse
Returns: string - Lexeme javascript records

| Param | Type | Description | | --- | --- | --- | | content | string | Lexeme text records |

sedraParse.getWords(content) ⇒ string

Build word JavaScript from word records e.g. 2:31070,1:2055,"DMSBRNOTA","D'aMSaB'RoNuOT,oA",6915072,128

Kind: static method of sedraParse
Returns: string - Word JavaScript records

| Param | Type | Description | | --- | --- | --- | | content | string | Word text records |

sedraParse.getEnglish(content) ⇒ string

Build english javascript from english records e.g. 3:165,1:97,"cause","without","","",0,0

Kind: static method of sedraParse
Returns: string - English JavaScript content

| Param | Type | Description | | --- | --- | --- | | content | string | English text content |

sedraParse.getEtymology(content) ⇒ object

Build etymology JavaScript from etymology records e.g. 4:10,1:75,"eu\310",5

Kind: static method of sedraParse
Returns: object - Etymology JavaScript records + reference

| Param | Type | Description | | --- | --- | --- | | content | string | Etymology text file records |

sedraParse.getUbs(content) ⇒ object

Build Ubs JavaScript from ubs records e.g. 0:8,520100108,33554599,36 and index to reference map. To get verse only index -> reference, filter out entries where verse is 0.

Kind: static method of sedraParse
Returns: object - { ubs, reference } JavaScript

| Param | Type | Description | | --- | --- | --- | | content | string | Ubs text database records |

sedraParse~rootRegex : RegExp

Regex to remove ids from root rows and extract relevant information

Kind: inner constant of sedraParse

sedraParse~lexemeRegex : RegExp

Regex to remove ids from lexeme records and extract relevant information

Kind: inner constant of sedraParse

sedraParse~wordRegex : RegExp

Regex to remove ids from word records and extract wanted information

Kind: inner constant of sedraParse

sedraParse~noYRegex : RegExp

Regex to find vocalized words with i vowels without supporting y

Kind: inner constant of sedraParse

sedraParse~noWRegex : RegExp

Regex to find vocalized words with u vowels without supporting w

Kind: inner constant of sedraParse

sedraParse~parseWords ⇒ object

Remove id from word file as id will be given by the position in the array. Word file has 432 gaps with largest ones being 45 (see sedrajs unit tests).

Kind: inner constant of sedraParse
Returns: object - hash of parsed word records and no Y/W words

| Param | Type | Description | | --- | --- | --- | | content | string | Input word records |

sedraParse~englishRegex : RegExp

Regex to remove ids from english records and extract relevant information only

Kind: inner constant of sedraParse

sedraParse~etymologyRegex : RegExp

Regex to remove ids from etymology records and extract useful info only

Kind: inner constant of sedraParse

sedraParse~parseEtymology ⇒ object

Remove id from etymology records as id will be given by the array position. Etymology file has 3 gaps but difference is 1 only (see sedrajs unit tests).

Kind: inner constant of sedraParse
Returns: object - Parsed etymology content + reference

| Param | Type | Description | | --- | --- | --- | | content | string | Input etymology text records |

sedraParse~ubsRegex : RegExp

Regex to remove ids from Ubs records and extract parsed information book - Left 2 digits represent the book (52=Matt, 53=Mark, 54=Luke, etc.) chapter - Next 2 digits = chapter verse - Next 3 digits = verse index - Next 2 digits = word wordId - the two most significant bits are always 02 which represents the database file number

Kind: inner constant of sedraParse

sedraParse~buildUbs ⇒ Object

Build parsed Usb object from the ubsRegex match

Kind: inner constant of sedraParse
Returns: Object - object created from match result

| Param | Type | Description | | --- | --- | --- | | match | Object | regex match result |

sedraParse~parseUbs ⇒ Object

Remove id from Ubs records as it is not being used and it is also messed up - it overflows and becomes negative a number of times. To get verse only index -> reference, filter out entries with verse as 0.

Kind: inner constant of sedraParse
Returns: Object - Parsed JavaScript Ubs/reference records

| Param | Type | Description | | --- | --- | --- | | content | string | Input Ubs text records |