Commit a181c13
committed
New "dummy-section-header" trigger in inflmap
The new Swahili not-so-mega tables have a problem in that there are too
many <table> elements that break the flow of our parser, a bit needlessly.
When "Infinitives" in a separate <table>...Infinitives</table> from the
data it should be heading (<table>...positive: blah...</table> it can't
propagate, even with the old header-saving subsystem devised for the
original Swahili megatable (see those commits).
To fix this, using TableContext we introduce a new context-variable called
TableContext.section_header which should contain the tag data of the
current "section" being parsed, within a table with subtables.
When inflmap finds the dummy-tag "dummy-section-header" it will save the
tag data (of only one, the first) where it encounters it in a sect of tag
alternatives into TableContext.section_header, and then later joins that
data in the data of the cells.
When it encounters dummy-section-header the next time, it will replace the
tag data with the new section data.1 parent 579e5bd commit a181c13
3 files changed
+128
-51
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1699 | 1699 | | |
1700 | 1700 | | |
1701 | 1701 | | |
| 1702 | + | |
1702 | 1703 | | |
1703 | 1704 | | |
1704 | 1705 | | |
| |||
1810 | 1811 | | |
1811 | 1812 | | |
1812 | 1813 | | |
| 1814 | + | |
1813 | 1815 | | |
1814 | 1816 | | |
1815 | 1817 | | |
| |||
2034 | 2036 | | |
2035 | 2037 | | |
2036 | 2038 | | |
| 2039 | + | |
| 2040 | + | |
| 2041 | + | |
| 2042 | + | |
2037 | 2043 | | |
2038 | 2044 | | |
2039 | 2045 | | |
| |||
2581 | 2587 | | |
2582 | 2588 | | |
2583 | 2589 | | |
| 2590 | + | |
2584 | 2591 | | |
2585 | 2592 | | |
2586 | 2593 | | |
2587 | 2594 | | |
| 2595 | + | |
2588 | 2596 | | |
2589 | 2597 | | |
2590 | 2598 | | |
| |||
0 commit comments