Function findRangeAroundSurahAyah

  • Finds a range of ayahs around a given ayah based on the specified mode.

    Parameters

    • surah: Surah

      The surah number (1-114)

    • ayah: AyahNo

      The ayah number within the surah

    • mode: RangeMode

      The range mode: "juz", "surah", "ayah", "page", "ruku" or "all"

    Returns AyahRange

    A tuple containing the start and end ayah IDs of the range