{% set dir = gettext("LTR") %} {% set direction = "rtl" if dir == "RTL" else "ltr" %} {% set align = "right" if dir == "RTL" else "left" %}
{% if results.error.code == 0 %} {% if suggestions.error.code == 0 and suggestions.suggest %}

{% trans %} Suggestions: {% endtrans %}

{% for suggestion_key, suggestion_item in suggestions.suggest.items() %}

{{ loop.index }}.
{{ "word" }} | {{ suggestion_key }}
{% for suggestion_sub_item in suggestion_item %}
{{ suggestion_sub_item }}
{% else %}
{{ "no suggestions!" }}
{% endfor %}

{% endfor %}

{% endif %} {% if results.search.interval.total %} {% if results.search.words.global and results.search.words.global.nb_words!=0 %}

{% trans %}Words{% endtrans %}:

{% trans %}words{% endtrans %} | {{ results.search.words.global.nb_words }}
{% trans %}occurances{% endtrans %} | {{ results.search.words.global.nb_matches }}
{% trans %}vocalizations{% endtrans %} | {{ results.search.words.global.nb_vocalizations }}

{% for wordcpt, wordstat in results.search.words.individual.items() %}

{{ wordcpt }}.
{% trans %} word {% endtrans %} | {{ wordstat.word }} {% if wordstat.romanization %} ( {{ wordstat.romanization }} ) {% endif %}
{% trans %}occurances{% endtrans %} | {{ wordstat.nb_matches }}
{% trans %} ayates{% endtrans %} | {{ wordstat.nb_ayas }}

{% trans %}vocalizations{% endtrans %} | {{ wordstat.nb_vocalizations }}
{% for vocalization in wordstat.vocalizations %}
{{ vocalization }}
{% endfor %}
{% if wordstat.nb_synonyms != 0 %}
{% trans %} synonyms {% endtrans %} | {{ wordstat.nb_synonyms }}
{% for synonym in wordstat.synonyms %}
{{ synonym }}
{% endfor %} {% endif %}
{% if wordstat.nb_derivations != 0 %}
{% trans %} derivations {% endtrans %} | {{ wordstat.nb_derivations }}
{% for derivation in wordstat.derivations %}
{{ derivation }}
{% endfor %} {% endif %}
{% if wordstat.nb_annotations %} {% for annotation_word, parts in wordstat.annotations.items() %} {% for part_order, annotation_detail in parts.items() %}

{{ wordcpt }}.{{ forloop.counter }}.{{ part_order }}
{% trans %} Annotation {% endtrans %} | {{ annotation_word }}
{% trans %} ID {% endtrans %} | {{ annotation_detail.word_gid }}
{% trans %} sura,aya {% endtrans %} | {{ annotation_detail.sura_id }},{{ annotation_detail.aya_id }}
{% if annotation_detail.token %}
{% trans %} token {% endtrans %} | {{ annotation_detail.token }} ( {{ annotation_detail.arabictoken }})
{% endif %} {% if annotation_detail.part %}
{% trans %} part {% endtrans %} | {{ annotation_detail.part }}
{% endif %} {% if annotation_detail.type %}
{% trans %} type {% endtrans %} | {{ annotation_detail.type }}
{% endif %} {% if annotation_detail.pos %}
{% trans %} POS {% endtrans %} | {{ annotation_detail.pos }} ({{ annotation_detail.arabicpos }})
{% endif %} {% if annotation_detail.lemma %}
{% trans %} lemma {% endtrans %} | {{ annotation_detail.lemma }} ({{ annotation_detail.arabiclemma }})
{% endif %} {% if annotation_detail.root %}
{% trans %} root {% endtrans %} | {{ annotation_detail.root }} ({{ annotation_detail.arabicroot }})
{% endif %} {% if annotation_detail.special %}
{% trans %} special {% endtrans %} | {{ annotation_detail.special }} ({{ annotation_detail.arabicspecial }})
{% endif %} {% if annotation_detail.aspect %}
{% trans %} aspect {% endtrans %} | {{ annotation_detail.aspect }}
{% endif %} {% if annotation_detail.state %}
{% trans %} state {% endtrans %} | {{ annotation_detail.state }}
{% endif %} {% if annotation_detail.form %}
{% trans %} form {% endtrans %} | {{ annotation_detail.form }}
{% endif %} {% if annotation_detail.case %}
{% trans %} case {% endtrans %} | {{ annotation_detail.case }} ( {{ annotation_detail.arabiccase }})
{% endif %} {% if annotation_detail.derivation %}
{% trans %} derivation {% endtrans %} | {{ annotation_detail.derivation }}
{% endif %} {% if annotation_detail.person %}
{% trans %} person {% endtrans %} | {{ annotation_detail.person }}
{% endif %} {% if annotation_detail.number %}
{% trans %} number {% endtrans %} | {{ annotation_detail.number }}
{% endif %} {% if annotation_detail.gender %}
{% trans %} gender {% endtrans %} | {{ annotation_detail.gender }}
{% endif %} {% if annotation_detail.voice %}
{% trans %} voice {% endtrans %} | {{ annotation_detail.voice }}
{% endif %}

