Update dictionaries

This commit is contained in:
Nikolaj Olsson 2020-06-05 14:21:12 +02:00
parent 31b4761660
commit 12b30549e0
4 changed files with 31 additions and 0 deletions

View File

@ -78,6 +78,7 @@
<word>clanky</word>
<word>cliché</word>
<word>clozapine</word>
<word>co2</word>
<word>cobalt</word>
<word>collywobbles</word>
<word>colonoscopy</word>
@ -409,6 +410,7 @@
<word>ununquadium</word>
<word>ununseptium</word>
<word>ununtrium</word>
<word>uplink</word>
<word>uranium</word>
<word>vaccinologist</word>
<word>vanadium</word>

View File

@ -371,6 +371,7 @@
<Word from="bythe" to="by the" />
<Word from="byyourself" to="by yourself" />
<Word from="C/latter/'/7g" to="Chattering" />
<Word from="C02" to="CO2" />
<Word from="ca///ng" to="calling" />
<Word from="ca/I" to="call" />
<Word from="cal/ed" to="called" />
@ -805,6 +806,7 @@
<Word from="H0ger" to="Roger" />
<Word from="H0we·ver" to="However" />
<Word from="ha/f" to="half" />
<Word from="hadjammed" to="had jammed" />
<Word from="hadjust" to="had just" />
<Word from="Hadnt" to="Hadn't" />
<Word from="hadnt" to="hadn't" />

Binary file not shown.

View File

@ -1356,6 +1356,33 @@ namespace Nikse.SubtitleEdit.Core
return true;
}
public int GetNonTransparentHeight()
{
var startY = 0;
int transparentBottomPixels = 0;
for (int y = 0; y < Height; y++)
{
var isLineTransparent = IsLineTransparent(y);
if (startY == y && !isLineTransparent)
{
startY++;
continue;
}
if (isLineTransparent)
{
transparentBottomPixels++;
}
else
{
transparentBottomPixels = 0;
}
}
return startY - transparentBottomPixels;
}
public void EnsureEvenLines(Color fillColor)
{
if (Width % 2 == 0 && Height % 2 == 0)