Skip to content

Commit 1918e41

Browse files
authored
Support formatting of new Special Shabbasos
Shuva, Shira, Hagadol, Chazon and Nachamu. Closes #201
1 parent 84e04a3 commit 1918e41

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

src/main/java/com/kosherjava/zmanim/hebrewcalendar/HebrewDateFormatter.java

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Zmanim Java API
3-
* Copyright (C) 2011 - 2022 Eliyahu Hershfeld
3+
* Copyright (C) 2011 - 2023 Eliyahu Hershfeld
44
*
55
* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General
66
* Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option)
@@ -37,7 +37,7 @@
3737
* @see JewishDate
3838
* @see JewishCalendar
3939
*
40-
* @author © Eliyahu Hershfeld 2011 - 2022
40+
* @author © Eliyahu Hershfeld 2011 - 2023
4141
*/
4242
public class HebrewDateFormatter {
4343

@@ -81,7 +81,7 @@ public class HebrewDateFormatter {
8181
* Behar, Bechukosai, Bamidbar, Nasso, Beha'aloscha, Sh'lach, Korach, Chukas, Balak, Pinchas, Matos, Masei, Devarim,
8282
* Vaeschanan, Eikev, Re'eh, Shoftim, Ki Seitzei, Ki Savo, Nitzavim, Vayeilech, Ha'Azinu, Vezos Habracha,
8383
* Vayakhel Pekudei, Tazria Metzora, Achrei Mos Kedoshim, Behar Bechukosai, Chukas Balak, Matos Masei, Nitzavim Vayeilech,
84-
* Shekalim, Zachor, Parah, Hachodesh</em>".
84+
* Shekalim, Zachor, Parah, Hachodesh,Shuva, Shira, Hagadol, Chazon, Nachamu</em>".
8585
*
8686
* @see #formatParsha(JewishCalendar)
8787
*/
@@ -112,7 +112,9 @@ public class HebrewDateFormatter {
112112
* &#x05E7;&#x05D3;&#x05D5;&#x05E9;&#x05D9;&#x05DD;, &#x05D1;&#x05D4;&#x05E8; &#x05D1;&#x05D7;&#x05E7;&#x05EA;&#x05D9;,
113113
* &#x05D7;&#x05D5;&#x05E7;&#x05EA; &#x05D1;&#x05DC;&#x05E7;, &#x05DE;&#x05D8;&#x05D5;&#x05EA; &#x05DE;&#x05E1;&#x05E2;&#x05D9;,
114114
* &#x05E0;&#x05E6;&#x05D1;&#x05D9;&#x05DD; &#x05D5;&#x05D9;&#x05DC;&#x05DA;, &#x05E9;&#x05E7;&#x05DC;&#x05D9;&#x05DD;,
115-
* &#x05D6;&#x05DB;&#x05D5;&#x05E8;, &#x05E4;&#x05E8;&#x05D4;, &#x05D4;&#x05D7;&#x05D3;&#x05E9;"</code>
115+
* &#x05D6;&#x05DB;&#x05D5;&#x05E8;, &#x05E4;&#x05E8;&#x05D4;, &#x05D4;&#x05D7;&#x05D3;&#x05E9;,
116+
* &#x05E9;&#x05D5;&#x05D1;&#x05D4;,&#x05E9;&#x05D9;&#x05E8;&#x05D4;,&#x05D4;&#x05D2;&#x05D3;&#x05D5;&#x05DC;,
117+
* &#x05D7;&#x05D6;&#x05D5;&#x05DF;,&#x05E0;&#x05D7;&#x05DE;&#x05D5;"</code>
116118
*/
117119
private EnumMap<JewishCalendar.Parsha, String> hebrewParshaMap;
118120

@@ -187,6 +189,11 @@ public HebrewDateFormatter() {
187189
transliteratedParshaMap.put(JewishCalendar.Parsha.ZACHOR, "Zachor");
188190
transliteratedParshaMap.put(JewishCalendar.Parsha.PARA, "Parah");
189191
transliteratedParshaMap.put(JewishCalendar.Parsha.HACHODESH, "Hachodesh");
192+
transliteratedParshaMap.put(JewishCalendar.Parsha.SHUVA, "Shuva");
193+
transliteratedParshaMap.put(JewishCalendar.Parsha.SHIRA, "Shira");
194+
transliteratedParshaMap.put(JewishCalendar.Parsha.HAGADOL, "Hagadol");
195+
transliteratedParshaMap.put(JewishCalendar.Parsha.CHAZON, "Chazon");
196+
transliteratedParshaMap.put(JewishCalendar.Parsha.NACHAMU, "Nachamu");
190197

191198
hebrewParshaMap = new EnumMap<JewishCalendar.Parsha, String>(JewishCalendar.Parsha.class);
192199
hebrewParshaMap.put(JewishCalendar.Parsha.NONE, "");
@@ -255,6 +262,11 @@ public HebrewDateFormatter() {
255262
hebrewParshaMap.put(JewishCalendar.Parsha.ZACHOR, "\u05D6\u05DB\u05D5\u05E8");
256263
hebrewParshaMap.put(JewishCalendar.Parsha.PARA, "\u05E4\u05E8\u05D4");
257264
hebrewParshaMap.put(JewishCalendar.Parsha.HACHODESH, "\u05D4\u05D7\u05D3\u05E9");
265+
hebrewParshaMap.put(JewishCalendar.Parsha.SHUVA, "\u05E9\u05D5\u05D1\u05D4");
266+
hebrewParshaMap.put(JewishCalendar.Parsha.SHIRA, "\u05E9\u05D9\u05E8\u05D4");
267+
hebrewParshaMap.put(JewishCalendar.Parsha.HAGADOL, "\u05D4\u05D2\u05D3\u05D5\u05DC");
268+
hebrewParshaMap.put(JewishCalendar.Parsha.CHAZON, "\u05D7\u05D6\u05D5\u05DF");
269+
hebrewParshaMap.put(JewishCalendar.Parsha.NACHAMU, "\u05E0\u05D7\u05DE\u05D5");
258270
}
259271

260272
/**

0 commit comments

Comments
 (0)