SubtitleEdit/src/libse
2023-11-28 07:06:55 +01:00
..
AudioToText Try to re-add const-me large model (v2) 2023-11-28 06:57:29 +01:00
AutoTranslate Fix for unwanted "<br />" in MS translator - thx Miguel :) 2023-11-27 09:36:23 +01:00
BluRaySup Optimize bd sup writing a tiny bit 2022-12-11 08:55:04 +01:00
CDG
Cea608 Work on mp4 2023-10-30 18:27:24 +01:00
Cea708 Improve performance Cea-708 code - thx Bond-009 :) 2022-05-01 20:19:51 +02:00
Common Fix minor space issue with "Fix italic tags" - thx Adam :) 2023-11-26 17:30:52 +01:00
ContainerFormats Work on #7603 2023-11-07 18:50:44 +01:00
DetectEncoding
Dictionaries OcrFixReplaceList: do not perform .RemoveChar('l') 2x 2023-06-30 22:25:39 +01:00
Enums Choose where to replace in translation mode - thx Leon :) 2023-04-16 09:37:27 +02:00
Forms Work on interjections skip list 2023-11-04 15:35:10 +01:00
Grammar
Http Fix #7565 2023-11-26 09:00:50 +01:00
Interfaces "Refactor pixel width calculation in FixShortLinesPixelWidth" 2023-07-29 23:21:30 +01:00
NetflixQualityCheck Minor optimization for Paragraph.Duration - thx ivandrofly :) 2023-07-15 09:17:18 +02:00
Properties SE 4.0.2 2023-11-19 09:05:53 +01:00
Resources
SpellCheck Fix for do use *_se.xml words in OCR 2022-09-28 22:29:07 +02:00
SubtitleFormats Minor fix for "Whisper Raw" format - do not allow using frames for output - thx Subtitle-Bob :) 2023-11-28 07:06:55 +01:00
Translate Work on translate 2023-10-12 18:05:10 +02:00
VobSub Minor optimization for Paragraph.Duration - thx ivandrofly :) 2023-07-15 09:17:18 +02:00
GermanNouns.cs Update German nouns 2022-07-16 19:53:45 +02:00
Icon.png Update icon slightly - thx LeonCheung :) 2021-02-22 09:41:43 +01:00
LibSE.csproj Add OS verification to projects 2023-11-21 23:07:39 -03:00
Readme.md Improve ocr string-split-when-space-is-missing - thx Dnkhatri :) 2021-12-18 13:49:06 +01:00

libse

How to load a subtitle file

var subtitle = Subtitle.Parse(fileName);
var numberOfSubtitleLines = subtitle.Paragraphs.Count;
var firstText = subtitle.Paragraphs.First().Text;
var firstStartMilliseconds = subtitle.Paragraphs.First().StartTime.TotalMilliseconds;

How to save a subtitle file

File.WriteAllText(@"C:\Data\new.srt", new SubRip().ToText(subtitle, "untitled"));