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

full build issue #52

Open
ralaska opened this issue Sep 11, 2023 · 4 comments
Open

full build issue #52

ralaska opened this issue Sep 11, 2023 · 4 comments

Comments

@ralaska
Copy link

ralaska commented Sep 11, 2023

Thank you for the wonderful Bible reference parser.

I'm currently working on building something comprehensive. When I use the Perl script add_cross_lang.pl full, it works as expected and updates data.txt under src/full folder.

Next, I ran the Perl script 01.add_lang.pl full and encountered the following error messages:

Splitting Exod by length...
Deep recursion on subroutine "main::make_book_regexp" at ./01.add_lang.pl line 335.
Exod 44
Deep recursion on subroutine "main::validate_node_regexp" at ./01.add_lang.pl line 242.

Could you please help me understand what might be causing this issue?

I appreciate your assistance!

@ralaska
Copy link
Author

ralaska commented Sep 11, 2023

I have submitted a pull request for the Persian language on GitHub. You can find it here:

#51

@ralaska
Copy link
Author

ralaska commented Sep 11, 2023

I also tested the original code. When I ran 01.add_lang.pl full after add_cross_lang.pl full, it went into an infinite recursion loop. Here's the message:

Splitting Exod by length...
Deep recursion on subroutine "main::make_book_regexp" at ./01.add_lang.pl line 334.
Exod 44
Deep recursion on subroutine "main::validate_node_regexp" at ./01.add_lang.pl line 242.

@PepLamb
Copy link

PepLamb commented Sep 12, 2023

Thank you, @ralaska, for your contribution to the Farsi/Persian language fa. Were you able to fix this issue? Currently, we rely on the Bible-Passage-Reference-Parser on website (https://bible.peplamb.com), but Persian-speaking users are experiencing difficulties because they are required to input text in English. Additionally, not all Urdu books (ur) have similar pronunciations to Persian (fa). If you can create the 01.add_lang.pl full file and share the minified javascript version, it would be a great help to us.

@ralaska
Copy link
Author

ralaska commented Sep 16, 2023

Thank you for reaching out. I've been diligently working to resolve the issue with the 01.add_lang.pl full script (both in its original form from @openbibleinfo on Mac Apple Silicon Chip and also with fa work I have been working on). As I mentioned, I encountered the infinite recursion problem which seems to be affecting the parsing of certain references. Unfortunately, I haven't found a definitive solution to this problem yet.

I understand the importance of having a functional Persian/Farsi language reference parser, especially considering the differences between Urdu and Persian pronunciations which led me to start working on this project to support some on our applications that relay on this amazing reference parser. I would greatly appreciate any insights or assistance from the community and, if possible, from @openbibleinfo. If we can address this issue collectively, it would benefit a larger user base.

In the meantime, I will continue to investigate this and will keep you posted on any progress I make. If anyone else in the community has encountered a similar issue or has insights into a potential fix, I'm all ears.

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

2 participants