Skip to content

Commit 5fff7f7

Browse files
committed
spell check corrections
1 parent c5168fc commit 5fff7f7

File tree

24 files changed

+32
-32
lines changed

24 files changed

+32
-32
lines changed

gen/DocumentFormat.OpenXml.Generator.Models/Schematron/CategoryIdentifier.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ private static void Initialize()
4747

4848
// root.Category = "1.1";
4949

50-
// Category modality is compsed by a keywords sequence.
50+
// Category modality is composed by a keywords sequence.
5151
// Only operator and function name are treated as keyword in schematron.
52-
// Single category may have mutiple modalities due to optional parameters.
52+
// Single category may have multiple modalities due to optional parameters.
5353
AddCategoryModality("1.1", new string[] { "@" }, -1, -1);
5454

5555
AddCategoryModality("1.2", new string[] { "fn:matches", "@" }, -1, -1);

gen/DocumentFormat.OpenXml.Generator.Models/Schematron/SyntaxAnalysor.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,11 @@ private static void InitializeWeightDictionary()
8585
/// <summary>
8686
/// Identify keyword from specified text.
8787
/// </summary>
88-
/// <param name="text">Source text from which this method will indentify keyword.</param>
88+
/// <param name="text">Source text from which this method will identify keyword.</param>
8989
/// <param name="pos">
9090
/// Index of specified text.
91-
/// As input, it specifies start index of idenfication.
92-
/// As output, it specifies index of matched keyword's last character in soure text.
91+
/// As input, it specifies start index of identification.
92+
/// As output, it specifies index of matched keyword's last character in source text.
9393
/// i.e. if test="A KEYWORD B", matchedKeyword="KEYWORD" then pos=8 (index of 'D' in "A KEYWORD B").
9494
/// </param>
9595
/// <param name="keywordCandidates">Keyword candidates.</param>

