@hebcal/leyning 9.5.6 → 9.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.js +198 -67
- package/dist/bundle.min.js +4 -4
- package/dist/esm/aliyot.json.js +2 -2
- package/dist/esm/ashkenazi.po.js +1 -1
- package/dist/esm/calculateHaftarahNumVerses.d.ts +8 -0
- package/dist/esm/clone.d.ts +10 -1
- package/dist/esm/clone.js +11 -2
- package/dist/esm/clone.js.map +1 -1
- package/dist/esm/common.d.ts +14 -6
- package/dist/esm/common.js +15 -7
- package/dist/esm/common.js.map +1 -1
- package/dist/esm/csv.d.ts +34 -1
- package/dist/esm/csv.js +35 -2
- package/dist/esm/csv.js.map +1 -1
- package/dist/esm/festival.d.ts +11 -2
- package/dist/esm/festival.js +12 -3
- package/dist/esm/festival.js.map +1 -1
- package/dist/esm/format.d.ts +13 -1
- package/dist/esm/format.js +14 -2
- package/dist/esm/format.js.map +1 -1
- package/dist/esm/getLeyningForHoliday.d.ts +22 -13
- package/dist/esm/getLeyningForHoliday.js +26 -16
- package/dist/esm/getLeyningForHoliday.js.map +1 -1
- package/dist/esm/getLeyningKeyForEvent.d.ts +20 -3
- package/dist/esm/getLeyningKeyForEvent.js +26 -12
- package/dist/esm/getLeyningKeyForEvent.js.map +1 -1
- package/dist/esm/getLeyningOnDate.d.ts +6 -3
- package/dist/esm/getLeyningOnDate.js +1 -1
- package/dist/esm/getLeyningOnDate.js.map +1 -1
- package/dist/esm/he-x-NoNikud.po.js +1 -1
- package/dist/esm/he.po.js +1 -1
- package/dist/esm/holiday-readings.json.js +2 -2
- package/dist/esm/index.js +1 -1
- package/dist/esm/internalTypes.d.ts +2 -1
- package/dist/esm/leyning.d.ts +41 -13
- package/dist/esm/leyning.js +67 -14
- package/dist/esm/leyning.js.map +1 -1
- package/dist/esm/locale.js +1 -1
- package/dist/esm/numverses.json.js +1 -1
- package/dist/esm/specialReadings.d.ts +5 -0
- package/dist/esm/specialReadings.js +6 -1
- package/dist/esm/specialReadings.js.map +1 -1
- package/dist/esm/summary.d.ts +20 -8
- package/dist/esm/summary.js +21 -9
- package/dist/esm/summary.js.map +1 -1
- package/dist/esm/translate.d.ts +9 -9
- package/dist/esm/translate.js +10 -10
- package/dist/esm/translate.js.map +1 -1
- package/dist/esm/types.d.ts +163 -51
- package/package.json +2 -2
package/dist/esm/leyning.d.ts
CHANGED
|
@@ -1,30 +1,58 @@
|
|
|
1
1
|
import { Event } from '@hebcal/core/dist/esm/event';
|
|
2
2
|
import { AliyotMap, Leyning, LeyningNames, ParshaMeta } from './types';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
* @param parsha untranslated name
|
|
4
|
+
* Builds the transliterated English and Hebrew names for a parsha.
|
|
5
|
+
* @param parsha untranslated parsha name(s), e.g. `['Pinchas']` or
|
|
6
|
+
* `['Matot', 'Masei']` for a doubled parsha
|
|
7
|
+
* @returns object with the `en` name and `he` name (Hebrew with nikud)
|
|
6
8
|
*/
|
|
7
9
|
export declare function makeLeyningNames(parsha: string[]): LeyningNames;
|
|
8
10
|
/**
|
|
9
|
-
* Looks up Monday
|
|
10
|
-
*
|
|
11
|
+
* Looks up the weekday (Monday & Thursday) Torah reading for a regular parsha.
|
|
12
|
+
*
|
|
13
|
+
* These are the abbreviated three-aliyah readings chanted on weekday
|
|
14
|
+
* mornings, drawn from the beginning of the upcoming Shabbat parsha.
|
|
15
|
+
* @param parsha untranslated name, e.g. `'Pinchas'`, `['Pinchas']`, or
|
|
16
|
+
* `['Matot', 'Masei']` for a doubled parsha
|
|
17
|
+
* @param [language] language for book names (default `'en'`)
|
|
18
|
+
* @returns map of aliyot keyed by `'1'` through `'3'`
|
|
11
19
|
*/
|
|
12
20
|
export declare function getWeekdayReading(parsha: string | string[], language?: string): AliyotMap;
|
|
13
21
|
/**
|
|
14
|
-
* Looks up
|
|
15
|
-
*
|
|
22
|
+
* Looks up the leyning for a regular parsha, ignoring any special occasion.
|
|
23
|
+
*
|
|
24
|
+
* Unlike {@link getLeyningForParshaHaShavua}, this takes a bare parsha name
|
|
25
|
+
* rather than a dated event and applies no special maftir/Haftarah overrides,
|
|
26
|
+
* so it is date-independent. The result includes both the Shabbat
|
|
27
|
+
* `fullkriyah` and the `weekday` reading.
|
|
28
|
+
* @param parsha untranslated name, e.g. `'Pinchas'`, `['Pinchas']`, or
|
|
29
|
+
* `['Matot', 'Masei']` for a doubled parsha
|
|
30
|
+
* @param [language] language for names and summary (default `'en'`)
|
|
31
|
+
* @returns the complete leyning for this parsha
|
|
16
32
|
*/
|
|
17
33
|
export declare function getLeyningForParsha(parsha: string | string[], language?: string): Leyning;
|
|
18
34
|
/**
|
|
19
|
-
* Looks up leyning for a regular Shabbat parsha,
|
|
20
|
-
* maftir or
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* @
|
|
35
|
+
* Looks up the leyning for a regular Shabbat parsha, applying any special
|
|
36
|
+
* maftir or Haftarah that a coinciding occasion requires — Shabbat Rosh
|
|
37
|
+
* Chodesh, Shabbat Chanukah, one of the four special Shabbatot, a Haftarah of
|
|
38
|
+
* Admonition or Consolation, and so on.
|
|
39
|
+
* @param ev the `ParshaEvent` for this Shabbat
|
|
40
|
+
* @param [il] `true` for the Israel reading schedule (default `false`)
|
|
41
|
+
* @param [language] language for names and summary (default `'en'`)
|
|
42
|
+
* @returns the complete leyning, including `fullkriyah`, `haftara`, and any
|
|
43
|
+
* `reason` explanations for overrides
|
|
44
|
+
* @throws {TypeError} if `ev` is not a parsha hashavua event
|
|
24
45
|
*/
|
|
25
46
|
export declare function getLeyningForParshaHaShavua(ev: Event, il?: boolean, language?: string): Leyning;
|
|
26
47
|
/**
|
|
27
|
-
* Returns the parsha
|
|
28
|
-
*
|
|
48
|
+
* Returns the raw metadata for a parsha from `aliyot.json`.
|
|
49
|
+
*
|
|
50
|
+
* This is the underlying data (verse tuples, book number, Haftarah theme,
|
|
51
|
+
* etc.), not a computed reading — use {@link getLeyningForParsha} for that.
|
|
52
|
+
* @param parsha untranslated name, e.g. `'Pinchas'`, `['Pinchas']`, or
|
|
53
|
+
* `['Matot', 'Masei']` for a doubled parsha
|
|
54
|
+
* @param [language] language for the Hebrew name and Haftarah (default `'en'`)
|
|
55
|
+
* @returns the parsha metadata (see {@link ParshaMeta})
|
|
56
|
+
* @throws {TypeError} if `parsha` is not a known parsha name
|
|
29
57
|
*/
|
|
30
58
|
export declare function lookupParsha(parsha: string | string[], language?: string): ParshaMeta;
|
package/dist/esm/leyning.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/leyning v9.
|
|
1
|
+
/*! @hebcal/leyning v9.6.0 */
|
|
2
2
|
import { flags } from '@hebcal/core/dist/esm/event';
|
|
3
3
|
import './locale.js';
|
|
4
4
|
import parshiyotObj0 from './aliyot.json.js';
|
|
@@ -7,6 +7,7 @@ import { translateLeyning, translateAliyahOrArray } from './translate.js';
|
|
|
7
7
|
import { makeSummaryFromParts, makeLeyningParts } from './summary.js';
|
|
8
8
|
import { cloneHaftara, sumVerses } from './clone.js';
|
|
9
9
|
import { specialReadings2 } from './specialReadings.js';
|
|
10
|
+
import { lookupFestival } from './festival.js';
|
|
10
11
|
import { Locale } from '@hebcal/core/dist/esm/locale';
|
|
11
12
|
|
|
12
13
|
const parshiyotObj = parshiyotObj0;
|
|
@@ -28,8 +29,10 @@ function getHaftaraKey(parsha) {
|
|
|
28
29
|
}
|
|
29
30
|
}
|
|
30
31
|
/**
|
|
31
|
-
*
|
|
32
|
-
* @param parsha untranslated name
|
|
32
|
+
* Builds the transliterated English and Hebrew names for a parsha.
|
|
33
|
+
* @param parsha untranslated parsha name(s), e.g. `['Pinchas']` or
|
|
34
|
+
* `['Matot', 'Masei']` for a doubled parsha
|
|
35
|
+
* @returns object with the `en` name and `he` name (Hebrew with nikud)
|
|
33
36
|
*/
|
|
34
37
|
function makeLeyningNames(parsha) {
|
|
35
38
|
const name = parshaToString(parsha);
|
|
@@ -98,8 +101,14 @@ function getLeyningForParshaShabbatOnly(parsha, language = 'en') {
|
|
|
98
101
|
return translateLeyning(result, language);
|
|
99
102
|
}
|
|
100
103
|
/**
|
|
101
|
-
* Looks up Monday
|
|
102
|
-
*
|
|
104
|
+
* Looks up the weekday (Monday & Thursday) Torah reading for a regular parsha.
|
|
105
|
+
*
|
|
106
|
+
* These are the abbreviated three-aliyah readings chanted on weekday
|
|
107
|
+
* mornings, drawn from the beginning of the upcoming Shabbat parsha.
|
|
108
|
+
* @param parsha untranslated name, e.g. `'Pinchas'`, `['Pinchas']`, or
|
|
109
|
+
* `['Matot', 'Masei']` for a doubled parsha
|
|
110
|
+
* @param [language] language for book names (default `'en'`)
|
|
111
|
+
* @returns map of aliyot keyed by `'1'` through `'3'`
|
|
103
112
|
*/
|
|
104
113
|
function getWeekdayReading(parsha, language = 'en') {
|
|
105
114
|
const raw = lookupParsha(parsha);
|
|
@@ -120,8 +129,16 @@ function getWeekdayReading(parsha, language = 'en') {
|
|
|
120
129
|
return translateAliyahOrArray(weekday, language);
|
|
121
130
|
}
|
|
122
131
|
/**
|
|
123
|
-
* Looks up
|
|
124
|
-
*
|
|
132
|
+
* Looks up the leyning for a regular parsha, ignoring any special occasion.
|
|
133
|
+
*
|
|
134
|
+
* Unlike {@link getLeyningForParshaHaShavua}, this takes a bare parsha name
|
|
135
|
+
* rather than a dated event and applies no special maftir/Haftarah overrides,
|
|
136
|
+
* so it is date-independent. The result includes both the Shabbat
|
|
137
|
+
* `fullkriyah` and the `weekday` reading.
|
|
138
|
+
* @param parsha untranslated name, e.g. `'Pinchas'`, `['Pinchas']`, or
|
|
139
|
+
* `['Matot', 'Masei']` for a doubled parsha
|
|
140
|
+
* @param [language] language for names and summary (default `'en'`)
|
|
141
|
+
* @returns the complete leyning for this parsha
|
|
125
142
|
*/
|
|
126
143
|
function getLeyningForParsha(parsha, language = 'en') {
|
|
127
144
|
const result = getLeyningForParshaShabbatOnly(parsha, language);
|
|
@@ -134,11 +151,36 @@ const reasonHaftKey = {
|
|
|
134
151
|
chabad: 'chabad',
|
|
135
152
|
};
|
|
136
153
|
/**
|
|
137
|
-
*
|
|
138
|
-
*
|
|
139
|
-
*
|
|
140
|
-
*
|
|
141
|
-
*
|
|
154
|
+
* Returns the theme of the Haftarah tied to the weeks around Tish'a B'Av:
|
|
155
|
+
* the number of the Haftarah of Admonition (תְּלָתָא דְּפוּרְעָנוּתָא, three
|
|
156
|
+
* Shabbatot before Tish'a B'Av) or of the Haftarah of Consolation
|
|
157
|
+
* (שֶׁבַע דְּנֶחָמְתָא, seven Shabbatot after Tish'a B'Av), if applicable.
|
|
158
|
+
*
|
|
159
|
+
* The number lives in the `haftTheme` data: on the base parsha in
|
|
160
|
+
* `aliyot.json`, or — when a special reading replaces the Haftarah — on the
|
|
161
|
+
* festival entry in `holiday-readings.json`. When a special reading displaces
|
|
162
|
+
* the Haftarah with an unthemed one (e.g. Re'eh on Shabbat Rosh Chodesh),
|
|
163
|
+
* neither has a `haftTheme` and `undefined` is returned.
|
|
164
|
+
* @private
|
|
165
|
+
* @param parsha untranslated name like `['Pinchas']` or `['Matot','Masei']`
|
|
166
|
+
* @param haftReason untranslated `reason.haftara` key from `specialReadings2()`
|
|
167
|
+
*/
|
|
168
|
+
function getHaftarahTheme(parsha, haftReason) {
|
|
169
|
+
return haftReason
|
|
170
|
+
? lookupFestival(haftReason)?.haftTheme
|
|
171
|
+
: parshiyotObj[getHaftaraKey(parsha)]?.haftTheme;
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Looks up the leyning for a regular Shabbat parsha, applying any special
|
|
175
|
+
* maftir or Haftarah that a coinciding occasion requires — Shabbat Rosh
|
|
176
|
+
* Chodesh, Shabbat Chanukah, one of the four special Shabbatot, a Haftarah of
|
|
177
|
+
* Admonition or Consolation, and so on.
|
|
178
|
+
* @param ev the `ParshaEvent` for this Shabbat
|
|
179
|
+
* @param [il] `true` for the Israel reading schedule (default `false`)
|
|
180
|
+
* @param [language] language for names and summary (default `'en'`)
|
|
181
|
+
* @returns the complete leyning, including `fullkriyah`, `haftara`, and any
|
|
182
|
+
* `reason` explanations for overrides
|
|
183
|
+
* @throws {TypeError} if `ev` is not a parsha hashavua event
|
|
142
184
|
*/
|
|
143
185
|
function getLeyningForParshaHaShavua(ev, il = false, language = 'en') {
|
|
144
186
|
if (typeof ev !== 'object' || typeof ev.getFlags !== 'function') {
|
|
@@ -154,6 +196,10 @@ function getLeyningForParshaHaShavua(ev, il = false, language = 'en') {
|
|
|
154
196
|
// Now, check for special maftir or haftara on same date
|
|
155
197
|
const special = specialReadings2(parsha, hd, il, result.fullkriyah);
|
|
156
198
|
const reason = special.reason;
|
|
199
|
+
const haftTheme = getHaftarahTheme(parsha, reason.haftara);
|
|
200
|
+
if (haftTheme) {
|
|
201
|
+
Object.assign(result, haftTheme);
|
|
202
|
+
}
|
|
157
203
|
if (special.haft) {
|
|
158
204
|
delete result.chabad;
|
|
159
205
|
delete result.seph;
|
|
@@ -205,8 +251,15 @@ function getLeyningForParshaHaShavua(ev, il = false, language = 'en') {
|
|
|
205
251
|
return translateLeyning(result, language);
|
|
206
252
|
}
|
|
207
253
|
/**
|
|
208
|
-
* Returns the parsha
|
|
209
|
-
*
|
|
254
|
+
* Returns the raw metadata for a parsha from `aliyot.json`.
|
|
255
|
+
*
|
|
256
|
+
* This is the underlying data (verse tuples, book number, Haftarah theme,
|
|
257
|
+
* etc.), not a computed reading — use {@link getLeyningForParsha} for that.
|
|
258
|
+
* @param parsha untranslated name, e.g. `'Pinchas'`, `['Pinchas']`, or
|
|
259
|
+
* `['Matot', 'Masei']` for a doubled parsha
|
|
260
|
+
* @param [language] language for the Hebrew name and Haftarah (default `'en'`)
|
|
261
|
+
* @returns the parsha metadata (see {@link ParshaMeta})
|
|
262
|
+
* @throws {TypeError} if `parsha` is not a known parsha name
|
|
210
263
|
*/
|
|
211
264
|
function lookupParsha(parsha, language = 'en') {
|
|
212
265
|
const name = parshaToString(parsha);
|
package/dist/esm/leyning.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leyning.js","sources":["../../../src/leyning.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"leyning.js","sources":["../../../src/leyning.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;AAiDA,MAAM,YAAY,GAAc,aAA0B;AAE1D;;;;AAIG;AACH,SAAS,aAAa,CAAC,MAAgB,EAAA;AACrC,IAAA,MAAM,KAAK,GAAG,MAAM,CAAC,CAAC,CAAC;IACvB,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,KAAK,KAAK,YAAY,EAAE;AACjD,QAAA,OAAO,cAAc,CAAC,MAAM,CAAC,CAAC;IAChC;IACA,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,KAAK,KAAK,UAAU,EAAE;AAC/C,QAAA,OAAO,KAAK;IACd;SAAO;AACL,QAAA,OAAO,MAAM,CAAC,CAAC,CAAC;IAClB;AACF;AAEA;;;;;AAKG;AACG,SAAU,gBAAgB,CAAC,MAAgB,EAAA;AAC/C,IAAA,MAAM,IAAI,GAAG,cAAc,CAAC,MAAM,CAAC;IACnC,OAAO;AACL,QAAA,EAAE,EAAE,IAAI;QACR,EAAE,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,MAAM,CAAC,iBAAiB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;KACjE;AACH;AAEA;;;;;AAKG;AACH,SAAS,8BAA8B,CACrC,MAAyB,EACzB,WAAmB,IAAI,EAAA;AAEvB,IAAA,MAAM,GAAG,GAAG,YAAY,CAAC,MAAM,CAAC;IAChC,MAAM,UAAU,GAAc,EAAE;IAChC,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC;AAC3B,IAAA,KAAK,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,IAAI,MAAM,CA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,EAAE,KAAK,UAAU,GAAG,EAAE,GAAG,EAAE;YAC3C,GAAG,CAAC,IAAI,GAAG,YAAY,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,IAAI;QACjD;IACF;SAAO;QACL,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC;IACzC;IACA,GAAG,CAAC,IAAI,GAAG,sBAAsB,CAAC,GAAG,CAAC,IAAyB,EAAE,QAAQ,CAAC;AAC1E,IAAA,IAAI,GAAG,CAAC,IAAI,EAAE;QACZ,GAAG,CAAC,IAAI,GAAG,sBAAsB,CAAC,GAAG,CAAC,IAAyB,EAAE,QAAQ,CAAC;IAC5E;IACA,IAAI,GAAG,CAAC,MAAM,IAAI,QAAQ,IAAI,GAAG,CAAC,MAAM,EAAE;AACxC,QAAA,GAAG,CAAC,MAAM,GAAG,GAAG,CAAC,IAAI;IACvB;AACA,IAAA,IAAI,GAAG,CAAC,MAAM,EAAE;QACd,GAAG,CAAC,MAAM,GAAG,sBAAsB,CACjC,GAAG,CAAC,MAA2B,EAC/B,QAAQ,CACT;IACH;AACA,IAAA,OAAO,GAAiB;AAC1B;;;;"}
|
package/dist/esm/locale.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/leyning v9.
|
|
1
|
+
/*! @hebcal/leyning v9.6.0 */
|
|
2
2
|
const Genesis=[0,31,25,24,26,32,22,24,22,29,32,32,20,18,24,21,16,27,33,38,18,34,24,20,67,34,35,46,22,35,43,54,33,20,31,29,43,36,30,23,23,57,38,34,34,28,34,31,22,33,26];const Exodus=[0,22,25,22,31,23,30,29,28,35,29,10,51,22,31,27,36,16,27,25,23,37,30,33,18,40,37,21,43,46,38,18,35,23,35,35,38,29,31,43,38];const Leviticus=[0,17,16,17,35,26,23,38,36,24,20,47,8,59,57,33,34,16,30,37,27,24,33,44,23,55,46,34];const Numbers=[0,54,34,51,49,31,27,89,26,23,36,35,16,33,45,41,35,28,32,22,29,35,41,30,25,19,65,23,31,39,17,54,42,56,29,34,13];const Deuteronomy=[0,46,37,29,49,30,25,26,20,29,22,32,31,19,29,23,22,20,22,21,20,23,29,26,22,19,19,26,69,28,20,30,52,29,12];const Joshua=[0,18,24,17,24,15,27,26,35,27,43,23,24,33,15,63,10,18,28,51,9,45,34,16,33];const Judges=[0,36,23,31,24,31,40,25,35,57,18,40,15,25,20,20,31,13,31,30,48,25];const Ruth=[0,22,23,18,22];const Isaiah=[0,31,22,26,6,30,13,25,23,20,34,16,6,22,32,9,14,14,7,25,6,17,25,18,23,12,21,13,29,24,33,9,20,24,17,10,22,38,22,8,31,29,25,28,28,25,13,15,22,26,11,23,15,12,17,13,12,21,14,21,22,11,12,19,11,25,24];const Jeremiah=[0,19,37,25,31,31,30,34,23,25,25,23,17,27,22,21,21,27,23,15,18,14,30,40,10,38,24,22,17,32,24,40,44,26,22,19,32,21,28,18,16,18,22,13,30,5,28,7,47,39,46,64,34];const Lamentations=[0,22,22,66,22,22];const Esther=[0,22,23,15,17,14,14,10,17,32,3];const Ecclesiastes=[0,18,26,22,17,19,12,29,17,18,20,10,14];const Ezekiel=[0,28,10,27,17,17,14,27,18,11,22,25,28,23,23,8,63,24,32,14,44,37,31,49,27,17,21,36,26,21,26,18,32,33,31,15,38,28,23,29,49,26,20,27,31,25,24,23,35];const Daniel=[0,21,49,100,34,30,29,28,27,27,21,45,13,64,42];const Hosea=[0,9,25,5,19,15,11,16,14,17,15,11,15,15,10];const Joel=[0,20,27,5,21];const Amos=[0,15,16,15,13,27,14,17,14,15];const Obadiah=[0,21];const Jonah=[0,16,11,10,11];const Micah=[0,16,13,12,14,14,16,20];const Nachum=[0,14,14,19];const Habakkuk=[0,17,20,19];const Zephaniah=[0,18,15,20];const Haggai=[0,15,23];const Zechariah=[0,17,17,10,14,11,15,14,23,17,12,17,14,9,21];const Malachi=[0,14,17,24];var numverses = {Genesis:Genesis,Exodus:Exodus,Leviticus:Leviticus,Numbers:Numbers,Deuteronomy:Deuteronomy,Joshua:Joshua,Judges:Judges,Ruth:Ruth,"I Samuel":[0,28,36,21,22,12,21,17,22,27,27,15,25,23,52,35,23,58,30,24,42,16,23,28,23,43,25,12,25,11,31,13],"II Samuel":[0,27,32,39,12,25,23,29,18,13,19,27,31,39,33,37,23,29,32,44,26,22,51,39,25],"I Kings":[0,53,46,28,20,32,38,51,66,28,29,43,33,34,31,34,34,24,46,21,43,29,54],"II Kings":[0,18,25,27,44,27,33,20,29,37,36,20,22,25,29,38,20,41,37,37,21,26,20,37,20,30],Isaiah:Isaiah,Jeremiah:Jeremiah,Lamentations:Lamentations,Esther:Esther,Ecclesiastes:Ecclesiastes,"Song of Songs":[0,17,17,11,16,16,12,14,14],Ezekiel:Ezekiel,Daniel:Daniel,Hosea:Hosea,Joel:Joel,Amos:Amos,Obadiah:Obadiah,Jonah:Jonah,Micah:Micah,Nachum:Nachum,Habakkuk:Habakkuk,Zephaniah:Zephaniah,Haggai:Haggai,Zechariah:Zechariah,Malachi:Malachi};
|
|
3
3
|
|
|
4
4
|
export { Amos, Daniel, Deuteronomy, Ecclesiastes, Esther, Exodus, Ezekiel, Genesis, Habakkuk, Haggai, Hosea, Isaiah, Jeremiah, Joel, Jonah, Joshua, Judges, Lamentations, Leviticus, Malachi, Micah, Nachum, Numbers, Obadiah, Ruth, Zechariah, Zephaniah, numverses as default };
|
|
@@ -11,5 +11,10 @@ import { AliyotMap, SpecialReading } from './types';
|
|
|
11
11
|
*
|
|
12
12
|
* If a special Haftarah applies, the result will have a `haft` property
|
|
13
13
|
* pointing to Haftarah object and sets `reason.haftara`.
|
|
14
|
+
* @param parsha untranslated parsha name(s), e.g. `['Pinchas']`
|
|
15
|
+
* @param hd the Hebrew date of this Shabbat
|
|
16
|
+
* @param il `true` for the Israel schedule
|
|
17
|
+
* @param aliyot the parsha's regular Shabbat aliyot (not modified)
|
|
18
|
+
* @returns the special-reading overrides (see {@link SpecialReading})
|
|
14
19
|
*/
|
|
15
20
|
export declare function specialReadings2(parsha: string[], hd: HDate, il: boolean, aliyot: AliyotMap): SpecialReading;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/leyning v9.
|
|
1
|
+
/*! @hebcal/leyning v9.6.0 */
|
|
2
2
|
import { months } from '@hebcal/hdate';
|
|
3
3
|
import { flags } from '@hebcal/core/dist/esm/event';
|
|
4
4
|
import { cloneHaftara } from './clone.js';
|
|
@@ -45,6 +45,11 @@ function mergeAliyotWithSpecial(aliyot, special) {
|
|
|
45
45
|
*
|
|
46
46
|
* If a special Haftarah applies, the result will have a `haft` property
|
|
47
47
|
* pointing to Haftarah object and sets `reason.haftara`.
|
|
48
|
+
* @param parsha untranslated parsha name(s), e.g. `['Pinchas']`
|
|
49
|
+
* @param hd the Hebrew date of this Shabbat
|
|
50
|
+
* @param il `true` for the Israel schedule
|
|
51
|
+
* @param aliyot the parsha's regular Shabbat aliyot (not modified)
|
|
52
|
+
* @returns the special-reading overrides (see {@link SpecialReading})
|
|
48
53
|
*/
|
|
49
54
|
function specialReadings2(parsha, hd, il, aliyot) {
|
|
50
55
|
let haft;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"specialReadings.js","sources":["../../../src/specialReadings.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;AAUA,SAAS,eAAe,CAAC,MAAiB,EAAA;IACxC,MAAM,EAAE,GAAG,eAAe,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;AACvC,IAAA,MAAM,EAAE,GAAG,MAAM,CAAC,GAAG,CAAC;IACtB,IAAI,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,EAAE;AACjB,QAAA,MAAM,IAAI,KAAK,CACb,sCAAsC,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAChE;IACH;AACA,IAAA,OAAO,MAAM,CAAC,GAAG,CAAC;IAClB,MAAM,CAAC,GAAG,CAAC,GAAG;QACZ,CAAC,EAAE,EAAE,CAAC,CAAC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liyah } from './types';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
3
|
+
* Formats one or more passages into a human-readable citation.
|
|
4
|
+
*
|
|
5
|
+
* Ranges from the same book are joined with commas
|
|
6
|
+
* (`Isaiah 6:1-7:6, 9:5-6`); ranges from different books are joined with
|
|
7
|
+
* semicolons (`Genesis 21:1-34; Numbers 29:1-6`).
|
|
8
|
+
* @param parts a single passage or an array of passages
|
|
9
|
+
* @param [language] language for book names (default `'en'`)
|
|
10
|
+
* @returns the formatted citation
|
|
8
11
|
*/
|
|
9
12
|
export declare function makeSummaryFromParts(parts: Aliyah | Aliyah[], language?: string): string;
|
|
10
13
|
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
14
|
+
* Collapses an `AliyotMap` into the minimal set of contiguous passages.
|
|
15
|
+
*
|
|
16
|
+
* Adjacent aliyot from the same book are merged; a non-contiguous passage
|
|
17
|
+
* (such as a special 7th aliyah or maftir from another book) becomes its own
|
|
18
|
+
* part. Useful for building a compact summary.
|
|
19
|
+
* @param aliyot map of aliyot keyed by `'1'`–`'7'` plus `'M'`
|
|
20
|
+
* @returns the contiguous passages, in reading order
|
|
13
21
|
*/
|
|
14
22
|
export declare function makeLeyningParts(aliyot: AliyotMap): Aliyah[];
|
|
15
23
|
/**
|
|
16
|
-
*
|
|
24
|
+
* Builds a one-line summary of a Torah reading, e.g. `"Genesis 6:9-11:32"`.
|
|
25
|
+
* Equivalent to {@link makeSummaryFromParts} applied to the output of
|
|
26
|
+
* {@link makeLeyningParts}.
|
|
27
|
+
* @param aliyot map of aliyot keyed by `'1'`–`'7'` plus `'M'`
|
|
28
|
+
* @returns the formatted summary
|
|
17
29
|
*/
|
|
18
30
|
export declare function makeLeyningSummary(aliyot: AliyotMap): string;
|
package/dist/esm/summary.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/leyning v9.
|
|
1
|
+
/*! @hebcal/leyning v9.6.0 */
|
|
2
2
|
import './locale.js';
|
|
3
3
|
import { formatAliyahShort } from './format.js';
|
|
4
4
|
import { Locale } from '@hebcal/core/dist/esm/locale';
|
|
@@ -12,11 +12,14 @@ function isChapVerseBefore(a, b) {
|
|
|
12
12
|
return cv1[0] * 100 + cv1[1] < cv2[0] * 100 + cv2[1];
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
15
|
+
* Formats one or more passages into a human-readable citation.
|
|
16
|
+
*
|
|
17
|
+
* Ranges from the same book are joined with commas
|
|
18
|
+
* (`Isaiah 6:1-7:6, 9:5-6`); ranges from different books are joined with
|
|
19
|
+
* semicolons (`Genesis 21:1-34; Numbers 29:1-6`).
|
|
20
|
+
* @param parts a single passage or an array of passages
|
|
21
|
+
* @param [language] language for book names (default `'en'`)
|
|
22
|
+
* @returns the formatted citation
|
|
20
23
|
*/
|
|
21
24
|
function makeSummaryFromParts(parts, language = 'en') {
|
|
22
25
|
if (!Array.isArray(parts)) {
|
|
@@ -38,8 +41,13 @@ function makeSummaryFromParts(parts, language = 'en') {
|
|
|
38
41
|
return summary;
|
|
39
42
|
}
|
|
40
43
|
/**
|
|
41
|
-
*
|
|
42
|
-
*
|
|
44
|
+
* Collapses an `AliyotMap` into the minimal set of contiguous passages.
|
|
45
|
+
*
|
|
46
|
+
* Adjacent aliyot from the same book are merged; a non-contiguous passage
|
|
47
|
+
* (such as a special 7th aliyah or maftir from another book) becomes its own
|
|
48
|
+
* part. Useful for building a compact summary.
|
|
49
|
+
* @param aliyot map of aliyot keyed by `'1'`–`'7'` plus `'M'`
|
|
50
|
+
* @returns the contiguous passages, in reading order
|
|
43
51
|
*/
|
|
44
52
|
function makeLeyningParts(aliyot) {
|
|
45
53
|
const nums = Object.keys(aliyot).filter(x => {
|
|
@@ -75,7 +83,11 @@ function makeLeyningParts(aliyot) {
|
|
|
75
83
|
return parts;
|
|
76
84
|
}
|
|
77
85
|
/**
|
|
78
|
-
*
|
|
86
|
+
* Builds a one-line summary of a Torah reading, e.g. `"Genesis 6:9-11:32"`.
|
|
87
|
+
* Equivalent to {@link makeSummaryFromParts} applied to the output of
|
|
88
|
+
* {@link makeLeyningParts}.
|
|
89
|
+
* @param aliyot map of aliyot keyed by `'1'`–`'7'` plus `'M'`
|
|
90
|
+
* @returns the formatted summary
|
|
79
91
|
*/
|
|
80
92
|
function makeLeyningSummary(aliyot) {
|
|
81
93
|
const parts = makeLeyningParts(aliyot);
|
package/dist/esm/summary.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"summary.js","sources":["../../../src/summary.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAIA;;AAEG;AACH,SAAS,iBAAiB,CAAC,CAAS,EAAE,CAAS,EAAA;AAC7C,IAAA,MAAM,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;AACrC,IAAA,MAAM,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;IACrC,OAAO,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC;AACtD;AAEA
|
|
1
|
+
{"version":3,"file":"summary.js","sources":["../../../src/summary.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAIA;;AAEG;AACH,SAAS,iBAAiB,CAAC,CAAS,EAAE,CAAS,EAAA;AAC7C,IAAA,MAAM,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;AACrC,IAAA,MAAM,GAAG,GAAG,C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AC,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,EAAC,CAAC;YAC9C,KAAK,GAAG,MAAM;QAChB;QACA,GAAG,GAAG,MAAM;IACd;IACA,KAAK,CAAC,IAAI,CAAC,EAAC,CAAC,EAAE,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,EAAC,CAAC;AAC9C,IAAA,OAAO,KAAK;AACd;AAEA;;;;;;AAMG;AACG,SAAU,kBAAkB,CAAC,MAAiB,EAAA;AAClD,IAAA,MAAM,KAAK,GAAG,gBAAgB,CAAC,MAAM,CAAC;AACtC,IAAA,OAAO,oBAAoB,CAAC,KAAK,CAAC;AACpC;;;;"}
|
package/dist/esm/translate.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { Aliyah, AliyotMap, Leyning } from './types';
|
|
2
2
|
/**
|
|
3
|
-
* Translates an aliyah's book name and verse numbers
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* @param
|
|
7
|
-
* @param
|
|
3
|
+
* Translates an aliyah's book name and verse numbers into the target
|
|
4
|
+
* language, in place. Only Hebrew (`'he'`) currently transforms the object;
|
|
5
|
+
* any other language leaves it unchanged.
|
|
6
|
+
* @param aliyah the aliyah to translate (mutated in place)
|
|
7
|
+
* @param language target language code, e.g. `'he'` for Hebrew
|
|
8
|
+
* @returns the same `aliyah` object, translated
|
|
8
9
|
*/
|
|
9
10
|
export declare function translateAliyah(aliyah: Aliyah, language: string): Aliyah;
|
|
10
11
|
/**
|
|
11
12
|
* Translates aliyah(s) - handles single Aliyah, arrays, and AliyotMap.
|
|
12
13
|
* For non-English languages, translates book names and converts verse numbers to Hebrew numerals.
|
|
13
14
|
* Returns a new translated copy, leaving the original unchanged.
|
|
14
|
-
* @param aliyahOrArray
|
|
15
|
-
* @param language
|
|
16
|
-
* @
|
|
17
|
-
* @returns Translated copy of the input, or undefined if input was undefined
|
|
15
|
+
* @param aliyahOrArray a single Aliyah, an array of Aliyah, or an AliyotMap
|
|
16
|
+
* @param [language] target language code, e.g. `'he'` for Hebrew (default `'en'`)
|
|
17
|
+
* @returns a translated copy in the same shape as the input
|
|
18
18
|
*/
|
|
19
19
|
export declare function translateAliyahOrArray<T extends Aliyah | Aliyah[] | AliyotMap>(aliyahOrArray: T, language?: string): T;
|
|
20
20
|
/**
|
package/dist/esm/translate.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
/*! @hebcal/leyning v9.
|
|
1
|
+
/*! @hebcal/leyning v9.6.0 */
|
|
2
2
|
import { makeSummaryFromParts, makeLeyningParts } from './summary.js';
|
|
3
3
|
import './locale.js';
|
|
4
4
|
import { formatVerseToHebrew } from './format.js';
|
|
5
5
|
import { Locale } from '@hebcal/core/dist/esm/locale';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* Translates an aliyah's book name and verse numbers
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* @param
|
|
12
|
-
* @param
|
|
8
|
+
* Translates an aliyah's book name and verse numbers into the target
|
|
9
|
+
* language, in place. Only Hebrew (`'he'`) currently transforms the object;
|
|
10
|
+
* any other language leaves it unchanged.
|
|
11
|
+
* @param aliyah the aliyah to translate (mutated in place)
|
|
12
|
+
* @param language target language code, e.g. `'he'` for Hebrew
|
|
13
|
+
* @returns the same `aliyah` object, translated
|
|
13
14
|
*/
|
|
14
15
|
function translateAliyah(aliyah, language) {
|
|
15
16
|
if (language === 'he') {
|
|
@@ -23,10 +24,9 @@ function translateAliyah(aliyah, language) {
|
|
|
23
24
|
* Translates aliyah(s) - handles single Aliyah, arrays, and AliyotMap.
|
|
24
25
|
* For non-English languages, translates book names and converts verse numbers to Hebrew numerals.
|
|
25
26
|
* Returns a new translated copy, leaving the original unchanged.
|
|
26
|
-
* @param aliyahOrArray
|
|
27
|
-
* @param language
|
|
28
|
-
* @
|
|
29
|
-
* @returns Translated copy of the input, or undefined if input was undefined
|
|
27
|
+
* @param aliyahOrArray a single Aliyah, an array of Aliyah, or an AliyotMap
|
|
28
|
+
* @param [language] target language code, e.g. `'he'` for Hebrew (default `'en'`)
|
|
29
|
+
* @returns a translated copy in the same shape as the input
|
|
30
30
|
*/
|
|
31
31
|
function translateAliyahOrArray(aliyahOrArray, language = 'en') {
|
|
32
32
|
// Handle array of Aliyah objects
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translate.js","sources":["../../../src/translate.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;AAKA
|
|
1
|
+
{"version":3,"file":"translate.js","sources":["../../../src/translate.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;AAKA;;;;;;;AAOG;AACG,SAAU,eAAe,CAAC,MAAc,EAAE,QAAgB,EAAA;AAC9D,IAAA,IAAI,QAAQ,KAAK,IAAI,EAAE;AACrB,QAAA,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,EAAE,QAAQ,CAAe;QAC3D,MAAM,CAAC,CAAC,GAAG,mBAAmB,CAAC,MAAM,CAAC,CAAC,CAAC;QACxC,MAAM,CAAC,CAAC,GAAG,mBAAmB,CAAC,MAAM,CAAC,CAAC,CAAC;IAC1C;AACA,IAAA,OAAO,MAAM;AACf;AAEA;;;;;;;AAOG;SACa,sBAAsB,CACpC,aAAgB,EAChB,WAAmB,IAAI,EAAA;;AAGvB,IAAA,IAAI,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,EAAE;QAChC,MAAM,MAAM,GAAG,aAAa,CAAC,GAAG,CAAC,MAAM,IAAG;AACxC,YAAA,MAAM,IAAI,GAAG,EAAC,GAAG,MAAM,EAAC;AACxB,YAAA,OAAO,eAAe,CAAC,IAAI,EAAE,QAAQ,CAAC;AACxC,QAAA,CAAC,CAAC;AACF,QAAA,OAAO,MAAW;IACpB;;IAGA,IAAI,GAAG,IAAI,aAAa,IAAI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