{% extends "base.html" %} {% from "_speed.html" import speed_field with context %} {% from "_remove.html" import remove_box with context %} {% from "_paper.html" import paper_head with context %} {% from "_making.html" import making with context %} {% from "_icons.html" import icon %} {% block title %}{{ t('paper.prepare') }}: {{ head.title }} · {{ t('common.app') }}{% endblock %} {% block view_class %} wide{% endblock %} {% block main %} {#- Prepare (#391, DESIGN.md "Prepare"; screens prepare.png, making.png, failed.png): the paper header, the audiobook job inline, three steps and the side column. -#} {{ paper_head(head, 'prepare', 'document-title', text_language) }}
{{ t('document.analysis_failed', reason=failed.reason) }}{% if failed.details %} {{ t('common.details') }} {{ failed.details }}{% endif %}
{{ t('document.summary_chapters', n=chapters|length, chosen=chosen_chapters) }} {{ t('document.summary_edits', n=edit_count) }} {{ t('document.summary_heard', n=heard) }}
{% if report.unreadable %}{# a PDF whose text is glyph numbers (#442, #187) #}{% if report.unreadable.stops %}{{ t('document.unreadable_stop', n=report.unreadable.pages|length, pages=report.unreadable.ranges) }}{% else %}{{ t('document.unreadable_pages', n=report.unreadable.pages|length, pages=report.unreadable.ranges) }}{% endif %}
{{ t('document.picture_pages', n=report.picture_pages.pages|length, pages=report.picture_pages.ranges) }}
{{ t('document.recovered_pages', n=report.recovered_pages.pages|length, pages=report.recovered_pages.ranges) }}
{{ t('document.problems') }}
{{ t('document.plugins') }}
{{ plugin.step }}{% if plugin.distribution %} ({{ plugin.distribution }}{% if plugin.version %} {{ plugin.version }}{% endif %}){% endif %}{{ t('document.plugins_off') }}
{%- endif %}{{ t('document.not_run', steps=report.not_run|join(', ')) }}
{{ t('document.warnings') }}
{{ t('document.not_analysed') }}
{% if not analysing %}{% endif %} {% endif %}{{ t('voice.missing') }} {{ t('voice.setup') }}
{{ t('voice.missing_languages', languages=voice_partly) }} {{ t('voice.setup') }}
{{ t('voice.language_hint') }}
{{ t('voice.licence') }} {{ licences }}
{{ speed_field('speed-exact', speed, t('speed.exact')) }}
{{ t('make.folder_hint') }}
{{ t('make.subtitles_hint') }}
{{ t('voice.remembered') }}
{% set blocked = 'needs_analysis' if not report else ('needs_text' if report.unreadable and report.unreadable.stops else ('needs_chapters' if not chosen_chapters else ('needs_voice' if not job_voice_installed else ''))) %}{% if blocked %}{{ t('make.' + blocked) }}{% endif %}