{% extends 'base.html' %} {% block title %} - {% trans %}Neahttadigisánit{% endtrans %} debug info {% endblock %} {% block meta_title %} {% endblock %} {% block extra_js %} {% endblock %} {# TODO: http://getbootstrap.com/2.3.2/javascript.html#collapse or http://getbootstrap.com/2.3.2/javascript.html#scrollspy #} {% block content %}

Language-specific rules for {{ lang_name }}

{% if paradigms %}

Paradigms for {{ lang_name }}

{% for pos, tags in paradigms.iteritems() %}
{{ pos }}
    {% for t in tags %}
  • {{ t }}
  • {% endfor %}
{% endfor %} {% endif %} {% if mparadigms %}

Paradigms for {{ lang_name }}

NB: these default paradigms may be overriden by functions below...

{% for paradigm in mparadigms %}
{{ paradigm.name }}
{{ paradigm.basename }}

Rule formulation
    {% for k, v in paradigm.condition.rule_def.iteritems() %} {% if k == 'name' %} {% continue %} {% endif %} {% if v is mapping %}
  • {{ k }}:
      {% for kk, vv in v.iteritems() %}
    • {{ kk }}: {{ vv }}
    • {% endfor %}
  • {% else %}
  • {{ k }}: {{ v }}
  • {% endif %} {% endfor %}
{{ paradigm.template|template_lines|truncate(300, True, "... \n(see source for more)") }}
{% endfor %} {% endif %} {% for l in generation_docs %}

Paradigm override functions {{ l.name }}

{% for func in l.functions %}
{{ func.name }}
                {{ func.doc|trim|safe }}
                
{% endfor %} {% endfor %} {% for l in pregen_doc %}

Pregenerated form selection {{ l.name }}

{% for func in l.functions %}
{{ func.name }}
                {{ func.doc|trim|safe }}
                
{% endfor %} {% endfor %} {% for l in postgen_doc %}

Post-generation overrides {{ l.name }}

{% for func in l.functions %}
{{ func.name }}
                {{ func.doc|trim|safe }}
                
{% endfor %} {% endfor %} {% for l in postanalysis_doc %}

Post-analysis overrides {{ l.name }}

{% for func in l.functions %}
{{ func.name }}
                {{ func.doc|safe }}
                
{% endfor %} {% endfor %}

Template Structure

These are the templates that have been customized for this project. Documentation is encouraged, as some customizations may not be able to be covered by unittests.

To include documentation in a template, define it: {% raw %}{% block template_doc %}Blah blah blah{% endblock %}{% endraw %}

{{ lang_name }}-specific overrides

{% for lang, templates in app.lexicon_templates.language_templates.iteritems() %} {% if lang != lang_name %} {% continue %} {% endif %}
    {% set proj_templates = [] %} {% for t in app.lexicon_templates.project_templates.values() %} {% do proj_templates.append(t.path) %} {% endfor %} {% for ttkey, tmpl in templates.iteritems() %} {% if tmpl.path not in proj_templates %}
  • {{ app_short_name }}/{{ lang_name }}/{{ ttkey }} {% if 'template_doc' in tmpl.blocks %}
    {{- tmpl|render_block(tmpl.blocks['template_doc']) -}}
    {% else %}
    Write some template documentation.
    {% endif %}
  • {% endif %} {% endfor %}
{% endfor %}

User-friendly tags

NB: these default paradigms may be overriden by functions below...

{% for langpair, tags in tag_transforms.iteritems() %}
    {% for d, t in tags.iteritems() %}
  • {{ d }} → {{ t }}
  • {% endfor %}
{% endfor %}
{% endblock %}