src/DocumentFormat.OpenXml.Features/ElementEvents/ElementEventFeatureExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace DocumentFormat.OpenXml.Features
77
{
88
internal static class ElementEventFeatureExtensions
99
{
10-
[System.Diagnostics.CodeAnalysis.SuppressMessage("Reliability", "CA2000:Dispose objects before losing scope", Justification = "Regsitered for disposal")]
10+
[System.Diagnostics.CodeAnalysis.SuppressMessage("Reliability", "CA2000:Dispose objects before losing scope", Justification = "Registered for disposal")]
1111
public static void AddElementEventFeature(this OpenXmlPackage package)
1212
{
1313
if (package.Features.Get<IElementEventFeature>() is null)

src/DocumentFormat.OpenXml.Features/ParagraphId/ParagraphIdFeatureExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public static class ParagraphIdFeatureExtensions
1717
/// </summary>
1818
/// <param name="doc">Document to add feature to.</param>
1919
/// <param name="options">Options of how paragraph ids should be generated.</param>
20-
[System.Diagnostics.CodeAnalysis.SuppressMessage("Reliability", "CA2000:Dispose objects before losing scope", Justification = "Regsitered for disposal")]
20+
[System.Diagnostics.CodeAnalysis.SuppressMessage("Reliability", "CA2000:Dispose objects before losing scope", Justification = "Registered for disposal")]
2121
public static void AddParagraphIdFeature(this WordprocessingDocument doc, ParagraphIdOptions? options = default)
2222
{
2323
options ??= new();

src/DocumentFormat.OpenXml.Features/ParagraphId/ParagraphIdOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace DocumentFormat.OpenXml.Features
99
public class ParagraphIdOptions
1010
{
1111
/// <summary>
12-
/// Gets a value indicating whether or not paragraph ids should be autogenerated on elements.
12+
/// Gets a value indicating whether or not paragraph ids should be auto-generated on elements.
1313
/// </summary>
1414
public bool AutoGenerateIds { get; init; } = true;
1515

src/DocumentFormat.OpenXml.Features/ParagraphId/SharedParagraphIdFeatureExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ public static ISharedFeature<IParagraphIdCollectionFeature> AddSharedParagraphId
4646
}
4747

4848
/// <summary>
49-
/// Registers a document to use a shared paragragraph collection, which potentially may ensure uniqueness among many documents.
49+
/// Registers a document to use a shared paragraph collection, which potentially may ensure uniqueness among many documents.
5050
/// </summary>
5151
/// <param name="shared">Shared collection feature.</param>
5252
/// <param name="doc">Document to register with shared paragraph collection.</param>
5353
/// <returns></returns>
54-
[System.Diagnostics.CodeAnalysis.SuppressMessage("Reliability", "CA2000:Dispose objects before losing scope", Justification = "Regsitered for disposal")]
54+
[System.Diagnostics.CodeAnalysis.SuppressMessage("Reliability", "CA2000:Dispose objects before losing scope", Justification = "Registered for disposal")]
5555
public static ISharedFeature<IParagraphIdCollectionFeature> Add(this ISharedFeature<IParagraphIdCollectionFeature> shared, WordprocessingDocument doc)
5656
{
5757
if (shared is null)

src/DocumentFormat.OpenXml.Framework/DiagnosticIds.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ internal static class ExperimentalApis
1010
internal static class PackageApis
1111
{
1212
public const string DiagnosticId = "OOXML0001";
13-
public const string Message = "IPackage related APIs are currently experimental. Future versions may (or may not) change their shape before stabalizing.";
13+
public const string Message = "IPackage related APIs are currently experimental. Future versions may (or may not) change their shape before stabilizing.";
1414
}
1515
}

src/DocumentFormat.OpenXml.Framework/Features/PartRootEventExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace DocumentFormat.OpenXml.Features
1212
public static class PartRootEventExtensions
1313
{
1414
/// <summary>
15-
/// Adds a feature to track eventing for a package lifecycle events.
15+
/// Adds a feature to track eventing for package life cycle events.
1616
/// </summary>
1717
/// <param name="container">Container to add the feature to.</param>
1818
public static void AddPartRootEventsFeature(this OpenXmlPartContainer container)

src/DocumentFormat.OpenXml.Framework/Framework/Schema/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Each element in the SDK is derived from the XSD definitions for OpenXML document
1212
The particles within this SDK are of the following types:
1313

1414
- *Element:* Defines the actual child element.
15-
- *Group:* Defines a reuseable group of child elements that are combined into the parent composite particle.
15+
- *Group:* Defines a reusable group of child elements that are combined into the parent composite particle.
1616
- *Sequence:* Defines a list of items where order matters.
1717
- *All:* Defines a list of items where order does not matter.
1818
- *Choice:* Defines a list of items where only one of them may occur.

src/DocumentFormat.OpenXml.Framework/OpenXmlCompositeElement.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ private protected override void Populate(XmlReader xmlReader, OpenXmlLoadMode lo
696696

697697
if (newnode is not OpenXmlUnknownElement)
698698
{
699-
// The following method will load teh element in MCMode.Full
699+
// The following method will load the element in MCMode.Full
700700
// since the node is already MC-processed when loading as unknown type, full loading the outerXml is fine
701701
newnode.OuterXml = node.OuterXml;
702702

src/DocumentFormat.OpenXml.Framework/OpenXmlElement.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ private protected Framework.Metadata.ElementState RawState
196196
internal IElementMetadata Metadata => Features.GetRequired<IElementMetadata>();
197197

198198
/// <summary>
199-
/// Gets an array of fixed attributes which will be parsed out if they are not yet parsed. If parsing is not requried, please
199+
/// Gets an array of fixed attributes which will be parsed out if they are not yet parsed. If parsing is not required, please
200200
/// use <see cref="RawState"/>.
201201
/// </summary>
202202
internal Framework.Metadata.ElementState ParsedState

src/DocumentFormat.OpenXml.Framework/OpenXmlElementExtensionMethods.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ internal static bool CanContainChild(this OpenXmlElement parent, OpenXmlElement
146146
}
147147

148148
/// <summary>
149-
/// Trys to create an OpenXmlElement from the specified namespace URI and local name.
149+
/// Tries to create an OpenXmlElement from the specified namespace URI and local name.
150150
/// </summary>
151151
/// <param name="parent">The parent element.</param>
152152
/// <param name="fileFormat">The specified file format version.</param>

src/DocumentFormat.OpenXml.Framework/OpenXmlPartReader.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public OpenXmlPartReader(OpenXmlPart openXmlPart)
4646
/// <summary>
4747
/// Initializes a new instance of the <see cref="OpenXmlPartReader"/> class.
4848
/// </summary>
49-
/// <param name="openXmlPart">The <see cref="OpenXmlPart"/> ro read.</param>
49+
/// <param name="openXmlPart">The <see cref="OpenXmlPart"/> to read.</param>
5050
/// <param name="options">Options on how to read the part.</param>
5151
public OpenXmlPartReader(OpenXmlPart openXmlPart, OpenXmlPartReaderOptions options)
5252
: this(GetPartStream(openXmlPart), openXmlPart.Features, options.UpdateForPart(openXmlPart))
@@ -719,7 +719,7 @@ private bool ReadRoot()
719719
Debug.Assert(_elementStack.Count == 0);
720720

721721
// TODO: should we take care of entity? <!DOCTYPE page [ <!ENTITY company "Microsoft"> ]>
722-
// TODO: is it OK that we skip all prolog ( DOCTYPE, Comment, PT ) ?
722+
// TODO: is it OK that we skip all prologue ( DOCTYPE, Comment, PT ) ?
723723
_xmlReader.MoveToContent();
724724

725725
while (!_xmlReader.EOF && _xmlReader.NodeType != XmlNodeType.Element)

src/DocumentFormat.OpenXml.Framework/Packaging/IPackage.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public interface IPackage
6161
/// <summary>
6262
/// Deletes a part with a given URI from the package.
6363
/// </summary>
64-
/// <param name="uri">The URI fo the part to delete.</param>
64+
/// <param name="uri">The URI of the part to delete.</param>
6565
void DeletePart(Uri uri);
6666

6767
/// <summary>

src/DocumentFormat.OpenXml.Framework/Packaging/OpenXmlPart.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ internal IPackagePart PackagePart
350350
/// Gets a value that indicates the maximum allowable number of characters in an Open XML part. A zero (0) value specifies that the part can have an unlimited number of characters. A non-zero value specifies the maximum allowable number of characters in the part.
351351
/// </summary>
352352
/// <remarks>
353-
/// This property allows you to mitigate denial of service attacks where the attacker submits package with extremely large Opexn XML part. By limiting the size of a part, you can detect the attack and recover reliably.
353+
/// This property allows you to mitigate denial of service attacks where the attacker submits package with extremely large Open XML part. By limiting the size of a part, you can detect the attack and recover reliably.
354354
/// </remarks>
355355
internal long MaxCharactersInPart
356356
{

src/DocumentFormat.OpenXml.Framework/Resources/ExceptionMessages.Designer.cs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/DocumentFormat.OpenXml.Framework/Resources/ExceptionMessages.resx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@
397397
<value>Schemas with ParticleType.Any is not supported</value>
398398
</data>
399399
<data name="UnknownError" xml:space="preserve">
400-
<value>An unknown error occured. Original message: '{0}'</value>
400+
<value>An unknown error occurred. Original message: '{0}'</value>
401401
</data>
402402
<data name="FeatureNotRegistered" xml:space="preserve">
403403
<value>Feature {0} is not available in this collection.</value>

src/DocumentFormat.OpenXml.Framework/Validation/ValidationContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public ValidationContext(IOpenXmlNamespaceResolver resolver, ValidationSettings
4747
public bool Valid => Errors.Count == 0;
4848

4949
/// <summary>
50-
/// If a <see cref="CancellationToken"/> is used and is cancelled, this will throw. Otherwise, it will
50+
/// If a <see cref="CancellationToken"/> is used and is canceled, this will throw. Otherwise, it will
5151
/// check the number of errors against the <see cref="MaxNumberOfErrors"/>.
5252
/// </summary>
5353
/// <returns><c>true</c> if error count is too high.</returns>

src/DocumentFormat.OpenXml/Packaging/SpreadsheetDocument.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ public void ChangeDocumentType(SpreadsheetDocumentType newType)
260260
/// </summary>
261261
/// <typeparam name="T">The class of the part.</typeparam>
262262
/// <param name="contentType">The content type of the part. Must match the defined content type if the part is fixed content type.</param>
263-
/// <param name="id">The relationship id. The id will be automaticly generated if this param is null.</param>
263+
/// <param name="id">The relationship id. The id will be automatically generated if this param is null.</param>
264264
/// <returns>The added part.</returns>
265265
/// <exception cref="OpenXmlPackageException">When the part is not allowed to be referenced by this part.</exception>
266266
/// <exception cref="ArgumentOutOfRangeException">When the part is fixed content type and the passed in contentType does not match the defined content type.</exception>

src/DocumentFormat.OpenXml/Packaging/WordprocessingDocument.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ public void ChangeDocumentType(WordprocessingDocumentType newType)
300300
/// </summary>
301301
/// <typeparam name="T">The class of the part.</typeparam>
302302
/// <param name="contentType">The content type of the part. Must match the defined content type if the part is fixed content type.</param>
303-
/// <param name="id">The relationship id. The id will be automaticly generated if this param is null.</param>
303+
/// <param name="id">The relationship id. The id will be automatically generated if this param is null.</param>
304304
/// <returns>The added part.</returns>
305305
/// <exception cref="OpenXmlPackageException">When the part is not allowed to be referenced by this part.</exception>
306306
/// <exception cref="ArgumentOutOfRangeException">When the part is fixed content type and the passed in contentType does not match the defined content type.</exception>

test/DocumentFormat.OpenXml.Tests.Assets/TestAssets.TestDataStorage.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ public static class PowerPoint
180180
public const string HCrestoredLeft_NormalViewRestoredTop_sz_100000_pptx = "TestDataStorage.O14ISOStrict.PowerPoint.[HC]restoredLeft-NormalViewRestoredTop-sz-100000.pptx";
181181
public const string HCsndtgt_SoundTarget_builtIn_pptx = "TestDataStorage.O14ISOStrict.PowerPoint.[HC]sndtgt-SoundTarget-builtIn.pptx";
182182
public const string HCtavlst_Time_tav_tm_pptx = "TestDataStorage.O14ISOStrict.PowerPoint.[HC]tavlst-Time-tav-tm.pptx";
183-
public const string HCval_Boolean_Varient_boolVal_pptx = "TestDataStorage.O14ISOStrict.PowerPoint.[HC]val-Boolean Varient-boolVal.pptx";
183+
public const string HCval_Boolean_Variant_boolVal_pptx = "TestDataStorage.O14ISOStrict.PowerPoint.[HC]val-Boolean Variant-boolVal.pptx";
184184
public const string HCviewPr_PresentationViewProperties_showComments_1_pptx = "TestDataStorage.O14ISOStrict.PowerPoint.[HC]viewPr-PresentationViewProperties-showComments-1.pptx";
185185
}
186186
}
@@ -289,13 +289,13 @@ public static class Smallset
289289
public const string AllSlidesConverterSc = "TestDataStorage.v2FxTestFiles.presentation.AllSlidesConverterSC.pptx";
290290
public const string AllSlidesConverterTc = "TestDataStorage.v2FxTestFiles.presentation.AllSlidesConverterTC.pptx";
291291
public const string AutoShapes_2D_Default_styles = "TestDataStorage.v2FxTestFiles.presentation.AutoShapes_2D (Default Styles).pptx";
292-
public const string AutoShapes_2D_Reflection = "TestDataStorage.v2FxTestFiles.presentation.AutoShapes_2D_Reflectioin (full).pptx";
292+
public const string AutoShapes_2D_Reflection = "TestDataStorage.v2FxTestFiles.presentation.AutoShapes_2D_Reflection (full).pptx";
293293
public const string AutoShapes_2D_Shadow = "TestDataStorage.v2FxTestFiles.presentation.AutoShapes_2D_Shadow (Offset, Diagonal).pptx";
294294
public const string AutoShapes_2D_Soft_Edges = "TestDataStorage.v2FxTestFiles.presentation.AutoShapes_2D_Soft Edges (5 Point).pptx";
295295
public const string AutoShapes_3D_Bevel_Circle_Shadow = "TestDataStorage.v2FxTestFiles.presentation.AutoShapes_3D_Bevel (Circle)+Shadow (Offset, Diagonal).pptx";
296296
public const string AutoShapes_3D_Bevel_Circle_Soft_Edges = "TestDataStorage.v2FxTestFiles.presentation.AutoShapes_3D_Bevel (Circle)+Soft Edges (5 Point).pptx";
297297
public const string AutoShapes_3D_Bevel_Circle = "TestDataStorage.v2FxTestFiles.presentation.AutoShapes_3D_Bevel (Circle).pptx";
298-
public const string AutoShapes_3D_Bevel_Riblet_Reflection = "TestDataStorage.v2FxTestFiles.presentation.AutoShapes_3D_Bevel (Riblet)+Reflectioin (full).pptx";
298+
public const string AutoShapes_3D_Bevel_Riblet_Reflection = "TestDataStorage.v2FxTestFiles.presentation.AutoShapes_3D_Bevel (Riblet)+Reflection (full).pptx";
299299
public const string AutoShapes_3D_Rotation_Parallel = "TestDataStorage.v2FxTestFiles.presentation.AutoShapes_3D_Rotation_Parallel (Isometric Right Up).pptx";
300300
public const string Block_hyperlink_crash = "TestDataStorage.v2FxTestFiles.presentation.block_hyperlink_crash.pptx";
301301
public const string Chart_2D_Animation_Box_In_One_Object = "TestDataStorage.v2FxTestFiles.presentation.Chart_2D+Animation (Box In, as one object).pptx";

test/DocumentFormat.OpenXml.Tests/ConformanceTest/CommentEx/Commons.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace DocumentFormat.OpenXml.Tests.CommentEx
1515
public static class Commons
1616
{
1717
/// <summary>
18-
/// Comment object, Get support mothod.
18+
/// Comment object, Get support method.
1919
/// </summary>
2020
/// <param name="commentsPart">Target comment include commentsPart</param>
2121
/// <param name="commentID">Comment ID</param>
@@ -31,7 +31,7 @@ public static Comment GetComment(WordprocessingCommentsPart commentsPart, string
3131
}
3232

3333
/// <summary>
34-
/// CommentEx object, Get support mothod.
34+
/// CommentEx object, Get support method.
3535
/// </summary>
3636
/// <param name="commentsPart">Target comment include commentsPart</param>
3737
/// <param name="commentsExPart">Target comment include commentsExPart</param>

test/DocumentFormat.OpenXml.Tests/Extensions/OpenXmlPartExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,10 @@ private static void AddChildIdPartPairs(IList<IdPartPair> list, OpenXmlPartConta
136136
}
137137

138138
/// <summary>
139-
/// Check if current part is reflectable (with xml content).
139+
/// Check if current part is reflect-able (with xml content).
140140
/// </summary>
141141
/// <param name="part">Current part</param>
142-
/// <returns>return true if it has non-null root element, otherwise rturn false.</returns>
142+
/// <returns>return true if it has non-null root element, otherwise return false.</returns>
143143
public static bool IsReflectable(this OpenXmlPart part)
144144
{
145145
if (part is null)

0 commit comments

Comments
 (0)