Skip to content

Commit

Permalink
add space in chinese & japanese langauges for word wrap in hardcode
Browse files Browse the repository at this point in the history
  • Loading branch information
fawazahmed0 committed Jan 7, 2021
1 parent 990e714 commit 7b527ee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions genSRT.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ for (i = 1; i <= 114; i++) {
vttArr.push(j)
textArr.push(srtTimings[counter])
vttArr.push(srtTimings[counter].replace(/,/gi,".")+verticalTopPosition)
if(file.startsWith('jpn')||file.startsWith('zho'))
textArr.push(tranArr[counter].replace(//gi,'。 ').replace(//gi,', '))
else
textArr.push(tranArr[counter])
vttArr.push(tranArr[counter])
textArr.push("")
Expand Down

0 comments on commit 7b527ee

Please sign in to comment.