[prev in list] [next in list] [prev in thread] [next in thread]
List: aspell-devel
Subject: Re: [aspell-devel] failed to get past spell checking ;-)
From: Jose Da Silva <Digital () JoesCat ! com>
Date: 2004-08-22 22:17:13
Message-ID: 200408221517.13497.Digital () JoesCat ! com
[Download RAW message or body]
On August 22, 2004 02:50 pm, Kevin Atkinson wrote:
> Sorry. You used the correct version. And the current version did infact
> have the spelling error which is now fixed. However your "rem space"
> patch is bad as it already has the spaces removed.
Thanks,
Stupid mistake on my part, I wanted to edit the 1st 2 lines of the diff.txt
so that it didn't point to such an obscure location.... and forgot to
turn-off the space-snipping feature on Kwrite before altering it.
You probably have it fixed already, but here is "diff_rem_spaces.txt" once
again, but this time is unaltered (note the 1st 2 lines point to weird
locations which may not meet your location requirements).
["diff_rem_spaces.txt" (text/plain)]
--- ../aspell-0.60-pre3/prog/prezip.c 2004-06-20 06:12:04.000000000 -0700
+++ prezip.c 2004-08-22 02:58:28.000000000 -0700
@@ -4,8 +4,8 @@
*
* Permission to use, copy, modify, distribute and sell this software
* and its documentation for any purpose is hereby granted without
- * fee, provided that the above copyright notice appear in all copies
- * and that both that copyright notice and this permission notice
+ * fee, provided that the above copyright notice appear in all copies
+ * and that both that copyright notice and this permission notice
* appear in supporting documentation. Kevin Atkinson makes no
* representations about the suitability of this software for any
* purpose. It is provided "as is" without express or implied
@@ -73,9 +73,9 @@
if (argc < 2) {
goto usage;
-
+
} else if (strcmp(argv[1], "-z") == 0) {
-
+
Word w1,w2;
Word * prev = &w1;
Word * cur = &w2;
@@ -115,7 +115,7 @@
/* get the length of the prefix */
l = 0;
while (p[l] != '\0' && w[l] != '\0' && p[l] == w[l]) ++l;
-
+
/* prefix compress, and write word */
if (l < 30) {
putc(l, stdout);
@@ -124,7 +124,7 @@
putc(30, stdout);
while (i >= 255) {putc(255, stdout); i -= 255;}
putc(i, stdout);
- }
+ }
fputs(w+l, stdout);
/* swap prev and next */
@@ -134,7 +134,7 @@
prev = tmp;
}
}
-
+
putc(31, stdout);
putc(255, stdout);
@@ -142,7 +142,7 @@
free(w2.str);
} else if (strcmp(argv[1], "-d") == 0) {
-
+
int ret = 0;
Word cur;
@@ -158,7 +158,7 @@
c = getc(stdin);
- if (c == 2)
+ if (c == 2)
{
while (c != EOF && ret <= 0) {
ret = -1;
@@ -198,7 +198,7 @@
}
}
}
- else if (c == 1)
+ else if (c == 1)
{
while (c != -1) {
if (c == 0)
@@ -248,7 +248,7 @@
usage:
printf("%s\n"
- "Usgae:\n"
+ "Usage:\n"
" To Compress: %s -z\n"
" To Decompress: %s -d\n", HEAD, argv[0], argv[0]);
return 1;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic