Skip to content

Commit 1e635d3

Browse files
committed
end in sight
1 parent d6447e1 commit 1e635d3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+644
-812
lines changed

Makefile

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -201,15 +201,6 @@ clean:
201201
#-----------------------------------------------------------------------------------------#
202202

203203

204-
editwatchepub: $(EPUBFILE)
205-
@echo "Opening current-recitations.epub in Sigil for editing..."
206-
@echo "Watching file for errors..."
207-
@make -j edit watchepub
208-
209-
210-
#-----------------------------------------------------------------------------------------#
211-
212-
213204
extractepub:
214205
@echo "Extracting $(LATESTEPUBFILE) into $(HTMLSOURCE)"
215206
@cp "$(EPUBFILE)" "$(EPUBFILE)".bkp && mv "$(EPUBFILE)" "$(LATESTEPUBFILE)" || echo "Failed to move EPUB file."
@@ -218,6 +209,25 @@ extractepub:
218209
@mv "$(EPUBFILE)".bkp "$(EPUBFILE)" && rm "$(LATESTEPUBFILE)"
219210
@echo "Extracting HTML hierarchy from EPUB for version control..."
220211

212+
213+
#-----------------------------------------------------------------------------------------#
214+
215+
editwatchepub: $(EPUBFILE)
216+
ifndef JAVA
217+
$(error Java was not found. Unable to validate ebook)
218+
endif
219+
ifndef INOTIFYWAIT
220+
$(error inotifywait was not found. Unable to watch ebook for changes)
221+
endif
222+
@sigil "$(EPUBFILE)" &
223+
@echo "Watching $(EPUBFILE)"
224+
@while true; do \
225+
$(INOTIFYWAIT) -qe close_write "$(EPUBFILE)"; \
226+
echo "Validating $(EPUBFILE)..."; \
227+
"$(EPUBCHECK)" "$(EPUBFILE)"; \
228+
done
229+
230+
221231
#-----------------------------------------------------------------------------------------#
222232

223233

assets/bin/increment-sections.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313

1414
# Check if the file exists
1515
if not os.path.isfile(file_path):
16-
print(f"Error: The file '{file_path}' does not exist.")
16+
print(f"Error: The file '{file_yewtu.bepath}' does not exist.")
1717
sys.exit(1)
1818

1919
# Open the HTML file for reading
2020
with open(file_path, 'r', encoding='utf-8') as file:
2121
content = file.read()
2222

2323
# Initialize the counter
24-
counter = 1
24+
counter = 118
2525

2626
# Function to replace the number incrementally
2727
def replace_numbers(match):

html/OEBPS/Text/32-parts.xhtml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@
258258
</td>
259259

260260
<td style="font-size: 1.1em; text-align:left">
261-
<em>intestines<a id="en121" href="endnotes.xhtml#en121appendix"><sup>121</sup></a></em>
261+
<em>intestines<a id="en124" href="endnotes.xhtml#en124appendix"><sup>124</sup></a></em>
262262
</td>
263263
</tr>
264264

@@ -272,7 +272,7 @@
272272
</td>
273273

274274
<td style="font-size: 1.1em; text-align:left">
275-
<em>mesentery<a id="en122" href="endnotes.xhtml#en122appendix"><sup>122</sup></a></em>
275+
<em>mesentery<a id="en125" href="endnotes.xhtml#en125appendix"><sup>125</sup></a></em>
276276
</td>
277277
</tr>
278278

@@ -482,7 +482,7 @@
482482
</td>
483483

484484
<td style="font-size: 1.1em; text-align:left">
485-
<em>brain<a id="en123" href="endnotes.xhtml#en123appendix"><sup>123</sup></a></em>
485+
<em>brain<a id="en126" href="endnotes.xhtml#en126appendix"><sup>126</sup></a></em>
486486
</td>
487487
</tr>
488488
</tbody>

html/OEBPS/Text/anatta-lakkhana.xhtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
<p class="pali-leader">〈 Evaṁ me sutaṁ&#160;〉</p>
1818

19-
<p class="pali-hang">Ekaṁ samayaṁ bhagavā bārāṇasiyaṁ viharati isipatane migadāye&#160;<span class="breathmark"></span> Tatra kho bhagavā pañca-vaggiye bhikkhū āmantesi: <q>Bhikkhavo</q>ti&#160;<span class="breathmark"></span> <q>Bhadante</q>ti te bhikkhū bhagavato paccassosuṁ&#160;<span class="breathmark"></span> Bhagavā etad’avoca<a id="en127" href="endnotes.xhtml#en127appendix"><sup>127</sup></a></p>
19+
<p class="pali-hang">Ekaṁ samayaṁ bhagavā bārāṇasiyaṁ viharati isipatane migadāye&#160;<span class="breathmark"></span> Tatra kho bhagavā pañca-vaggiye bhikkhū āmantesi: <q>Bhikkhavo</q>ti&#160;<span class="breathmark"></span> <q>Bhadante</q>ti te bhikkhū bhagavato paccassosuṁ&#160;<span class="breathmark"></span> Bhagavā etad’avoca<a id="en130" href="endnotes.xhtml#en130appendix"><sup>130</sup></a></p>
2020

