-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Release: new changes (#43) * reformatted * added prabhupada commentry
- Loading branch information
1 parent
a1482af
commit b1d81b3
Showing
742 changed files
with
73,826 additions
and
1,188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import os | ||
import json | ||
from pathlib import Path | ||
|
||
source_directory = Path("./slok") | ||
target_directory = Path("../bhagavad-gita-data/slok") | ||
|
||
# Find all JSON files in the source directory and its subdirectories | ||
json_files = source_directory.rglob("*.json") | ||
for source_path in json_files: | ||
chapter, slok = 0, 0 | ||
try: | ||
# Read the JSON content from the source file | ||
with open(source_path, "r", encoding="utf-8") as source_file: | ||
data = json.load(source_file) | ||
chapter = int(str(source_path).split("\\")[1]) | ||
slok = int(str(source_path).split("\\")[2]) | ||
target_path = Path( | ||
f"../bhagavad-gita-data/slok/bhagavadgita_chapter_{chapter}_slok_{slok}.json" | ||
) | ||
|
||
# Create target directory if it does not exist | ||
os.makedirs(os.path.dirname(target_path), exist_ok=True) | ||
|
||
# Write the JSON content to the target file | ||
with open(target_path, "w", encoding="utf-8") as fp: | ||
json.dump(data, fp, ensure_ascii=False, indent=4) | ||
fp.write("\n") | ||
|
||
except Exception as e: | ||
print(chapter, slok) | ||
print(e) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import os | ||
import json | ||
from pathlib import Path | ||
|
||
source_directory = Path("../bhagavad-gita-data/slok") | ||
target_directory = Path("./slok") | ||
|
||
# Find all JSON files in the source directory and its subdirectories | ||
json_files = source_directory.rglob("*.json") | ||
for source_path in json_files: | ||
chapter, slok = 0, 0 | ||
try: | ||
# Read the JSON content from the source file | ||
with open(source_path, "r", encoding="utf-8") as source_file: | ||
prabhu = json.load(source_file).get("prabhu", False) | ||
|
||
chapter = int(str(source_path.name).split(".")[0].split("_")[2]) | ||
slok = int(str(source_path.name).split(".")[0].split("_")[4]) | ||
target_path = Path(f"./slok/{chapter}/{slok}/index.json") | ||
|
||
# Create target directory if it does not exist | ||
os.makedirs(os.path.dirname(target_path), exist_ok=True) | ||
|
||
# Read the JSON content from the source file | ||
with open(target_path, "r", encoding="utf-8") as source_file: | ||
data = json.load(source_file) | ||
|
||
if prabhu: | ||
data["prabhu"] = prabhu | ||
# Write the JSON content to the target file | ||
with open(target_path, "w", encoding="utf-8") as fp: | ||
json.dump( | ||
data, | ||
fp, | ||
ensure_ascii=False, | ||
indent=4, | ||
) | ||
fp.write("\n") | ||
else: | ||
raise Exception("comentry not found : " + str(source_path)) | ||
|
||
except Exception as e: | ||
print(chapter, slok) | ||
print(e) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
{ | ||
"chapter_number": 1, | ||
"verses_count": 47, | ||
"name": "अर्जुनविषादयोग", | ||
"translation": "Arjuna Visada Yoga", | ||
"transliteration": "Arjun Viṣhād Yog", | ||
"meaning": { | ||
"en": "Arjuna's Dilemma", | ||
"hi": "अर्जुन विषाद योग" | ||
}, | ||
"summary": { | ||
"en": "The first chapter of the Bhagavad Gita - Arjuna Vishada Yoga introduces the setup, the setting, the characters and the circumstances that led to the epic battle of Mahabharata, fought between the Pandavas and the Kauravas. It outlines the reasons that led to the revelation of the of Bhagavad Gita.\nAs both armies stand ready for the battle, the mighty warrior Arjuna, on observing the warriors on both sides becomes increasingly sad and depressed due to the fear of losing his relatives and friends and the consequent sins attributed to killing his own relatives. So, he surrenders to Lord Krishna, seeking a solution. Thus, follows the wisdom of the Bhagavad Gita.", | ||
"hi": "भगवद गीता का पहला अध्याय अर्जुन विशाद योग उन पात्रों और परिस्थितियों का परिचय कराता है जिनके कारण पांडवों और कौरवों के बीच महाभारत का महासंग्राम हुआ। यह अध्याय उन कारणों का वर्णन करता है जिनके कारण भगवद गीता का ईश्वरावेश हुआ। जब महाबली योद्धा अर्जुन दोनों पक्षों पर युद्ध के लिए तैयार खड़े योद्धाओं को देखते हैं तो वह अपने ही रिश्तेदारों एवं मित्रों को खोने के डर तथा फलस्वरूप पापों के कारण दुखी और उदास हो जाते हैं। इसलिए वह श्री कृष्ण को पूरी तरह से आत्मसमर्पण करते हैं। इस प्रकार, भगवद गीता के ज्ञान का प्रकाश होता है।" | ||
} | ||
"chapter_number": 1, | ||
"verses_count": 47, | ||
"name": "अर्जुनविषादयोग", | ||
"translation": "Arjuna Visada Yoga", | ||
"transliteration": "Arjun Viṣhād Yog", | ||
"meaning": { | ||
"en": "Arjuna's Dilemma", | ||
"hi": "अर्जुन विषाद योग" | ||
}, | ||
"summary": { | ||
"en": "The first chapter of the Bhagavad Gita - Arjuna Vishada Yoga introduces the setup, the setting, the characters and the circumstances that led to the epic battle of Mahabharata, fought between the Pandavas and the Kauravas. It outlines the reasons that led to the revelation of the of Bhagavad Gita.\nAs both armies stand ready for the battle, the mighty warrior Arjuna, on observing the warriors on both sides becomes increasingly sad and depressed due to the fear of losing his relatives and friends and the consequent sins attributed to killing his own relatives. So, he surrenders to Lord Krishna, seeking a solution. Thus, follows the wisdom of the Bhagavad Gita.", | ||
"hi": "भगवद गीता का पहला अध्याय अर्जुन विशाद योग उन पात्रों और परिस्थितियों का परिचय कराता है जिनके कारण पांडवों और कौरवों के बीच महाभारत का महासंग्राम हुआ। यह अध्याय उन कारणों का वर्णन करता है जिनके कारण भगवद गीता का ईश्वरावेश हुआ। जब महाबली योद्धा अर्जुन दोनों पक्षों पर युद्ध के लिए तैयार खड़े योद्धाओं को देखते हैं तो वह अपने ही रिश्तेदारों एवं मित्रों को खोने के डर तथा फलस्वरूप पापों के कारण दुखी और उदास हो जाते हैं। इसलिए वह श्री कृष्ण को पूरी तरह से आत्मसमर्पण करते हैं। इस प्रकार, भगवद गीता के ज्ञान का प्रकाश होता है।" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
{ | ||
"chapter_number": 10, | ||
"verses_count": 42, | ||
"name": "विभूतियोग", | ||
"translation": "Vibhooti Yoga", | ||
"transliteration": "Vibhūti Yog", | ||
"meaning": { | ||
"en": "Yoga through Appreciating the Infinite Opulences of God", | ||
"hi": "श्री भगवान् का ऐश्वर्य" | ||
}, | ||
"summary": { | ||
"en": "The tenth chapter of the Bhagavad Gita is Vibhooti Yoga. In this chapter, Krishna reveals Himself as the cause of all causes. He describes His various manifestations and opulences in order to increase Arjuna's Bhakti. Arjuna is fully convinced of Lord's paramount position and proclaims him to be the Supreme Personality. He prays to Krishna to describe more of His divine glories which are like nectar to hear.", | ||
"hi": "भगवद गीता का दसवां अध्याय विभूतियोग है। इस अध्याय में, कृष्ण स्वयं को सभी कारणों के कारण बताते हैं। अर्जुन की भक्ति को बढ़ाने के लिए वे अपने विभिन्न अवतारों और प्रतिष्ठानों का वर्णन करते हैं। अर्जुन पूरी तरह से भगवान के सर्वोच्च पद से आश्वस्त हैं और उन्हें सर्वोच्च व्यक्तित्व के रूप में घोषित करते हैं। वे कृष्ण से प्रार्थना करते हैं कि वे अपनी अन्य दिव्य महिमाओं के बारेमे बताएं जो कि सुनने में अमृत सामान हैं।" | ||
} | ||
"chapter_number": 10, | ||
"verses_count": 42, | ||
"name": "विभूतियोग", | ||
"translation": "Vibhooti Yoga", | ||
"transliteration": "Vibhūti Yog", | ||
"meaning": { | ||
"en": "Yoga through Appreciating the Infinite Opulences of God", | ||
"hi": "श्री भगवान् का ऐश्वर्य" | ||
}, | ||
"summary": { | ||
"en": "The tenth chapter of the Bhagavad Gita is Vibhooti Yoga. In this chapter, Krishna reveals Himself as the cause of all causes. He describes His various manifestations and opulences in order to increase Arjuna's Bhakti. Arjuna is fully convinced of Lord's paramount position and proclaims him to be the Supreme Personality. He prays to Krishna to describe more of His divine glories which are like nectar to hear.", | ||
"hi": "भगवद गीता का दसवां अध्याय विभूतियोग है। इस अध्याय में, कृष्ण स्वयं को सभी कारणों के कारण बताते हैं। अर्जुन की भक्ति को बढ़ाने के लिए वे अपने विभिन्न अवतारों और प्रतिष्ठानों का वर्णन करते हैं। अर्जुन पूरी तरह से भगवान के सर्वोच्च पद से आश्वस्त हैं और उन्हें सर्वोच्च व्यक्तित्व के रूप में घोषित करते हैं। वे कृष्ण से प्रार्थना करते हैं कि वे अपनी अन्य दिव्य महिमाओं के बारेमे बताएं जो कि सुनने में अमृत सामान हैं।" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
{ | ||
"chapter_number": 11, | ||
"verses_count": 55, | ||
"name": "विश्वरूपदर्शनयोग", | ||
"translation": "Vishwaroopa Darshana Yoga", | ||
"transliteration": "Viśhwarūp Darśhan Yog", | ||
"meaning": { | ||
"en": "Yoga through Beholding the Cosmic Form of God", | ||
"hi": "विराट रूप" | ||
}, | ||
"summary": { | ||
"en": "The eleventh chapter of the Bhagavad Gita is Vishwaroopa Darshana Yoga. In this chapter, Arjuna requests Krishna to reveal His Universal Cosmic Form that encompasses all the universes, the entire existence. Arjuna is granted divine vision to be able to see the entirety of creation in the body of the Supreme Lord Krishna.", | ||
"hi": "भगवद गीता का ग्यारहवा अध्याय विश्वरूपदर्शनयोग है। इस अध्याय में, अर्जुन कृष्ण को अपने विश्व रूप को प्रकट करने का अनुरोध करते हैं जो की सारे विश्वों अथवा संपूर्ण अस्तित्व का स्त्रोत है। भगवान कृष्ण के शरीर में पूरी सृष्टि को देखने में सक्षम होने के लिए अर्जुन को दिव्य दृष्टि दी जाती है।" | ||
} | ||
"chapter_number": 11, | ||
"verses_count": 55, | ||
"name": "विश्वरूपदर्शनयोग", | ||
"translation": "Vishwaroopa Darshana Yoga", | ||
"transliteration": "Viśhwarūp Darśhan Yog", | ||
"meaning": { | ||
"en": "Yoga through Beholding the Cosmic Form of God", | ||
"hi": "विराट रूप" | ||
}, | ||
"summary": { | ||
"en": "The eleventh chapter of the Bhagavad Gita is Vishwaroopa Darshana Yoga. In this chapter, Arjuna requests Krishna to reveal His Universal Cosmic Form that encompasses all the universes, the entire existence. Arjuna is granted divine vision to be able to see the entirety of creation in the body of the Supreme Lord Krishna.", | ||
"hi": "भगवद गीता का ग्यारहवा अध्याय विश्वरूपदर्शनयोग है। इस अध्याय में, अर्जुन कृष्ण को अपने विश्व रूप को प्रकट करने का अनुरोध करते हैं जो की सारे विश्वों अथवा संपूर्ण अस्तित्व का स्त्रोत है। भगवान कृष्ण के शरीर में पूरी सृष्टि को देखने में सक्षम होने के लिए अर्जुन को दिव्य दृष्टि दी जाती है।" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
{ | ||
"chapter_number": 12, | ||
"verses_count": 20, | ||
"name": "भक्तियोग", | ||
"translation": "Bhakti Yoga", | ||
"transliteration": "Bhakti Yog", | ||
"meaning": { "en": "The Yoga of Devotion", "hi": "भक्तियोग" }, | ||
"summary": { | ||
"en": "The twelfth chapter of the Bhagavad Gita is Bhakti Yoga. In this chapter, Krishna emphasizes the superiority of Bhakti Yoga (the path of devotion) over all other types of spiritual disciplines and reveals various aspects of devotion. He further explains that the devotees who perform pure devotional service to Him, with their consciousness, merged in Him and all their actions dedicated to Him, are quickly liberated from the cycle of life and death. He also describes the various qualities of the devotees who are very dear to Him.", | ||
"hi": "भगवद गीता का बारहवां अध्याय भक्तियोग है। इस अध्याय में, कृष्ण भक्ति योग की श्रेष्ठता पर बल देते हैं और भक्ति के विभिन्न पहलुओं का वर्णन करते हैं। वे आगे बताते हैं कि वे भक्त जो अपने सभी कर्म उनको समर्पित करके, अपनी चेतना उनमें विलीन करके, सच्चे मन से उनकी भक्ति करते हैं वे बहुत जल्दी जीवन और मृत्यु के चक्र से मुक्ति पा लेते हैं। वे अपने सबसे प्रिय भक्तों के विभिन्न गुड़ों का भी वर्णन करते हैं।" | ||
} | ||
"chapter_number": 12, | ||
"verses_count": 20, | ||
"name": "भक्तियोग", | ||
"translation": "Bhakti Yoga", | ||
"transliteration": "Bhakti Yog", | ||
"meaning": { | ||
"en": "The Yoga of Devotion", | ||
"hi": "भक्तियोग" | ||
}, | ||
"summary": { | ||
"en": "The twelfth chapter of the Bhagavad Gita is Bhakti Yoga. In this chapter, Krishna emphasizes the superiority of Bhakti Yoga (the path of devotion) over all other types of spiritual disciplines and reveals various aspects of devotion. He further explains that the devotees who perform pure devotional service to Him, with their consciousness, merged in Him and all their actions dedicated to Him, are quickly liberated from the cycle of life and death. He also describes the various qualities of the devotees who are very dear to Him.", | ||
"hi": "भगवद गीता का बारहवां अध्याय भक्तियोग है। इस अध्याय में, कृष्ण भक्ति योग की श्रेष्ठता पर बल देते हैं और भक्ति के विभिन्न पहलुओं का वर्णन करते हैं। वे आगे बताते हैं कि वे भक्त जो अपने सभी कर्म उनको समर्पित करके, अपनी चेतना उनमें विलीन करके, सच्चे मन से उनकी भक्ति करते हैं वे बहुत जल्दी जीवन और मृत्यु के चक्र से मुक्ति पा लेते हैं। वे अपने सबसे प्रिय भक्तों के विभिन्न गुड़ों का भी वर्णन करते हैं।" | ||
} | ||
} |
Oops, something went wrong.