Skip to content

Commit 20354f2

Browse files
committed
Merge remote-tracking branch 'remote/main' into feature/se-textboxes
2 parents 3d23d76 + bceac29 commit 20354f2

File tree

8 files changed

+14
-9
lines changed

8 files changed

+14
-9
lines changed

Changelog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
* Add support for Unicode characters in MCC format - thx DavisR
2222
* Allow larger prompt for auto-translate - thx leegethas
2323
* Remember Whisper "Translate to English" state - thx pintelt
24+
* Add Hebrew for DeepL translate - thx rzeczywistoscia992-web
2425
* FIXED:
2526
* Fix possible crash in auto-translate - thx Tb3986
2627
* Fix possible crash in Binary OCR - thx Codling
@@ -32,7 +33,9 @@
3233
* Fix UI selection/focus issue in translation window - thx rRobis
3334
* Fix saving Google-translate-v2 key in translate window - thx Daniyel
3435
* Fix for "Remove text for hearing impaired" - thx psonnosp
36+
* Fix crash in "Remove text for hearing impaired" - thx Andrebavila
3537
* Fix for Frensh spell check - thx Fannette
38+
* Fix Latvian dictionary download - thx Toms200
3639

3740

3841
4.0.13 (30th July 2025)

src/libse/AutoTranslate/DeepLTranslate.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ public List<TranslationPair> GetSupportedSourceLanguages()
5959
MakeTranslationPair("French", "fr", true),
6060
MakeTranslationPair("German", "de", true),
6161
MakeTranslationPair("Greek", "el"),
62+
MakeTranslationPair("Hebrew", "he"),
6263
MakeTranslationPair("Hungarian", "hu"),
6364
MakeTranslationPair("Indonesian", "id"),
6465
MakeTranslationPair("Italian", "it", true),
@@ -98,6 +99,7 @@ public List<TranslationPair> GetSupportedTargetLanguages()
9899
MakeTranslationPair("French", "fr", true),
99100
MakeTranslationPair("German", "de", true),
100101
MakeTranslationPair("Greek", "el"),
102+
MakeTranslationPair("Hebrew", "he"),
101103
MakeTranslationPair("Hungarian", "hu"),
102104
MakeTranslationPair("Indonesian", "id"),
103105
MakeTranslationPair("Italian", "it", true),

src/libse/Forms/RemoveInterjection.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,15 +136,15 @@ public string Invoke(InterjectionRemoveContext context)
136136
temp = temp.Remove(index - 2, 2);
137137
removeAfter = false;
138138
}
139-
else if (temp.Remove(0, index) == " —" && temp.EndsWith("— —", StringComparison.Ordinal))
139+
else if (temp.Length > index && temp.Remove(0, index) == " —" && temp.EndsWith("— —", StringComparison.Ordinal))
140140
{
141141
temp = temp.Remove(temp.Length - 3);
142142
if (temp.EndsWith(Environment.NewLine + "—", StringComparison.Ordinal))
143143
{
144144
temp = temp.Remove(temp.Length - 1).TrimEnd();
145145
}
146146
}
147-
else if (temp.Remove(0, index) == " —" && temp.EndsWith("- —", StringComparison.Ordinal))
147+
else if (temp.Length > index && temp.Remove(0, index) == " —" && temp.EndsWith("- —", StringComparison.Ordinal))
148148
{
149149
temp = temp.Remove(temp.Length - 3);
150150
if (temp.EndsWith(Environment.NewLine + "-", StringComparison.Ordinal))

src/libse/NetflixQualityCheck/NetflixCheckWhiteSpace.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public void Check(Subtitle subtitle, NetflixQualityController controller)
4343
// 2+ consecutive spaces
4444
foreach (Match m in TwoPlusConsequentSpaces.Matches(p.Text))
4545
{
46-
AddWhiteSpaceWarning(p, controller, NetflixLanguage.WhiteSpaceCheckconsecutive, m.Index);
46+
AddWhiteSpaceWarning(p, controller, NetflixLanguage.WhiteSpaceCheckConsecutive, m.Index);
4747
}
4848
}
4949
}

src/libse/NetflixQualityCheck/NetflixLanguage.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ public static class NetflixLanguage
66
public static string WhiteSpaceCheckForXReport { get; set; } = "White space issue ({0}) found at column {1}.";
77
public static string WhiteSpaceBeforePunctuation { get; set; } = "missing before punctuation";
88
public static string WhiteSpaceLineEnding { get; set; } = "line ending";
9-
public static string WhiteSpaceCheckconsecutive { get; set; } = "2+ consecutive";
9+
public static string WhiteSpaceCheckConsecutive { get; set; } = "2+ consecutive";
1010
}
1111
}

src/ui/Forms/Main.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2160,7 +2160,7 @@ private void InitializeLanguage()
21602160
NetflixLanguage.GlyphCheckReport = LanguageSettings.Current.NetflixQualityCheck.GlyphCheckReport;
21612161
NetflixLanguage.WhiteSpaceCheckForXReport = LanguageSettings.Current.NetflixQualityCheck.WhiteSpaceCheckForXReport;
21622162
NetflixLanguage.WhiteSpaceLineEnding = LanguageSettings.Current.NetflixQualityCheck.WhiteSpaceLineEncding;
2163-
NetflixLanguage.WhiteSpaceCheckconsecutive = LanguageSettings.Current.NetflixQualityCheck.WhiteSpaceCheckconsecutive;
2163+
NetflixLanguage.WhiteSpaceCheckConsecutive = LanguageSettings.Current.NetflixQualityCheck.WhiteSpaceCheckconsecutive;
21642164
NetflixLanguage.WhiteSpaceBeforePunctuation = LanguageSettings.Current.NetflixQualityCheck.WhiteSpaceBeforePunctuation;
21652165

21662166
DvdSubtitleLanguage.Language.NotSpecified = LanguageSettings.Current.LanguageNames.NotSpecified;
@@ -8598,11 +8598,11 @@ private void StartOrStopLiveSpellCheckTimer()
85988598
private void LiveSpellCheckTimer_Tick(object sender, EventArgs e)
85998599
{
86008600
_liveSpellCheckTimer.Stop();
8601-
InitializeLiveSpellChcek();
8601+
InitializeLiveSpellCheck();
86028602
_liveSpellCheckTimer.Start();
86038603
}
86048604

8605-
private void InitializeLiveSpellChcek()
8605+
private void InitializeLiveSpellCheck()
86068606
{
86078607
if (IsSubtitleLoaded)
86088608
{

src/ui/Resources/HunspellDictionaries.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@
188188
<Dictionary>
189189
<EnglishName>Latvian</EnglishName>
190190
<NativeName>Latviešu</NativeName>
191-
<DownloadLink>http://ftp.nluug.nl/office/openoffice/contrib/dictionaries/hyph_lv_LV.zip</DownloadLink>
192-
<Description>Latviešu valodas pareizrakstības pārbaudes modulis 0.9.6</Description>
191+
<DownloadLink>http://dict.dv.lv/download/lv_LV-1.4.0.oxt</DownloadLink>
192+
<Description>Latviešu valodas pareizrakstības pārbaudes modulis</Description>
193193
</Dictionary>
194194
<Dictionary>
195195
<EnglishName>Lithuanian</EnglishName>
-43 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)