]> gitweb.factorcode.org Git - factor.git/commitdiff
*-docs: spell "co-ordinate" without the hyphen
authorAlexander Ilin <alex.ilin@protonmail.com>
Sun, 30 Jul 2023 10:40:34 +0000 (12:40 +0200)
committerAlexander Ilin <alex.ilin@protonmail.com>
Sun, 30 Jul 2023 10:41:20 +0000 (12:41 +0200)
basis/io/sockets/sockets-docs.factor
basis/ui/gadgets/gadgets-docs.factor
basis/ui/gadgets/line-support/line-support-docs.factor
basis/ui/gadgets/sliders/sliders.factor
basis/ui/gadgets/worlds/worlds-docs.factor
basis/ui/gestures/gestures.factor
basis/ui/render/render-docs.factor
basis/ui/text/text-docs.factor
basis/ui/ui-docs.factor
core/effects/effects-docs.factor
extra/project-euler/102/102.factor

index aefe9bd48745dcef292797e76a46258028b28dbe..475dacc627ec18b6855a4a6ec22ca1235558e2fd 100644 (file)
@@ -211,7 +211,7 @@ HELP: <datagram>
     { $code "f 0 <inet4> <datagram>" }
     "To accept UDP/IP packets from the loopback interface only, use an address specifier like the following:"
     { $code "\"127.0.0.1\" 1234 <inet4> <datagram>" }
-    "Since " { $link resolve-host } " can return multiple address specifiers, your code must create a datagram socket for each one and co-ordinate packet sending accordingly."
+    "Since " { $link resolve-host } " can return multiple address specifiers, your code must create a datagram socket for each one and coordinate packet sending accordingly."
 }
 { $errors "Throws an error if the port is already in use, or if the OS forbids access." } ;
 
index 586e8d4b3b202a6d817f6d3152da31121bec0d00..9a97487635a638e3906c406eb46d0aa64853ed26 100644 (file)
@@ -8,7 +8,7 @@ HELP: <gadget>
 
 HELP: children-on
 { $values { "rect" rect } { "gadget" gadget } { "seq" "a sequence of gadgets" } }
-{ $contract "Outputs a sequence of gadgets which potentially intersect a rectangle in the co-ordinate system of the gadget." }
+{ $contract "Outputs a sequence of gadgets which potentially intersect a rectangle in the coordinate system of the gadget." }
 { $notes "This does not have to be an accurate intersection test, and simply returning " { $link children>> } " is a valid implementation. However, an accurate intersection test reduces the amount of work done when drawing this gadget if it is partially clipped and not all children are visible." } ;
 
 HELP: control-value
@@ -36,7 +36,7 @@ HELP: nth-gadget
 HELP: relative-loc
 { $values { "fromgadget" gadget } { "togadget" gadget } { "loc" "a pair of integers" } }
 { $description
-    "Outputs the location of the top-left corner of " { $snippet "togadget" } " relative to the co-ordinate system of " { $snippet "fromgadget" } "."
+    "Outputs the location of the top-left corner of " { $snippet "togadget" } " relative to the coordinate system of " { $snippet "fromgadget" } "."
 }
 { $errors
     "Throws an error if " { $snippet "togadget" } " is not contained in a child of " { $snippet "fromgadget" } "."
@@ -52,7 +52,7 @@ HELP: temp-im-input
 
 HELP: pick-up
 { $values { "point" "a pair of integers" } { "gadget" gadget } { "child/f" { $maybe gadget } } }
-{ $description "Outputs the child at a point in the gadget's co-ordinate system. This word recursively descends the gadget hierarchy, and so outputs the deepest child." } ;
+{ $description "Outputs the child at a point in the gadget's coordinate system. This word recursively descends the gadget hierarchy, and so outputs the deepest child." } ;
 
 HELP: max-dims
 { $values { "seq" "a sequence of pairs of integers" } { "dim" "a pair of integers" } }
index dea9407a84b38c17b8b5a235f2c3c2cf33d5c7c9..3e27371af57e376a8505ab6126e23265146adef6 100644 (file)
@@ -66,7 +66,7 @@ $nl
     first-visible-line
     last-visible-line
 }
