hebcal / hebcal-es6

perpetual Jewish Calendar with holidays, Shabbat and holiday candle lighting and havdalah times, Torah readings, and more
https://hebcal.github.io/api/core/
GNU General Public License v2.0
101 stars 14 forks source link

Weekday Torah reading #453

Open PupaRebbe opened 2 hours ago

PupaRebbe commented 2 hours ago

Currently, the SedraResult for a week that has no Parsha (like this week) contains only the name of the Chag, in other words: it's now Monday Parshat Yom Kipur... I would suggest to add a property to the SedraResult that contains the Torah reading for Monday-Thursday of this week which is always the next Parsha (and preferably an index too, so today will be Monday Parshat Vezot Haberakhah 1 and next monday will be Monday Vezot Haberakhah 2). I've tried to implement it myself but i have a problem with Vezot Haberakhah that is the weekday reading after Shabbat Ha'azinu but is not in the parshiot array. Thanks

mjradwin commented 2 hours ago

Thanks for this suggestion. I don't know when we will get around to implementing such a feature of the Sedra class, but we agree in principle that it's a good idea.

Please note that the getLeyningOnDate function in the @hebcal/leyning package already handles weekday readings like this week correctly.

https://hebcal.github.io/api/leyning/functions/getLeyningOnDate.html