[gnome-subtitles: 1/2] Fix misc. typos
- From: Pedro Castro <pcastro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-subtitles: 1/2] Fix misc. typos
- Date: Sun, 15 Mar 2020 22:48:45 +0000 (UTC)
commit abfba65f4d50de09404475db84c7ba30cc68a95a
Author: luz.paz <luzpaz users noreply github com>
Date: Sun Mar 15 17:22:49 2020 -0400
Fix misc. typos
Found via `codespell -q 3 -S *.po,./src/External,./NEWS,./src/SubLib/ChangeLog -L uin`
autogen.sh | 2 +-
src/GnomeSubtitles/Core/Command/ChangeTimingCommand.cs | 2 +-
src/GnomeSubtitles/Core/EventHandlers.cs | 2 +-
src/GnomeSubtitles/Dialog/FileOpenDialog.cs | 2 +-
src/GnomeSubtitles/Dialog/Message/ErrorDialog.cs | 2 +-
src/GnomeSubtitles/Dialog/Message/SubtitleFileOpenErrorDialog.cs | 2 +-
src/GnomeSubtitles/Dialog/Message/VideoErrorDialog.cs | 2 +-
src/GnomeSubtitles/Dialog/SearchDialog.cs | 2 +-
src/GnomeSubtitles/Dialog/TimingsAdjustDialog.cs | 2 +-
src/GnomeSubtitles/Dialog/TimingsShiftDialog.cs | 2 +-
src/GnomeSubtitles/Dialog/TimingsSynchronizeDialog.cs | 2 +-
src/GnomeSubtitles/Dialog/VideoSeekToDialog.cs | 2 +-
src/GnomeSubtitles/Ui/VideoPreview/SubtitleOverlay.cs | 2 +-
src/GnomeSubtitles/Ui/View/Subtitles.cs | 2 +-
src/SubLib/Core/Domain/SubtitleProperties.cs | 6 +++---
src/SubLib/Core/Search/SearchOperator.cs | 4 ++--
src/SubLib/Core/Timing/FrameRateOperator.cs | 4 ++--
src/SubLib/IO/Input/SubtitleInput.cs | 2 +-
src/SubLib/IO/Input/SubtitleParser.cs | 2 +-
19 files changed, 23 insertions(+), 23 deletions(-)
---
diff --git a/autogen.sh b/autogen.sh
index d970d07..76d5356 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -11,7 +11,7 @@ fi
GNOMEDOC=`which yelp-build`
if test -z $GNOMEDOC; then
echo "*** The tools to build the documentation are not found,"
- echo " please intall the yelp-tool package ***"
+ echo " please install the yelp-tool package ***"
exit 1
fi
diff --git a/src/GnomeSubtitles/Core/Command/ChangeTimingCommand.cs
b/src/GnomeSubtitles/Core/Command/ChangeTimingCommand.cs
index 62aa4b0..6431b9b 100644
--- a/src/GnomeSubtitles/Core/Command/ChangeTimingCommand.cs
+++ b/src/GnomeSubtitles/Core/Command/ChangeTimingCommand.cs
@@ -79,7 +79,7 @@ public class ChangeStartCommand : ChangeTimingCommand {
public ChangeStartCommand (TimeSpan time, bool seekAfterChange): base(time, description,
seekAfterChange) {
}
- /* Overriden methods */
+ /* Overridden methods */
protected override TimeSpan GetPreviousTime () {
return subtitle.Times.Start;
diff --git a/src/GnomeSubtitles/Core/EventHandlers.cs b/src/GnomeSubtitles/Core/EventHandlers.cs
index 8fc45e1..99186b3 100644
--- a/src/GnomeSubtitles/Core/EventHandlers.cs
+++ b/src/GnomeSubtitles/Core/EventHandlers.cs
@@ -346,7 +346,7 @@ public class EventHandlers {
* - Previously we used the GtkButton "pressed" event, however it's now deprecated. It was
supposed to be
* replaced by the GtkWidget "button-press-event" however it doesn't behave the same way. The
former
* is triggered by a left mouse click on a button, however the new one is not. Apparently,
buttons
- * are supposed to only trigger the clicked/activated signal when the mouse click is relased and
not
+ * are supposed to only trigger the clicked/activated signal when the mouse click is released
and not
* when pressed. Therefore, we now use GtkWidget "event" event to capture a mouse button press
and
* "button-release-event" for the button release.
* - According to the GtkWidget docs, the GDK_BUTTON_RELEASE_MASK mask is required but all seems
to work without it.
diff --git a/src/GnomeSubtitles/Dialog/FileOpenDialog.cs b/src/GnomeSubtitles/Dialog/FileOpenDialog.cs
index 6f5b83d..6d73e44 100644
--- a/src/GnomeSubtitles/Dialog/FileOpenDialog.cs
+++ b/src/GnomeSubtitles/Dialog/FileOpenDialog.cs
@@ -57,7 +57,7 @@ public class FileOpenDialog : BaseDialog {
}
- /* Overriden members */
+ /* Overridden members */
public override DialogScope Scope {
get { return DialogScope.Singleton; }
diff --git a/src/GnomeSubtitles/Dialog/Message/ErrorDialog.cs
b/src/GnomeSubtitles/Dialog/Message/ErrorDialog.cs
index bd7bb9d..f8c52e2 100644
--- a/src/GnomeSubtitles/Dialog/Message/ErrorDialog.cs
+++ b/src/GnomeSubtitles/Dialog/Message/ErrorDialog.cs
@@ -26,7 +26,7 @@ namespace GnomeSubtitles.Dialog.Message {
public abstract class ErrorDialog : MessageDialog {
/// <summary>Creates a new instance of the <see cref="ErrorDialog" /> class.</summary>
- /// <remarks><see cref="SetText" /> can be used to set the dialog text, and <see cref="AddButtons" />
overriden to add buttons.</remarks>
+ /// <remarks><see cref="SetText" /> can be used to set the dialog text, and <see cref="AddButtons" />
overridden to add buttons.</remarks>
public ErrorDialog () : base(MessageType.Error) {
}
diff --git a/src/GnomeSubtitles/Dialog/Message/SubtitleFileOpenErrorDialog.cs
b/src/GnomeSubtitles/Dialog/Message/SubtitleFileOpenErrorDialog.cs
index 85c364a..36aeda6 100644
--- a/src/GnomeSubtitles/Dialog/Message/SubtitleFileOpenErrorDialog.cs
+++ b/src/GnomeSubtitles/Dialog/Message/SubtitleFileOpenErrorDialog.cs
@@ -30,7 +30,7 @@ public class SubtitleFileOpenErrorDialog : FileOpenErrorDialog {
public SubtitleFileOpenErrorDialog (string filename, Exception exception) : base(filename, exception)
{
}
- /* Overriden members */
+ /* Overridden members */
protected override string SecondaryTextFromException (Exception exception) {
if (exception is UnknownSubtitleFormatException)
diff --git a/src/GnomeSubtitles/Dialog/Message/VideoErrorDialog.cs
b/src/GnomeSubtitles/Dialog/Message/VideoErrorDialog.cs
index 211edc8..583c743 100644
--- a/src/GnomeSubtitles/Dialog/Message/VideoErrorDialog.cs
+++ b/src/GnomeSubtitles/Dialog/Message/VideoErrorDialog.cs
@@ -33,7 +33,7 @@ public class VideoErrorDialog : FileOpenErrorDialog {
Logger.Error(exception, "Video error");
}
- /* Overriden members */
+ /* Overridden members */
protected override string GetPrimaryText (string filename) {
return primaryTextStart + " " + filename + ".";
diff --git a/src/GnomeSubtitles/Dialog/SearchDialog.cs b/src/GnomeSubtitles/Dialog/SearchDialog.cs
index a5b882f..aaac8aa 100644
--- a/src/GnomeSubtitles/Dialog/SearchDialog.cs
+++ b/src/GnomeSubtitles/Dialog/SearchDialog.cs
@@ -58,7 +58,7 @@ public class SearchDialog : BaseDialog {
base.Init(BuildDialog());
}
- /* Overriden members */
+ /* Overridden members */
public override DialogScope Scope {
get { return DialogScope.Document; }
diff --git a/src/GnomeSubtitles/Dialog/TimingsAdjustDialog.cs
b/src/GnomeSubtitles/Dialog/TimingsAdjustDialog.cs
index 23a21c1..eb71e47 100644
--- a/src/GnomeSubtitles/Dialog/TimingsAdjustDialog.cs
+++ b/src/GnomeSubtitles/Dialog/TimingsAdjustDialog.cs
@@ -58,7 +58,7 @@ public class TimingsAdjustDialog : BaseDialog {
ConnectEventHandlers();
}
- /* Overriden members */
+ /* Overridden members */
public override DialogScope Scope {
get { return DialogScope.Document; }
diff --git a/src/GnomeSubtitles/Dialog/TimingsShiftDialog.cs b/src/GnomeSubtitles/Dialog/TimingsShiftDialog.cs
index 1131e8d..22ce686 100644
--- a/src/GnomeSubtitles/Dialog/TimingsShiftDialog.cs
+++ b/src/GnomeSubtitles/Dialog/TimingsShiftDialog.cs
@@ -44,7 +44,7 @@ public class TimingsShiftDialog : BaseDialog {
Init(BuildDialog());
}
- /* Overriden members */
+ /* Overridden members */
public override DialogScope Scope {
get { return DialogScope.Document; }
diff --git a/src/GnomeSubtitles/Dialog/TimingsSynchronizeDialog.cs
b/src/GnomeSubtitles/Dialog/TimingsSynchronizeDialog.cs
index 6169cff..43345ce 100644
--- a/src/GnomeSubtitles/Dialog/TimingsSynchronizeDialog.cs
+++ b/src/GnomeSubtitles/Dialog/TimingsSynchronizeDialog.cs
@@ -53,7 +53,7 @@ public class TimingsSynchronizeDialog : BaseDialog {
ConnectEventHandlers();
}
- /* Overriden members */
+ /* Overridden members */
public override DialogScope Scope {
get { return DialogScope.Document; }
diff --git a/src/GnomeSubtitles/Dialog/VideoSeekToDialog.cs b/src/GnomeSubtitles/Dialog/VideoSeekToDialog.cs
index 08b25f4..adbdd33 100644
--- a/src/GnomeSubtitles/Dialog/VideoSeekToDialog.cs
+++ b/src/GnomeSubtitles/Dialog/VideoSeekToDialog.cs
@@ -36,7 +36,7 @@ public class VideoSeekToDialog : BaseDialog {
Init(BuildDialog());
}
- /* Overriden members */
+ /* Overridden members */
public override DialogScope Scope {
get { return DialogScope.Video; }
diff --git a/src/GnomeSubtitles/Ui/VideoPreview/SubtitleOverlay.cs
b/src/GnomeSubtitles/Ui/VideoPreview/SubtitleOverlay.cs
index 8732056..8b8af15 100644
--- a/src/GnomeSubtitles/Ui/VideoPreview/SubtitleOverlay.cs
+++ b/src/GnomeSubtitles/Ui/VideoPreview/SubtitleOverlay.cs
@@ -41,7 +41,7 @@ public class SubtitleOverlay {
label.Valign = Align.End;
label.Justify = Justification.Center;
//label.LineWrap = true;
- //label.LineWrapMode = Pango.WrapMode.WordChar; //We cannot do this anymore. Doing this, a
gray rectangle is painted above the subtitle after entering some characteres, on top of the video.
+ //label.LineWrapMode = Pango.WrapMode.WordChar; //We cannot do this anymore. Doing this, a
gray rectangle is painted above the subtitle after entering some characters, on top of the video.
//Yellow text color
RGBA labelColor = new RGBA();
diff --git a/src/GnomeSubtitles/Ui/View/Subtitles.cs b/src/GnomeSubtitles/Ui/View/Subtitles.cs
index f1a7585..3df762b 100644
--- a/src/GnomeSubtitles/Ui/View/Subtitles.cs
+++ b/src/GnomeSubtitles/Ui/View/Subtitles.cs
@@ -70,7 +70,7 @@ public class Subtitles : SubLib.Core.Domain.Subtitles {
}
/// <summary>Creates a subtitle and adds it after the specified position.</summary>
- /// <remarks>The timings of the new subtitle will be based on the subtitle that preceeds it.</remarks>
+ /// <remarks>The timings of the new subtitle will be based on the subtitle that precedes it.</remarks>
public void AddNewAfter (int index) {
Collection.AddNewAfter(index, Properties, Base.Config.TimingsTimeBetweenSubtitles);
int newIndex = index + 1;
diff --git a/src/SubLib/Core/Domain/SubtitleProperties.cs b/src/SubLib/Core/Domain/SubtitleProperties.cs
index fd12b38..3e9b584 100644
--- a/src/SubLib/Core/Domain/SubtitleProperties.cs
+++ b/src/SubLib/Core/Domain/SubtitleProperties.cs
@@ -24,7 +24,7 @@ namespace SubLib.Core.Domain {
/// <summary>Represents the properties of subtitles.</summary>
/// <remarks>This class acts as a container which allows you to get and set a
-/// variety of properties. Some of these properties are used in syncronization
+/// variety of properties. Some of these properties are used in synchronization
/// and timing calculations.</remarks>
public class SubtitleProperties : ICloneable {
private Headers headers = new Headers();
@@ -59,14 +59,14 @@ public class SubtitleProperties : ICloneable {
/// <summary>The frame rate originally applied to the subtitles.</summary>
/// <remarks>When converting between frame rates, this is the frame rate of the subtitles
- /// when they are opened. This is sometimes refered to as the input frame rate.</remarks>
+ /// when they are opened. This is sometimes referred to as the input frame rate.</remarks>
public float OriginalFrameRate {
get { return originalFrameRate; }
}
/// <summary>The frame rate currently being used in the subtitles.</summary>
/// <remarks>When converting between frame rates, this is the target frame rate of the
- /// subtitles. This is sometimes refered to as the output frame rate.</remarks>
+ /// subtitles. This is sometimes referred to as the output frame rate.</remarks>
public float CurrentFrameRate {
get { return currentFrameRate; }
}
diff --git a/src/SubLib/Core/Search/SearchOperator.cs b/src/SubLib/Core/Search/SearchOperator.cs
index 72f4d42..a0057a4 100644
--- a/src/SubLib/Core/Search/SearchOperator.cs
+++ b/src/SubLib/Core/Search/SearchOperator.cs
@@ -45,7 +45,7 @@ public class SearchOperator {
return FindForward(options);
}
- /// <summary>Replaces all occurences of some text with the specified replacement.</summary>
+ /// <summary>Replaces all occurrences of some text with the specified replacement.</summary>
/// <param name="regex">A regular expression used to find the text to be replaced.</param>
/// <param name="replacement">The text that will be used as a replacement.</param>
/// <param name="lineBreak">The line break to use between multiple lines of text in each
subtitle.</param>
@@ -55,7 +55,7 @@ public class SearchOperator {
return ReplaceAll(regex, replacement, "\n");
}
- /// <summary>Replaces all occurences of some text with the specified replacement.</summary>
+ /// <summary>Replaces all occurrences of some text with the specified replacement.</summary>
/// <param name="regex">A regular expression used to find the text to be replaced.</param>
/// <param name="replacement">The text that will be used as a replacement.</param>
/// <param name="lineBreak">The line break to use between multiple lines of text in each
subtitle.</param>
diff --git a/src/SubLib/Core/Timing/FrameRateOperator.cs b/src/SubLib/Core/Timing/FrameRateOperator.cs
index 52b9cee..f91692c 100644
--- a/src/SubLib/Core/Timing/FrameRateOperator.cs
+++ b/src/SubLib/Core/Timing/FrameRateOperator.cs
@@ -35,7 +35,7 @@ public class FrameRateOperator {
/// <summary>Changes the current frame rate of the subtitles.</summary>
/// <param name="frameRate">The new frame rate to be used.</param>
/// <remarks>This changes the frame rate currently being used with the subtitles, which is sometimes
- /// refered to as the output frame rate.</remarks>
+ /// referred to as the output frame rate.</remarks>
public void ChangeCurrent (float frameRate) {
float currentFrameRate = subtitles.Properties.CurrentFrameRate;
if (currentFrameRate != frameRate) {
@@ -47,7 +47,7 @@ public class FrameRateOperator {
/// <summary>Updates the subtitles' frames using the specified frame rate as the one they had when
they were opened.</summary>
/// <param name="frameRate">The original subtitles' frame rate.</param>
/// <remarks>This results on having the subtitles with the frames they would have if they had been
opened with this frame rate.
- /// The original frame rate is sometimes refered to as the input frame rate.</remarks>
+ /// The original frame rate is sometimes referred to as the input frame rate.</remarks>
public void ChangeOriginal (float frameRate) {
SubtitleProperties properties = subtitles.Properties;
float originalFrameRate = properties.OriginalFrameRate;
diff --git a/src/SubLib/IO/Input/SubtitleInput.cs b/src/SubLib/IO/Input/SubtitleInput.cs
index a997a15..2d33d9d 100644
--- a/src/SubLib/IO/Input/SubtitleInput.cs
+++ b/src/SubLib/IO/Input/SubtitleInput.cs
@@ -97,7 +97,7 @@ internal class SubtitleInput {
/* The first code page represents the most probable encoding. If any problem occurs when
trying to use
* that code page, this problem is registered. The remaining code pages are then tried, and
if none works,
- * the first occuring error is the one to be reported. */
+ * the first occurring error is the one to be reported. */
Exception firstEncodingException = null;
Exception firstSubtitleFormatException = null;
int firstCodePage = codePages[0];
diff --git a/src/SubLib/IO/Input/SubtitleParser.cs b/src/SubLib/IO/Input/SubtitleParser.cs
index 66f3f28..c11c97a 100644
--- a/src/SubLib/IO/Input/SubtitleParser.cs
+++ b/src/SubLib/IO/Input/SubtitleParser.cs
@@ -555,7 +555,7 @@ internal class SubtitleParser {
return new Regex(subtitleInExpression, RegexOptions.IgnoreCase);
}
- // Used when a subtitle format suppports both times and frames
+ // Used when a subtitle format supports both times and frames
private Regex CreateSubtitleRegex(SubtitleFormat format, TimingMode timingMode) {
string subtitleInExpression;
if (timingMode == TimingMode.Times)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]