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...
If there are references to Quran verses in the hadith text (arabic or translation), they should be converted in the following format -
The converted syntax is to be used with JSON, so the proper escaping of quotes etc. should also be done.
Syntax
<ref chapter="75" verses="14">75:14</ref><ref chapter="75" verses="16-17">75:16-17</ref><ref chapter="75" verses="11,17,25">verses 75:11, 75:17, 75:25</ref>Example
Original text
Converted text