-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fixed Sahih Muslim Introduction arabicnumbers #41
base: 1
Are you sure you want to change the base?
Conversation
Thank you brother, but this PR might break things for others who have already implemented the api. |
I don't think so, it would only break if you try to change hadithnumber to a string because its saved as a number. Arabicnumber on the other hand is always saved as a String even if the string contains a number theoretically. For example here: So even if somebody retrieves the object "arabicnumber", he's already forced to obtain it as a string. InshaaAllah! |
well, they will parse that string as float or int, and if it's |
I found some more wrong references. For example this one. It is also book 0 hadith 0 in info.json. The text + hadithnumber of this hadith can only be found in your urd and ben translation. Maybe they used another arabic print ? My suggestion would be to stick to "darussalam and sunnah.com" way of referencing and I will write down all ahadith which cant be found on "darussalam and sunnah.com", so we can batch delete these hadithnumbers later and order the hadithnumbers again. Thats how it looks like rn unedited:
|
I don't intend to delete any hadith ( I usually place the hadiths which does not have proper reference into section 0 ) |
replaced "Introduction" with "0" to prevent parsing issues
Parsing issues should be solved. I replaced "Introduction 1/Introduction 2...." with "0.1/0.2...." One issue remaining:
|
Thank you brother, I will have to think if this will introduce any breaking changes. You need to wait a bit. |
Why don't you fix all these major(code-breaking) bugs/issues in a new/major version-2? Ref.: Semantic versioning |
I added the "arabicnumbers" and the book reference according to sunnah.com
I used the urdu translation as reference to determine where exactly to start in the introduction. I didnt change any "hadithnumber", so the translations should still be referenced correctly if they were correct before.
"arabicnumbers" should always be mentioned to have a consistent json structure and prevent errors, thats why the first "arabicnumber" is an empty string instead of removing the arabicnumber completely.
I already ran infofixer.
I hope there is a way to edit info.json and automatically edit all other related json files. Always changing everything manually after a minor change on info.json would be a pain.
This change is