SubtitleParser 2.0.0

Suggested Alternatives

SubtitleParser 2.1.0

Additional Details

Multi-target frameworks support is added into new version.

There is a newer version of this package available.
See the version list below for details.
dotnet add package SubtitleParser --version 2.0.0                
NuGet\Install-Package SubtitleParser -Version 2.0.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.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SubtitleParser --version 2.0.0                
#r "nuget: SubtitleParser, 2.0.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.0.0

// Install SubtitleParser as a Cake Tool
#tool nuget:?package=SubtitleParser&version=2.0.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.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

  • Safe versions of methods
  • Offer TrimmedLineIndexList as public
  • Some order numbers are not integers. E.g 1.1 1.2
  • Support multiple culture for notations on time marks.

Licence

No license is required.

Authors

Twitter: Enes Okullu @enesokullu

Help

Twitter: Enes Okullu @enesokullu

Product Compatible and additional computed target framework versions.
.NET 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • 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.

Added TrimmedLineIndexList publicly available
   Added OutputDLL folder which contains .dll and .xml file.
   Fixing variable name inside of SubtitleBlock. Public members start with uppercase now.