make spreadsheet-like ability to split and merge rows #149
Labels
back end
enhancement
New feature or request
front end UI
user interactions
major change
requires major work on both front and back end
The main purpose of this is for expert speakers of root languages, so that they can adjust the segmentation of the text via the web app. This is especially important when adding new root texts.
Superusers will be able to split, edit, and merge the rows of the text, a bit like the "add new row" and "merge row" functions of a spreadsheet. Currently to do this we use Bilara i/o, which exports the data as
tsv
, then edit in a spreadsheet, then import again. This is powerful, but clumsy and error-prone, and not something a regular user would do.The basic idea would be:
Split:
Merge:
The important thing is that all associated Bilara-data is updated properly. Thus all following rows must have their segment numbers incremented/decremented appropriately.
In more detail.
split
When splitting, we cannot automate how the text is split. So we leave the text on the original row and add a new blank row. The superuser manually cuts and pastes the root text and their translation if any.
Normally references will simply stay with the initial row, nothing to be done here.
split HTML
HTML can normally be split automatically. The basic cases:
{}
--> add{}
to both rows<p>{}
--> first row is<p>{}
, second row is{}
{}</p>
--> first row is{}
, second row is{}</p>
<p>{}</p>
--> first row is<p>{}
, second row is{}</p>
These should be automated, and the superuser checks visually.
merge
Normally we can automate merging, but superusers and translators should visually check.
|
separation.segment number incrementation
After splitting/merging, we must increment the subsequent Bilara segments.
Now, in Bilara we typically have major and minor segment numbers. The incrementation applies to the minor number, and only until the next major number.
Take the following sequence.
Split the first segment:
merge the first two segments of the original
In some cases there are more the two levels of segment number (
mn123:3.4.5
) but in every case the incrementation happens only on the last number.The text was updated successfully, but these errors were encountered: