Commit Graph

19792 Commits

Author SHA1 Message Date
Nikolaj Olsson
3e312b682c Work on #8332 2024-05-08 19:11:42 +02:00
Nikolaj Olsson
8c14075f4b Display TTS speed adjustment in review - thx BlueBlue7891 :)
Fix #8329
2024-05-08 17:17:47 +02:00
Nikolaj Olsson
75922a09d2
Merge pull request #8331 from ivandrofly/feature/namelist
Refactor code for XML document creation
2024-05-08 16:55:42 +02:00
Ivandro Jao
d687d4c51c Refactor NameList to simplify addition of names
The logic for adding names to either _namesMultiList or _namesList in the NameList class was spread widely in the method. It has now been encapsulated within a new private method called TryAdd. This commit leads to cleaner and clearer code within the class and promotes easier maintenance in the future.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-05-08 13:24:39 +01:00
Ivandro Jao
2b726092e8 Refactor code for XML document creation
The XML document creation has been refactored into a separate function to reduce repetition. Prior code for creating the XML document was repeated in several places, specifically in the 'Remove' and 'Add' functions. The new 'CreateDocument' function now contains this code, making the overall codebase cleaner and easier to maintain.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-05-08 13:20:06 +01:00
Nikolaj Olsson
e91bf3d1b7 Minor UI fix 2024-05-07 20:25:15 +02:00
Nikolaj Olsson
44676bc9a9 Merge branch 'main' of https://github.com/SubtitleEdit/subtitleedit 2024-05-07 20:05:18 +02:00
Nikolaj Olsson
e3bb91e9d0 Minor ui fix 2024-05-07 20:05:05 +02:00
Nikolaj Olsson
76001419c5
Merge pull request #8328 from ivandrofly/spellcheck
Remove redundant XML load in SpellCheckWordLists
2024-05-07 18:56:54 +02:00
Nikolaj Olsson
ea565668ce Fix crash #8323 2024-05-07 18:42:24 +02:00
Nikolaj Olsson
be432810e1 Merge branch 'main' of https://github.com/SubtitleEdit/subtitleedit 2024-05-07 18:35:24 +02:00
Nikolaj Olsson
b6579d055b Allow TTS without video - thx David :)
Work on #8324
2024-05-07 18:35:19 +02:00
Nikolaj Olsson
d9923e52e4
Merge pull request #8327 from hugok79/patch-120
Update pt-PT.xml
2024-05-07 18:08:56 +02:00
Hugo Carvalho
d2e5ec1487
Update pt-PT.xml
For commits: 280a2e1454 and f643d84844
2024-05-07 16:51:56 +01:00
Ivandro Jao
77c93bfae7 Remove redundant XML load in SpellCheckWordLists
In the SpellCheckWordLists class, the redundant XML load operation in the 'else' clause has been removed. This change simplifies the code by getting rid of an unnecessary operation that was adding complexity and potentially slowing down the application.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-05-06 23:13:06 +01:00
Nikolaj Olsson
bc6c382a4f Allow for "All files" when browsing for vlc.exe
Related to #8319
2024-05-06 18:49:51 +02:00
Nikolaj Olsson
5bc6775331 Try to make preview with ffmpeg if available - thx Kyowa312 :)
Fix #8321
2024-05-06 18:36:16 +02:00
Nikolaj Olsson
186efe3d81 Change text slightly 2024-05-06 18:35:26 +02:00
Nikolaj Olsson
9279e0cf4f Update dk/se translations 2024-05-06 18:34:59 +02:00
Nikolaj Olsson
0a613482ef
Merge pull request #8320 from diomed/main
OCR fixes for Croatian
2024-05-06 18:14:29 +02:00
Nikolaj Olsson
5afc122580
Merge pull request #8322 from elfriob/main
Update Russian translation
2024-05-06 18:14:11 +02:00
elfriob
aacb423f3d
Update Russian translation 2024-05-06 11:16:04 +00:00
May Kittens Devour Your Soul
93ae594730
Update hrv_OCRFixReplaceList.xml 2024-05-06 10:00:14 +02:00
Nikolaj Olsson
5ca151bce6 Update eleven labs api to best model - thx cvrle77 :)
Work on #8318
2024-05-06 06:38:41 +02:00
Nikolaj Olsson
3accd3fc58 Update change log 2024-05-05 21:17:53 +02:00
Nikolaj Olsson
15126e0c7f Work on ttml Imsc11 2024-05-05 18:12:38 +02:00
Nikolaj Olsson
106cdb9684 Try to handle empty text inTTS - thx Miguel :) 2024-05-05 16:59:02 +02:00
Nikolaj Olsson
201e61265d Update Korean translaton - thx domddol :) 2024-05-05 16:37:40 +02:00
Nikolaj Olsson
be06abd76d Add TTS AllTalk - thx Franz :) 2024-05-05 16:29:46 +02:00
Ivandro Jao
ca3c30372d Refactor condition check in IfoParser
The condition check in the IfoParser class has been refactored for better readability and correctness. Proper grouping of conditions within parentheses has been added to ensure appropriate execution order.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-05-05 14:29:07 +01:00
Ivandro Jao
778b2d04b3 Update minCount calculation in GetAllLanguages method
The GetAllLanguages function in IfoParser.cs has been updated to improve the calculation of the variable minCount. It now takes into consideration the count of three component lists - Subtitles, SubtitleIDs, and SubtitleTypes - ensuring that the loop operates on the smallest size among them. This modification prevents potential out-of-range errors.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-05-05 14:27:53 +01:00
Ivandro Jao
55bd510311 Optimize GetAllLanguages method in IfoParser
This commit optimizes the GetAllLanguages method within the IfoParser class. Instead of checking bounds within the loop, we calculate the minimum count between SubtitleIDs and SubtitleTypes before starting the iteration. This simplifies the logic and could potentially improve performance.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-05-05 14:26:27 +01:00
Nikolaj Olsson
57b96a236b Merge branch 'main' of https://github.com/SubtitleEdit/subtitleedit 2024-05-05 14:07:33 +02:00
Nikolaj Olsson
c0d2c73109 Allow vertical zoomout in waveform (ctrl+shift+mouse-wheel in waveform) - thx Leon :)
Fix #8314
2024-05-05 14:07:27 +02:00
Nikolaj Olsson
6697aa8453
Merge pull request #8313 from nkh0472/patch-111
Update zh-Hans.xml
2024-05-05 13:37:47 +02:00
Nikolaj Olsson
ad31fba605
Merge pull request #8311 from bovirus/main
Update Italian language
2024-05-05 13:36:49 +02:00
nkh0472
a842bde098
Update zh-Hans.xml 2024-05-05 18:47:31 +08:00
bovirus
71a94b0c32
Update Italian language 2024-05-05 12:03:28 +02:00
Nikolaj Olsson
0cb95a5251 Use max bytes in auto-translate 2024-05-05 11:48:16 +02:00
Nikolaj Olsson
1176fdfae5 Minor fixes for translate 2024-05-05 11:27:31 +02:00
Nikolaj Olsson
8bb7e4e48c
Merge pull request #8292 from ivandrofly/feature/spellcheck-wordlist
Feature/spellcheck wordlist
2024-05-05 11:11:01 +02:00
Nikolaj Olsson
c0426368e5 Minor improvements 2024-05-05 11:06:39 +02:00
Nikolaj Olsson
cfe425c01b
Merge pull request #8303 from ivandrofly/feature/memory-leak
Implement IDisposable in translators and properly dispose HttpClient …
2024-05-05 10:57:22 +02:00
Nikolaj Olsson
c50c138ec1 Minor UI fix 2024-05-05 10:54:45 +02:00
Nikolaj Olsson
73ffbd1797 Minor UI fixes 2024-05-05 10:51:07 +02:00
Nikolaj Olsson
f643d84844 Update translation 2024-05-05 10:15:15 +02:00
Nikolaj Olsson
b397259aa9 Work on #8293 2024-05-05 10:06:26 +02:00
Nikolaj Olsson
60680c2a4c Do not auto-close burn-in window 2024-05-05 06:56:55 +02:00
Nikolaj Olsson
a2f54a4f74 Merge branch 'main' of https://github.com/SubtitleEdit/subtitleedit 2024-05-04 10:42:48 +02:00
Nikolaj Olsson
56c14d4b17 Fix for font size bug mentioned in #8210 - thx amir3dsmax :) 2024-05-04 10:42:29 +02:00