-"Converting y co-ordinates to line numbers, and vice versa:"
+"Converting y coordinates to line numbers, and vice versa:"
 { $subsections
     line>y
     y>line
index 49a7aebd5912baaa65ca4871aaac8aee48286560..e3108401c576aae0d2e86dbab06cadfaaa8ad6a2 100644 (file)
@@ -49,7 +49,7 @@ CONSTANT: min-thumb-dim 30
     [ elevator-length ] bi min ;
 
 : slider-scale ( slider -- n )
-    ! A scaling factor such that if x is a slider co-ordinate,
+    ! A scaling factor such that if x is a slider coordinate,
     ! x*n is the screen position of the thumb, and conversely
     ! for x/n. The '1 max' calls avoid division by zero.
     [ [ elevator-length ] [ thumb-dim ] bi - 1 max ]
index cb7113a459490ccd80406bfc98fe2be01d0168d3..5d71cd2dc22a099ae06cfb54d79e2219ae679b42 100644 (file)
@@ -7,7 +7,7 @@ HELP: user-input
 { $description "Calls " { $link user-input* } " on every parent of the world's currently-focused child." } ;
 
 HELP: origin
-{ $var-description "Within the dynamic extent of " { $link draw-world } ", holds the co-ordinate system origin for the gadget currently being drawn." } ;
+{ $var-description "Within the dynamic extent of " { $link draw-world } ", holds the coordinate system origin for the gadget currently being drawn." } ;
 
 HELP: hand-world
 { $var-description "Global variable. The " { $link world } " containing the gadget at the mouse location." } ;
@@ -85,7 +85,7 @@ HELP: world
     }
     {
         "window-loc"
-        { "the on-screen location of the native window containing the world. The co-ordinate system here is backend-specific." }
+        { "the on-screen location of the native window containing the world. The coordinate system here is backend-specific." }
     }
     {
         "window-controls"
index 978f12dd92d6d5194bd6c1038b04b89092b8c980..5e5b6c2231793bf41fc5b712f457e1366af19020 100644 (file)
@@ -147,7 +147,7 @@ TUPLE: key-up < key-gesture ;
 
 ! Note that these are only really useful inside an event
 ! handler, and that the locations hand-loc and hand-click-loc
-! are in the co-ordinate system of the world which contains
+! are in the coordinate system of the world which contains
 ! the gadget in question.
 SYMBOL: hand-gadget
 SYMBOL: hand-world
index e0962bd8e8cc31b4c713c83af750b062709c796f..b867e31cd1c3002c01c6a5501f2b3fd4ba9dc000 100644 (file)
@@ -48,8 +48,8 @@ ARTICLE: "ui-paint" "Customizing gadget appearance"
     "ui-paint-custom"
 } ;
 
-ARTICLE: "ui-paint-coord" "The UI co-ordinate system"
-"The UI uses a co-ordinate system where the y axis is oriented down. The OpenGL " { $link GL_MODELVIEW } " matrix is saved or restored when rendering a gadget, and the origin is translated to the gadget's origin within the window. The current origin is stored in a variable:"
+ARTICLE: "ui-paint-coord" "The UI coordinate system"
+"The UI uses a coordinate system where the y axis is oriented down. The OpenGL " { $link GL_MODELVIEW } " matrix is saved or restored when rendering a gadget, and the origin is translated to the gadget's origin within the window. The current origin is stored in a variable:"
 { $subsections origin }
 "Gadgets must not draw outside of their bounding box, however clipping is not enforced by default, for performance reasons. This can be changed by setting the " { $slot "clipped?" } " slot to " { $link t } " in the gadget's constructor." ;
 
index 77659b77c2b6c52e24f4930fc487af787fae924f..fedb4720189015d67c92008ed04209d2d753bd3e 100644 (file)
@@ -41,11 +41,11 @@ HELP: draw-text
 
 HELP: x>offset
 { $values { "x" real } { "font" font } { "string" string } { "n" integer } }
-{ $contract "Outputs the string index closest to the given x co-ordinate." } ;
+{ $contract "Outputs the string index closest to the given x coordinate." } ;
 
 HELP: offset>x
 { $values { "n" integer } { "font" font } { "string" string } { "x" real } }
-{ $contract "Outputs the x co-ordinate of the character at the given index." } ;
+{ $contract "Outputs the x coordinate of the character at the given index." } ;
 
 HELP: line-metrics
 { $values { "font" font } { "string" string } { "metrics" line-metrics } }
index 477d490c285c0d350092c6b2c742675c61eb36ed..5e899ff38929b6c7151632579db56f09e031d944 100644 (file)
@@ -155,7 +155,7 @@ ARTICLE: "gadgets" "Pre-made UI gadgets"
 ARTICLE: "ui-geometry" "Gadget geometry"
 "The " { $link gadget } " class inherits from the " { $link rect } " class, and thus all gadgets have a bounding box:"
 { $subsections "math.rectangles" }
-"Word for converting from a child gadget's co-ordinate system to a parent's:"
+"Word for converting from a child gadget's coordinate system to a parent's:"
 { $subsections
     relative-loc
     screen-loc
index c40ab3ddccc02c1af2ef45a92ac818bf380d2bde..71bb505ffa2f0fb722adc55a17d9e4b63c9e2b17 100644 (file)
@@ -29,7 +29,7 @@ $nl
     { { { $snippet "assoc" } } "an associative mapping" }
     { { { $snippet "str" } } "a string" }
     { { { $snippet "x" } ", " { $snippet "y" } ", " { $snippet "z" } } "a number" }
-    { { $snippet "loc" } "a screen location specified as a two-element array holding x and y co-ordinates" }
+    { { $snippet "loc" } "a screen location specified as a two-element array holding x and y coordinates" }
     { { $snippet "dim" } "a screen dimension specified as a two-element array holding width and height values" }
     { { $snippet "*" } "when this symbol appears by itself in the list of outputs, it means the word unconditionally throws an error" }
 }
index 84a87ec61d2b22b834c3b2feb7c53bb342120cb0..07503980db74a7fb677d23d9ba95eb891252fd88 100644 (file)
@@ -21,7 +21,7 @@ IN: project-euler.102
 ! XYZ does not.
 
 ! Using triangles.txt (right click and 'Save Link/Target As...'), a 27K text
-! file containing the co-ordinates of one thousand "random" triangles, find the
+! file containing the coordinates of one thousand "random" triangles, find the
 ! number of triangles for which the interior contains the origin.
 
 ! NOTE: The first two examples in the file represent the triangles in the