Commit Graph

19425 Commits

Author SHA1 Message Date
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
Nikolaj Olsson
81d2131f2a Merge branch 'main' of https://github.com/SubtitleEdit/subtitleedit 2024-03-30 21:12:01 +01:00
Nikolaj Olsson
7d9834d96e Update change log 2024-03-30 21:11:56 +01:00
Nikolaj Olsson
33d674593e
Merge pull request #8099 from bovirus/main
Update Italian language
2024-03-30 21:07:31 +01:00
Nikolaj Olsson
0a24f2833e Add new translaton 2024-03-30 21:06:59 +01:00
bovirus
9103ac109e
Update Italian language 2024-03-30 21:00:39 +01:00
Nikolaj Olsson
758dcac3de Work on #8022 2024-03-30 20:39:26 +01:00
Nikolaj Olsson
2479754ced Fix missing translation 2024-03-30 14:52:09 +01:00
Nikolaj Olsson
bb3e583f31 Use original media input for Faster-Whisper - thx Purfview :)
Fix #8097
2024-03-30 13:02:21 +01:00
May Kittens Devour Your Soul
9a0c9b252f
Update hrv_OCRFixReplaceList.xml 2024-03-30 09:51:56 +01:00
Nikolaj Olsson
1dd0228c70 Fix for embed/mp4 - thx Joe :) 2024-03-30 07:41:05 +01:00
Nikolaj Olsson
e3738a1b4b Update Danish/Swedish translation 2024-03-30 07:40:38 +01:00
Nikolaj Olsson
278b642bbf Update language settings 2024-03-29 15:39:25 +01:00
Nikolaj Olsson
16acd67e60 Update change log 2024-03-29 15:39:08 +01:00
Nikolaj Olsson
a242242153 Work on translation for #8074 2024-03-29 15:32:05 +01:00
Nikolaj Olsson
266f4cd79e More #8074 2024-03-29 14:58:13 +01:00
Nikolaj Olsson
6a5d22b6ba Merge branch 'main' of https://github.com/SubtitleEdit/subtitleedit 2024-03-29 14:48:24 +01:00
Nikolaj Olsson
3952bcebe5 More work on #8074 2024-03-29 14:48:18 +01:00
Nikolaj Olsson
3db65b2b5b
Merge pull request #8092 from ivandrofly/feature/htmlutil-off-by-one
Fixes off by one error
2024-03-29 12:18:54 +01:00
Ivandro Jao
0ff192395d Add tests for HtmlUtil.IsTextFormattable method
Two unit test methods were added to the HtmlUtilTest class to check the operation of the IsTextFormattable method. These tests cover different scenarios where the method should return true and false respectively.
2024-03-29 11:09:43 +00:00
Nikolaj Olsson
a2e8ef318c Add some extra validation 2024-03-29 11:56:22 +01:00
Nikolaj Olsson
2cf1ad6246 Minor UI fix 2024-03-29 11:46:36 +01:00
Nikolaj Olsson
5bb086264f Work on embed in mkv 2024-03-29 11:31:45 +01:00
Nikolaj Olsson
78351ffc2b Add some support for PGS in mkv for "embed subs" 2024-03-29 08:06:13 +01:00