UNPKG

@hebcal/leyning

Version:

Torah Reading API for Parashat HaShavua and holidays

19 lines (18 loc) 778 B
import { AliyotMap, Aliyah } from './types'; /** * Returns a string representation of the leyning parts. * Separate verse ranges read from the same book are separated * by commas, e.g. `Isaiah 6:1-7:6, 9:5-6`. * Verse ranges from different books are separated by semicolons, * e.g. `Genesis 21:1-34; Numbers 29:1-6`. */ export declare function makeSummaryFromParts(parts: Aliyah | Aliyah[], language?: string): string; /** * Summarizes an `AliyotMap` by collapsing all adjacent aliyot. * Finds any non-overlapping parts (e.g. special 7th aliyah or maftir) */ export declare function makeLeyningParts(aliyot: AliyotMap): Aliyah[]; /** * Makes a summary of the leyning, like "Genesis 6:9-11:32" */ export declare function makeLeyningSummary(aliyot: AliyotMap): string;