Commit Graph

14976 Commits

Author SHA1 Message Date
Nikolaj Olsson
911bc718ee Add large-v3-turbo to Whisper OpenAI models (not tested) 2024-10-03 08:45:48 +02:00
Nikolaj Olsson
847bd603d6 again... 2024-10-03 08:39:01 +02:00
elfriob
6a9d946b62
Update Russian translation 2024-10-02 09:57:43 +00:00
Nikolaj Olsson
4ebe2da219
Merge pull request #8859 from ivandrofly/unit-test
Unit test: Upgrade to .NET SDK Project style
2024-10-01 13:51:16 +02:00
Ivandro Jao
1a38183344 Create missing directories for dictionary files
Updated InterjectionsRepository to check if the dictionary directory exists before attempting to save files. If the directory does not exist, it will now be created automatically. This change prevents potential errors during file saving operations.

Signed-off-by: Ivandro Jao <Ivandrofly@gmail.com>
2024-09-30 20:50:02 +01:00
Ivandro Jao
a6bc467dab Refactor: Consolidate multiple ItemGroup sections in .csproj
This change merges several separate ItemGroup sections in the Test.csproj file into fewer ones. It improves the structure and readability of the project file without altering its functionality. This will make future updates to the project file simpler and more efficient.

Signed-off-by: Ivandro Jao <Ivandrofly@gmail.com>
2024-09-30 20:42:42 +01:00
Ivandro Jao
18efd14123 Remove redundant MSTest package references
Consolidate MSTest package versions for simplicity and to avoid conflicts. Removed individual MSTest related references from the project file and centralized the version management in Directory.Packages.props.

Signed-off-by: Ivandro Jao <Ivandrofly@gmail.com>
2024-09-30 20:33:46 +01:00
Nikolaj Olsson
c522cdaef3 Add FramesRate to FfmpegMediaInfo 2024-09-28 06:37:42 +02:00
Ivandro Jao
f873487388 Uncomment MSTest.TestAdapter package reference.
Re-enabling the MSTest.TestAdapter package reference allows the project to use MSTest framework adapters, ensuring it can run and discover MSTest tests correctly. This change is essential for maintaining compatibility with expected test structures and execution.

Signed-off-by: Ivandro Jao <Ivandrofly@gmail.com>
2024-09-27 22:59:55 +01:00
Ivandro Jao
40f69b2f06 Remove obsolete import statements from Test.csproj
Deleted commented-out import statements that are no longer needed. This cleanup helps maintain code clarity and reduces confusion about dependencies.

Signed-off-by: Ivandro Jao <Ivandrofly@gmail.com>
2024-09-27 22:58:14 +01:00
Ivandro Jao
ea811cacf3 Update MSTest dependencies and manage package versions centrally
Replaced deprecated MSTest.TestAdapter with new MSTest packages and added necessary analyzer configurations. Also included version management for the Microsoft.NET.Test.Sdk and various MSTest packages in Directory.Packages.props to ensure uniformity across the project.

Signed-off-by: Ivandro Jao <Ivandrofly@gmail.com>
2024-09-27 22:55:29 +01:00
Ivandro Jao
2e2fa383c5 Switch to SDK-style project and add MSTest references
Converted Test.csproj to SDK-style format for modern .NET framework targeting and project simplification. Added MSTest.TestAdapter and MSTest.TestFramework package references and their versions to Directory.Packages.props.

