Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tina interview + some nits
Browse files Browse the repository at this point in the history
Khemarato Bhikkhu committed Nov 13, 2023
1 parent 9461d08 commit fb6e5b7
Showing 11 changed files with 50 additions and 9 deletions.
19 changes: 19 additions & 0 deletions _content/av/dancing-in-my-dreams_craig-ralph.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
title: "A Spiritual Biography of Tina Turner"
authors:
- "Ralph H. Craig III"
subcat: podcast
editor: "Jessica Zu"
external_url: "https://newbooksnetwork.com/ralph-h-craig-iii-dancing-in-my-dreams-a-spiritual-biography-of-tina-turner-eerdmans-2023"
course: american
tags:
- soka-gakkai
year: 2023
month: nov
publisher: nbn
minutes: 80
---

> The Buddha is like a physician that is capable of turning poison into medicine.
How "the Queen of Rock-'n'-roll" became a Nichiren, Buddhist teacher.
1 change: 1 addition & 0 deletions _content/monographs/dn_walshe.md
Original file line number Diff line number Diff line change
@@ -11,6 +11,7 @@ tags:
- sutta
year: 1987
status: featured
external_url: "https://archive.org/details/dighanikayalongdiscoursesofthebuddhamauricewalshewisdom_683_z/mode/1up"
publisher: wisdom
pages: 656
---
1 change: 1 addition & 0 deletions _content/monographs/early-buddhism_hamilton-sue.md
Original file line number Diff line number Diff line change
@@ -11,6 +11,7 @@ year: 2000
month: may
olid: OL7763749M
oclc: 44822689
external_url: "https://archive.org/details/earlyidentityexperiencecontitutionofbeingaccordingtoearlybuddhismsuehamiltonseeotherbooks_648_V/mode/1up"
publisher: "Routledge"
address: "Oxon"
pages: 233
1 change: 1 addition & 0 deletions _content/monographs/global-civilization_ikeda-tehranian.md
Original file line number Diff line number Diff line change
@@ -10,6 +10,7 @@ tags:
year: 2003
olid: OL8627281M
oclc: 881280431
external_url: "https://archive.org/details/globalcivilizationbuddhistislamicdialoguedaisakuikedamajidtehranian2000_202003_547_K/mode/1up"
publisher: "British Academic Press"
address: "London"
pages: 182
Original file line number Diff line number Diff line change
@@ -2,6 +2,7 @@
title: "A History of Buddhist Philosophy: Continuities and Discontinuities"
authors: [kalupahana]
year: 1992
external_url: "https://archive.org/details/historyofbuddhistphilosophycontinuitiesanddiscontinuitiesdavidkalupahanaj._915_e/mode/1up"
publisher: hawaii
course: dialogue
tags:
1 change: 0 additions & 1 deletion _content/monographs/intro-to-ethics_harvey.md
Original file line number Diff line number Diff line change
@@ -3,7 +3,6 @@ title: "An Introduction to Buddhist Ethics: Foundations, Values and Issues"
authors: [harvey]
publisher: cambridge
olid: OL7746242M
external_url: "https://archive.org/details/introductiontobu0000harv/page/n4/mode/1up"
year: 2000
address: "Cambridge"
course: ethics
Original file line number Diff line number Diff line change
@@ -3,6 +3,7 @@ title: "Socially Engaged Buddhism"
authors:
- "Sallie B. King"
year: 2009
external_url: "https://archive.org/details/sociallyengagedbuddhismsalliekingb._964_M/mode/1up"
publisher: hawaii
olid: OL22684571M
course: engaged
12 changes: 12 additions & 0 deletions _data/drive_folders.json
Original file line number Diff line number Diff line change
@@ -19,6 +19,10 @@
"private": "https://drive.google.com/drive/folders/1FRIx6sR03qR7I8N6wux9Mem_2yBm06Hi",
"public": "https://drive.google.com/drive/folders/13VWmT2o0hswWeBg3TUg5rRkRgFBtbfYq"
},
"africa": {
"private": "https://drive.google.com/drive/folders/1I4-mVhhACPqkLd_qRyJdzsaGk8L3sRAW",
"public": null
},
"agama": {
"private": "https://drive.google.com/drive/folders/11rdItNqaUYhV3KbVGS6XR72HLeWM3d86",
"public": "https://drive.google.com/drive/folders/1-M69Vbs3VSd2t_oVIwWA2FB_xQJgkQ0G"
@@ -655,6 +659,10 @@
"private": "https://drive.google.com/drive/folders/1-olGBHPSRLpaUWzc6HKigQWNvhTbmnAN",
"public": "https://drive.google.com/drive/folders/1Tl00oBB99bwfziCr28UMoVsCUz-eflbC"
},
"prisons": {
"private": "https://drive.google.com/drive/folders/1aj351-xKNYc6KHf4ls1XEAWa5Tde9-7R",
"public": null
},
"problems": {
"private": "https://drive.google.com/drive/folders/1_q1-tCU0xlm77ihFDbeEoRA9UIr1Zoj0",
"public": "https://drive.google.com/drive/folders/11dOhsC5wdbK_SZv8AEPPwi2sAC1jLS6u"
@@ -727,6 +735,10 @@
"private": "https://drive.google.com/drive/folders/1LxszAz8qWnqRHvMmW9xlMnLn0OtMsRge",
"public": "https://drive.google.com/drive/folders/1-9QuCW971aLUSHBMwcUZw1qXB4MziCJN"
},
"singapore": {
"private": "https://drive.google.com/drive/folders/1c_w5emc9fXlcNXm11qBwxIIkcFGItNH6",
"public": null
},
"social": {
"private": "https://drive.google.com/drive/folders/1I8kQJMTjT_79aVtwa5RR0xXamscmet3L",
"public": "https://drive.google.com/drive/folders/1HxSx2Qcz3WhKBP7m3l4YTGaYGCGuTNF1"
2 changes: 1 addition & 1 deletion _tags/problems.md
Original file line number Diff line number Diff line change
@@ -31,5 +31,5 @@ big_height: 4000
big_width: 6000
---

*Vayama* is the application of effort to overcome our problems via overcoming the unwholesome and encouraging the wholesome qualities within ourselves.
*Vayama* is the application of effort to overcome our problems by surmounting the unwholesome and encouraging the wholesome qualities within ourselves.

2 changes: 1 addition & 1 deletion _tags/tantric-roots.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Late Indian Buddhism"
status: unpublished
parents: [tantric, roots, mahayana-roots]
parents: [tantric, mahayana-roots]
---

The historical roots of Buddhist Tantra.
18 changes: 12 additions & 6 deletions scripts/archivedotorg.py
Original file line number Diff line number Diff line change
@@ -48,21 +48,27 @@ def last_archived_datetime(url):
return datetime.strptime(timestamp, '%Y%m%d%H%M%S')

def extract_archiveorg_id(item):
match = re.search(r'https?:\/\/archive.org\/details\/([a-z0-9_-]+)\/?', item)
match = re.search(r'https?:\/\/archive.org\/details\/([\.a-zA-Z0-9_-]+)\/?', item)
if match:
return match.groups()[0]
return None

def search_archiveorg_lending_library(query):
return archive_org_session.get("https://archive.org/advancedsearch.php", params={
"q": f"collection:inlibrary AND language:eng AND {query}",
"q": f"(collection:JaiGyan OR collection:inlibrary) AND language:(san OR eng) AND {query}",
"sort": "lending___available_to_borrow desc, loans__status__max_lendable_copies desc, lending___max_lendable_copies desc",
"rows": 12,
"output": "json"
}).json()['response']

def is_doc_sane_for_work(doc, workinfo):
return doc['imagecount'] >= workinfo['pages'] and doc['year'] >= workinfo['year'] and doc['identifier'] not in ARCHIVEID_BLACKLIST
if doc['identifier'] in ARCHIVEID_BLACKLIST:
return False
if 'imagecount' in doc and doc['imagecount'] < workinfo['pages']:
return False
if 'year' in doc and doc['year'] < workinfo['year']:
return False
return True

class _AO_SearchStrat(object):
def __init__(self, workinfo):
@@ -101,8 +107,8 @@ def get_response(self):
author = " ".join(filter(lambda w: len(w)>2, self.info['authors'][0].split("-")[0].split(" ")))
if author == 'tnh':
author = "Thich Nhat Hanh"
print(f"Searching works by title=\"{title}\" and author=\"{author}\" instead...")
return search_archiveorg_lending_library(f"title:({title}) AND creator:({author})")
print(f"Searching works matching \"{title} {author}\" instead...")
return search_archiveorg_lending_library(f"title:({title}) AND {author}")

def find_lendable_archiveorg_url_for_metadata(workinfo):
print(f"Searching Archive.org for lendable copies of \"{workinfo['title']}\"...")
@@ -119,7 +125,7 @@ def find_lendable_archiveorg_url_for_metadata(workinfo):
print("But none of those seem suitable...")
if len(docs) >= 1:
doc = docs[0]
print(f"Going with \"{doc['title']}\" by \"{doc.get('creator', 'None')}\" ({doc['year']})")
print(f"Going with \"{doc['title']}\" by \"{doc.get('creator', 'None')}\" ({doc.get('year') or doc.get('publicdate')[:4]})")
return f"https://archive.org/details/{doc['identifier']}/mode/1up"
print("Unable to find a suitable copy :(")
return None

0 comments on commit fb6e5b7

Please sign in to comment.