8000 Tajweed support · Issue #62 · fawazahmed0/quran-api · GitHub
[go: up one dir, main page]

Skip to content

Tajweed support #62

Open
Open

Description

@bdiouih

Esalam Alaikum

I know this subject has been thoroughly detailed in the following issue, with all the possible technical possibilities: #12

But, unless I'm wrong, it is still not supported.

I believe something like this simply works (tested in Firefox and Brave):

<p>
  <span>مَٰ</span><span style="color: gray;">لِ</span><span>كِ يَوْمِ ٱلدِّي</span><span style="color: red;">نِ</span> 	
</p>

So the only issue for me is to have the tajweed information in the Quran edition.

For instance, for my needs, I need tajweed data integrated (ideally) in these editions:

ara_quranuthmanihaf : "Quran Uthmani Hafs"
ara_quranwarsh : "Quran Warsh"
ara-quranqaloon : "Quran Qaloon"

Is it possible? Can I found the information elsewhere?

Baraka allahu fik for your very useful project

Activity

  1. bdiouih commented on Jul 13, 2025

    @bdiouih
    Author

    Esalam Alaikum

    Can you please help me with issue ?

    Baraka allahu fik

  2. fawazahmed0 commented on Jul 13, 2025

    @fawazahmed0
    Owner

    you can try quran cloud

  3. bdiouih commented on Jul 14, 2025

    @bdiouih
    Author

    Thank you for your reply. This should be indeed helpful.

    Concerning my request here:

    I need tajweed data integrated (ideally) in these editions:

    ara_quranuthmanihaf : "Quran Uthmani Hafs"
    ara_quranwarsh : "Quran Warsh"
    ara-quranqaloon : "Quran Qaloon"

    Do you think, I can find this information somewhere?
    Since (if I'm not mistaken), this does'nt seem to be available neither in your excellent library nor alquran.cloud

    Thank you very much

  4. fawazahmed0 commented on Jul 14, 2025

    @fawazahmed0
    Owner

    For Uthmani Script, you can use this and parse it using tajweed guide provided by quran.cloud.
    For Warsh & Qaloon, I don't think tajweed data is available anywhere.

  5. bdiouih commented on Jul 17, 2025

    @bdiouih
    Author

    Thank you for your answer.
    This is indeed what I thought.
    I hope someone can opensource available Warsh & Qaloon data.

  6. bdiouih commented on Oct 5, 2025

    @bdiouih
    Author

    I used this excellent Quran API in a project and have successfully implemented a Tajweed-colored Quran text renderer using the data from this API.

    You can see it in action in this Android application: iqraa

    And here's a screenshot:
    Tajweed Iqraa Rayen Soft

    The implementation is a pure JavaScript class that takes the plain Quran text (from this API) and processes it to output HTML with appropriate CSS classes for different Tajweed rules. This makes it highly portable for use in web apps, React Native, or—as in my case—embedded in an Android WebView.

    Key Features of the Implementation:

    • Rule-Based Coloring: Applies distinct, customizable colors for rules like Ghunnah, Ikhfa, Idgham, Qalqalah, etc.
    • CSS-Driven: Easy to theme and customize the appearance without changing the logic.
    • Framework Agnostic: The core class is vanilla JS, so it can be integrated into any front-end stack.

    I believe this could be a valuable addition to the ecosystem and would be happy to open-source the code if there is enough interest from the community.

    For anyone searching online:

    • "Tajweed Quran JavaScript"
    • "Colored Quran text implementation"
    • "Quran API Tajweed highlighting"
    • "Open source Tajweed library"

    If you're working on a similar feature or are interested in using this code, please reply to this comment or give it a 👍. This will help gauge interest for the maintainers and me.

    A big thank you to @fawazahmed0 for providing the foundational API that makes such projects possible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0