{% extends "base.html" %} {% from "_paper.html" import paper_head with context %} {% from "_icons.html" import icon %} {% from "_keys.html" import key with context %} {% from "_speed.html" import speed_field with context %} {% from "_download.html" import book_box with context %} {% block title %}{{ t('listen.title', name=document.name) }} · {{ t('common.app') }}{% endblock %} {% block scripts %}{% if view %}{% endif %}{% endblock %} {% from "_listen_chapter.html" import sheet_chapter with context %} {% block view_class %} wide listen-view{% endblock %} {% block main %} {{ paper_head(head, 'listen', 'listen-title', '') }} {% if not view %}

{{ problem }}

{% if document.outside %}

{{ t('common.back_home') }}

{% else %}

{{ t('listen.back') }}

{% endif %} {% else %} {#- The Listen page (#392, #393; DESIGN.md "Listen"): the desk with the sheet and one context panel beside it, and the dock. Every button player.js wires is drawn disabled, so a press before the script ran is never lost silently (#350, #427). -#}
{#- The dock (DESIGN.md "Player dock", D-664). It comes first, so the keyboard reaches the player before the text; player.js pins it to the window's foot while it fits there. -#}
{#- the captures' ticks (#397), above the track, one per type: player.js draws them #}

{{ head.title }} {{ t('player.chapter', n=1, total=view.chapters|length) }} {{ view.chapters[0].title }} {{ t('player.time_of', time='0:00', total=total) }}

{% if planned %}{% endif %}
{#- the capture keys (#397, ADR-008 2.2 B): Note, Quote, Mark, each with its flag, word and key cap. Quote and Mark are pressed while the sentence being read has one; the colour is on the flag only, never on the button -#}
{%- for kind, letter in (('note', 'N'), ('quote', 'Q'), ('mark', 'M')) %} {%- endfor %}
{#- the speed (#152, #651): a button with the speed opens the usual speeds and the field #}
{{ t('listen.ai_label') }}
{#- the toast after a capture or a removal (#397): its type's flag, the words, and Undo -#}

{{ t('listen.ai_notice', voice=voice) }}

{% if not view.marked %}

{{ t('listen.unmarked', version=view.made_with or '?') }}{% if not document.outside %} {{ t('listen.unmarked_link') }}{% endif %}

{% endif %} {% if resume %}

{{ t('listen.resume', n=resume.number, time=resume.clock) }} {{ resume.title }}

{% endif %}

{% if planned %}

{% endif %} {#- the sentence being read, for screen readers, only if the person switched it on (#388) #} {% if announce %}

{% endif %}
{% for chapter in view.chapters %} {{ sheet_chapter(chapter, loop.index0) }} {% endfor %}
{#- Focus listening (#394, DESIGN.md "Focus"): a mode of this page, with no address of its own. player.js shows it in place of the rail, the sheet and the panel, and fills the stage with the sentence being read and its neighbours, copied from the sheet. -#}
{#- One context panel (#393): Changes, read-only, Chapters and Captures (#397). From 1280 px it stands beside the desk; below, it opens over it. -#}
{% if document.outside %}

{{ t('common.back_home') }}

{% endif %} {% endif %} {% endblock %}