Signed-off-by: Ivandro Jao <Ivandrofly@gmail.com>
2024-09-27 22:44:56 +01:00
Nikolaj Olsson
0dcb118064 Fix new issue with OCR/Italic - thx Zoltan :) 2024-09-27 07:54:16 +02:00
Nikolaj Olsson
9e428531ce Add Icelandic language to ChatGPT + Gemini - thx dhofverberg :)
Fix #8855
2024-09-26 07:32:58 +02:00
Nikolaj Olsson
97f5fcaecc Add one more model 2024-09-26 07:14:11 +02:00
Nikolaj Olsson
8eeaa3212b Add llama3.2 model 2024-09-26 07:11:39 +02:00
Nikolaj Olsson
e11977d438 More italic detection - thx Zoltan :) 2024-09-26 06:35:42 +02:00
Nikolaj Olsson
95e4c2450b Change new line handling to match VS code - thx darnn :)
Fix #8854
2024-09-25 06:22:30 +02:00
Nikolaj Olsson
b83470277c Merge branch 'main' of https://github.com/SubtitleEdit/subtitleedit 2024-09-24 17:17:29 +02:00
Nikolaj Olsson
7c55a71a2a Fix for wrong OCR italic detection - thx Boulder08 :)
Fix #8851
2024-09-24 17:17:23 +02:00
Nikolaj Olsson
675b6bc1d3
Merge pull request #8831 from ivandrofly/settings
Refactor XmlWriter variable names in Settings.cs
2024-09-24 13:31:40 +02:00
Nikolaj Olsson
f667fef5c7 Align navigating video with frame when in frame-time-code-mode
Related to #7105
2024-09-19 07:54:52 +02:00
Nikolaj Olsson
dbe07ab735 Do not show save message with text box - thx Pasco :) 2024-09-19 07:51:24 +02:00
Ivandro Jao
14948deb4c Refactor XmlWriter variable names in Settings.cs
Renamed all occurrences of `textWriter` to `xmlWriter` for consistency and clarity. This change enhances code readability without altering functionality, ensuring that the `XmlWriter` object is consistently referenced throughout the file.

Signed-off-by: Ivandro Jao <Ivandrofly@gmail.com>
2024-09-17 14:08:18 +01:00
Nikolaj Olsson
9ae93c4d49
Merge pull request #8821 from ivandrofly/doc
Improves/Add documentation
2024-09-15 15:28:56 +02:00
Nikolaj Olsson
bc82e79089 Fix bug in EBU validation
Now detect teletext correctly
2024-09-15 15:26:36 +02:00
Nikolaj Olsson
7aa4635cd3 Merge branch 'main' of https://github.com/SubtitleEdit/subtitleedit 2024-09-15 10:54:32 +02:00
Nikolaj Olsson
bee0d0eda1 Add interface for save to stream 2024-09-15 10:54:25 +02:00
Hugo Carvalho
b7e1e4ae5a
Update pt-PT.xml
For commit: d97cefd57b
2024-09-14 23:39:11 +01:00
Nikolaj Olsson
2d38b34b45 Add "o1-mini" model 2024-09-14 14:41:45 +02:00
Nikolaj Olsson
50d4864987 Minor fix for Cavena890 save options
Missing check for Romanian
2024-09-14 11:31:30 +02:00
Ivandro Jao
f3139dba3d Add XML documentation to HTML tag constants
Enhanced HtmlUtil.cs with XML comments detailing the purpose of each HTML tag constant. This improves code readability and helps developers understand the specific usage of these constants.

Signed-off-by: Ivandro Jao <Ivandrofly@gmail.com>
2024-09-13 15:18:44 +01:00
Ivandro Jao
80d20fbb77 Add XML documentation for all public methods in HtmlUtil.cs
Update the HtmlUtil.cs file to include comprehensive XML documentation for all public methods. This enhances code readability and provides detailed explanations for each method's functionality, parameters, and return values.

Signed-off-by: Ivandro Jao <Ivandrofly@gmail.com>
2024-09-13 15:14:12 +01:00
Ivandro Jao
39d1bccfc5 Add detailed file type checks and utility methods in FileUtil
Enhanced the `FileUtil` class by adding multiple methods to determine specific file types and read file content in different ways. This includes methods for ZIP, 7-Zip, MP3, WAV, RAR, PNG, JPG, and other file formats, as well as functions to handle text and binary file operations.

