These are currently created separately and then bundled as a sequence of all indices to be passed to the sub-modules. Each sub-module of csv2srophe has to debundle these by using something like $indices/self::headword. This is both cumbersome and tedious.
Instead, try a map with keys that are the index type and values the index itself, e.g.
let $index := {'headwords': $headwordsIndex, 'names': $namesIndex, ...}
Then, instead of unzipping the indices, a given index can simply be accessed by, e.g., $index('headwords')
These are currently created separately and then bundled as a sequence of all indices to be passed to the sub-modules. Each sub-module of csv2srophe has to debundle these by using something like
$indices/self::headword
. This is both cumbersome and tedious.Instead, try a map with keys that are the index type and values the index itself, e.g.
Then, instead of unzipping the indices, a given index can simply be accessed by, e.g.,
$index('headwords')