Same vue.store parameter as in T370618 can actually be selected in two steps :
- At Step 4 (List) : it affects texts segmenting.
- At Step 5 (Recording) : it affects audio parameters.
{F57559262}
=== Step 4 : in list loader
Convert text into array of objects :
| Item's label | Item marker: official | Item marker: matches examples | Iterm marker: regex | Regex: demo | Object format | Comment
| words | `#` | `#`; `\n#`; `\*`; `\n\*`; `\n*`; `\n`; `\n*` | `r(/[\n#*]+\s*)/g,"# ")` | https://regex101.com/r/piieBT/1 | `{'item':'…',type:'word'}` | prepend `\n` to input text first line or first line fails
| sentence | `##` | `#`; `\n#`; `\*`; `\n\*`; `\n*`; `\n`; `\n*` | `r(/[\n#*]+\s*)/g,"# ")` | https://regex101.com/r/piieBT/1 | `{'item':'…',type:'sentence'}`| prepend `\n##`
| poems | `###` | `\n\s*###+\s*`; `\n\n\n+` | `r(/(\n[\s\W]*){3,}/g, "# ")` | https://regex101.com/r/r6n0LN/1 | `{'item':'…',type:'paragraph'}`| prepend `\n###`
Note: once properly coded, if regex proves incomplete, we will be able to refine those later.
==== Complementary to
- T370618