Signed-off-by: Ivandro Jao <Ivandrofly@gmail.com>
2024-09-13 15:10:58 +01:00
Nikolaj Olsson
293e81c42c fix typo 2024-09-13 07:47:51 +02:00
Nikolaj Olsson
bd3497f23a Fix possible crash in "Gen transparent subs" when using video from "Program files" 2024-09-13 07:15:13 +02:00
Nikolaj Olsson
4237f39a9f Fix wrong dialog info text in FCE 2024-09-13 07:13:59 +02:00
Nikolaj Olsson
d16a3a06c0 Merge branch 'main' of https://github.com/SubtitleEdit/subtitleedit 2024-09-13 07:12:58 +02:00
Nikolaj Olsson
37e8cedb6a Update Koreans translation - thx domddol :) 2024-09-13 07:12:53 +02:00
Adam Malich
b36eff6eab Update pl-PL.xml file 2024-09-11 14:04:45 +02:00
Nikolaj Olsson
ddeee56e03 Fix for divide by zero in tts 2024-09-11 09:21:36 +02:00
Nikolaj Olsson
0b90c931a6 Try to add support for Eleven labs "eleven_turbo_v2_5" - thx laszlolaszlo :)
Related to https://github.com/SubtitleEdit/subtitleedit/discussions/8810
2024-09-11 07:13:14 +02:00
Nikolaj Olsson
5bc1e56f75 Add "Intel Quick Sync" for "video burn in" - thx ghostminhtoan :)
Fix #8814
Added "h264_qsv" + "hevc_qsv" video encoders
2024-09-11 07:09:51 +02:00
nkh0472
00f108c3d5
Update zh-Hans.xml
for commit d97cefd57b
2024-09-10 16:27:44 +08:00
bovirus
f60bb6c8d6
Update Italian language 2024-09-09 19:14:20 +02:00
Nikolaj Olsson
17489f32dd Allow save selected lines as subtitle with only 1 row selected - thx Pierrounator :)
Fix #8796
2024-09-09 18:46:59 +02:00
Nikolaj Olsson
d97cefd57b Add move all shot changes shortcuts - thx acetilo :)
Work on  #8795
2024-09-09 18:17:51 +02:00
Nikolaj Olsson
16e19c9252 Update winget + libse pack info 2024-09-06 10:57:58 +02:00
Nikolaj Olsson
ee3ce9af44 SE 4.0.8 2024-09-06 09:34:05 +02:00
Nikolaj Olsson
4542409018 Minor auto-tr cleanup 2024-09-06 08:43:46 +02:00
Nikolaj Olsson
4519d017e4 Undo commit db527e4985 2024-09-05 21:25:46 +02:00
Nikolaj Olsson
8ef56bb9bc Try to fix missing header in Batch convert with WebVTT to ASSA
Fix #8707
2024-09-05 21:09:29 +02:00
Nikolaj Olsson
835a2d08cd More clean 2024-09-05 20:04:08 +02:00
Nikolaj Olsson
7d593a72db Clean up test project 2024-09-05 19:37:04 +02:00
Nikolaj Olsson
6840c360f3 A bit more checking of Whisper errors 2024-09-05 19:13:18 +02:00
Nikolaj Olsson
849b6a00f5
Merge pull request #8791 from ivandrofly/subtitle-csproj
Remove outdated .NET Framework bootstrapper packages
2024-09-05 19:09:53 +02:00
Nikolaj Olsson
2bcdd27594
Merge pull request #8786 from ivandrofly/test-project
Switch to Central Package Management and update binding redirect
2024-09-05 19:09:32 +02:00
Ivandro Jao
8d792fac2f Remove EnsureNuGetPackageBuildImports target
This target was deleted from the project file as it is no longer necessary. The build process remains unaffected since the referenced NuGet package is already handled elsewhere. This change simplifies the csproj file and eliminates redundant checks.

