Add support for writing the EBU STL (tech 3264) subtitle format. Implementation sponsored by Bandai.

Forgive me for I have sinned: This adds new GUI with translatable strings, but it's a minor sin since the new GUI has very low visibility.

Originally committed to SVN as r5981.
This commit is contained in:
Niels Martin Hansen 2011-12-06 20:44:38 +00:00
parent 6270b312db
commit a42e8277b4
5 changed files with 1641 additions and 0 deletions

View File

@ -1590,6 +1590,14 @@
RelativePath="..\..\src\subtitle_format_dvd.h"
>
</File>
<File
RelativePath="..\..\src\subtitle_format_ebu3264.cpp"
>
</File>
<File
RelativePath="..\..\src\subtitle_format_ebu3264.h"
>
</File>
<File
RelativePath="..\..\src\subtitle_format_encore.cpp"
>

View File

@ -407,6 +407,8 @@ void OptionsManager::LoadDefaults(bool onlyDefaults,bool doOverride) {
SetText(_T("Style editor preview text"),previewText);
SetColour(_T("Style editor preview background"),wxColour(125,153,176));
SetText(_T("Export EBU STL Settings"), _T(""));
SetInt(_T("Updates Next Check Time"), 0);
}

View File

@ -47,6 +47,7 @@
#include "subtitle_format_ttxt.h"
#include "subtitle_format_mkv.h"
#include "subtitle_format_microdvd.h"
#include "subtitle_format_ebu3264.h"
#include "subtitle_format_encore.h"
#include "subtitle_format_transtation.h"
#include "subtitle_format_dvd.h"
@ -137,6 +138,7 @@ void SubtitleFormat::LoadFormats () {
new MicroDVDSubtitleFormat();
new MKVSubtitleFormat();
new EncoreSubtitleFormat();
new Ebu3264SubtitleFormat();
new TranStationSubtitleFormat();
#ifdef __WXDEBUG__
new DVDSubtitleFormat();

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,32 @@
// Copyright (c) 2011 Niels Martin Hansen <nielsm@aegisub.org>
//
// Permission to use, copy, modify, and distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// copyright notice and this permission notice appear in all copies.
//
// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
//
// Aegisub Project http://www.aegisub.org/
// This implements support for the EBU tech 3264 (1991) subtitling data exchange format.
// Work on support for this format was sponsored by Bandai.
#pragma once
#include "subtitle_format.h"
class Ebu3264SubtitleFormat : public SubtitleFormat {
public:
wxString GetName();
wxArrayString GetWriteWildcards();
bool CanWriteFile(wxString filename);
void WriteFile(wxString filename,wxString encoding);
};