2121
<p class="pali-hang">Rūpaṁ bhikkhave anattā&#160;<span class="breathmark"></span> rūpañ’ca h’idaṁ bhikkhave attā abhavissa&#160;<span class="breathmark"></span> na’y’idaṁ rūpaṁ ābādhāya saṁvatteyya&#160;<span class="breathmark"></span> labbhetha ca rūpe&#160;<span class="breathmark"></span> <q>Evaṁ me rūpaṁ hotu&#160;<span class="breathmark"></span> evaṁ me rūpaṁ mā ahosī</q>ti</p>
2222

html/OEBPS/Text/buddhas-final-instruction.xhtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848

4949
<p class="pali-hang">Vaya-dhammā saṅkhārā</p>
5050

51-
<p class="english-hang">Conditioned things are of ceasing nature<a id="en110" href="endnotes.xhtml#en110appendix"><sup>110</sup></a></p>
51+
<p class="english-hang">Conditioned things are of ceasing nature<a id="en111" href="endnotes.xhtml#en111appendix"><sup>111</sup></a></p>
5252

5353
<p class="pali-hang">Appamādena sampādetha</p>
5454

html/OEBPS/Text/burdens.xhtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
<p class="english-hang">The five aggregates indeed are burdens</p>
2828

29-
<p class="english-hang-together">The beast of burden is the person<a id="en42" href="endnotes.xhtml#en42appendix"><sup>42</sup></a></p>
29+
<p class="english-hang-together">The beast of burden is the person<a id="en43" href="endnotes.xhtml#en43appendix"><sup>43</sup></a></p>
3030

3131
<p class="english-hang-together">In this world to take up burdens is dukkha</p>
3232

html/OEBPS/Text/characteristic-of-not-self.xhtml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
<p class="pali-leader">〈 Thus have I heard&#160;〉</p>
1818

19-
<p class="pali-hang" style="font-style: italic;">On one occasion<a id="en128" href="endnotes.xhtml#en128appendix"><sup>128</sup></a> the Blessed One was dwelling at Benares&#160;<span class="breathmark"></span> in the Deer Park at Isipatana&#160;<span class="breathmark"></span> There he addressed the bhikkhus of the group of five: <q>Bhikkhus</q><q>Venerable sir</q> they replied.<span class="breathmark"></span> The Blessed One said this:<a id="en129" href="endnotes.xhtml#en129appendix"><sup>129</sup></a></p>
19+
<p class="pali-hang" style="font-style: italic;">On one occasion<a id="en131" href="endnotes.xhtml#en131appendix"><sup>131</sup></a> the Blessed One was dwelling at Benares&#160;<span class="breathmark"></span> in the Deer Park at Isipatana&#160;<span class="breathmark"></span> There he addressed the bhikkhus of the group of five: <q>Bhikkhus</q><q>Venerable sir</q> they replied.<span class="breathmark"></span> The Blessed One said this:<a id="en132" href="endnotes.xhtml#en132appendix"><sup>132</sup></a></p>
2020

2121
<p class="pali-hang" style="font-style: italic;">Bhikkhus form is not-self&#160;<span class="breathmark"></span> If form were self&#160;<span class="breathmark"></span> then form would not lead to affliction&#160;<span class="breathmark"></span> and one could command to form: <q>Let my form be thus&#160;<span class="breathmark"></span> let my form not be thus</q></p>
2222

@@ -112,11 +112,11 @@
112112

113113
<p class="pali-hang" style="font-style: italic;">Any kind of consciousness whatsoever&#160;<span class="breathmark"></span> whether past future or present&#160;<span class="breathmark"></span> internal or external&#160;<span class="breathmark"></span> gross or subtle&#160;<span class="breathmark"></span> inferior or superior&#160;<span class="breathmark"></span> far or near&#160;<span class="breathmark"></span> must be seen with right wisdom as it really is: <q>This is not mine&#160;<span class="breathmark"></span> this I am not&#160;<span class="breathmark"></span> this is not my self</q></p>
114114

115-
<p class="pali-leader" style="font-style: italic;">〈 Bhikkhus when a noble disciple<a id="en130" href="endnotes.xhtml#en130appendix"><sup>130</sup></a>&#160;〉</p>
115+
<p class="pali-leader" style="font-style: italic;">〈 Bhikkhus when a noble disciple<a id="en133" href="endnotes.xhtml#en133appendix"><sup>133</sup></a>&#160;〉</p>
116116

