Commit Graph

14849 Commits

Author SHA1 Message Date
Nikolaj Olsson
e963cfdd12
Merge pull request #8397 from ivandrofly/feature/report-progress
Refactor progress report in WhisperModelDownload
2024-06-05 07:10:09 +02:00
Nikolaj Olsson
24de4b2e5a
Merge pull request #8416 from ivandrofly/feature/se-listview-dispose
Add Dispose method to SubtitleListView control
2024-06-05 07:03:06 +02:00
Nikolaj Olsson
e818a24c94
Merge pull request #8464 from ivandrofly/feature/settings
Remove unused variable in Settings.cs
2024-06-05 06:57:16 +02:00
Nikolaj Olsson
bb8a7d0bc8
Merge pull request #8472 from MediaExpres/main
added new Romanian missing translations
2024-06-05 06:56:48 +02:00
Nikolaj Olsson
a5cd4af419
Merge pull request #8478 from bovirus/main
Update Italian language
2024-06-05 06:55:18 +02:00
Nikolaj Olsson
78a978d7e1 Fix theme issues with regex context menu 2024-06-05 06:40:56 +02:00
Mihai Pavelescu
94b1b4e158
Merge branch 'SubtitleEdit:main' into main 2024-06-04 22:58:42 +03:00
bovirus
4acc7e69f0
Update Italian language 2024-06-04 21:05:36 +02:00
Hugo Carvalho
b9373ed0ea
Update pt-PT.xml 2024-06-04 19:52:31 +01:00
Nikolaj Olsson
50a9cf5b98 Fix crash in TS convert - thx MounaLafi :)
Work on #8470
2024-06-04 20:03:20 +02:00
Nikolaj Olsson
ebc789afbb Improve context menu for Find/Replace - thx Nthoney :)
Work on #8466
2024-06-04 17:52:09 +02:00
Mihai Pavelescu
2175af613f further Romanian tags added 2024-06-04 06:49:10 +03:00
Mihai Pavelescu
c39dc833a0 Merge branch 'main' of https://github.com/MediaExpres/subtitleedit 2024-06-04 06:30:58 +03:00
Mihai Pavelescu
f483694088 new Romanian tags added 2024-06-04 06:15:57 +03:00
Ivandro Jao
8ed1401a19 Remove unused variable in Settings.cs
An unused variable 'p' of type RulesProfile has been removed from src/libse/Common/Settings.cs.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-06-02 20:39:52 +01:00
Nikolaj Olsson
a2bbe632a2 Improve error msg 2024-06-02 13:40:51 +02:00
Nikolaj Olsson
e94c07bafa Fix related to #8421 - thx rRobis :) 2024-06-02 12:16:57 +02:00
Nikolaj Olsson
c575d55945 Merge branch 'main' of https://github.com/SubtitleEdit/subtitleedit 2024-06-02 10:52:13 +02:00
Nikolaj Olsson
926a70ad29 Minor Ui fixes 2024-06-02 10:52:08 +02:00
nkh0472
4bfc301c54
Update zh-Hans.xml
for commit 134415f639
2024-06-02 15:15:55 +08:00
Nikolaj Olsson
35de19ec3f Fix auto translate crash - thx soscaster :)
Fix  #8459
2024-06-02 08:41:44 +02:00
Nikolaj Olsson
134415f639 Add language tags 2024-06-02 07:40:59 +02:00
Igor Rückert
b14bb5f1af
Update pt-BR.xml 2024-06-01 21:05:30 -03:00
Nikolaj Olsson
91cb47716e Fix #8421 2024-06-01 12:41:52 +02:00
Nikolaj Olsson
966cb98d18 Update language 2024-06-01 10:18:10 +02:00
Adam Malich
36da8f68e3 Update pl-PL.xml to version v4.0.6 2024-06-01 09:26:21 +02:00
Nikolaj Olsson
cb171aaa96 Subtitle Edit 4.0.6 2024-06-01 07:28:10 +02:00
Nikolaj Olsson
2489076a6c
Merge pull request #8453 from ivandrofly/feature/subtitle-format
Remove duplicate registration
2024-05-31 17:40:53 +02:00
Nikolaj Olsson
c131689914 Try to improve LibreTranslate line breaks
Fix #8449
2024-05-31 17:40:28 +02:00
Nikolaj Olsson
b3d8598ed5 Add Swedish to ChatGPT translate - thx Stefan :) 2024-05-31 17:28:03 +02:00
Ivandro Jao
856eb457db Remove duplicated registration
Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-05-30 17:21:02 +01:00
Nikolaj Olsson
15edc00dbe Undo Whisper CPP update 2024-05-30 07:39:10 +02:00
Nikolaj Olsson
e6a2c71d39 Improve error msg slightly 2024-05-29 21:10:50 +02:00
Nikolaj Olsson
65d1e368c2 Merge branch 'main' of https://github.com/SubtitleEdit/subtitleedit 2024-05-28 22:05:25 +02:00
Nikolaj Olsson
012cbe5006 Improve burn-in error handling - thx Leon :) 2024-05-28 22:05:18 +02:00
Hugo Carvalho
1789baa255
Update pt-PT.xml 2024-05-28 14:54:55 +01:00
Nikolaj Olsson
8ad754387a Add ASSA res in whisper batch - thx rRobis :)
Fix #8434
2024-05-28 09:26:06 +02:00
Nikolaj Olsson
d7358b5910 More language filter 2024-05-28 07:53:17 +02:00
Nikolaj Olsson
8854486351 Use language-filter in auto-translate 2024-05-27 20:12:28 +02:00
Nikolaj Olsson
047d411617 Add "m4b" as audio file ext - thx janot :)
Fix #8437
2024-05-27 08:34:51 +02:00
Nikolaj Olsson
c0a8a25c6d Allow larger subtitle preview size - thx kadrimarzouki :)
Fix #8438
2024-05-27 08:22:23 +02:00
Nikolaj Olsson
c9da2df7a2 Split pt to pt-pt og pt-br for deepl - thx Uncle-Tio :)
Work on #8439
2024-05-27 08:03:29 +02:00
Nikolaj Olsson
eb3539e0b6 Update DeepL languages - thx Ihab :) 2024-05-26 18:28:48 +02:00
Mihai Pavelescu
1c7b91fdf3 Further tags added to Romanian second batch, May 25 2024-05-25 19:48:29 +03:00
Mihai Pavelescu
7616243c01
Merge branch 'SubtitleEdit:main' into main 2024-05-25 11:54:01 +03:00
Mihai Pavelescu
f50dfe701b Spike, Clipboard and some others tags translated to Romanian 2024-05-25 11:49:46 +03:00
Nikolaj Olsson
bde3d60d26 Work on #8423 2024-05-25 10:25:06 +02:00
Nikolaj Olsson
bd3903c82b Add text length to "modify selection" 2024-05-24 20:34:49 +02:00
Nikolaj Olsson
50ba9b1ba7 Work on #8423 2024-05-24 19:42:23 +02:00
Nikolaj Olsson
1dc79262cc Update ffmpeg 2024-05-24 11:41:17 +02:00
Nikolaj Olsson
4680df9ab8 Change ffmpeg param a bit for burn-in - thx Leon :) 2024-05-24 11:24:58 +02:00
Nikolaj Olsson
3bd394bfec
Merge pull request #8420 from MediaExpres/main
Main
2024-05-24 10:25:37 +02:00
Nikolaj Olsson
cfe0089629 Batch convert: Check for ".sub" ext with bd sup - thx OlJohnny :)
Fix #8413
2024-05-24 09:28:15 +02:00
Mihai Pavelescu
a5154159c9 OCR and Prefix tags translated to RO 2024-05-23 11:52:11 +03:00
Nikolaj Olsson
c2b63a48ce
Merge pull request #8415 from MediaExpres/main
Translated to Romanian some of the tags in UI
2024-05-23 09:29:47 +02:00
Nikolaj Olsson
c4b8255f45 Improve FixMissingPeriodsAtEndOfLine - thx Leon :)
Fix #8386
2024-05-23 09:27:55 +02:00
Ivandro Jao
846dcdba68 Add Dispose method to SubtitleListView control
Added override to the Dispose method in SubtitleListView control which unregisters any tick events and disposes timer objects when control is being discarded. This helps to ensure resources are properly freed up, reducing potential memory leaks.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-05-23 00:02:08 +01:00
Nikolaj Olsson
48dd4b54d9 Add new sub format 2024-05-22 18:43:01 +02:00
Mihai Pavelescu
112ac6fb38 Translated to Romanian some of the tags in UI 2024-05-22 16:08:09 +03:00
Mihai Pavelescu
07703ef435
Update ro-RO.xml
Added the <WordLists>Lista de cuvinte...</WordLists> translation for Romanian. Since it was missing, the English one "Word lists..." was shown by default on the Romanian language user interface.
2024-05-21 19:57:54 +03:00
Nikolaj Olsson
ee7d64e427 Merge branch 'main' of https://github.com/SubtitleEdit/subtitleedit 2024-05-21 18:49:54 +02:00
Nikolaj Olsson
666f9dcdcb Update Korean translation - thx domddol :) 2024-05-21 18:49:48 +02:00
Mihai Pavelescu
0f01357943
Update ro-RO.xml
Make it clear that the SOUND wave will be shown once you click.there.
2024-05-21 19:32:57 +03:00
elfriob
e103389447
Update Russian translation 2024-05-21 09:01:33 +00:00
Nikolaj Olsson
7f7c1e1388 Fix cmd line issue + minor refact for ollama 2024-05-20 20:34:25 +02:00
Nikolaj Olsson
b2e40191bd Make delete cli params obey order
Related to  #8391
2024-05-20 19:21:16 +02:00
Μητσάκης Παναγιώτης
04218e946c
Update el-GR.xml 2024-05-20 19:07:17 +03:00
Nikolaj Olsson
be1811db9b
Merge pull request #8399 from nkh0472/patch-116
Update zh-Hans.xml
2024-05-20 09:41:05 +02:00
Nikolaj Olsson
290be662bc Minor ollama fix 2024-05-20 09:38:14 +02:00
Nikolaj Olsson
c977d6d5bd Update Bulgarian translation - thx Калин :) 2024-05-20 09:36:36 +02:00
nkh0472
dbab9ddc8b
Update zh-Hans.xml 2024-05-20 11:44:25 +08:00
Ivandro Jao
8179cee693 Refactor progress report in WhisperModelDownload
This commit optimizes the code in WhisperModelDownload.cs by pulling out the progress reporting into a separate variable. This new implementation enhances code readability and prevents code redundancy. Now, the 'progressReport' variable is used while calling the 'DownloadAsync' method.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-05-19 23:11:23 +01:00
Nikolaj Olsson
9d9f55de68 Merge branch 'main' of https://github.com/SubtitleEdit/subtitleedit 2024-05-19 20:31:12 +02:00
Nikolaj Olsson
ae922cac6b Add deletefirst/deletelast to cmd line convert - thx rRobis :)
Related to #8391
2024-05-19 20:31:07 +02:00
bovirus
88d4c9db22
Update Italian language 2024-05-19 18:30:26 +02:00
Nikolaj Olsson
ea458fb1b9 Update da/sv translations 2024-05-19 17:23:25 +02:00
Nikolaj Olsson
c58bb79e78 Add a few missing translations - thx domddol :) 2024-05-19 17:20:21 +02:00
Nikolaj Olsson
f4536cb03e Update Korean translation - thx domddol :) 2024-05-19 14:36:05 +02:00
bovirus
69c749ffd9
Update Italian language 2024-05-19 11:37:28 +02:00
Nikolaj Olsson
7f64d2348e Update Update WhisperCPP to 1.6.0 (from 1.5.4) 2024-05-19 10:39:06 +02:00
Nikolaj Olsson
7ed7a45f35 Update dk/sv language files 2024-05-19 07:37:51 +02:00
Nikolaj Olsson
808cdc62cf Merge branch 'main' of https://github.com/SubtitleEdit/subtitleedit 2024-05-19 07:31:30 +02:00
Nikolaj Olsson
047cd62138 Update Bulgarian translation - thx Калин :) 2024-05-19 07:23:08 +02:00
nkh0472
f6673a2338
Update zh-Hans.xml
for commit c147f3929f
2024-05-18 14:59:14 +08:00
Nikolaj Olsson
01b74fc481 Check for null in QuartsPlayer - thx giogio33 :)
Try to fix #8384
2024-05-18 08:12:20 +02:00
Nikolaj Olsson
64a52b2d21 Update Bulgarian translation - thx Калин :) 2024-05-17 20:08:47 +02:00
Nikolaj Olsson
6a8b7a87c5 Minor clean 2024-05-17 18:57:49 +02:00
Nikolaj Olsson
0774b3b9a3
Merge pull request #8316 from ivandrofly/feature/ifo-parser
Feature/ifo parser
2024-05-17 18:44:25 +02:00
Nikolaj Olsson
712de43cec
Merge pull request #8383 from OmrSi/include-composition-characters
Add an option to include composition characters in Line Length
2024-05-17 18:30:12 +02:00
Nikolaj Olsson
fc1e640409 Allow for "Faster whisper" custom models - thx yairl/darnn :)
Related to #8377
2024-05-16 20:07:38 +02:00
OmrSi
c147f3929f Add an option to include composition characters in Line Length 2024-05-16 17:40:02 +03:00
Nikolaj Olsson
097f0b4da7 Hide vertical margin if not relevant - thx noembryo :)
Related to #8358
2024-05-15 20:39:30 +02:00
Nikolaj Olsson
84f2c12b8b Remove "force stereo" as tts seems to always use stereo 2024-05-15 15:55:54 +02:00
Nikolaj Olsson
3fba99ee9a
Merge pull request #8372 from bovirus/main
Update Italian language
2024-05-15 06:20:56 +02:00
Nikolaj Olsson
d658cfe0ad Fix for "Force steroe" in TTS
Relaetd to  #8348
2024-05-15 06:20:01 +02:00
bovirus
154ba0deba
Update Italian language 2024-05-14 20:13:31 +02:00
Nikolaj Olsson
d894047258
Merge pull request #8370 from hugok79/patch-121
Update pt-PT.xml
2024-05-14 18:12:24 +02:00
Hugo Carvalho
ca651727ac
Update pt-PT.xml
* For commits: a9f70c1ffe 7e623130e6 6044e581a8
* Other minor corrections
2024-05-14 16:19:54 +01:00
nkh0472
14c291e312
Update zh-Hans.xml
for commit 6044e581a8
2024-05-14 19:33:46 +08:00
Nikolaj Olsson
40b0e94123 Set default ChatGPT model to the new "gpt-4o" 2024-05-14 05:57:50 +02:00
Nikolaj Olsson
7694c69e24
Merge pull request #8338 from trienow/master
Feature: Hot keys to the Ocr-Character-Inspect-Form
2024-05-13 20:48:18 +02:00
Nikolaj Olsson
4155a9b4f1 Fix for setting new speed% after edit (TTS) 2024-05-13 20:14:24 +02:00
Nikolaj Olsson
a87306bb8d Keep wav format for stereo
Related to #8348
2024-05-13 18:19:08 +02:00
Nikolaj Olsson
e95a2f44fc Fix for TTS preview - thx cvrle77 :)
Fix #8361
2024-05-13 17:54:09 +02:00
Nikolaj Olsson
fb2234868a Add audio file file name column for csv export 2024-05-13 08:58:09 +02:00
Nikolaj Olsson
79e417bcc1 Fix #8312 2024-05-13 08:54:40 +02:00
Nikolaj Olsson
a3c8c70f68 Merge branch 'main' of https://github.com/SubtitleEdit/subtitleedit 2024-05-13 08:01:02 +02:00
Nikolaj Olsson
e6cbf81e0b Minor TTS work 2024-05-13 08:00:56 +02:00
Ivandro Jao
cfa0aece78 Refactor tag replacement in HtmlUtil
The revision refactors the replacement of invalid italic tags in the HtmlUtil FixInvalidItalicTags method. The separate string replace statements were replaced with loops that iterate over arrays of predefined invalid tag variations. This change leads to cleaner, more readable, and maintainable code.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-05-11 14:23:05 +01:00
nkh0472
67188943fd
Update zh-Hans.xml 2024-05-11 10:28:55 +08:00
trienow
6044e581a8
Added context menu entries to document the hot keys 2024-05-10 19:23:53 +02:00
trienow
1bf836ac68
Added hot keys to the Ocr-Character-Inspect-Form
This allows the user to not have to rely on their mouse as much when mapping bitmap to character.
2024-05-10 16:30:11 +02:00
Nikolaj Olsson
2e487c30ad Set better default value 2024-05-10 15:47:34 +02:00
Nikolaj Olsson
13c9c4cdbe Add force stereo 2024-05-10 15:39:55 +02:00
Nikolaj Olsson
6b0270eaf5 Fix for TTS last rename 2024-05-10 14:35:36 +02:00
Ivandro Jao
6f1f32876d Refactor method to check string starts with lowercase letter
The method formerly known as "BeginsWithLetter" has been optimized and renamed to "IsFirstLetterConvertibleToUppercase". The method now directly checks if the string is not empty and its first character is lowercase, instead of doing these in separate steps.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-05-10 09:52:43 +01:00
Nikolaj Olsson
10d35fea1b TTS: Go back to using wav (instead of mp3) 2024-05-10 07:26:48 +02:00
Nikolaj Olsson
7e2f94c1b2 Work on #8344 2024-05-09 19:12:45 +02:00
Nikolaj Olsson
d5c52d57d0 Fix for setting tts lang 2024-05-09 19:02:20 +02:00
Nikolaj Olsson
f8b9a67bbe Work on #8342 2024-05-09 16:40:04 +02:00
Nikolaj Olsson
2c6bcc5db9 A little more cleanup 2024-05-09 15:27:43 +02:00
Nikolaj Olsson
266ac09b80 More cleanup 2024-05-09 15:22:18 +02:00
Nikolaj Olsson
fe0130807f Some translation clean up 2024-05-09 15:15:02 +02:00
Nikolaj Olsson
a306e4a1be Work on translation merge 2024-05-09 14:41:18 +02:00
Nikolaj Olsson
3c0c92e4d1 Update Bulgarian translation - thx Калин :) 2024-05-09 13:21:32 +02:00
bovirus
18cd77e280
Update Italian language 2024-05-09 10:18:21 +02:00
Nikolaj Olsson
6e8944742a Minor UI fix 2024-05-09 09:01:23 +02:00
Nikolaj Olsson
5eacb31f0b Fix Azure TTS - thx BlueBlue7891 :)
Fix #8339
2024-05-09 08:10:36 +02:00
Nikolaj Olsson
4a02923c80 Hack for multi download... 2024-05-08 21:41:19 +02:00
Nikolaj Olsson
7e623130e6 Work on #8334 2024-05-08 20:57:22 +02:00
Nikolaj Olsson
31e92dcfbc Work on #8312 2024-05-08 20:38:26 +02:00
Nikolaj Olsson
9d7d1be987 Update Bulgarian translation - thx Калин :) 2024-05-08 19:37:39 +02:00
Nikolaj Olsson
3a6ecac04a Minor UI fix 2024-05-08 19:33:14 +02:00
Nikolaj Olsson
fa3ca2e992 Try to fix #8333 2024-05-08 19:27:16 +02:00
Nikolaj Olsson
a9f70c1ffe Update translation 2024-05-08 19:21:55 +02:00
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
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
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
elfriob
aacb423f3d
Update Russian translation 2024-05-06 11:16:04 +00: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
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
Ivandro Jao
cfd39e64eb Implement IDisposable in translators and properly dispose HttpClient instances
Several classes, particularly the ones related to translation services, have been modified to implement IDisposable interface. Additionally, all instances of HttpClient are being disposed properly now using "using" keyword. This will help ensure that system resources are promptly released when they're no longer required, potentially improving application performance and stability.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-05-03 23:41:26 +01:00
nkh0472
f23c88e5d0
Update zh-Hans.xml
for commit 280a2e1454
2024-05-03 15:29:12 +08:00
Nikolaj Olsson
f9700dea68 Merge branch 'main' of https://github.com/SubtitleEdit/subtitleedit 2024-05-02 17:41:34 +02:00
Nikolaj Olsson
d02aa496fb Update Bulgarian translation - thx Калин :) 2024-05-02 17:41:17 +02:00
bovirus
184396dd7a
Update Italian language 2024-05-02 15:01:46 +02:00
Ivandro Jao
fec4d1838b Replace string declaration with var keyword in SpellCheckWordLists
This commit replaces explicit string variable declarations with the var keyword in the SpellCheckWordLists.cs file. This provides improved code readability and maintainability, as it leverages the compiler's ability to determine the variable's type automatically based on its value.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-05-02 10:26:58 +01:00
Ivandro Jao
16bf8a8772 Refactor dictionary loading in SpellCheckWordLists
This commit simplifies the process of loading user and system dictionaries in SpellCheckWordLists. The modified code avoids redundant loading constructs through an iteration over the dictionary paths. It contributes to maintaining the readability and efficiency of the codebase.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-05-02 10:23:34 +01:00
Ivandro Jao
c0b83f6dda Refactor duplicate code in SpellCheckWordLists
The duplicated loops checking for words containing periods or dashes in different collections were replaced with a single loop. The function GetSingleUnifiedCollection was created to unify the collections using the Union method. This makes the code cleaner and more maintainable.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-05-02 10:15:26 +01:00
Ivandro Jao
6f35288fc0 Remove unused '_skipAllList' from SpellCheckWordLists
Removed the '_skipAllList' variable from 'SpellCheckWordLists.cs' as it was unused. The variable was also removed from a sorting operation, which should help improve performance.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-05-02 09:59:36 +01:00
Nikolaj Olsson
ddeb4e3aca
Merge pull request #8291 from hugok79/patch-119
Update pt-PT.xml
2024-05-02 07:09:23 +02:00
Nikolaj Olsson
900ea79885 Improve error logging for #8275 2024-05-02 07:04:49 +02:00
Hugo Carvalho
860b99e05c
Update pt-PT.xml 2024-05-01 23:08:38 +01:00
Nikolaj Olsson
a92da80b51 Update readme + about 2024-05-01 19:27:45 +02:00
Nikolaj Olsson
bc8c4c0cb5 Allow empty time codes for format "Unknown 66" - thx darnn :)
Fix #8288
2024-05-01 16:38:25 +02:00
Nikolaj Olsson
c31518adc3 Work on #8266 2024-05-01 16:24:09 +02:00
Nikolaj Olsson
392faf73c1
Merge pull request #8287 from nkh0472/patch-109
Update zh-Hans.xml
2024-05-01 16:21:49 +02:00
nkh0472
9f151620f7
Update zh-Hans.xml 2024-05-01 21:08:43 +08:00
Igor Rückert
beb6d0904f
Update pt-BR.xml 2024-04-30 19:54:59 -03:00
Nikolaj Olsson
0062c42a16 Update dk/sv transkation 2024-04-30 21:30:35 +02:00
Nikolaj Olsson
b47f4b6f13 Work on #8266 2024-04-30 21:28:18 +02:00
Nikolaj Olsson
b35a83f100 Work on #8266 2024-04-30 21:27:03 +02:00
Nikolaj Olsson
2dddf56a61 Fix Azure voice refresh 2024-04-30 20:14:59 +02:00
Nikolaj Olsson
ca9fa80b4b
Merge pull request #8281 from ivandrofly/feature/generatevideowithhardsubs
Feature/generatevideowithhardsubs
2024-04-30 18:35:16 +02:00
Nikolaj Olsson
b34892e716 Try to fix #7859 2024-04-30 18:00:58 +02:00
Nikolaj Olsson
bff037fc8a Make auto-translate shortcut work in waveform - thx rRobis :)
Fix #8280
2024-04-30 16:43:18 +02:00
Nikolaj Olsson
32ec68ccb7 Merge branch 'main' of https://github.com/SubtitleEdit/subtitleedit 2024-04-30 16:24:17 +02:00
Nikolaj Olsson
28a52febdf Minor adjustment of bookmark icon x pos - thx rRobis :)
Fix #8277
2024-04-30 16:23:50 +02:00
Ivandro Jao
042dfa14e5 Add DimensionTest to test project
A new test class, DimensionTest, is created and added to the test project. This class specifically tests the functionality of the Dimension object's validity and equality methods, thus enhancing our suite of unit tests.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-04-30 13:10:10 +01:00
Ivandro Jao
6323937c30 Refactor video dimension validation in GenerateVideoWithHardSubs
This commit refactors the validation of video dimensions in GenerateVideoWithHardSubs class. Instead of checking width and height separately, a new Dimension object is created and validated with IsValid(). This simplifies the code and improves readability.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-04-30 12:41:32 +01:00
Ivandro Jao
93c9e9947a Refactor video and subtitle batch creation code
Code for creating and validating batch video and subtitle entities has been extracted into separate methods, improving the readability of the main method. These changes also include a rectification in the logic for handling invalid video dimensions.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-04-30 12:35:53 +01:00
Ivandro Jao
3d24cdcbb6 Add Dimension struct to manage object sizes
The struct, Dimension which represents the dimensions of an object, is created. This contains basic properties for height and width, and methods for checking equality, validity and providing a string representation. The Dimension can later be used throughout the project for managing sizes of different objects.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-04-30 12:35:42 +01:00
Ivandro Jao
3e1fabac30 Refactor FfmpegMediaInfo to use Dimension for dimensions
The properties VideoWidth and VideoHeight in FfmpegMediaInfo class have been replaced with a Dimension object. This modification leads to simpler and more readable code by encapsulating width and height information within the Dimension class. Any resolution information extracted is now directly assigned to the Dimension property.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-04-30 12:35:28 +01:00
Ivandro Jao
f256b59691 Refactor subtitle file location code in FileUtil
This commit simplifies the subtitle file location code in FileUtil by removing unnecessary nested functions. It changes the way the search is done in known subtitle directories and handles the case if a video file is sent with a full path. This results in cleaner and more manageable code.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-04-30 12:35:19 +01:00
niksedk
56205e4222 Merge branch 'main' of https://github.com/SubtitleEdit/subtitleedit 2024-04-30 07:00:30 +02:00
niksedk
fcaf2e938a Update Bulgarian translaltion - thx Калин :) 2024-04-30 07:00:24 +02:00
bovirus
eee7a8851a
Update Italian language 2024-04-29 20:51:47 +02:00
Nikolaj Olsson
03cef9b709 Add sort direction icon in "Batch convert" 2024-04-29 19:38:35 +02:00
Nikolaj Olsson
a72ebd04d5 Fix sort en gen video w hardsub 2024-04-29 18:22:47 +02:00
Ivandro Jao
82ac6dec92 Fix typo in code comment
A typo in the comment for the subtitle file location function was corrected. Previously, the comment read "try locate subtitle file for the input vide file", and now it reads "try to locate subtitle file for the input vide file". Other changes include removal of an unused variable "fileNameNoExt".

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-04-29 16:17:36 +01:00
Ivandro Jao
c3af5f22ca Refactor TryLocateSubtitleFile method parameters
The method TryLocateSubtitleFile in FileUtil.cs was refactored to receive the complete video file name, rather than just the file name without its extension. This change should enhance file locating accuracy as it now considers the file's full name, including its extension.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-04-29 16:11:14 +01:00
Ivandro Jao
7a96e1c40a Add method to locate subtitle files for video
A method 'TryLocateSubtitleFile' was implemented in FileUtil. It attempts to locate matching subtitle files for video files in known directories. The method was integrated into 'AddInputFile' of 'GenerateVideoWithHardSubs' and simplifies the earlier implementation for finding subtitles. This change will make the process of matching video files to subtitles more efficient and cleaner.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-04-29 16:09:24 +01:00
Nikolaj Olsson
f8db47dba6 Skip audio files - thx Leon :)
Work on #8272
2024-04-29 06:43:30 +02:00
Nikolaj Olsson
6947faeba2 Work on #8272 2024-04-29 06:35:25 +02:00
Nikolaj Olsson
2ffed9b2b9 Move video info to context menu - thx rRobis/Leon :)
Work on #8273
2024-04-29 06:17:12 +02:00
Nikolaj Olsson
f6399cf63e Work on #8257 2024-04-29 06:02:52 +02:00
Nikolaj Olsson
d6add13334 A few language fixes 2024-04-28 21:14:50 +02:00
Nikolaj Olsson
fd03b2e447 Update dk/sv translations 2024-04-28 21:10:46 +02:00
Nikolaj Olsson
965dc3554e Minor refact 2024-04-28 20:40:49 +02:00
Nikolaj Olsson
59ab0fca5b More work on #8257 2024-04-28 20:36:47 +02:00
Nikolaj Olsson
6a3ddce7dd Add video res to ffmpeg info 2024-04-28 19:09:20 +02:00
Nikolaj Olsson
0c28e8a0ec Add sort mark to join subs - thx Leon :)
Work on #8257
2024-04-28 19:09:03 +02:00
Nikolaj Olsson
443d88d195 Allow sort/move for "Add end time of prev" in "Join subtitles" - thx Leon :)
Work on  #8257
2024-04-28 18:33:49 +02:00
Nikolaj Olsson
2122a8dc30 Add some missing translations for tts 2024-04-28 17:25:29 +02:00
Nikolaj Olsson
156513f453 Add delete key action for "unknown words" in OCR - thx RedSoxFan04 :)
Fix #8227
2024-04-28 10:27:25 +02:00
nkh0472
b57d744e8c
Update zh-Hans.xml
for commit ecdcb7fe7e
2024-04-28 10:07:36 +08:00
Nikolaj Olsson
bc3f369e90 Do not auto-set assa style for existing ASSA files
Fix  #8249
2024-04-27 20:10:27 +02:00
Nikolaj Olsson
1946176eef Add new subtitle format - thx lererledd :)
Fix #8247
2024-04-27 19:48:20 +02:00
Nikolaj Olsson
1500ab3bb0 Fix crash in traslate - thx lambdacore12 :)
Fix #8263
2024-04-27 19:28:12 +02:00
Nikolaj Olsson
bb9b53a995
Merge pull request #8251 from ivandrofly/feature/listview-operators
Refactor list view item checking actions
2024-04-27 19:09:30 +02:00
Nikolaj Olsson
a19201b194
Merge pull request #8261 from bovirus/main
Update Itlian language
2024-04-27 19:07:41 +02:00
Nikolaj Olsson
0c6e8fb10f Add "refresh voices" context menu for Piper/ElevenLabs 2024-04-27 19:07:14 +02:00
bovirus
0143e60c24
Update Itlian language 2024-04-26 16:24:22 +02:00
Nikolaj Olsson
ecdcb7fe7e Add CPS option to modify selection - thx uckthis :)
Work on #8148
2024-04-26 06:53:15 +02:00
Nikolaj Olsson
c9ba8b7873 Merge branch 'main' of https://github.com/SubtitleEdit/subtitleedit 2024-04-24 18:27:27 +02:00
Nikolaj Olsson
9d39d1c9aa Add new format (LRC with ms) - thx eadmaster :)
Work on #8240
2024-04-24 18:27:21 +02:00
Ivandro Jao
3892288695 Refactor list view item checking actions
The list view item checking actions, such as "Select All" and "Invert Selection", have been refactored to their own methods (CheckAll, InvertCheck) to reduce repetition. These methods have been implemented in numerous forms across the code. This makes the codebase cleaner and more maintainable as the operations are abstracted out to separate methods.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-04-24 11:02:26 +01:00
niksedk
88fa93fef8 Improve "Cancel" in batch burn-in - thx Leon :)
Fix  #8248
2024-04-24 07:34:58 +02:00
Nikolaj Olsson
452504a5cb Disable OK on tts is done 2024-04-23 07:13:48 +02:00
Nikolaj Olsson
63e6c96cad Handle .mp4 specially for gen video 2024-04-22 20:57:47 +02:00
Nikolaj Olsson
1854a38ca3 Minor burn-in ui fix 2024-04-22 20:14:31 +02:00
Nikolaj Olsson
c85c3556d9 Improve clean 2024-04-22 19:44:07 +02:00