ran tabspace

git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@1685 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
XhmikosR 2013-02-28 08:53:57 +00:00
parent c7f43ed67c
commit 727f612502
8 changed files with 29 additions and 29 deletions

View File

@ -1542,7 +1542,7 @@ namespace Nikse.SubtitleEdit.Forms
private void ExportPngXml_Shown(object sender, EventArgs e)
{
_isLoading = false;
_isLoading = false;
}
private void comboBoxHAlign_SelectedIndexChanged(object sender, EventArgs e)

View File

@ -279,6 +279,6 @@ namespace Nikse.SubtitleEdit.Forms
if (text.Trim().Length > 0)
System.Diagnostics.Process.Start("http://www.google.com/search?q=" + Utilities.UrlEncode(text));
}
}
}

View File

@ -1215,7 +1215,7 @@ namespace Nikse.SubtitleEdit.Forms
}
}
if (checkBoxNOcrItalic.Checked)
{
@ -1223,7 +1223,7 @@ namespace Nikse.SubtitleEdit.Forms
int crop;
nbmp = new NikseBitmap(ImageSplitter.CropTopAndBottom(unItalicedBmp, out crop));
unItalicedBmp.Dispose();
//NikseBitmap nbmp = new NikseBitmap(bmp);
// nbmp = unItalicedBmp;
@ -1286,7 +1286,7 @@ namespace Nikse.SubtitleEdit.Forms
if (result == null)
{
if (checkBoxNOcrCorrect.Checked)
return null;
return null;
else
return new CompareMatch("?", false, 0, null);
}

View File

@ -41,7 +41,7 @@ namespace Nikse.SubtitleEdit.Forms
int newButtonHeight = (int)(textSize.Height + 7 + 0.5);
Utilities.SetButtonHeight(this, newButtonHeight, 1);
}
}
}
public NOcrChar NOcrChar
{
@ -86,7 +86,7 @@ namespace Nikse.SubtitleEdit.Forms
}
pictureBoxSubtitleImage.Image = vobSubImage;
pictureBoxCharacter.Image = character.Bitmap;
pictureBoxCharacter.Image = character.Bitmap;
Bitmap org = (Bitmap)vobSubImage.Clone();
Bitmap bm = new Bitmap(org.Width, org.Height);

View File

@ -55,7 +55,7 @@ namespace Nikse.SubtitleEdit.Logic.OCR
}
public static List<Point> GetPoints(Point start, Point end)
{
{
var list = new List<Point>();
int x1 = start.X;
int x2 = end.X;

View File

@ -10,7 +10,7 @@ namespace Nikse.SubtitleEdit.Logic.SubtitleFormats
// ToText code by Tosil Velkoff, tosil@velkoff.net
// Based on UnknownSubtitle44
//SubLine1
//SubLine2
//SubLine2
//10:01:04:12
//10:01:07:09
static Regex regexTimeCodes1 = new Regex(@"^\d\d:\d\d:\d\d:\d\d$", RegexOptions.Compiled);
@ -46,17 +46,17 @@ namespace Nikse.SubtitleEdit.Logic.SubtitleFormats
{
var sb = new StringBuilder();
int index = 0;
foreach (Paragraph p in subtitle.Paragraphs)
{
if (index != 0) sb.AppendLine();
index++;
StringBuilder text = new StringBuilder();
sb.AppendLine(Utilities.RemoveHtmlTags(p.Text));
sb.AppendLine(EncodeTimeCode(p.StartTime));
sb.AppendLine(EncodeTimeCode(p.EndTime));
}
return sb.ToString();
}
@ -73,10 +73,10 @@ namespace Nikse.SubtitleEdit.Logic.SubtitleFormats
subtitle.Paragraphs.Clear();
foreach (string line in lines)
{
string s = line.Trim();
string s = line.Trim();
var match = regexTimeCodes1.Match(s);
if (match.Success)
{
{
string[] parts = s.Split(':');
if (parts.Length == 4)
{
@ -111,7 +111,7 @@ namespace Nikse.SubtitleEdit.Logic.SubtitleFormats
subtitle.Paragraphs.Add(p);
p = new Paragraph();
}
}
}
else if (line.Trim().Length > 0 && p != null)
{
expectStartTime = true;
@ -120,7 +120,7 @@ namespace Nikse.SubtitleEdit.Logic.SubtitleFormats
{
_errorCount+=10;
return;
}
}
}
}
if (p != null && p.EndTime.TotalMilliseconds > 0)

View File

@ -42,18 +42,18 @@ namespace Nikse.SubtitleEdit.Logic.SubtitleFormats
public override string ToText(Subtitle subtitle, string title)
{
//10 04 36 02
//10 04 37 04
//
//Greetings.
//10 04 37 06
//10 04 40 08
//It's confirmed, after reading
//Not Out on the poster..
//10 04 40 15
//10 04 44 06
//..you have not come to pass you
//time, in this unique story.
//10 04 36 02
//10 04 37 04
//
//Greetings.
//10 04 37 06
//10 04 40 08
//It's confirmed, after reading
//Not Out on the poster..
//10 04 40 15
//10 04 44 06
//..you have not come to pass you
//time, in this unique story.
const string paragraphWriteFormat = "{0}{3}{1}{3}{2}";
var sb = new StringBuilder();

View File

@ -81,7 +81,7 @@ namespace Nikse.SubtitleEdit.Logic.VideoPlayers
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
private delegate int libvlc_video_take_snapshot(IntPtr mediaPlayer, byte num, byte[] filePath, UInt32 width, UInt32 height);
libvlc_video_take_snapshot _libvlc_video_take_snapshot;
// LibVLC Audio Controls - http://www.videolan.org/developers/vlc/doc/doxygen/html/group__libvlc__audio.html
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]