primary: numbered-verses
rules:
  numbered-verses:
    rule_ar: نعدّ رسم القاف في سورة ق وفي سورة الشورى، والعين والسين في الشورى، في
      الآيات المرقّمة ومعها حروف الفاتحة، والحرف المشدّد يُعدّ مرّةً واحدة.
    targets:
      القاف في ق:
        unit: letter
        match: ق
        scope:
        - 50
      القاف في الشورى:
        unit: letter
        match: ق
        scope:
        - 42
      العين في الشورى:
        unit: letter
        match: ع
        scope:
        - 42
      السين في الشورى:
        unit: letter
        match: س
        scope:
        - 42
  with-headings:
    rule_ar: نعدّ الحروف نفسها، ونضيف إلى كلّ سورةٍ البسملة المكتوبة في رأسها.
    targets:
      القاف في ق:
        unit: letter
        match: ق
        scope:
        - 50
        headings: true
      القاف في الشورى:
        unit: letter
        match: ق
        scope:
        - 42
        headings: true
      العين في الشورى:
        unit: letter
        match: ع
        scope:
        - 42
        headings: true
      السين في الشورى:
        unit: letter
        match: س
        scope:
        - 42
        headings: true
  without-openings:
    rule_ar: نعدّ الحروف نفسها في الآيات المرقّمة، ونترك القاف الفاتحة في أوّل سورة
      ق وآية «عسق» في أوّل الشورى.
    targets:
      القاف في ق:
        unit: letter
        match: ق
        scope:
        - 50
        sense:
          exclude:
          - '50:1:1'
      القاف في الشورى:
        unit: letter
        match: ق
        scope:
        - 42
        sense:
          exclude:
          - '42:2'
      العين في الشورى:
        unit: letter
        match: ع
        scope:
        - 42
        sense:
          exclude:
          - '42:2'
      السين في الشورى:
        unit: letter
        match: س
        scope:
        - 42
        sense:
          exclude:
          - '42:2'
