SubtitleParser 2.1.0

Suggested Alternatives

SubtitleParser 2.1.1

Additional Details

New version is avaiable.

There is a newer version of this package available.
See the version list below for details.
dotnet add package SubtitleParser --version 2.1.0                
NuGet\Install-Package SubtitleParser -Version 2.1.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SubtitleParser" Version="2.1.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SubtitleParser --version 2.1.0                
#r "nuget: SubtitleParser, 2.1.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install SubtitleParser as a Cake Addin
#addin nuget:?package=SubtitleParser&version=2.1.0

// Install SubtitleParser as a Cake Tool
#tool nuget:?package=SubtitleParser&version=2.1.0                

SubtitleParser

SubtitleParser is a project to parse subtitle content data into subtitle blocks.

SubtitleParser

Check out on NuGet gallery

Description

SubtitleParser has methods get content lines from specified file path and parse them into subtitle blocks.

Listed Methods

Read Content
GetTextByLines(string filePath)
GetTextByLinesUnsafe(string filePath)

Returns lines of contents. (string[])

  • filePath: Specified file path
Parsing
ParseSubtitleList(string[] subtitleLines)
ParseSubtitleListUnsafe(string[] subtitleLines)

Returns list of SubtitleBlocks (List<SubtitleBlock>)

  • subtitleLines: Subtitle file's content by lines.
S_trimmedLineIndexList

Returns line list of content that are trimöed.

Version History

  • 2.1.0

    • Multi-target frameworks (net6.0; net7.0; net461; netcoreapp3.1; netstandard2.0) support is added.
  • 2.0.2

    • Fixed naming violations.
  • 2.0.1

    • Fixed naming violations.
  • 2.0.0

    • Fixing naming vialations inside of SubtitleBlock. Public members names start with uppercase now.
  • 1.2.0

    • Added TrimmedLineIndexList publicly available.
    • Added OutputDLL which contains .dll and .xml file.
  • 1.1.0

    • Adding xml summaries to SubtitleBlock class and its elements.
    • Hotfix on GetInlineText() local function.
    • Support Unsafe versions of ParseSubtitleList() and GetTextByLines()
  • 1.0.0 Initial Release

Task List

  • Support multiple culture for notations on time marks.

Licence

MIT license

Authors

Twitter: Enes Okullu @enesokullu

Help

Twitter: Enes Okullu @enesokullu

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 is compatible. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 is compatible.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETCoreApp 3.1

    • No dependencies.
  • .NETFramework 4.6.1

    • No dependencies.
  • .NETStandard 2.0

    • No dependencies.
  • net6.0

    • No dependencies.
  • net7.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

2.1.0
     Multi-target frameworks support is added. (net6.0; net7.0; net461; netcoreapp3.1; netstandard2.0)