Skip to content

Commit

Permalink
Merge pull request #370 from d-i-t-a/bugfix/cisl-readaloud-4
Browse files Browse the repository at this point in the history
CISL read-aloud fixes
  • Loading branch information
aferditamuriqi authored Jul 24, 2022
2 parents 5fb6263 + 266e012 commit 3f62558
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@d-i-t-a/reader",
"version": "2.0.6-beta.3",
"version": "2.0.6-beta.4",
"description": "A viewer application for EPUB files.",
"repository": "https://github.com/d-i-t-a/R2D2BC",
"license": "Apache-2.0",
Expand Down
7 changes: 3 additions & 4 deletions src/modules/TTS/TTSModule2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,10 +297,9 @@ export class TTSModule2 implements ReaderModule {
);
textToBeSpoken = sentence.slice(startIndex, sentence.length);

restOfTheText = selectionInfo.cleanText.replace(
textToBeSpoken,
""
);
restOfTheText = selectionInfo.cleanText
.replace(textToBeSpoken, "")
.trim();
} else if (idxEnd > idx) {
let mergedSentenses = "";
for (let i = idx + 1; i < idxEnd; i++) {
Expand Down

0 comments on commit 3f62558

Please sign in to comment.