This commit is contained in:
niksedk 2023-08-18 17:15:08 +02:00
parent 6953cf350e
commit b7ed8c98c6
3 changed files with 4 additions and 1 deletions

View File

@ -3,6 +3,7 @@
<names> <names>
<blacklist> <blacklist>
<name>Rabat</name> <name>Rabat</name>
<name>Heller</name>
</blacklist> </blacklist>
<name>Afghanistan</name> <name>Afghanistan</name>
<name>Afrika</name> <name>Afrika</name>

View File

@ -6,6 +6,8 @@
<name>Bo</name> <name>Bo</name>
<name>Fred</name> <name>Fred</name>
<name>Jo</name> <name>Jo</name>
<name>Meg</name>
<name>Heller</name>
</blacklist> </blacklist>
<name>Aage</name> <name>Aage</name>
<name>Aagot</name> <name>Aagot</name>

View File

@ -28,7 +28,7 @@ namespace Nikse.SubtitleEdit.Core.AudioToText
public AudioToTextPostProcessor(string twoLetterLanguageCode) public AudioToTextPostProcessor(string twoLetterLanguageCode)
{ {
TwoLetterLanguageCode = twoLetterLanguageCode; TwoLetterLanguageCode = twoLetterLanguageCode == "no" ? "nb" : twoLetterLanguageCode;
ParagraphMaxChars = Configuration.Settings.Tools.AudioToTextLineMaxChars; ParagraphMaxChars = Configuration.Settings.Tools.AudioToTextLineMaxChars;
if (ParagraphMaxChars < 10 || ParagraphMaxChars > 1_000_000) if (ParagraphMaxChars < 10 || ParagraphMaxChars > 1_000_000)