mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-23 19:52:48 +01:00
24 lines
833 B
C#
24 lines
833 B
C#
using System.Text.RegularExpressions;
|
|
|
|
namespace Nikse.SubtitleEdit.Core.SubtitleFormats
|
|
{
|
|
|
|
public class ScenaristClosedCaptionsDropFrame : ScenaristClosedCaptions
|
|
{
|
|
//00:01:00:29 9420 9420 94ae 94ae 94d0 94d0 4920 f761 7320 ... semi colon (instead of colon) before frame number is used to indicate drop frame
|
|
private const string TimeCodeRegEx = @"^\d+:\d\d:\d\d[;,]\d\d\t";
|
|
private static readonly Regex Regex = new Regex(TimeCodeRegEx, RegexOptions.Compiled);
|
|
protected override Regex RegexTimeCodes { get { return Regex; } }
|
|
|
|
public ScenaristClosedCaptionsDropFrame()
|
|
{
|
|
DropFrame = true;
|
|
}
|
|
|
|
public override string Name
|
|
{
|
|
get { return "Scenarist Closed Captions Drop Frame"; }
|
|
}
|
|
}
|
|
}
|