Skip to content

Fix typos #63

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
.project
.settings
target
.idea
2 changes: 1 addition & 1 deletion CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ BATIK-1222: Only call DOMImplementation in deserialization
* Motion animation transforms are now applied after the transform=""
attribute.
* Fixed bug in DOM event default action invocation in SVG 1.2 documents.
* Fixed bug in CSS class name matching, which occured only when an
* Fixed bug in CSS class name matching, which occurred only when an
element was declared to be a member of multiple classes, where one
is a prefix of another.
* Fixed bug on OS X where the zoom interactor overlay was not shown.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public SVGDocument createSVGDocument(String uri) throws IOException {
* Creates a SVG Document instance.
* @param uri The document URI.
* @param inp The document input stream.
* @exception IOException if an error occured while reading the document.
* @exception IOException if an error occurred while reading the document.
*/
public SVGDocument createSVGDocument(String uri, InputStream inp)
throws IOException {
Expand All @@ -139,7 +139,7 @@ public SVGDocument createSVGDocument(String uri, InputStream inp)
* Creates a SVG Document instance.
* @param uri The document URI.
* @param r The document reader.
* @exception IOException if an error occured while reading the document.
* @exception IOException if an error occurred while reading the document.
*/
public SVGDocument createSVGDocument(String uri, Reader r)
throws IOException {
Expand All @@ -150,7 +150,7 @@ public SVGDocument createSVGDocument(String uri, Reader r)
* Creates a SVG Document instance.
* This method supports gzipped sources.
* @param uri The document URI.
* @exception IOException if an error occured while reading the document.
* @exception IOException if an error occurred while reading the document.
*/
public Document createDocument(String uri) throws IOException {
ParsedURL purl = new ParsedURL(uri);
Expand Down Expand Up @@ -213,7 +213,7 @@ public Document createDocument(String uri) throws IOException {
* Creates a SVG Document instance.
* @param uri The document URI.
* @param inp The document input stream.
* @exception IOException if an error occured while reading the document.
* @exception IOException if an error occurred while reading the document.
*/
public Document createDocument(String uri, InputStream inp)
throws IOException {
Expand Down Expand Up @@ -242,7 +242,7 @@ public Document createDocument(String uri, InputStream inp)
* Creates a SVG Document instance.
* @param uri The document URI.
* @param r The document reader.
* @exception IOException if an error occured while reading the document.
* @exception IOException if an error occurred while reading the document.
*/
public Document createDocument(String uri, Reader r)
throws IOException {
Expand Down Expand Up @@ -272,7 +272,7 @@ public Document createDocument(String uri, Reader r)
* @param ns The namespace URI of the root element of the document.
* @param root The name of the root element of the document.
* @param uri The document URI.
* @exception IOException if an error occured while reading the document.
* @exception IOException if an error occurred while reading the document.
*/
public Document createDocument(String ns, String root, String uri)
throws IOException {
Expand All @@ -289,7 +289,7 @@ public Document createDocument(String ns, String root, String uri)
* @param root The name of the root element of the document.
* @param uri The document URI.
* @param is The document input stream.
* @exception IOException if an error occured while reading the document.
* @exception IOException if an error occurred while reading the document.
*/
public Document createDocument(String ns, String root, String uri,
InputStream is) throws IOException {
Expand All @@ -306,7 +306,7 @@ public Document createDocument(String ns, String root, String uri,
* @param root The name of the root element of the document.
* @param uri The document URI.
* @param r The document reader.
* @exception IOException if an error occured while reading the document.
* @exception IOException if an error occurred while reading the document.
*/
public Document createDocument(String ns, String root, String uri,
Reader r) throws IOException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public abstract class AbstractGraphics2D extends Graphics2D implements Cloneable

/**
* @param textAsShapes if true, all text is turned into shapes in the
* convertion. No text is output.
* conversion. No text is output.
*
*/
public AbstractGraphics2D(boolean textAsShapes) {
Expand Down Expand Up @@ -978,7 +978,7 @@ public void drawGlyphVector(GlyphVector g, float x, float y){
* @param s the <code>Shape</code> to check for a hit
* @param onStroke flag used to choose between testing the
* stroked or the filled shape. If the flag is <code>true</code>, the
* <code>Stroke</code> oultine is tested. If the flag is
* <code>Stroke</code> outline is tested. If the flag is
* <code>false</code>, the filled <code>Shape</code> is tested.
* @return <code>true</code> if there is a hit; <code>false</code>
* otherwise.
Expand Down Expand Up @@ -1336,7 +1336,7 @@ public Composite getComposite(){
* <code>Component</code>. To change the background
* of the <code>Component</code>, use appropriate methods of
* the <code>Component</code>.
* @param color the background color that isused in
* @param color the background color that issued in
* subsequent calls to <code>clearRect</code>
* @see #getBackground
* @see java.awt.Graphics#clearRect
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ public Composite getComposite(){
* <code>Component</code>. To change the background
* of the <code>Component</code>, use appropriate methods of
* the <code>Component</code>.
* @param color the background color that isused in
* @param color the background color that issued in
* subsequent calls to <code>clearRect</code>
* @see #getBackground
* @see java.awt.Graphics#clearRect
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more

/**
* This class allows for the return of a proxy object quickly, while a
* heavy weight object is constrcuted in a background Thread. This
* heavy weight object is constructed in a background Thread. This
* proxy object will then block if any methods are called on it that
* require talking to the source object.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public Any2LsRGBRed(CachableRed src) {
}

/**
* Gamma for linear to sRGB convertion
* Gamma for linear to sRGB conversion
*/
private static final double GAMMA = 2.4;
private static final double LFACT = 1.0/12.92;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public static boolean is_INT_PACK_COMP(SampleModel sm) {
}

/**
* Exponent for linear to sRGB convertion
* Exponent for linear to sRGB conversion
*/
private static final double GAMMA = 2.4;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more
*/
public class BridgeException extends RuntimeException {

/** The element on which the error occured. */
/** The element on which the error occurred. */
protected Element e;

/** The error code. */
Expand All @@ -46,7 +46,7 @@ public class BridgeException extends RuntimeException {
/** The paramters to use for the error message. */
protected Object [] params;

/** The line number on which the error occured. */
/** The line number on which the error occurred. */
protected int line;

/** The graphics node that represents the current state of the GVT tree. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public Document checkCache(String uri) {
/**
* Returns a document from the specified uri.
* @param uri the uri of the document
* @exception IOException if an I/O error occured while loading
* @exception IOException if an I/O error occurred while loading
* the document
*/
public Document loadDocument(String uri) throws IOException {
Expand All @@ -117,7 +117,7 @@ public Document loadDocument(String uri) throws IOException {
/**
* Returns a document from the specified uri.
* @param uri the uri of the document
* @exception IOException if an I/O error occured while loading
* @exception IOException if an I/O error occurred while loading
* the document
*/
public Document loadDocument(String uri, InputStream is)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public GVTBuilder() { }
*
* @param ctx the bridge context
* @param document the SVG document to build
* @exception BridgeException if an error occured while constructing
* @exception BridgeException if an error occurred while constructing
* the GVT tree
*/
public GraphicsNode build(BridgeContext ctx, Document document) {
Expand Down Expand Up @@ -112,7 +112,7 @@ public GraphicsNode build(BridgeContext ctx, Document document) {
*
* @param ctx the bridge context
* @param e the element to build
* @exception BridgeException if an error occured while constructing
* @exception BridgeException if an error occurred while constructing
* the GVT tree
*/
public GraphicsNode build(BridgeContext ctx, Element e) {
Expand Down Expand Up @@ -160,7 +160,7 @@ public GraphicsNode build(BridgeContext ctx, Element e) {
* @param e the element to build
* @param parentNode the composite graphics node, parent of the
* graphics node to build
* @exception BridgeException if an error occured while constructing
* @exception BridgeException if an error occurred while constructing
* the GVT tree
*/
protected void buildComposite(BridgeContext ctx,
Expand All @@ -180,7 +180,7 @@ protected void buildComposite(BridgeContext ctx,
* @param e the element to build
* @param parentNode the composite graphics node, parent of the
* graphics node to build
* @exception BridgeException if an error occured while constructing
* @exception BridgeException if an error occurred while constructing
* the GVT tree
*/
protected void buildGraphicsNode(BridgeContext ctx,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ public static Paint convertPaint(Element paintedElement,

/**
* Converts a Paint specified by URI without sending any error.
* if a problem occured while processing the URI, it just returns
* if a problem occurred while processing the URI, it just returns
* null (same effect as 'none')
*
* @param paintedElement the element interested in a Paint
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ private Glyph getGlyph(BridgeContext ctx,
// this is ok, it is possible that the glyph at the given
// uri is not available.

// Display an error message if a security exception occured
// Display an error message if a security exception occurred
if (ERR_URI_UNSECURE.equals(e.getCode())) {
ctx.getUserAgent().displayError(e);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ protected GraphicsNode createSVGImageNode(BridgeContext ctx,
initializeViewport(ctx, e, result, vb, bounds);

// add a listener on the outermost svg element of the SVG image.
// if an event occured inside the SVG image document, send it
// if an event occurred inside the SVG image document, send it
// to the <image> element (inside the original document).
if (ctx.isInteractive()) {
listener = new ForwardEventListener(svgElement, e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ public void handleDOMChildNodeRemovedEvent(MutationEvent evt) {
* Invoked when an MutationEvent of type 'DOMSubtree' is fired.
*/
public void handleDOMSubtreeModifiedEvent(MutationEvent evt) {
//an operation occured onto the children of the
//an operation occurred onto the children of the
//text element, check if the layout was discarded
if (laidoutText == null) {
computeLaidoutText(ctx, e, getTextNode());
Expand Down
Loading