Skip to content

feat: Scanned Islamic book page analysis module - #277

Open
Mukhtar003 wants to merge 3 commits into
Deen-Bridge:devfrom
Mukhtar003:fix/issue-235
Open

feat: Scanned Islamic book page analysis module#277
Mukhtar003 wants to merge 3 commits into
Deen-Bridge:devfrom
Mukhtar003:fix/issue-235

Conversation

@Mukhtar003

Copy link
Copy Markdown

Summary

  • Implement OCR-based text extraction optimized for Arabic Islamic texts
  • Add layout detection for different manuscript regions (headers, body, footnotes, margins)
  • Extract and identify Quranic references with surah/ayah identification
  • Recognize Hadith chains (Isnad) and scholarly citations
  • FastAPI router at /page-analysis/analyze

Features

  • PageRegion dataclass with coordinates, text, and region type
  • QuranicReference extraction with surah, ayah, and Arabic/transliteration text
  • HadithReference with Isnad chain detection
  • PageAnalysisResult with layout info, extracted references, and confidence scores
  • Support for diacritics preservation and reference extraction options

Test Plan

  • Test page upload with various scanned manuscript formats
  • Verify Quranic reference extraction accuracy
  • Test Hadith chain recognition
  • Validate layout detection for different manuscript styles

Closes #235

🤖 Generated with Claude Code

zeemscript and others added 3 commits August 17, 2026 12:15
Corrected phrasing in the contributing section regarding participation in the Stellar Drips Wave bounty program.
…idge#271)

* Add two-tier cache with scope isolation and token quota tracker

* Integrate two-tier cache and rate limiting into chat endpoints

* Add default gemini_api_key for test compatibility

* Fix datetime UTC import for Python 3.10 compatibility

* Add unit tests for scope isolation, exact cache, and token quota tracker

* Add integration tests for quota enforcement and oversize rejection

* Fix ruff linting errors

* Fix Optional type annotation for Python 3.10 compatibility

* Fix formatting issues with ruff format

* Fix remaining ruff linting errors

* Ignore UP042 and UP017 for Python 3.10 compatibility

* Fix mypy type annotations and ignore store.py errors
- Implement OCR-based text extraction for Arabic Islamic texts
- Add layout detection (headers, body, footnotes, margins)
- Extract Quranic references with surah/ayah identification
- Recognize Hadith chains (Isnad) and scholarly citations
- FastAPI router at /page-analysis/analyze

Closes Deen-Bridge#235

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Aug 24, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: cb425e45-ef3e-47ba-a99b-77b1d5dbf03f


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@zeemscript

Copy link
Copy Markdown
Contributor

Strict review blocker: this branch conflicts with the base branch. Please rebase and resolve conflicts before requesting merge.

1 similar comment
@zeemscript

Copy link
Copy Markdown
Contributor

Strict review blocker: this branch conflicts with the base branch. Please rebase and resolve conflicts before requesting merge.

@zeemscript

Copy link
Copy Markdown
Contributor

Strict review blocker: this branch conflicts with the base branch and/or changes have been requested. Please rebase, resolve conflicts, and address requested changes before requesting merge.

@zeemscript

Copy link
Copy Markdown
Contributor

@Mukhtar003 this PR has merge conflicts with the main branch. Please resolve the conflicts (merge main in or rebase) and push the fix so it can be merged. 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

Successfully merging this pull request may close these issues.

3 participants