jiten - jmdict
{% from "_search.html" import jmdict with context %}
{% include "_nav.html" %}
{{ jmdict(langs, query) }}
{% if query %}
{% for e, rank in results %}
{% for k in e.kanji %}
{% for c in k.elem -%}
{% if M.isideo(c) -%}
{{ c }}
{%- else -%}
{{ c }}
{%- endif %}
{%- endfor %}
{% else %}
no kanji
{% endfor %}
{% for r in e.reading %}
{{ r.elem }}
{% if loop.last %}
読み
{% endif %}
{% else %}
no readings
{% endfor %}
{% set pitch = e.pitch()|list %}
{% for p in pitch %}
{{ p }}
{% if loop.last %}
高低
{% endif %}
{% else %}
no pitch data
{% endfor %}
{% set gloss, info = e.gloss_pos_info(langs) %}
{% for l in langs if gloss[l] %}
{{ l }}
{% for g in gloss[l] %}
{% for x in g %}
{{ x }}
{% endfor %}
{% endfor %}
{% endfor %}
{% if info %}
{% for i in info %}
{{ i }}
{% endfor %}
{% endif %}
{% set xi = e.xinfo()|list %}
{% if xi %}
{% for i in xi %}
{{ i }}
{% endfor %}
{% endif %}
{% set xr = e.xrefs()|list %}
{% if xr %}