Skip to content

feat: Add Damdami taksal bani variations to nitnem dasam granth banis#1920

Open
BalkiratS wants to merge 9 commits intoshabados:mainfrom
BalkiratS:damdami_taksal_bani
Open

feat: Add Damdami taksal bani variations to nitnem dasam granth banis#1920
BalkiratS wants to merge 9 commits intoshabados:mainfrom
BalkiratS:damdami_taksal_bani

Conversation

@BalkiratS
Copy link
Copy Markdown

Summary

This PR updates the following Banis by adding Damdami Taksal Variations.

  • Jaap Sahib
  • Chaupai Sahib
  • Tav Prasad Savaiye
  • Tav Prasad Savaiye (Deenan Ki)

A new asset source has been added to represent Damdami Taksal Sundar Gutka. Only the lines with variations have been updated. Additionally, a new Taksal Version of Chaupai Sahib have been added to Banis list.

Damdami Taksal Sundar Gutka Source used: https://archive.org/details/sundar-gutka-damdami-taksal-complete_202308/mode/2up

@harjot1singh
Copy link
Copy Markdown
Member

Thank you for the PR! We'll review the contents shortly - if you'd be able to rewrite the commits to specify data: <message> format, since we use a custom data type for content changes!

Copy link
Copy Markdown
Member

@bhajneet bhajneet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@BalkiratS Thank you for your first PR! Please use the correct page/line as shown in the PDF. If you don't want to do that, please remove those fields. I don't personally care what you name your commits in this PR, as we will ultimately squish it into one commit later.

@harjot1singh we need to discuss the vastly same data sources (aside from minor spelling disparities) it's mostly just vishram placements. could we have a "variants" section that primary sources reference? something like the following:

[[content]]
source = "SDGR"
type = "meta"
page = 7
line = 4
data = [
"ਕਿ ਸਰਬੱਤ੍ਰ ਜਾਪਿਯੈ ॥",
"ਕਿ, ਸਰਬਤ੍ਰ ਜਾਪਯੈ ॥",
]

[[content]]
asset = "DGDG"
type = "primary"
data = 1

[[content]]
asset = "DDTK"
type = "primary"
data = 2

[[content]]
asset = "DSKO"
type = "translation"
language = "en"
data = "That Thou art remembered everywhere!"

[[content]]
asset = "RSJD"
type = "translation"
language = "pa"
data = "ਤੂੰ ਸਭ ਥਾਂਵਾਂ ਤੇ ਜਪਿਆ ਜਾਂਦਾ ਹੈਂ,"

TOML has ordered arrays and doesn't care about indents or whitespace and encourages trailing commas. If we keep adding sources and they all look largely the same, this will save us a lot of space. Can also do something like ignoring vishraman in the primary (but that would be more annoying to dictate on each primary type imo).

