Commit Graph

17645 Commits

Author SHA1 Message Date
niksedk
f0502ffc61 Fix UI bug in TS subtitle chooser 2023-08-02 06:05:06 +02:00
niksedk
3925fa5c2d Add cmd line help for FasterWhisper 2023-08-01 21:57:56 +02:00
niksedk
3a3671f765 Merge branch 'main' of https://github.com/SubtitleEdit/subtitleedit 2023-08-01 21:44:18 +02:00
niksedk
0b662204d8 Working on adding Purfview's FasterWhisper - thx Purview :)
see https://github.com/Purfview/whisper-standalone-win
2023-08-01 21:44:11 +02:00
Nikolaj Olsson
f40a27f7d7
Merge pull request #7191 from Flitskikker/feature/beautify-timecodes-tweaks-20230721
New improvements to "Beautify time codes"
2023-08-01 15:05:23 -04:00
Martijn van Berkel (Flitskikker)
5faf03c302 Rename ArrayExtensions > ListExtensions 2023-08-01 10:42:51 +02:00
Martijn van Berkel (Flitskikker)
b9889645b9 Merge branch 'master' into feature/beautify-timecodes-tweaks-20230721 2023-07-31 23:16:39 +02:00
Martijn van Berkel (Flitskikker)
379c45ce78 Replace remaining LINQ queries 2023-07-31 23:03:41 +02:00
Martijn van Berkel (Flitskikker)
b9fdf5a366 Fix progress bar crash if maximum happens to be incorrect 2023-07-31 20:46:03 +02:00
Martijn van Berkel (Flitskikker)
15ebc231d4 Clearer naming 2023-07-31 14:31:58 +02:00
Nikolaj Olsson
7ca465b2de
Merge pull request #7182 from ivandrofly/feature/FixShortLinesPixelWidth
"Refactor pixel width calculation in FixShortLinesPixelWidth"
2023-07-31 00:48:59 -04:00
Nikolaj Olsson
816a2006e1
Merge pull request #7184 from bovirus/main
Update italian language
2023-07-31 00:46:30 -04:00
niksedk
2edfa29cca Improve whsper parameter help a little 2023-07-31 06:43:03 +02:00
Martijn van Berkel (Flitskikker)
8389de8c74 Merge branch 'master' into feature/beautify-timecodes-tweaks-20230721 2023-07-31 00:00:33 +02:00
Martijn van Berkel (Flitskikker)
ecc92e6dcc Improve accuracy and performance
When using exact time codes, use those for all msec<>frames conversions to prevent rounding errors before snapping to exact time codes (namely for variable framerates)
Also added custom array functions that should be much faster than LINQ (used where possible) (+ tests)
2023-07-30 23:51:40 +02:00
bovirus
a1382f45b3
Update italian language 2023-07-30 23:49:13 +02:00
niksedk
ca7bc0ac04 Add a few words for #7160 2023-07-30 20:54:33 +02:00
niksedk
18beddfbeb More batch convert "remove formatting" 2023-07-30 20:41:45 +02:00
niksedk
40a4adbf56 Improve "Remove formatting" in batch convert 2023-07-30 18:08:43 +02:00
Martijn van Berkel (Flitskikker)
01f75a97ae OCD 2023-07-30 17:38:19 +02:00
Martijn van Berkel (Flitskikker)
9383e0dc03 Merge branch 'master' into feature/beautify-timecodes-tweaks-20230721 2023-07-30 17:37:45 +02:00
niksedk
99864d344d Update Bulgarian translaiton - thx Калин :) 2023-07-30 16:30:48 +02:00
niksedk
98cd1a4cea Work on #7169 2023-07-30 13:36:18 +02:00
niksedk
23041f92da Update Bulgarian translation - thx Калин :) 2023-07-30 13:33:53 +02:00
niksedk
501028b230 Update Korean translation - thx domddol :) 2023-07-30 11:43:46 +02:00
niksedk
5e0a5981e5 More use of custom controls 2023-07-30 11:27:53 +02:00
niksedk
c50d917022 Trying to hack/fix crash in combobo control when becoming visible... 2023-07-30 11:27:26 +02:00
niksedk
bc9c2ddd6f Update Bulgarian translation - thx Калин :) 2023-07-30 07:40:10 +02:00
niksedk
377e96c967 Update Korean translation - thx domddol :) 2023-07-30 07:37:21 +02:00
Ivandro Jao
59d4d37954 Refactor pixel width calculation in FixShortLinesPixelWidth
The method used for width calculation in FixShortLinesPixelWidth form is simplified. The method _calcPixelWidth returns int directly, eliminating redundant conversion from int to int. This simplifies the code, and eliminates unnecessary operations improving the processing speed.
2023-07-29 23:25:28 +01:00
Ivandro Jao
3e71da7492 "Refactor pixel width calculation in FixShortLinesPixelWidth"
The pixel width calculation for FixShortLinesPixelWidth has been directly incorporated into the constructor for FixShortLinesPixelWidth, replacing the previously used GetCustomCallbackData method. This change simplifies the process significantly by making the pixel width calculation a direct responsibility of the FixShortLinesPixelWidth class, and removing the associated logic from FixCommonErrors class and its interface reducing potential side effects. In addition, the test FixCommonErrorsTest has been updated to reflect these changes.
2023-07-29 23:21:30 +01:00
niksedk
ad3d8e6181 Revert changes from 85e803c5b8 as something crashes :( 2023-07-29 21:37:56 +02:00
niksedk
a80290e7b1 Update language file 2023-07-29 19:12:14 +02:00
niksedk
53e40a9d63 Work on toolbar custom separator control 2023-07-29 18:48:56 +02:00
niksedk
453a0bec65 Work on new controls 2023-07-29 17:01:48 +02:00
niksedk
85e803c5b8 Work on new combobox 2023-07-29 16:38:38 +02:00
niksedk
04e3a05948 Work on custom combobox 2023-07-29 16:19:31 +02:00
niksedk
20bcb1910b Work on new controls 2023-07-29 16:07:22 +02:00
niksedk
0419d372ce Testing subtitle format dropdown for better dark theme 2023-07-29 09:43:14 +02:00
Nikolaj Olsson
814ad2cd09
Merge pull request #7175 from ivandrofly/feature/UnbreakLine
Updates PlainTextImporter
2023-07-29 00:19:00 -04:00
Nikolaj Olsson
ed3485a7de
Merge pull request #7174 from ivandrofly/faeture/niksecombobx
[NikseComboBox] - Refactor & Optimization
2023-07-29 00:18:14 -04:00
Ivandro Jao
05487e8f66 Refactor extra space removal in Utilities
This commit refactors the process of removing extra spaces in Utilities.cs for improved code efficiency and readability. Instead of using a loop to remove consecutive spaces, a new method `FixExtraSpaces()` is now used. This method is more clear and efficient. Additionally, the process of replacing tags with a single whitespace has been simplified by using a constant `singleWhiteSpace`. This not only improves readability but also ensures a uniform definition of single whitespace replacement throughout the code.
2023-07-29 04:20:57 +01:00
Ivandro Jao
2b271c9859 Refactor mouse event in NikseComboBox control
Existing mouse event handling was simplified by removing unnecessary nested if clause in NikseComboBox.cs. The change streamlines the code and improves readability without changing functionality.
2023-07-28 22:32:26 +01:00
Ivandro Jao
1818dff457 Refactor NikseComboBox to enhance null safety
The condition of null-checking before removing the existing list view and invalidating the form has been updated. This has been done in order to avoid potential null reference exceptions. This change adds an extra layer of null-safety by storing the result of `FindForm()` in a variable and then checking if the form is not null before making the subsequent operations on the form.
2023-07-28 22:30:40 +01:00
Ivandro Jao
04ca4b18fa Refactor mouse click event handling in NikseComboBox control
The update restructures the mouse click event handler in the NikseComboBox control. Prior to this change, the logic was unnecessarily nested within an 'if' statement checking if the event arguments were of 'MouseEventArgs'. In this commit, we handle any null mouseArgs upfront and exit if the argument is null. This reduces the code complexity, improves readability and prevents potential null reference exceptions.
2023-07-28 22:29:15 +01:00
Ivandro Jao
e2f4772c64 Optimize for loop in NikseComboBox.cs
The loop in the NikseComboBox.cs file was restructured to cache the '_listView.Items.Count' before entering the loop. This change was made to reduce unnecessary '_listView.Items.Count' calls in each iteration, thereby optimizing the performance. Running the count operation only once will improve efficiency when dealing with large lists.
2023-07-28 22:27:52 +01:00
Ivandro Jao
20e8006b8c Refactor listView initialization into a separate method
This change extracts the logic for initializing the listView control in NikseComboBox into a separate method called EnsureListViewInitialized(). This helps improve code readability, and maintainability by providing a clear separation of concerns. The ListView control initialization is now concentrated in one place, thus making future changes easier to implement and concerns easier to identify.
2023-07-28 22:26:44 +01:00
Ivandro Jao
e46c9305b6 Refactor code to use variable instead of accessing collectionView directly
This is because listview.count internally calls a bunch of methods in order to calculate the count
2023-07-28 22:20:44 +01:00
Ivandro Jao
43fd9fc0f1 Optimize loop in NikseComboBox mouse event handling
The number of items in the ListView (_listView.Items.Count) was being recalculated in every iteration of the loop. This could potentially slow down the application if the ListView had a large number of items. Moved the calculation outside the loop to improve performance.
2023-07-28 22:09:20 +01:00
niksedk
08766944f1 Work on custom combo-box 2023-07-28 19:30:58 +02:00