Note: \packages\ directory is irrelevant for packagereference
Signed-off-by: Ivandro Jao <Ivandrofly@gmail.com>
2024-09-05 08:55:53 +01:00
Ivandro Jao
229f610e47 Remove outdated .NET Framework bootstrapper packages
Deleted deprecated bootstrapper packages for older .NET Framework versions (2.0, 3.0, 3.5). This cleanup reduces project clutter and aligns with current dependency requirements.

Signed-off-by: Ivandro Jao <Ivandrofly@gmail.com>
2024-09-04 11:24:02 +01:00
Ivandro Jao
a6fad99cb2 Update package references to use centralized management
Moved version numbers from individual csproj files to Directory.Packages.props to enable centralized management of package versions. This simplifies version control and ensures consistency across the project.

Signed-off-by: Ivandro Jao <Ivandrofly@gmail.com>
2024-09-03 15:38:21 +01:00
Ivandro Jao
f5392b2394 Use centralized package management
Refactor project files to use Directory.Packages.props for centralized NuGet package management, making dependency updates easier and more consistent across projects. Removed explicit version specifications from individual project files.

Signed-off-by: Ivandro Jao <Ivandrofly@gmail.com>
2024-09-03 14:49:11 +01:00
Nikolaj Olsson
3df739ce89 Update Romanian translation - thx Mircea :) 2024-09-03 10:54:57 +02:00
Nikolaj Olsson
23fed68a67 Save "Adjust settings" in "Batch convert" - thx oep42 :)
Fix #8710
2024-09-03 08:00:25 +02:00
Nikolaj Olsson
347db4637f Working on #8710 (Batch convert - save "adjust durations" option) 2024-09-02 22:49:11 +02:00
Nikolaj Olsson
924e7376e0 Update Romanian translation - thx Mircea :) 2024-09-02 17:06:04 +02:00
Ivandro Jao
d882c7a0b3 Reformat project file to improve readability
Replaced tabs with spaces and adjusted XML formatting in Test.csproj to enhance readability and maintain consistency. No functional changes were made to the project configuration.

Signed-off-by: Ivandro Jao <Ivandrofly@gmail.com>
2024-09-01 20:21:19 +01:00
Ivandro Jao
abd74866bf Add RuntimeIdentifier to Test.csproj
Removed the empty TargetFrameworkProfile and NuGetPackageImportStamp elements and added the RuntimeIdentifier property set to 'win'. This change specifies the runtime environment for the project, ensuring it targets the Windows platform explicitly.

Signed-off-by: Ivandro Jao <Ivandrofly@gmail.com>
2024-09-01 20:19:54 +01:00
Nikolaj Olsson
d06f1ea37c Work on settings 2024-09-01 21:08:25 +02:00
Ivandro Jao
d1fa485e44 Switch to PackageReference and update binding redirect
Replaced `packages.config` with `PackageReference` in `Test.csproj` for streamlined package management. Also updated the `System.Net.Http` binding redirect in `app.config` from version `4.2.0.0` to `4.1.2.0`.

