class IsoDoc::I18n
def l10n_context(nodes, idx)
do not use just the immediately adjoining text tokens for context
previous, following context of current text node:
def l10n_context(nodes, idx) prev = nodes[0...idx].map(&:text).join foll = nodes[(idx + 1)...(nodes.size)].map(&:text).join [prev, foll] end