117-
<p class="pali-hang" style="font-style: italic;">Who has heard the teaching<a id="en131" href="endnotes.xhtml#en131appendix"><sup>131</sup></a> sees thus&#160;<span class="breathmark"></span> he becomes disenchanted with form&#160;<span class="breathmark"></span> becomes disenchanted with feeling&#160;<span class="breathmark"></span> becomes disenchanted with perception&#160;<span class="breathmark"></span> becomes disenchanted with volitional formations&#160;<span class="breathmark"></span> becomes disenchanted with consciousness</p>
117+
<p class="pali-hang" style="font-style: italic;">Who has heard the teaching<a id="en134" href="endnotes.xhtml#en134appendix"><sup>134</sup></a> sees thus&#160;<span class="breathmark"></span> he becomes disenchanted with form&#160;<span class="breathmark"></span> becomes disenchanted with feeling&#160;<span class="breathmark"></span> becomes disenchanted with perception&#160;<span class="breathmark"></span> becomes disenchanted with volitional formations&#160;<span class="breathmark"></span> becomes disenchanted with consciousness</p>
118118

119-
<p class="pali-hang" style="font-style: italic;">When he is disenchanted passion fades away&#160;<span class="breathmark"></span> With the fading of passion he is liberated&#160;<span class="breathmark"></span> When liberated there is knowledge that he is liberated&#160;<span class="breathmark"></span> He understands: <q>Birth is exhausted&#160;<span class="breathmark"></span> the holy life is fulfilled&#160;<span class="breathmark"></span> what has to be done is done&#160;<span class="breathmark"></span> there is nothing else to do for the sake of liberation</q><a id="en132" href="endnotes.xhtml#en132appendix"><sup>132</sup></a></p>
119+
<p class="pali-hang" style="font-style: italic;">When he is disenchanted passion fades away&#160;<span class="breathmark"></span> With the fading of passion he is liberated&#160;<span class="breathmark"></span> When liberated there is knowledge that he is liberated&#160;<span class="breathmark"></span> He understands: <q>Birth is exhausted&#160;<span class="breathmark"></span> the holy life is fulfilled&#160;<span class="breathmark"></span> what has to be done is done&#160;<span class="breathmark"></span> there is nothing else to do for the sake of liberation</q><a id="en135" href="endnotes.xhtml#en135appendix"><sup>135</sup></a></p>
120120

121121
<p class="pali-hang" style="font-style: italic;">That is what the Blessed One said&#160;<span class="breathmark"></span> The bhikkhus of the group of five were glad and they approved of his words&#160;<span class="breathmark"></span> Now during this utterance&#160;<span class="breathmark"></span> the hearts of the bhikkhus of the group of five&#160;<span class="breathmark"></span> were liberated from the taints through the cessation of clinging</p>
122122

html/OEBPS/Text/copyright.xhtml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,22 @@
1010
</head>
1111

1212
<body>
13-
<p style="text-align: center;">Published by TBD<br/>ISBN<br/>Copyright ©&#160;Sāsanārakkha Buddhist Sanctuary 2025</p>
13+
<p style="text-align: center;">Published by TBD<br/>ISBN<br/>Copyright ©&#160;Sāsanārakkha Buddhist Sanctuary 2023</p>
1414

1515
<p style="text-align: center;">This book is for free distribution only;<br/>it may not be sold.</p>
1616

1717
<p style="text-align: center;">Download this book as a PDF, EPUB, or MOBI<br/>at the following address:<br/><a style="font-style:normal;" href="https://sasanarakkha.org">https://sasanarakkha.org</a></p>
1818

19-
<p style="text-align: center;">Accompanying audio recordings can be found at:<br/><a style="font-style:normal;" href="https://www.youtube.com/c/S%C4%81san%C4%81rakkhaBuddhistSanctuary">www.youtube.com/SasanarakkhaBuddhistSanctuary</a></p>
20-
21-
<p style="text-align: center;">Project Manager: Ā. Ariyadhammika <br/> Editor: Ā. Pāladhammika<br/>Typesetting: Aj. Gambhiro, Ā. Pāladhammika<br/>Translators: Ā. Aggacitta, Ā. Bodhi, Aj. Kevalī, Ā. Sujāto, M. Walshe<br/>Endnotes: Ā. Ariyadhammika<br/>Illustrations: Lim Jee Yuan</p>
19+
<p style="text-align: center;">Project Manager: Ā. Ariyadhammika <br/> Editor: Ā. Pāladhammika<br/>Typesetting: Aj. Gambhiro, Ā. Pāladhammika<br/>Translators: Ā. Aggacitta, Ā. Bodhi, Aj. Kevalī, Ā. Sujāto, M. Walshe<br/>Endnotes: Ā. Ariyadhammika</p>
2220

2321
<p style="text-align: center;">This work is licensed under a Creative Commons<br/>Attribution-NonCommercial-NoDerivatives 4.0 International&#160;License.</p>
2422

25-
<p style="text-align: center;">Produced with Sigil EPUB editor,<br/>set in Libertinus Serif.</p>
23+
<p style="text-align: center;">Produced with the Sigil EPUB editor,<br/>set in Libertinus Serif.</p>
2624

27-
<p style="text-align: center;">This version was created on: 2024-09-25</p>
25+
<p style="text-align: center;">This version was created on: 2025-04-23</p>
2826

2927
<br/>
3028

31-
<p style="text-align: center;"><em>First edition</em>, 2025</p>
29+
<p style="text-align: center;"><em>First edition</em>, 2024</p>
3230
</body>
3331
</html>

0 commit comments

Comments
 (0)