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.
Step 4 : in list loader
Convert text into array of objects :
| Item marker | Item's label | Item marker: matches | Iterm marker: regex | Regex: demo | Object format | Comment |
| # | words | #; \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 | 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.
