oryksaTvReadingTime function

Duration oryksaTvReadingTime(
  1. String line
)

How long a subtitle stays on screen when there is no voice: about 14 characters per second, never under 1.8 s.

Implementation

Duration oryksaTvReadingTime(String line) {
  final ms = (line.length / 14 * 1000).round();
  return Duration(milliseconds: ms < 1800 ? 1800 : ms);
}