Commit Graph

19498 Commits

Author SHA1 Message Date
Hugo Carvalho
e9b6b2b15e
Update pt-PT.xml
For commits: 78351ffc2b 2cf1ad6246 278b642bbf 758dcac3de
2024-04-03 19:47:06 +01:00
Nikolaj Olsson
c34570f123
Merge pull request #8120 from ivandrofly/issues/nikse-combobox-8119
Fixes #8119
2024-04-03 17:37:38 +02:00
Nikolaj Olsson
aad4d3829a
Merge pull request #8118 from ivandrofly/issues/fix-potential-mouse-issue
Switch MouseDown event to MouseUp in NikseUpDown control
2024-04-03 17:30:14 +02:00
Nikolaj Olsson
4f4c89a535
Merge pull request #8117 from ivandrofly/refact/nikseCombobox
Refactor text change notifications in NikseComboBox
2024-04-03 17:29:09 +02:00
Nikolaj Olsson
33a18323a1
Merge pull request #8116 from ivandrofly/refact/ocr-refact
Refactor OCR text fixing for readability and efficiency
2024-04-03 17:22:52 +02:00
Nikolaj Olsson
f4f61f20ba Add LM Studio and Ollama as auto-translators
Fix #7980
2024-04-03 16:38:27 +02:00
Ivandro Jao
ccbec285f3 Fixes #8119
Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-04-02 13:27:22 +01:00
Ivandro Jao
6b42f9a0ad Switch MouseDown event to MouseUp in NikseUpDown control
The code changes correct an event handling in the NikseUpDown custom control. Previously, the base's OnMouseDown event was called, but the correct behavior should be to call the base's OnMouseUp event. This switch ensures the control responds properly to mouse interactions.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-04-02 13:12:19 +01:00
Ivandro Jao
e1f439534d Refactor text change notifications in NikseComboBox
The previous implementation of the text change notifications and value change events in NikseComboBox was repetitive and cluttered. This commit streamlines that by introducing a new method, NotifyTextChanged(), that handles these events. The new approach contributes to code maintainability and readability.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-04-02 13:00:57 +01:00
Ivandro Jao
7cc045c9de Refactor OCR text fixing for readability and efficiency
The commit includes renaming variables in the OCR text correction functionality for better clarity, changing "lastLine" to "previousLine" and "lastLastLine" to "prePreviousLine". It also streamlines the handling of French apostrophes by using an array of affixes to replace repetitive if-else statements.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-04-02 10:47:17 +01:00
Nikolaj Olsson
31ed11f60a More on #8111 2024-04-01 15:32:55 +02:00
Nikolaj Olsson
e722aded31 Merge branch 'main' of https://github.com/SubtitleEdit/subtitleedit 2024-04-01 14:07:13 +02:00
Nikolaj Olsson
a054893ec0 Try to fix auto-translate selected lines - thx rRobis :)
Work on  #8111
2024-04-01 14:07:07 +02:00
Nikolaj Olsson
fec272d061
Merge pull request #8110 from nkh0472/patch-104
Update zh-Hans.xml
2024-04-01 13:55:55 +02:00
nkh0472
04b8ca3d38
Update zh-Hans.xml 2024-04-01 15:11:21 +08:00
Nikolaj Olsson
0891670426 Update change log 2024-04-01 08:54:00 +02:00
Nikolaj Olsson
345e8db1a5 Minor UI fix 2024-04-01 08:40:56 +02:00
Nikolaj Olsson
103d6d5f69 Update Purfview Faster Whisper to r189.1 - thx Purfview :)
See https://github.com/Purfview/whisper-standalone-win/issues/228
2024-04-01 08:36:15 +02:00
Nikolaj Olsson
6a0fa95720 Update change log 2024-03-31 22:14:05 +02:00
Nikolaj Olsson
b36562cbe9 Fix for alst commit - thx highflowerG :)
Work on #8106
2024-03-31 22:05:57 +02:00
Nikolaj Olsson
b523ae72f2 Try to fix layout change crash - thx highflowerG :)
Work on #8106
2024-03-31 21:04:49 +02:00
Nikolaj Olsson
2b3354fcd5 More on custom prompt 2024-03-31 19:50:45 +02:00
Nikolaj Olsson
c141068b4a Minor UI fix 2024-03-31 19:30:42 +02:00
Nikolaj Olsson
6936105eb3 Update change log 2024-03-31 19:30:33 +02:00
Nikolaj Olsson
068d45a43f Update Korean translaton - thx domddol :) 2024-03-31 19:12:33 +02:00
Nikolaj Olsson
cfa8bbc54a Fixed crash in TTML properties - thx ryzen88 :)
Related to #8043
2024-03-31 17:50:42 +02:00
Nikolaj Olsson
499bc16b4d
Merge pull request #8100 from ivandrofly/feature/karaoke
Fixes #6234 #7947 #7909  Add karaoke effect for text transformation
2024-03-31 17:08:25 +02:00
Ivandro Jao
e05a705b92 Optimize TypeWriterEffect logic and refactor code
Mainly focused on streamlining the logic in the TypeWriterEffect class. Implemented StringBuilder for improved performance and readability, removing unneeded code and variables in the process. Additionally, transferred the GetTextWithClosedFontTag method from TypeWriterEffect to KaraokeCharTransform, improving encapsulation and code coherence.
2024-03-31 15:44:38 +01:00
Nikolaj Olsson
c4adce59ce Allow for custom chat gpt prompt 2024-03-31 16:43:41 +02:00
Nikolaj Olsson
3a0c1ad1cf Include default icon for OpenVideo - thx fraternl :)
Fix #8105
2024-03-31 16:22:30 +02:00
Nikolaj Olsson
d5fa89aa83 Set high time-out, which is nice when running against local server 2024-03-31 14:23:31 +02:00
Nikolaj Olsson
306edd170b Format translation 2024-03-31 13:26:48 +02:00
Nikolaj Olsson
6bbce97ef5
Merge pull request #8103 from elfriob/main
Update Russian translation
2024-03-31 13:22:39 +02:00
elfriob
8a849d29f8
Update Russian translation 2024-03-31 11:07:22 +00:00
Nikolaj Olsson
6965b05f0b Use ChatGPT url from translate window 2024-03-31 12:59:26 +02:00
Ivandro Jao
b070bf52b1 Fix precision loss issue in KaraokeEffect
Added a comment explaining a fix in code that prevents precision loss or fraction loss from division in the KaraokeEffect module. This is done by setting the end time of the last animation to the end time of the paragraph, ensuring correct values in milliseconds.
2024-03-31 11:51:40 +01:00
Ivandro Jao
396adfb1a9 Update paragraph end time in KaraokeEffect class
Moved the procedure of setting the end time of the last paragraph from the EffectKaraoke form to the KaraokeEffect class. This change ensures that the proper end time for each animation is set directly within the class where they are created, promoting better code organization.
2024-03-31 11:40:45 +01:00
Ivandro Jao
9cc215b77d Refactor whitespace skipping loop in KaraokeWordTransform
The condition checking and increment operation in the whitespace skipping loop inside the KaraokeWordTransform file has been refactored for better readability. The increment operation (i++) is now placed inside the loop block instead of the while statement.
2024-03-31 11:11:31 +01:00
Ivandro Jao
e4bccc4dca Update KaraokeEffect functionality
The changes made are minor but important. An extra update line has been added to KaraokeEffect.cs to reset the iterator, enabling a more efficient loop through closed captions for Karaoke effects.
2024-03-31 11:09:02 +01:00
Ivandro Jao
f80b13a44a Refactor form tabindex settings and remove unused combobox
Updated the order of tabindex in EffectKaraoke.Designer.cs to improve form navigation using tab key. Also, removed an unnecessary combobox from the form, as it was not serving any purpose in the current implementation. This enhances usability and cleanliness of the codebase.
2024-03-31 11:03:09 +01:00
Ivandro Jao
a103ec717e Update gap between sentences in KaraokeEffect
Changed the constant value for the gap between sentences in the KaraokeEffect to 0. This adjustment aims to eliminate any flickering previously caused by a non-zero gap.
2024-03-31 10:46:52 +01:00
Ivandro Jao
c17b0c1c31 Remove unused karaoke text effects and associated code
The KaraokeEffect class has been simplified and unused code related to multi-strategy text effects has been removed. This includes removing LegacyKaraokeEffect, ITextKaraokeEffect and EffectAnimationPart classes, and all associated code for handling these classes. This cleanup reduces complexity and allows for easier maintainability.
2024-03-31 10:46:38 +01:00
Ivandro Jao
79067bcbe0 Refactor code for readability in KaraokeEffect.cs
Expanded conditional statements' blocks in KaraokeEffect.cs to improve readability and maintainability. This change does not alter the overall functionality of the code but makes it easier to handle and debug.
2024-03-31 10:41:28 +01:00
Nikolaj Olsson
a3fc34c681
Merge pull request #8101 from ivandrofly/feature/uni-test
Update HtmlUtilTest for formattable text check
2024-03-31 08:27:07 +02:00
Nikolaj Olsson
b7546935c7
Merge pull request #8098 from diomed/main
Update hrv_OCRFixReplaceList.xml
2024-03-31 08:26:05 +02:00
Nikolaj Olsson
655ff19cf1
Merge pull request #8102 from ivandrofly/feature/plugins-search
Optimize plugin search in the UI
2024-03-31 08:25:37 +02:00
Ivandro Jao
de4824f9ca Optimize plugin search in the UI
The plugin creation and addition to the listViewGetPlugins is moved into the conditional statement that checks for a match with the search text. This optimizes the search functionality by avoiding unnecessary plugin item creation when the search text does not match any plugin property, thus improving UI performance.
2024-03-31 02:30:24 +01:00
Ivandro Jao
11b5ee92d1 Update HtmlUtilTest for formattable text check
The commit changes some of the test cases for text formattability in HtmlUtilTest.cs. Notably, it modifies a repeated assertion with a string "<i>!?.", replacing it with a fresh assertion testing "!?.</i>".
2024-03-30 22:37:22 +00:00
Ivandro Jao
4a81339ebd Fixes #6234 #7947 #7909 Add karaoke effect for text transformation
Added classes for karaoke effect text transformation with support for splitting by character or word. Also implemented a strategy pattern to handle the different transformations. Additionally, added UI components to let users choose the type of effect and made adjustments to existing classes for the new features.
2024-03-30 22:23:35 +00:00
Nikolaj Olsson
cf8040977a Try to re-add positioning to TTML IMSC 1.1 2024-03-30 21:35:24 +01:00