Merge branch 'master' into feature/verify-integrity

# Conflicts:
#	src/ui/Forms/Main.Designer.cs
This commit is contained in:
Martijn van Berkel (Flitskikker) 2024-02-14 16:06:02 +01:00
commit df94d8bdae
9 changed files with 52 additions and 19 deletions

View File

@ -970,4 +970,5 @@
<word>councillor</word> <word>councillor</word>
<word>luminol</word> <word>luminol</word>
<word>scotoma</word> <word>scotoma</word>
<word>unironically</word>
</words> </words>

View File

@ -1932,4 +1932,8 @@
<name>Damián</name> <name>Damián</name>
<name>Salamanca</name> <name>Salamanca</name>
<name>Vázquez</name> <name>Vázquez</name>
<name>Radisson</name>
<name>Maddie</name>
<name>Hallander</name>
<name>McGrath</name>
</names> </names>

View File

@ -194,9 +194,9 @@ namespace Nikse.SubtitleEdit.Core.Common
private static readonly string[] AutoDetectWordsHebrew = private static readonly string[] AutoDetectWordsHebrew =
{ {
"אתה", "אולי", "הוא", "בסדר", "יודע", "טוב", "אֶת", "שֶׁל", "עַל", "הוּא", "אתה", "אולי", "הוא", "בסדר", "יודע", "טוב", "אֶת", "שֶׁל", "עַל", "הוּא",
"אֲשֶׁר", "הִיא", "הַמְלֶט", "נָסִיךְ", "הֲלֹא", "עוֹד", "אֵין", "אֲנִי", "זֹאת", "וְלֹא", "אֲשֶׁר", "הִיא", "הַמְלֶט", "נָסִיךְ", "הֲלֹא", "עוֹד", "אֵין", "אֲנִי", "זֹאת", "וְלֹא",
"כָּךְ", "הִנֵּה", "מְאֹד", "אֲדוֹנִי", "כָּךְ", "הִנֵּה", "מְאֹד", "אֲדוֹנִי",
}; };
private static readonly string[] AutoDetectWordsVietnamese = private static readonly string[] AutoDetectWordsVietnamese =
@ -270,7 +270,8 @@ namespace Nikse.SubtitleEdit.Core.Common
{ {
"господине", "Нема", "господине", "работа", "вселената", "Може", "треба", "Треба", "слетување", "капсулата", "време", "Френдшип", "Прием", "Добро", "пресметки", "Благодарам", "нешто", "Благодарам", "орбитата", "инженер", "господине", "Нема", "господине", "работа", "вселената", "Може", "треба", "Треба", "слетување", "капсулата", "време", "Френдшип", "Прием", "Добро", "пресметки", "Благодарам", "нешто", "Благодарам", "орбитата", "инженер",
"Харисон", "Фала", "тоалет", "орбита", "знаеме", "Супервизор", "жени", "Добра", "требаат", "што", "дeкa", "eшe", учe", "Руиз", учeто", учињa", "Бјути", "имa", "многу", учињaтa", "AДЗЖ", "Животни", оЖe", "мaчe", "Харисон", "Фала", "тоалет", "орбита", "знаеме", "Супервизор", "жени", "Добра", "требаат", "што", "дeкa", "eшe", учe", "Руиз", учeто", учињa", "Бјути", "имa", "многу", учињaтa", "AДЗЖ", "Животни", оЖe", "мaчe",
"мecто", "имaмe", "мaчињa", "пpвото", "пpaвaт", "нeшто", "колку" "мecто", "имaмe", "мaчињa", "пpвото", "пpaвaт", "нeшто", "колку",
"што", "тоа", "дека", "Што", "Дали", "треба", "беше", "таму"
}; };
private static readonly string[] AutoDetectWordsFinnish = private static readonly string[] AutoDetectWordsFinnish =
@ -530,13 +531,19 @@ namespace Nikse.SubtitleEdit.Core.Common
{ {
var bulgarianCount = GetCount(text, AutoDetectWordsBulgarian); var bulgarianCount = GetCount(text, AutoDetectWordsBulgarian);
var ukrainianCount = GetCount(text, AutoDetectWordsUkrainian); var ukrainianCount = GetCount(text, AutoDetectWordsUkrainian);
var macedonianCount = GetCount(text, AutoDetectWordsMacedonian);
if (bulgarianCount > count) if (bulgarianCount > count)
{ {
if (ukrainianCount > bulgarianCount) if (ukrainianCount > bulgarianCount && ukrainianCount > macedonianCount)
{ {
return "uk"; // Ukrainian return "uk"; // Ukrainian
} }
if (macedonianCount > bulgarianCount && macedonianCount > ukrainianCount)
{
return "mk"; // Macedonian
}
return "bg"; // Bulgarian return "bg"; // Bulgarian
} }
@ -569,6 +576,12 @@ namespace Nikse.SubtitleEdit.Core.Common
count = GetCount(text, AutoDetectWordsBulgarian); count = GetCount(text, AutoDetectWordsBulgarian);
if (count > bestCount) if (count > bestCount)
{ {
var macedonianCount = GetCount(text, AutoDetectWordsMacedonian);
if (macedonianCount > count)
{
return "mk";
}
return "bg"; // Bulgarian return "bg"; // Bulgarian
} }

View File

@ -997,10 +997,11 @@ namespace Nikse.SubtitleEdit.Forms
// //
this.toolStripButtonLayout.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.toolStripButtonLayout.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.toolStripButtonLayout.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.toolStripButtonLayout.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
this.toolStripButtonLayout.Image = global::Nikse.SubtitleEdit.Properties.Resources.Layout;
this.toolStripButtonLayout.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.toolStripButtonLayout.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
this.toolStripButtonLayout.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButtonLayout.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButtonLayout.Name = "toolStripButtonLayout"; this.toolStripButtonLayout.Name = "toolStripButtonLayout";
this.toolStripButtonLayout.Size = new System.Drawing.Size(23, 37); this.toolStripButtonLayout.Size = new System.Drawing.Size(36, 37);
this.toolStripButtonLayout.Text = "Show/hide waveform"; this.toolStripButtonLayout.Text = "Show/hide waveform";
this.toolStripButtonLayout.Click += new System.EventHandler(this.ToolStripButtonLayoutChooseClick); this.toolStripButtonLayout.Click += new System.EventHandler(this.ToolStripButtonLayoutChooseClick);
// //

View File

@ -730,9 +730,9 @@
<data name="toolStripButtonLockCenter.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="toolStripButtonLockCenter.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAACJSURBVEhLYxjioPT6M4aKawVQHvEApAekFydIv/6bofx6 YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAACJSURBVEhLYxjioPT6M4aKawVQHvEApAekFydIu/6bofx6
A5RHPADpAenFCbAZXHk1ACi2nqHi6n44BokhA5INrrpiwFBx/T9Q7DxYHILPg8VAcjBAssEgNsgQdACx A5RHPADpAenFCbAZXHk1ACi2nqHi6n44BokhA5INrrpiwFBx/T9Q7DxYHILPg8VAcjBAssEgNsgQdACx
DFXdqMFgMGowlDdqMCUG0yxLgwCowEEugEAFEsWFELGAoME0K+gHP2BgAADj1Bh2gurMTQAAAABJRU5E DFXdqMFgMGowlDdqMCUG0yxLgwCowEEugEAFEsWFELGAoME0K+gHP2BgAABpZBhW3VPvKwAAAABJRU5E
rkJggg== rkJggg==
</value> </value>
</data> </data>

View File

@ -280,6 +280,16 @@ namespace Nikse.SubtitleEdit.Properties {
} }
} }
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap Layout {
get {
object obj = ResourceManager.GetObject("Layout", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary> /// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap. /// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary> /// </summary>

View File

@ -118,15 +118,9 @@
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> <assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="L2" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\L2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="L3" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="L3" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\L3.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\L3.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
<data name="L1" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\L1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="webvtt" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="webvtt" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\webvtt.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\webvtt.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
@ -142,6 +136,9 @@
<data name="Settings" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="Settings" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Icons\Settings.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Icons\Settings.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
<data name="L7" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\L7.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="color-picker-small2" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="color-picker-small2" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\color-picker-small2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\color-picker-small2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
@ -154,12 +151,15 @@
<data name="Error" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="Error" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Error.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\Error.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
<data name="L8" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="L2" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\L8.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\L2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
<data name="bookmark22dark" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="bookmark22dark" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\bookmark22dark.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\bookmark22dark.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
<data name="L11" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\L11.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="ebu" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="ebu" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\ebu.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\ebu.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
@ -196,8 +196,11 @@
<data name="SEIcon" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="SEIcon" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\SE.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\SE.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
<data name="L7" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="L8" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\L7.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\L8.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="L1" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\L1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
<data name="Help32" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="Help32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Help32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\Help32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
@ -205,7 +208,7 @@
<data name="Information" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="Information" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Information.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\Information.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
<data name="L11" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="Layout" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\L11.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\Layout.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
</root> </root>

BIN
src/ui/Resources/Layout.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

@ -2606,6 +2606,7 @@
<None Include="Resources\L12.png" /> <None Include="Resources\L12.png" />
<None Include="Resources\L10.png" /> <None Include="Resources\L10.png" />
<None Include="Resources\L11.png" /> <None Include="Resources\L11.png" />
<None Include="Resources\Layout.png" />
<Content Include="Resources\TesseractDictionaries.xml"> <Content Include="Resources\TesseractDictionaries.xml">
<SubType>Designer</SubType> <SubType>Designer</SubType>
</Content> </Content>