SubtitleEdit/libse
2020-11-16 20:47:21 +01:00
..
AudioToText Formatting (whitespace only) 2019-08-16 22:55:32 +02:00
BluRaySup Some work on CDG -> BDSUP 2020-10-02 23:10:46 +02:00
CDG work on cdg 2020-10-05 07:15:44 +02:00
ContainerFormats Work on rich text box 2020-11-11 19:31:20 +01:00
DetectEncoding Remove MLang 2020-02-23 11:47:07 +01:00
Dictionaries Improve fix ocr for large lines 2020-09-29 20:57:11 +02:00
Enums Refactoring, add "None, only trailing dots for pauses" style for NF 2020-04-10 22:45:55 +02:00
Forms Add a hidden option to set Continuation Pause 2020-11-07 13:21:30 +02:00
Grammar Improve transport stream cmd line convert 2020-07-04 13:35:03 +02:00
Interfaces Expriment with CD+G karaoke format 2020-09-21 07:08:09 +02:00
NetflixQualityCheck Update Netflix Shot Change timing rules + some fixes 2020-11-02 20:01:10 +02:00
Properties 3.5.18 2020-11-09 16:06:30 +01:00
Resources Update Netflix allowed glyphs - thx Justin :) 2018-12-18 22:17:30 +01:00
SpellCheck Make spell check auto-fix-names less aggressive - thx rhcauthen :) 2020-04-17 12:30:11 +02:00
SubtitleFormats Fix frame rate bug in FCP+image - thx Christopher :) 2020-11-15 09:26:37 +01:00
Translate Add warning for saving DCinema files in non-utf8-encoding 2020-07-20 19:09:30 +02:00
VobSub Fix some codacy issues 2020-08-23 12:18:09 +02:00
BmpReader.cs test appveyor 2020-06-20 08:21:31 +02:00
BookmarkPersistence.cs Fix bookmark "new line" characters 2019-01-28 06:38:35 +01:00
CharUtils.cs
Configuration.cs Switch "Tesseract 4.1.1" to "Tesseract 5 Alpha 2020-03-38" 2020-03-29 16:08:46 +02:00
ContinuationUtilities.cs Add a hidden option to set Continuation Pause 2020-11-07 13:21:30 +02:00
CultureExtensions.cs Encapsulate "CultureInfo.ThreeLetterISOLanguageName" 2020-04-16 10:31:27 +02:00
DialogSplitMerge.cs Minor refact of last commit 2020-04-17 09:17:30 +02:00
DvdSubtitleLanguage.cs test appveyor 2020-06-20 08:24:53 +02:00
FastBitmap.cs test appveyor 2020-06-20 08:27:10 +02:00
FastFileStream.cs Re-add Matroska fallback from "MemoryMappedFile" to "FileStream" - thx moob/xylographe :) 2020-04-08 13:39:20 +02:00
FilePathComparer.cs test appveyor 2020-06-20 08:32:03 +02:00
FileUtil.cs Refact (minor) 2020-09-24 19:23:08 +02:00
FixCasing.cs Fix spelling error 2020-10-10 13:46:31 +02:00
FixDurationLimits.cs Fix issues found in "Batch convert" testing 2020-01-04 12:59:47 +01:00
HistoryItem.cs
HtmlUtil.cs WebVTT: Remember header STYLE/NOTE 2020-08-28 15:41:31 +02:00
IfoParser.cs Refactor - fix minor issues from codacy 2019-01-22 07:30:08 +01:00
ImageSplitterItem.cs Work on OCR/italic 2020-05-17 23:06:01 +02:00
Iso639Dash2LanguageCode.cs Rename class "Iso639Dash2CountryCode" to Iso639Dash2LanguageCode 2020-04-14 12:37:42 +02:00
IsoCountryCodes.cs Add ISO 639.2 language codes 2020-04-13 10:58:12 +02:00
Language.cs Add toggle casing shortcut - thx LeonCheung :) 2020-11-16 13:20:43 +01:00
LanguageAutoDetect.cs Fix for finding dictionary 2020-11-15 20:53:27 +01:00
LanguageDeserializer.cs Add toggle casing shortcut - thx LeonCheung :) 2020-11-16 13:20:43 +01:00
LanguageStructure.cs Add toggle casing shortcut - thx LeonCheung :) 2020-11-16 13:20:43 +01:00
LibSE.csproj Add some nuget stuff for libse package 2020-11-16 20:47:21 +01:00
ManagedBitmap.cs
MergeLinesSameTextUtils.cs Fix two more possible crashes in "Batch convert" 2020-09-29 20:29:22 +02:00
MergeShortLinesUtils.cs Fix possible crash in "Merge short lines" from "Batch convert" 2020-09-29 18:27:55 +02:00
MovieHasher.cs
MurMurHash3.cs
NativeMethods.cs
NetflixImsc11JapaneseToAss.cs Work on Japanese 2019-11-24 13:51:37 +01:00
NikseBitmap.cs Allow for very large images in "Image compre" / nOCR - thx chcip2003 :) 2020-10-26 02:46:59 +01:00
NoBreakAfterItem.cs Improve efficiency of NoBreakAfterItem.IsMatch() 2019-11-28 14:03:32 +01:00
Paragraph.cs Refactor to always use milliseconds internally 2019-12-09 15:38:46 +01:00
PlainTextImporter.cs Remove unused var 2020-02-25 06:29:09 +01:00
Position.cs Initial work on TS convert 2019-10-04 17:23:12 +02:00
Readme.md Add some nuget stuff for libse package 2020-11-16 20:47:21 +01:00
RealFFT.cs
RegexUtils.cs Formatting (whitespace only) 2019-08-16 22:55:32 +02:00
RegistryUtil.cs
ReplaceExpression.cs Refactor - add braces for libse 2019-01-19 14:40:37 +01:00
RichTextToPlainText.cs Make two methods public 2020-02-01 19:45:16 +01:00
RulesProfile.cs Fix crash in load of profile/continuation-style - thx xy :) 2020-05-04 19:22:55 +02:00
SccPositionAndStyle.cs Refact (minor) 2020-08-23 10:46:31 +02:00
SccPositionAndStyleTable.cs Refact (minor) 2020-08-23 10:46:31 +02:00
SceneChangeHelper.cs Remove obsolete hash functions regarding waveform 2019-05-28 21:34:41 +02:00
SeJsonParser.cs Add new subtitle format 2020-05-09 15:02:59 +02:00
SeJsonValidator.cs Add new subtitle format - thx Matmanamane :) 2020-05-08 09:19:29 +02:00
SeLogger.cs Improve video on linux regarding logging/re-trying and "libdl.so" => "libdl.so.2" - thx th3bucch :) 2020-05-08 22:31:47 +02:00
Settings.cs Add toggle casing shortcut - thx LeonCheung :) 2020-11-16 13:20:43 +01:00
SsaStyle.cs Allow decimal points in ASS font size - thx Meivyn :) 2019-10-20 13:30:34 +02:00
StringExtensions.cs Only omit known html tags in CountCharacters - thx Veronica :) 2020-10-16 09:46:30 +02:00
StrippableText.cs Fix some string comparison types - thx ivandrofly :) 2019-10-15 21:40:23 +02:00
Subtitle.cs Add "Ignore Arabic Diacritics" + Fix bugs 2020-09-20 17:40:21 +03:00
TarHeader.cs Refactor - add braces for libse 2019-01-19 14:40:37 +01:00
TarReader.cs Refactor - add braces for libse 2019-01-19 14:40:37 +01:00
TesseractDictionary.cs Encapsulate "CultureInfo.ThreeLetterISOLanguageName" 2020-04-16 10:31:27 +02:00
TextDraw.cs Formatting (whitespace only) 2019-11-15 11:12:12 +01:00
TextEncoding.cs Fix some codacy issues 2020-08-23 11:51:45 +02:00
TextEncodingExtensions.cs A few unit tests + refacts 2019-09-17 16:15:59 +02:00
TextSplit.cs Improve new "auto br" for Arabic - thx OmrSi :) 2019-11-10 09:23:18 +01:00
TextSplitResult.cs Fix naming 2020-07-13 17:52:15 +02:00
TimeCode.cs Show tooltip for video position + chapter 2020-11-09 14:06:09 +02:00
TinyJsonParser.cs Refactor - add braces for libse 2019-01-19 14:40:37 +01:00
UnknownFormatImporter.cs Fix spelling error 2020-10-10 13:46:31 +02:00
UnknownFormatImporterJson.cs Fix typo + improve generic parsing a little 2019-11-11 10:16:42 +01:00
Utilities.cs Add remove unneeded space fix - thx Boulder08 :) 2020-11-15 21:03:54 +01:00
VideoInfo.cs
WaveToVisualizer.cs Add waveform multitrack support 2020-10-31 03:30:22 +02:00
XmlDeserializerGenerator.cs
ZipExtractor.cs Refactor misc minor stuff 2019-09-29 14:33:26 +02:00

libse

How to load a subtitle file

var subtitle = new Subtitle();
var subRip = new SubRip();
var lines = File.ReadAllLines(@"C:\test.srt").ToList();
subRip.LoadSubtitle(subtitle, lines, "untitled");
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", subRip.ToText(subtitle, "untitled"));