Description: Fix typos in comments and doc.
Author: Simon Chopin <chopin.simon@gmail.com>
Bug: http://code.google.com/p/grapefruit/issues/detail?id=7
Last-Update: 2013-04-30
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/doc/index.rst
+++ b/doc/index.rst
@@ -18,7 +18,7 @@
 .. class:: Color
 
 The grapefruit module contains only the :class:`Color` class, which exposes all
-the functionnalities. It can be used to store a color value and manipulate it,
+the functionalities. It can be used to store a color value and manipulate it,
 or convert it to another color system.
 
 If you are only interested in converting you colors from one system to another,
@@ -42,7 +42,7 @@
 
    Some operations may provide results a bit outside the specified ranges,
    the results are not capped.
-   This is due to certain color systems having a widers gamut than others.
+   This is due to certain color systems having a wider gamut than others.
 
 
 Class content
@@ -423,7 +423,7 @@
 The generation methods let you create a color scheme by using a color as the
 start point.
 
-All the method, appart from Gradient and MonochromeScheme, have a 'mode'
+All the method, apart from Gradient and MonochromeScheme, have a 'mode'
 parameter that let you choose which color wheel should be used to generate
 the scheme.
 
--- a/grapefruit.py
+++ b/grapefruit.py
@@ -1111,7 +1111,7 @@
 
   @staticmethod
   def NewFromRgb(r, g, b, alpha=1.0, wref=_DEFAULT_WREF):
-    '''Create a new instance based on the specifed RGB values.
+    '''Create a new instance based on the specified RGB values.
     
     Parameters:
       :r:
@@ -1138,7 +1138,7 @@
 
   @staticmethod
   def NewFromHsl(h, s, l, alpha=1.0, wref=_DEFAULT_WREF):
-    '''Create a new instance based on the specifed HSL values.
+    '''Create a new instance based on the specified HSL values.
     
     Parameters:
       :h:
@@ -1165,7 +1165,7 @@
 
   @staticmethod
   def NewFromHsv(h, s, v, alpha=1.0, wref=_DEFAULT_WREF):
-    '''Create a new instance based on the specifed HSV values.
+    '''Create a new instance based on the specified HSV values.
     
     Parameters:
       :h:
@@ -1193,7 +1193,7 @@
 
   @staticmethod
   def NewFromYiq(y, i, q, alpha=1.0, wref=_DEFAULT_WREF):
-    '''Create a new instance based on the specifed YIQ values.
+    '''Create a new instance based on the specified YIQ values.
     
     Parameters:
       :y:
@@ -1220,7 +1220,7 @@
 
   @staticmethod
   def NewFromYuv(y, u, v, alpha=1.0, wref=_DEFAULT_WREF):
-    '''Create a new instance based on the specifed YUV values.
+    '''Create a new instance based on the specified YUV values.
     
     Parameters:
       :y:
@@ -1247,7 +1247,7 @@
 
   @staticmethod
   def NewFromXyz(x, y, z, alpha=1.0, wref=_DEFAULT_WREF):
-    '''Create a new instance based on the specifed CIE-XYZ values.
+    '''Create a new instance based on the specified CIE-XYZ values.
     
     Parameters:
       :x:
@@ -1274,7 +1274,7 @@
 
   @staticmethod
   def NewFromLab(l, a, b, alpha=1.0, wref=_DEFAULT_WREF):
-    '''Create a new instance based on the specifed CIE-LAB values.
+    '''Create a new instance based on the specified CIE-LAB values.
     
     Parameters:
       :l:
@@ -1305,7 +1305,7 @@
 
   @staticmethod
   def NewFromCmy(c, m, y, alpha=1.0, wref=_DEFAULT_WREF):
-    '''Create a new instance based on the specifed CMY values.
+    '''Create a new instance based on the specified CMY values.
     
     Parameters:
       :c:
@@ -1332,7 +1332,7 @@
 
   @staticmethod
   def NewFromCmyk(c, m, y, k, alpha=1.0, wref=_DEFAULT_WREF):
-    '''Create a new instance based on the specifed CMYK values.
+    '''Create a new instance based on the specified CMYK values.
     
     Parameters:
       :c:
@@ -1361,7 +1361,7 @@
 
   @staticmethod
   def NewFromHtml(html, alpha=1.0, wref=_DEFAULT_WREF):
-    '''Create a new instance based on the specifed HTML color definition.
+    '''Create a new instance based on the specified HTML color definition.
     
     Parameters:
       :html:
@@ -1392,7 +1392,7 @@
 
   @staticmethod
   def NewFromPil(pil, alpha=1.0, wref=_DEFAULT_WREF):
-    '''Create a new instance based on the specifed PIL color.
+    '''Create a new instance based on the specified PIL color.
     
     Parameters:
       :pil:
@@ -1834,11 +1834,11 @@
       Color((h2, s,  l), 'hsl', self.__a, self.__wref))
 
   def TetradicScheme(self, angle=30, mode='ryb'):
-    '''Return three colors froming a tetrad with this one.
+    '''Return three colors forming a tetrad with this one.
     
     Parameters:
       :angle:
-        The angle to substract from the adjacent colors hues [-90...90].
+        The angle to subtract from the adjacent colors hues [-90...90].
         You can use an angle of zero to generate a square tetrad.
       :mode:
         Select which color wheel to use for the generation (ryb/rgb).
--- a/grapefruit_test.py
+++ b/grapefruit_test.py
@@ -28,7 +28,7 @@
   def failUnlessNear(self, first, second, diff=9e-5, msg=None):
     '''
     Fail if the difference between the two objects is greater
-    than a certain amout (default 9e-5).
+    than a certain amount (default 9e-5).
     '''
     if hasattr(first,'__iter__') and hasattr(second,'__iter__'):
       if len(first) != len(second):
@@ -112,7 +112,7 @@
     self.assertEqual((0.6, 0.6, 0.6), grapefruit.Color.RgbToGreyscale(1, 0.8, 0))
 
 class NewFromTest(GrapeFruitTestCase):
-  '''Test the static color instanciation methods.'''
+  '''Test the static color instantiation methods.'''
   def testNewFromRgb(self):
     c = grapefruit.Color.NewFromRgb(1.0, 0.5, 0.0)
     self.assertEqual(c, (1.0, 0.5, 0.0, 1.0))