Edit: There should be some bot that checks PRs to make sure no one enters a variant in the middle (and that they're always appended to the last of a list), as well as to make sure that all variants are unique.

Edit 2: It also makes sense to have a bot make sure that all primary types are at the top (below the first block for variants)

Edit 3: It could be named "meta", as the page/line info is also supposed to be per asset/PDF. So if the meta section existed, it would place the "page/line" in whatever the chosen "standard" is (for example to reference SGGS ji saroops). I've updated my toml exaple above to match that. This way a primary type can use page/line of the actual PDF/files that it's showing in physical format. And we can use it for bound box to highlight files exactly where the line is.

Comment thread collections/assets/DDTK.toml Outdated
Comment thread collections/assets/DDTK.toml Outdated
Comment thread collections/banis/CPDT.toml
@bhajneet
Copy link
Copy Markdown
Member

@harjot1singh another question, here bani for chaupai sahib is added as a new bookmark, should bookmarks have variants similar to lines?

@harjot1singh
Copy link
Copy Markdown
Member

@bhajneet re the variants, we'll have to discuss this in more detail. I think we originally decided that vishraams should just be tied to assets for now, as published. Hmm.

And yes, we need to add checks to the PR (at least a build) so that there's general feedback (think there are some tests too)

@bhajneet
Copy link
Copy Markdown
Member

@bhajneet re the variants, we'll have to discuss this in more detail. I think we originally decided that vishraams should just be tied to assets for now, as published. Hmm.

And yes, we need to add checks to the PR (at least a build) so that there's general feedback (think there are some tests too)

Add variants for primary type #1921

@bhajneet
Copy link
Copy Markdown
Member

My only "blocker" is that we remove the repeated "page"/"line" from the new primary type added

@BalkiratS
Copy link
Copy Markdown
Author

@bhajneet I have added the commit to remove the page/line from the new primary lines.

@bhajneet
Copy link
Copy Markdown
Member

@BalkiratS I'm on my final review, and I cannot merge this for the following reason: the data doesn't seem to match the PDF you've linked. The pauri numbers are all different. See here for the data you've added and compare to screenshot:

image

ਕਬ੍ਯੋ ਬਾਚ ਬੇਨਤੀ ॥ ਚੌਪਈ ॥
ਹਮਰੀ ਕਰੋ; ਹਾਥ ਦੈ ਰੱਛਾ ॥
ਪੂਰਨ ਹੋਇ; ਚਿਤ ਕੀ ਇੱਛਾ ॥
ਤਵ ਚਰਨਨ; ਮਨ ਰਹੈ ਹਮਾਰਾ ॥
ਅਪਨਾ ਜਾਨ; ਕਰੋ ਪ੍ਰਤਿਪਾਰਾ ॥੩੭੭॥
ਹਮਰੇ ਦੁਸਟ ਸਭੈ; ਤੁਮ ਘਾਵਹੁ ॥
ਆਪੁ ਹਾਥ ਦੈ; ਮੋਹਿ ਬਚਾਵਹੁ ॥
ਸੁਖੀ ਬਸੈ; ਮੋਰੋ ਪਰਿਵਾਰਾ ॥
ਸੇਵਕ ਸਿਖ੍ਯ ਸਭੈ; ਕਰਤਾਰਾ ॥੩੭੮॥
ਮੋ ਰੱਛਾ; ਨਿਜੁ ਕਰ ਦੈ ਕਰਿਯੈ ॥
ਸਭ ਬੈਰਨ ਕੌ; ਆਜ ਸੰਘਰਿਯੈ ॥
ਪੂਰਨ ਹੋਇ; ਹਮਾਰੀ ਆਸਾ ॥
ਤੋਰਿ ਭਜਨ ਕੀ; ਰਹੈ ਪਯਾਸਾ ॥੩੭੯॥
ਤੁਮਹਿ ਛਾਡਿ; ਕੋਈ ਅਵਰ ਨ ਧ੍ਯਾਊਂ ॥
ਜੋ ਬਰ ਚਾਹੌਂ; ਸੁ ਤੁਮ ਤੇ ਪਾਊਂ ॥
ਸੇਵਕ ਸਿੱਖ੍ਯ ਹਮਾਰੇ; ਤਾਰੀਅਹਿ ॥
ਚੁਨਿ ਚੁਨਿ ਸਤ੍ਰ ਹਮਾਰੇ; ਮਾਰੀਅਹਿ ॥੩੮੦॥
ਆਪੁ ਹਾਥ ਦੈ; ਮੁਝੈ ਉਬਰਿਯੈ ॥
ਮਰਨ ਕਾਲ ਕਾ ਤ੍ਰਾਸ; ਨਿਵਰਿਯੈ ॥
ਹੂਜੋ ਸਦਾ; ਹਮਾਰੇ ਪੱਛਾ ॥
ਸ੍ਰੀ ਅਸਿਧੁਜ; ਜੂ ਕਰਿਯਹੁ ਰੱਛਾ ॥੩੮੧॥
ਰਾਖਿ ਲੇਹੁ ਮੁਹਿ; ਰਾਖਨਹਾਰੇ ॥
ਸਾਹਿਬ; ਸੰਤ ਸਹਾਇ ਪਯਾਰੇ ॥
ਦੀਨ ਬੰਧੁ; ਦੁਸਟਨ ਕੇ ਹੰਤਾ ॥
ਤੁਮ ਹੋ, ਪੁਰੀ ਚਤੁਰਦਸ; ਕੰਤਾ ॥੩੮੨॥
ਕਾਲ ਪਾਇ; ਬ੍ਰਹਮਾ ਬਪੁ ਧਰਾ ॥
ਕਾਲ ਪਾਇ; ਸਿਵਜੂ ਅਵਤਰਾ ॥
ਕਾਲ ਪਾਇ ਕਰਿ; ਬਿਸਨ ਪ੍ਰਕਾਸਾ ॥
ਸਕਲ ਕਾਲ ਕਾ; ਕੀਆ ਤਮਾਸਾ ॥੩੮੩॥
ਜਵਨ ਕਾਲ; ਜੋਗੀ ਸਿਵ ਕੀਓ ॥
ਬੇਦ ਰਾਜ; ਬ੍ਰਹਮਾ ਜੂ ਥੀਓ ॥
ਜਵਨ ਕਾਲ; ਸਭ ਲੋਕ ਸਵਾਰਾ ॥
ਨਮਸਕਾਰ ਹੈ ਤਾਹਿ; ਹਮਾਰਾ ॥੩੮੪॥
ਜਵਨ ਕਾਲ; ਸਭ ਜਗਤ ਬਨਾਯੋ ॥
ਦੇਵ ਦੈਤ; ਜੱਛਨ ਉਪਜਾਯੋ ॥
ਆਦਿ ਅੰਤਿ; ਏਕੈ ਅਵਤਾਰਾ ॥
ਸੋਈ ਗੁਰੂ; ਸਮਝਿਯਹੁ ਹਮਾਰਾ ॥੩੮੫॥
ਨਮਸਕਾਰ, ਤਿਸਹੀ ਕੋ; ਹਮਾਰੀ ॥
ਸਕਲ ਪ੍ਰਜਾ; ਜਿਨ ਆਪ ਸਵਾਰੀ ॥
ਸਿਵਕਨ ਕੋ; ਸਵਗੁਨ ਸੁਖ ਦੀਓ ॥
ਸੱਤ੍ਰਨ ਕੋ; ਪਲ ਮੋ ਬਧ ਕੀਓ ॥੩੮੬॥
ਘਟ ਘਟ ਕੇ; ਅੰਤਰ ਕੀ ਜਾਨਤ ॥
ਭਲੇ ਬੁਰੇ ਕੀ; ਪੀਰ ਪਛਾਨਤ ॥
ਚੀਟੀ ਤੇ; ਕੁੰਚਰ ਅਸਥੂਲਾ ॥
ਸਭ ਪਰ ਕ੍ਰਿਪਾ ਦ੍ਰਿਸਟਿ ਕਰਿ; ਫੂਲਾ ॥੩੮੭॥
ਸੰਤਨ ਦੁਖ ਪਾਏ ਤੇ; ਦੁਖੀ ॥
ਸੁਖ ਪਾਏ ਸਾਧਨ ਕੇ; ਸੁਖੀ ॥
ਏਕ ਏਕ ਕੀ; ਪੀਰ ਪਛਾਨੈ ॥
ਘਟ ਘਟ ਕੇ; ਪਟ ਪਟ ਕੀ ਜਾਨੈ ॥੩੮੮॥
ਜਬ ਉਦਕਰਖ ਕਰਾ; ਕਰਤਾਰਾ ॥
ਪ੍ਰਜਾ ਧਰਤ; ਤਬ ਦੇਹ ਅਪਾਰਾ ॥
ਜਬ ਆਕਰਖ; ਕਰਤ ਹੋ ਕਬਹੂੰ ॥
ਤੁਮ ਮੈਂ ਮਿਲਤ; ਦੇਹ ਧਰ ਸਭਹੂੰ ॥੩੮੯॥
ਜੇਤੇ ਬਦਨ; ਸ੍ਰਿਸਟਿ ਸਭ ਧਾਰੈ ॥
ਆਪੁ ਆਪਨੀ ਬੂਝਿ; ਉਚਾਰੈ ॥
ਤੁਮ ਸਭ ਹੀ ਤੇ; ਰਹਤ ਨਿਰਾਲਮ ॥
ਜਾਨਤ ਬੇਦ ਭੇਦ; ਅਰੁ ਆਲਮ ॥੩੯੦॥
ਨਿਰੰਕਾਰ ਨ੍ਰਿਬਿਕਾਰ; ਨ੍ਰਿਲੰਭ ॥
ਆਦਿ ਅਨੀਲ; ਅਨਾਦਿ ਅਸੰਭ ॥
ਤਾ ਕਾ; ਮੂੜ੍ਹ ਉਚਾਰਤ ਭੇਦਾ ॥
ਜਾ ਕੋ ਭੇਵ; ਨ ਪਾਵਤ ਬੇਦਾ ॥੩੯੧॥
ਤਾ ਕੌ; ਕਰਿ ਪਾਹਨ ਅਨੁਮਾਨਤ ॥
ਮਹਾ ਮੂੜ੍ਹ; ਕਛੁ ਭੇਦ ਨ ਜਾਨਤ ॥
ਮਹਾਂਦੇਵ ਕੌ; ਕਹਤ ਸਦਾ ਸਿਵ ॥
ਨਿਰੰਕਾਰ ਕਾ; ਚੀਨਤ ਨਹਿ ਭਿਵ ॥੩੯੨॥
ਆਪੁ ਆਪੁਨੀ; ਬੁਧਿ ਹੈ ਜੇਤੀ ॥
ਬਰਨਤ ਭਿੰਨ ਭਿੰਨ; ਤੁਹਿ ਤੇਤੀ ॥
ਤੁਮਰਾ ਲਖਾ ਨ ਜਾਇ; ਪਸਾਰਾ ॥
ਕਿਹ ਬਿਧਿ ਸਜਾ; ਪ੍ਰਥਮ ਸੰਸਾਰਾ ॥੩੯੩॥
ਏਕੈ ਰੂਪ; ਅਨੂਪ ਸਰੂਪਾ ॥
ਰੰਕ ਭਯੋ; ਰਾਵ ਕਹੀ ਭੂਪਾ ॥
ਅੰਡਜ ਜੇਰਜ; ਸੇਤਜ ਕੀਨੀ ॥
ਉਤਭੁਜ ਖਾਨਿ; ਬਹੁਰਿ ਰਚਿ ਦੀਨੀ ॥੩੯੪॥
ਕਹੂੰ ਫੂਲਿ; ਰਾਜਾ ਹ੍ਵੈ ਬੈਠਾ ॥
ਕਹੂੰ ਸਿਮਟਿ; ਭਯੋ ਸੰਕਰ ਇਕੈਠਾ ॥
ਸਿਗਰੀ ਸ੍ਰਿਸਟਿ; ਦਿਖਾਇ ਅਚੰਭਵ ॥
ਆਦਿ ਜੁਗਾਦਿ; ਸਰੂਪ ਸੁਯੰਭਵ ॥੩੯੫॥
ਅਬ ਰੱਛਾ ਮੇਰੀ; ਤੁਮ ਕਰੋ ॥
ਸਿੱਖ੍ਯ ਉਬਾਰਿ; ਅਸਿੱਖ੍ਯ ਸੰਘਰੋ ॥
ਦੁਸਟ ਜਿਤੇ; ਉਠਵਤ ਉਤਪਾਤਾ ॥
ਸਕਲ ਮਲੇਛ; ਕਰੋ ਰਣ ਘਾਤਾ ॥੩੯੬॥
ਜੇ ਅਸਿਧੁਜ; ਤਵ ਸਰਨੀ ਪਰੇ ॥
ਤਿਨ ਕੇ ਦੁਸਟ; ਦੁਖਿਤ ਹ੍ਵੈ ਮਰੇ ॥
ਪੁਰਖ ਜਵਨ; ਪਗ ਪਰੇ ਤਿਹਾਰੇ ॥
ਤਿਨ ਕੇ; ਤੁਮ ਸੰਕਟ ਸਭ ਟਾਰੇ ॥੩੯੭॥
ਜੋ ਕਲਿ ਕੋ; ਇਕ ਬਾਰ ਧਿਐਹੈ ॥
ਤਾ ਕੇ; ਕਾਲ ਨਿਕਟਿ ਨਹਿ ਐਹੈ ॥
ਰੱਛਾ ਹੋਇ ਤਾਹਿ; ਸਭ ਕਾਲਾ ॥
ਦੁਸਟ ਅਰਿਸਟ; ਟਰੈਂ ਤਤਕਾਲਾ ॥੩੯੮॥
ਕ੍ਰਿਪਾ ਦ੍ਰਿਸਟਿ; ਤਨ ਜਾਹਿ ਨਿਹਰਿਹੋ ॥
ਤਾ ਕੇ ਤਾਪ; ਤਨਕ ਮਹਿ ਹਰਿਹੋ ॥
ਰਿੱਧਿ ਸਿੱਧਿ; ਘਰ ਮੋ ਸਭ ਹੋਈ ॥
ਦੁਸਟ ਛਾਹ; ਛ੍ਵੈ ਸਕੈ ਨ ਕੋਈ ॥੩੯੯॥
ਏਕ ਬਾਰ; ਜਿਨ ਤੁਮੈ ਸੰਭਾਰਾ ॥
ਕਾਲ ਫਾਸ ਤੇ; ਤਾਹਿ ਉਬਾਰਾ ॥
ਜਿਨ ਨਰ; ਨਾਮ ਤਿਹਾਰੋ ਕਹਾ ॥
ਦਾਰਿਦ ਦੁਸਟ; ਦੋਖ ਤੇ ਰਹਾ ॥੪੦੦॥
ਖੜਗਕੇਤ; ਮੈ ਸਰਣਿ ਤਿਹਾਰੀ ॥
ਆਪੁ ਹਾਥ ਦੈ; ਲੇਹੁ ਉਬਾਰੀ ॥
ਸਰਬ ਠੌਰ; ਮੋ ਹੋਹੁ ਸਹਾਈ ॥
ਦੁਸਟ ਦੋਖ ਤੇ; ਲੇਹੁ ਬਚਾਈ ॥੪੦੧॥
ਕ੍ਰਿਪਾ ਕਰੀ; ਹਮ ਪਰ ਜਗ ਮਾਤਾ ॥
ਗ੍ਰੰਥ ਕਰਾ ਪੂਰਨ; ਸੁਭ ਰਾਤਾ ॥
ਕਿਲਬਿਖ ਸਕਲ ਦੇਹ ਕੋ; ਹਰਤਾ ॥
ਦੁਸਟ ਦੋਖਿਯਨ ਕੋ; ਛੈ ਕਰਤਾ ॥੪੦੨॥
ਸ੍ਰੀ ਅਸਿਧੁਜ; ਜਬ ਭਏ ਦਇਆਲਾ ॥
ਪੂਰਨ ਕਰਾ ਗ੍ਰੰਥ; ਤਤਕਾਲਾ ॥
ਮਨ ਬਾਂਛਤ ਫਲ; ਪਾਵੈ ਸੋਈ ॥
ਦੂਖ ਨ ਤਿਸੈ; ਬਿਆਪਤ ਕੋਈ ॥੪੦੩॥
ਅੜਿੱਲ ॥
ਦੂਖ ਦਰਦ ਭੌ; ਨਿਕਟ ਨ, ਤਿਨ ਨਰ ਕੇ ਰਹੈ ॥
ਹੋ ਜੋ, ਯਾਕੀ ਏਕ ਬਾਰ; ਚੌਪਈ ਕੋ ਕਹੈ ॥੪੦੪॥
ਸੰਬਤ ਸੱਤ੍ਰਹ; ਸਹਸ ਭਣਿੱਜੈ ॥
ਅਰਧ ਸਹਸ; ਫੁਨਿ ਤੀਨਿ ਕਹਿੱਜੈ ॥
ਭਾਦ੍ਰਵ ਸੁਦੀ ਅਸਟਮੀ; ਰਵਿਵਾਰਾ ॥
ਤੀਰ ਸਤੁੱਦ੍ਰਵ; ਗ੍ਰੰਥ ਸੁਧਾਰਾ ॥੪੦੫॥
ਪਾਂਇ ਗਹੇ ਜਬ ਤੇ ਤੁਮਰੇ; ਤਬ ਤੇ ਕੋਊ ਆਂਖ ਤਰੇ ਨਹੀ ਆਨ੍ਯੋ ॥
ਰਾਮ ਰਹੀਮ ਪੁਰਾਨ ਕੁਰਾਨ; ਅਨੇਕ ਕਹੈਂ ਮਤ, ਏਕ ਨ ਮਾਨ੍ਯੋ ॥
ਸਿੰਮ੍ਰਿਿਤ ਸਾਸਤ੍ਰ ਬੇਦ ਸਭੈ; ਬਹੁ ਭੇਦ ਕਹੈਂ, ਹਮ ਏਕ ਨ ਜਾਨ੍ਯੋ ॥
ਸ੍ਰੀ ਅਸਿਪਾਨ ਕ੍ਰਿਪਾ ਤੁਮਰੀ ਕਰਿ; ਮੈ ਨ ਕਹ੍ਯੋ, ਸਭ ਤੋਹਿ ਬਖਾਨ੍ਯੋ ॥੮੬੩॥


It also looks like you didn't do the following lines? VFFW ("ਸੁਨੈ ਗੁੰਗ ਜੋ ਯਾਹਿ; ਸੁ ਰਸਨਾ ਪਾਵਈ ॥") and HUK1 ("ਸੁਨੈ ਮੂੜ ਚਿਤ ਲਾਇ; ਚਤੁਰਤਾ ਆਵਈ ॥"). Because they are the exact same? @harjot1singh we would want this added even if it's the same value, correct?

image

Lastly it looks like there is a unicode issue with the following line: collections/lines/4/4D/4DNZ.toml

data = "ਸਿੰਮ੍ਰਿਿਤ ਸਾਸਤ੍ਰ ਬੇਦ ਸਭੈ; ਬਹੁ ਭੇਦ ਕਹੈਂ, ਹਮ ਏਕ ਨ ਜਾਨ੍ਯੋ ॥"
image

This should be typed ਸਿੰਮ੍ਰਿਤਿ I think. We have to decide where the pair-rara goes. It cannot go on the sihari itself. My suggestion is to go with ਮ੍ਰਿ vs ਤ੍ਰਿ

How were these added? Via OCR or hand typed? Do you know where else this kind of typing issues might have shown up?

@BalkiratS
Copy link
Copy Markdown
Author

@bhajneet Fixed the pauri numbers and the unicode issue. I did not added a new source entry to the lines where the data field is exactly the same. I thought the idea was to only add new content for the variations and not add duplicate data. But if we want to have duplicate lines from different sources I can update my changes. Let me know.

@bhajneet
Copy link
Copy Markdown
Member

Thank you @BalkiratS and if you can also comment on how the data is being added/modified?

@harjot1singh thoughts on duplicate data? I don't think we can assume which sources have missing data vs equal/duplicate data, so I think we have to add it as is (even if it matches)

@BalkiratS
Copy link
Copy Markdown
Author

@bhajneet The data is added by a script, modified by hand. If i see any other unicode issues, ill add the fix, so far I haven't seen any.

@bhajneet
Copy link
Copy Markdown
Member

@bhajneet The data is added by a script, modified by hand. If i see any other unicode issues, ill add the fix, so far I haven't seen any.

Okay, that was what I was wondering. The python script in gurmukhiutils repo has been personally vetted to work in a myriad of cases. It may still not have worked on this string, but was curious what that script would've outputted. I may run this personally and check later to compare outputs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants