Skip to content

Quran verse references #1

@faisalcodes

Description

@faisalcodes

If there are references to Quran verses in the hadith text (arabic or translation), they should be converted in the following format -

<ref chapter="{chapter_no}" verses="{verses}">{Preview text}</ref>

The converted syntax is to be used with JSON, so the proper escaping of quotes etc. should also be done.

Syntax

  • For single verse: <ref chapter="75" verses="14">75:14</ref>
  • For verse range: <ref chapter="75" verses="16-17">75:16-17</ref>
  • For multiple verses: <ref chapter="75" verses="11,17,25">verses 75:11, 75:17, 75:25</ref>

Example

Original text

...the ability to recite it (the Quran)' (75:16-17) which means that Allah will make him...

Converted text

...the ability to recite it (the Quran)' <ref chapter=\"75\" verses=\"16-17\">(75:16-17)</ref> which means that Allah will make him...

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions