{% from "_macros.html" import topbtn, collapsebtn, collapseallbtns,
toggleromajibtn with context %}
{% from "_search.html" import jmdict with context %}
{% include "_nav.html" %}
{{ jmdict(langs, query) }}
{% if query %}
{{ toggleromajibtn() }}
{{ collapseallbtns() }}
{% for e, rank in results %}
{% for k in e.kanji %}
{% for c in k.elem -%}
{%- if M.isideo(c) -%}
{%- set rm = krm(c) -%}
{%- if rm -%}
{{ c }}
{%- else -%}
{{ c }}
{%- endif -%}
{%- else -%}
{{ c }}
{%- endif -%}
{%- endfor %}
{% else %}
no kanji
{% endfor %}
{% for p in pitch %}
{{ p }}
{% set v = "" if roma else "d-none" %}
{{ kana2romaji(p) }}
{% if loop.last %}
高低
{% endif %}
{% else %}
{% if P.have_pitch() %}
no pitch data
{% else %}
pitch data unavailable
{% endif %}
{% endfor %}