From de15e8a06f0eb4b1e01776a9173dd19f892923e1 Mon Sep 17 00:00:00 2001 From: Ivandro Jao Date: Sat, 22 Jul 2023 01:09:31 +0100 Subject: [PATCH 1/2] Update name lists in dictionary files Changes were made to the 'en_names.xml' and 'names.xml' dictionary files. The name '2Pac' was moved from 'en_names.xml' to 'names.xml' to enhance the correct language categorization. The name 'AI' was added to 'en_names.xml' to improve the AI related query processing. In addition, several other relevant names were also added to 'names.xml', including 'Apple Inc.', 'Rumble', 'The Matrix', 'Burger King', and 'KFC', to enhance the dictionary coverage for those specific topics. The name 'AndreasB88', which seems to be a typo, was removed. --- Dictionaries/en_names.xml | 2 +- Dictionaries/names.xml | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Dictionaries/en_names.xml b/Dictionaries/en_names.xml index dc8b459d3..3d7782b83 100644 --- a/Dictionaries/en_names.xml +++ b/Dictionaries/en_names.xml @@ -6,7 +6,7 @@ Black Male - 2Pac + AI Aarav Abbey Abbie diff --git a/Dictionaries/names.xml b/Dictionaries/names.xml index 01fe1bf31..dc07ebbe0 100644 --- a/Dictionaries/names.xml +++ b/Dictionaries/names.xml @@ -7,6 +7,7 @@ This file is case sensitive. 1A 2 Chainz 2 Pac + 2Pac 2A 3D 6ix9ine @@ -226,7 +227,6 @@ This file is case sensitive. Andre Andrea Andreas - AndreasB88 Andres Andrew Dice Clay Andrew @@ -283,6 +283,7 @@ This file is case sensitive. Anya Aphrodite Apia + Apple Inc. Apolinar Apollo April @@ -4746,6 +4747,7 @@ This file is case sensitive. Rudys Rufus Ruidoso + Rumble Runkle Rupert Russ @@ -5343,6 +5345,7 @@ This file is case sensitive. Theokoles Theresa Theroux + The Matrix Thimphu Thomas Thomason @@ -5894,6 +5897,8 @@ This file is case sensitive. Zzyzx Zürich burrito + Burger King + KFC d'Artagnan divxsweden eBay From f66f745bd2c6ca03214d2d3dc810b04f84070294 Mon Sep 17 00:00:00 2001 From: Ivandro Jao Date: Sat, 22 Jul 2023 13:24:21 +0100 Subject: [PATCH 2/2] Adjust order of operations in SplitLongLines This commit modifies the order of method calls in the SplitLongLines feature. The SubtitleListview1.Items.Clear() operation is now called after SubtitleListview1.BeginUpdate(). This change prevents visual glitches and improves the overall performance by delaying the UI update until all changes have been made. --- src/ui/Forms/SplitLongLines.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/Forms/SplitLongLines.cs b/src/ui/Forms/SplitLongLines.cs index d719ec63d..a9be590a8 100644 --- a/src/ui/Forms/SplitLongLines.cs +++ b/src/ui/Forms/SplitLongLines.cs @@ -90,8 +90,8 @@ namespace Nikse.SubtitleEdit.Forms var autoBreakIndexes = new List(); NumberOfSplits = 0; - SubtitleListview1.Items.Clear(); SubtitleListview1.BeginUpdate(); + SubtitleListview1.Items.Clear(); if (checkBoxSplitAtLineBreaks.Checked) { SplitSubtitle = SplitAtLineBreak(_subtitle, splitIndexes, out var count, clearFixes);