|
@@ -106,7 +106,9 @@ export const SubtitleBar: React.FC<SubtitleBarProps> = ({
|
|
|
overflow: "hidden",
|
|
overflow: "hidden",
|
|
|
}}
|
|
}}
|
|
|
>
|
|
>
|
|
|
- {currentSegment.words.map((w, i) => {
|
|
|
|
|
|
|
+ {currentSegment.words
|
|
|
|
|
+ .filter((w) => !/[。,!?\s]/.test(w.word))
|
|
|
|
|
+ .map((w, i) => {
|
|
|
const isCurrent = i === currentWordIndex;
|
|
const isCurrent = i === currentWordIndex;
|
|
|
const isPast = currentTime > w.endSeconds;
|
|
const isPast = currentTime > w.endSeconds;
|
|
|
return (
|
|
return (
|