QuranReader.ts 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. export enum WordByWordType {
  2. Translation = 'translation',
  3. Transliteration = 'transliteration',
  4. }
  5. export enum ReadingPreference {
  6. Translation = 'translation', // Displays verse by verse with translation
  7. Reading = 'reading', // Displays the Quran text only similar to a physical Quran page without any translations.
  8. }
  9. export enum WordClickFunctionality {
  10. PlayAudio = 'play-audio',
  11. NoAudio = 'no-audio',
  12. }
  13. export enum QuranReaderDataType {
  14. Chapter = 'chapter',
  15. Verse = 'verse',
  16. ChapterVerseRanges = 'chapterVerseRanges',
  17. Ranges = 'ranges',
  18. Tafsir = 'tafsir',
  19. SelectedTafsir = 'selectedTafsir',
  20. Hizb = 'hizb',
  21. Juz = 'juz',
  22. Rub = 'rub',
  23. Page = 'page',
  24. }
  25. export enum QuranFont {
  26. MadaniV1 = 'code_v1',
  27. MadaniV2 = 'code_v2',
  28. Uthmani = 'text_uthmani',
  29. IndoPak = 'text_indopak',
  30. QPCHafs = 'qpc_uthmani_hafs',
  31. Tajweed = 'tajweed',
  32. }
  33. export const FALLBACK_FONT = QuranFont.QPCHafs;
  34. export enum MushafLines {
  35. FifteenLines = '15_lines',
  36. SixteenLines = '16_lines',
  37. }
  38. export enum Mushaf {
  39. QCFV2 = 1,
  40. QCFV1 = 2,
  41. Indopak = 3,
  42. UthmaniHafs = 4,
  43. KFGQPCHAFS = 5,
  44. Indopak15Lines = 6,
  45. Indopak16Lines = 7,
  46. Tajweeed = 11,
  47. }
  48. export const QuranFontMushaf: Record<QuranFont, Mushaf> = {
  49. [QuranFont.MadaniV1]: Mushaf.QCFV1,
  50. [QuranFont.MadaniV2]: Mushaf.QCFV2,
  51. [QuranFont.Uthmani]: Mushaf.UthmaniHafs,
  52. [QuranFont.IndoPak]: Mushaf.Indopak,
  53. [QuranFont.QPCHafs]: Mushaf.KFGQPCHAFS,
  54. [QuranFont.Tajweed]: Mushaf.Tajweeed,
  55. };
  56. export enum WordByWordDisplay {
  57. INLINE = 'inline',
  58. TOOLTIP = 'tooltip',
  59. }
  60. export enum QuranReaderFlow {
  61. QURANIC_CALENDER = 'calendar',
  62. }
  63. export default { ReadingPreference, QuranFont };