{% endfor %} {% endfor %} {% endif %}
{% endfor %}
{% endif %}

{% trans %}Results{% endtrans %} ( {{ results.search.interval.start }} {% trans %} to {% endtrans %} {{ results.search.interval.end }} {% trans %} of {% endtrans %} {{ results.search.interval.total }} )


{% for ayaresult_id, ayaresult_content in results.search.ayas.items() %}
{% trans %} Result n° {% endtrans %} {{ ayaresult_id }} - ({{ ayaresult_content.identifier.sura_arabic_name if dir=="RTL" else ayaresult_content.identifier.sura_name }} {{ ayaresult_content.aya.id }}) {% if ayaresult_content.sura %}
{% trans %} Sura {% endtrans %} | {{ ayaresult_content.sura.arabic_name if dir=="RTL" else ayaresult_content.sura.name }} ({{ ayaresult_content.sura.name if dir=="RTL" else ayaresult_content.sura.english_name }})
{% trans %} n° {% endtrans %} | {{ ayaresult_content.sura.id }}
{% trans %} type {% endtrans %} | {{ ayaresult_content.sura.arabic_type if dir=="RTL" else ayaresult_content.sura.type }}
{% trans %} revelation_order {% endtrans %} | {{ ayaresult_content.sura.order }}
{% trans %} ayahs {% endtrans %} | {{ ayaresult_content.sura.ayas }}
{% if ayaresult_content.sura.stat %}
{% trans %}words{% endtrans %} | {{ ayaresult_content.sura.stat.words }}
{% trans %}letters{% endtrans %} | {{ ayaresult_content.sura.stat.letters }}
{% trans %}divine names{% endtrans %} | {{ ayaresult_content.sura.stat.godnames }}
{% endif %}
{% endif %}

{% if ayaresult_content.aya.prev_aya and ayaresult_content.aya.prev_aya.id != 0 %}

[ {{ ayaresult_content.aya.prev_aya.text }} ] ({{ ayaresult_content.aya.prev_aya.sura_arabic }} {{ ayaresult_content.aya.prev_aya.id }})

{% endif %}

[ {{ ayaresult_content.aya.text }} ] ({{ ayaresult_content.identifier.sura_arabic_name }} {{ ayaresult_content.aya.id }})

{% if ayaresult_content.aya.next_aya and ayaresult_content.aya.next_aya.id != 9999 %}

[ {{ ayaresult_content.aya.next_aya.text }} ] ({{ ayaresult_content.aya.next_aya.sura_arabic }} {{ ayaresult_content.aya.next_aya.id }})


{% endif %}
{% if ayaresult_content.aya.translation %}

{{ ayaresult_content.aya.translation }}


{% endif %} {% if ayaresult_content.theme %}

{% if ayaresult_content.theme.chapter %} {% trans %} Chapter {% endtrans %} : {{ ayaresult_content.theme.chapter }} {% endif %} {% if ayaresult_content.theme.topic %} {% trans %} Topic {% endtrans %} : {{ ayaresult_content.theme.topic }} {% endif %} {% if ayaresult_content.theme.subtopic %} {% trans %} Subtopic {% endtrans %} : {{ ayaresult_content.theme.subtopic }} {% endif %}

{% endif %} {% if ayaresult_content.stat or ayaresult_content.position %}
{% if ayaresult_content.stat %}
{% trans %}words{% endtrans %} | {{ ayaresult_content.stat.words }}
{% trans %}letters{% endtrans %} | {{ ayaresult_content.stat.letters }}
{% trans %}divine names{% endtrans %} | {{ ayaresult_content.stat.godnames }}
{% endif %} {% if ayaresult_content.position %}
{% trans %} manzil {% endtrans %} | {{ ayaresult_content.position.manzil }}
{% trans %} hizb {% endtrans %} | {{ ayaresult_content.position.hizb }}
{% trans %} quart {% endtrans %} | {{ ayaresult_content.position.rub + 1 }}
{% trans %} page {% endtrans %} | {{ ayaresult_content.position.page }}
{% endif %}

{% endif %} {% if ayaresult_content.sajda.exist %}
{% trans %} sajda {% endtrans %}
{% trans %} n° {% endtrans %} | {{ ayaresult_content.sajda.id }}
{% trans %} type {% endtrans %} | {{ ayaresult_content.sajda.type }}

{% endif %}


{% endfor %} {% block pages_bottom %} {% endblock %} {% else %}

{% trans %}Sorry! there is no results for this search query{% endtrans %}


{% endif %} {% elif results.error %}

{% trans %} Error {% endtrans %} ({{ results.error.code }}) : {{ results.error.msg }}

{% else %} {% endif %}