Skip to content

feat: add Arabic search ranges and Android highlighting - #4

Merged
Khalid567-CPU merged 17 commits into
developfrom
feature/search-ranges-highlighting
Aug 2, 2026
Merged

feat: add Arabic search ranges and Android highlighting#4
Khalid567-CPU merged 17 commits into
developfrom
feature/search-ranges-highlighting

Conversation

@Khalid567-CPU

Copy link
Copy Markdown
Owner

Summary

Implements the core ArabicKit 0.2.0 search-range and highlighting work tracked in #3.

Included

  • ArabicMatchRange for original-source offsets.
  • Normalization with UTF-16 source index mapping.
  • ArabicSearch.findFirst(...).
  • ArabicSearch.findAll(...).
  • Optional overlapping matches.
  • Correct ranges across diacritics, Quranic marks, tatweel, alef normalization, alef maksura normalization, whitespace normalization, and Latin lowercase expansion.
  • Android SpannableString highlighting helpers.
  • Updated XML sample app.
  • Comprehensive search-range unit tests.
  • English and Arabic documentation updates.

Local verification

  • clean verifyFoundation :arabickit:assembleRelease
  • Result: BUILD SUCCESSFUL
  • Gradle exit code: 0
  • Generated AAR: arabickit-release.aar (20,635 bytes)
  • Working tree clean.

Closes #3

@Khalid567-CPU
Khalid567-CPU merged commit e5ce7fb into develop Aug 2, 2026
1 check passed
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.

1 participant