Skip to content
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

Hello I need to run this code in another text version #4

Open
engeslamsaad opened this issue Oct 19, 2019 · 4 comments
Open

Hello I need to run this code in another text version #4

engeslamsaad opened this issue Oct 19, 2019 · 4 comments

Comments

@engeslamsaad
Copy link

Hello,
I run this code with same text from tanzil.net (with aya numbers ) and i got empty annotations for whole ayas
Do i make any changes or what ?
Here is sample output
{
"surah": 2,
"ayah": 13,
"annotations": []
},
{
"surah": 2,
"ayah": 14,
"annotations": []
},

@bekzattt
Copy link

bekzattt commented Oct 19, 2019

Simplest way of solving this I think would be just using original file in repo
tajweed.hafs.uthmani-pause-sajdah.json

and shifting all annotations positions by length of additional text that comes before actual ayah.

Example:
Quran text line: “[255][arabictext]”
Shift all annotations for that aya by length 3

Hope it helps.

@engeslamsaad
Copy link
Author

@bekzattt i need to run same code to same text
but it didn't work btw

@cpfair
Copy link
Owner

cpfair commented Oct 26, 2019

The current decision trees rely on the various pronunciation markers only present in the Uthmani text, so running it on other versions of the text lacking the markers won't work (or will be inaccurate).

You may be able to map the rule boundaries from the text used in this repo to your own text based on the basic Arabic characters, ignoring tashkeel etc. (only look at the Lo Unicode class), though this will leave some rules stranded without a mapping.

@engeslamsaad
Copy link
Author

Hello,
will the script work with another different text Uthmani version from tanzil.net
Thanks

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

No branches or pull requests

3 participants