Signed-off-by: Ivandro Jao <Ivandrofly@gmail.com>
2024-09-01 19:49:14 +01:00
Nikolaj Olsson
4206978b0b
Merge pull request #8785 from PMitsakis/main
Translation update
2024-08-31 22:31:05 +02:00
Nikolaj Olsson
deba83c1a9 Allow ASSA margin up to 9,999 - thx Jim :)
Old limit was 1000
2024-08-31 22:24:36 +02:00
Μητσάκης Παναγιώτης
3464125549
Update el-GR.xml 2024-08-31 11:24:42 +03:00
Nikolaj Olsson
f43662875f Add É (capital E with acute accent) to list of French special characters - thx dobratzp :)
Fix #8782
2024-08-30 16:47:22 +02:00
Nikolaj Olsson
f639e9cacf Fix for pasting ASSA in the waveform - thx MitchSirco :)
Fix #8781
2024-08-30 13:17:32 +02:00
Nikolaj Olsson
b58fa44884 Fix for last commit 2024-08-30 07:41:02 +02:00
Nikolaj Olsson
533c89ee23 Remove default spell check shortcut - thx Javier :)
Save As" and "Spell Check" had the same keyboard shortcut (Ctrl+Shift+S)
2024-08-30 06:53:17 +02:00
Nikolaj Olsson
1a6d3bf01b Fix for batch translate via Ollama - thx Anon1337Elite :)
Fix #8771
2024-08-28 18:44:47 +02:00
Nikolaj Olsson
3b7fdef52a Fix unit test 2024-08-28 15:18:39 +02:00
Nikolaj Olsson
d28bd895cd again... 2024-08-28 10:08:11 +02:00
Nikolaj Olsson
48d4558352 Fix for last commit 2024-08-28 10:03:18 +02:00
Nikolaj Olsson
36d81029d2 Fix undesired break lines in auto-´translate - thx Dyo-Anima :)
Fix #8770
2024-08-28 09:59:20 +02:00
Nikolaj Olsson
46d5d87c7e Fix time code parse 2024-08-28 09:34:48 +02:00
Nikolaj Olsson
6ff163a386 Fix frozen engine switch for Whisper - thx Leon :)
Fix #8769
2024-08-28 09:31:57 +02:00
Nikolaj Olsson
ccd85ecd4f Update ollama model list 2024-08-28 09:23:51 +02:00
Nikolaj Olsson
c3a44b62d5 Fix crash after running Whisper - thx JDTR75 :)
Related to #8755
2024-08-28 09:23:10 +02:00
Nikolaj Olsson
8a40c195e3 Add pt-PT to Google Translate (and rename pt to "Portoguse (Brazil)" 2024-08-27 16:24:02 +02:00
Nikolaj Olsson
0a9511bf7e Add "TETUM" language to Google Translate 2024-08-27 16:20:43 +02:00
Nikolaj Olsson
24d959569c Handle dvb_sub in mkv in "Batch convert" - thx Gerben :) 2024-08-26 21:04:32 +02:00
Nikolaj Olsson
511192a2fc Add AcceptButton in Adjust-duration + FCE 2024-08-26 20:24:41 +02:00
Nikolaj Olsson
9c2ba25011 Also collect duration in ffmpeg media info 2024-08-26 12:43:55 +02:00
Nikolaj Olsson
3a425c05d9 Fix missing translation in FCE - thx jmaraujouy :)
Fix  #8759
2024-08-23 20:47:01 +02:00
Nikolaj Olsson
dfc9b51e13 Set a default resolution for "Gen transparent subs" - thx hellobigbean :)
Related to discussion https://github.com/SubtitleEdit/subtitleedit/discussions/8751
2024-08-20 17:12:12 +02:00
Nikolaj Olsson
38a9f0992e Fix white space 2024-08-20 16:56:30 +02:00
Nikolaj Olsson
9588a75ea3 Improve PAC format a bit for Thai - thx Ingo :) 2024-08-20 16:51:26 +02:00
Nikolaj Olsson
745c1e79f8 Try to fix crash from #8747 - thx JDTR75/ cvrle77 :) 2024-08-20 15:44:36 +02:00
Nikolaj Olsson
623fb09565 Minor refact + add comment 2024-08-20 15:35:40 +02:00
Nikolaj Olsson
53a6f068a2
Merge pull request #8752 from PoneyClairDeLune/main
Fixes edge cases for parsing milliseconds.
2024-08-20 13:02:57 +02:00
Nikolaj Olsson
97ef3d7c4e Work on unit tests 2024-08-20 13:02:40 +02:00
Lumière Élevé
6dfee276a2 Do not even reach normalization with 3 digits. 2024-08-20 09:44:26 +00:00
Lumière Élevé
af54326102 Normalizes edge cases for parsing milliseconds. 2024-08-20 09:32:36 +00:00