{{ left_sidebar_enabled = True }} {{ extend 'layout.html' }} {{ block head }} {{ otherLangIso = 'arc' if lan == 'hbo' else 'hbo' headLetter = chr(int(letter)) rows = 12 cols = 5 tableSize = rows * cols nWords = len(words) nTables = int(nWords / tableSize) + (1 if nWords % tableSize != 0 else 0) arcCls = 'ison' if lan == 'arc' else '' hboCls = 'ison' if lan == 'hbo' else '' wordLabel = 'words' if nWords != 1 else 'word' }} {{ end }}
{{ tables = [[[None for c in range(cols)] for r in range(rows)] for t in range(nTables)] curTable = 0 curRow = 0 curCol = 0 for wordRecord in words: if curRow == rows: curRow = 0 curCol += 1 pass if curCol == cols: curCol = 0 curTable +=1 pass tables[curTable][curRow][curCol] = wordRecord curRow += 1 pass nCells = 0 for table in tables: if nCells >= nWords: break }} {{ for row in table: if nCells >= nWords: break }} {{ for wordRecord in row: if wordRecord != None: nCells += 1 (word, id, word_id, gloss) = wordRecord }} {{pass}} {{pass}} {{pass}}
{{=gloss or '??'}} {{=word}} {{=word_id}}

{{pass}}
{{ block left_sidebar }} {{ include 'hebrew/versions.html' }}

Aramaic

{{ for let in letters[otherLangIso]: letterCls = ' ison' if letter == let and lan == 'arc' else '' }}

{{=A(chr(let), _class='dletter', _href=URL('hebrew', 'words', vars=dict(lan='arc', letter=let)))}}

{{pass}}

Hebrew

{{ for let in letters[lan]: letterCls = ' ison' if letter == let and lan == 'hbo' else '' }}

{{=A(chr(let), _class='dletter', _href=URL('hebrew', 'words', vars=dict(lan='hbo', letter=let)))}}

{{pass}}

{{=headLetter}}

{{=f"{nWords} {wordLabel}"}}

{{ end }}