BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 09-11-2005, 07:36 AM   #81
tzarcone
Thumbs Must Hurt
 
Join Date: Jun 2005
Model: 7520
Posts: 76
Default

Please Login to Remove!

Quote:
Originally Posted by T. Sweet
Hey Ted,

Would love to try your product, is the URL still working...
"http://www.rebreathertech.com:81/cgi-bin/BBCorrectorServer.cgi"

Tried to access with a copy & paste, but I got a blank page...

Let me know... (PIN: 3006D854)

Thx.



t. sweet
Actually if you are trying to browse to it with a browser a black page is a good thing that means it is working...The only way to use it is through the BB software and you have to install that. Than when you type a message, email or whatever you click in the track wheel and pick check spelling than it contacts my server and compaires what you typed for errors and reports back to you. I belevie in the beginning of this thread I posted a link for the software but if you can't find it let me know and will post it again. I don't know it off the top of my head while typing this or would include it now.
__________________
BB Model: 7520
PIN: 40098213
Blackberry Messenger
Offline  
Old 09-12-2005, 11:09 AM   #82
dulcamara
Talking BlackBerry Encyclopedia
 
dulcamara's Avatar
 
Join Date: Apr 2005
Location: RDU
Model: 9810
OS: 7.0.0.261
Carrier: ATT
Posts: 343
Default Yet another success story.

Wow! Load software, put in URL, and it just works.

THANKS!!!
__________________
BIS (ATT)
Offline  
Old 09-18-2005, 12:21 PM   #83
pinkpig
New Member
 
Join Date: Sep 2005
Model: 7290
Posts: 11
Default

Im having problems getting spell check to work. I see the option 'spelling" on the menu, but when i select it i get an error the error is "BBCorrector error: Could not find a service book entry for IPPP" . im not connected to any BB server for mail checking just regular pop3. i double checked the url for the bbcorrector and its correct, made sure the port 81 is there also. I even tried putting a check next to Disable MDS Proxy. after that i would get an error of "BBcorrector error: could not open tunnel - failed " .This is the only software that i installed on the handheld. Its a 7290

Thanks
Laura

Last edited by pinkpig; 09-18-2005 at 12:27 PM..
Offline  
Old 09-18-2005, 07:24 PM   #84
gwgaston
Knows Where the Search Button Is
 
Join Date: Oct 2004
Location: nowhere
Model: 5790
Carrier: Velocita
Posts: 33
Default CGI replacement

Quote:
Originally Posted by tateu
I didn't think to check that because I didn't know you could get those characters on a blackberry.
You can press and hold a letter key and then roll the thumbwheel to scroll through international/accent characters, equation symbols and other marks.

That is #4 under "Composing a Message" on my "Blackberry Tips and Tricks" page which is currently here:

http://webpages.charter.net/gwgaston...nd_Tricks.html

At least while I'm editing it for the next few weeks. There are still lots of additions (and corrections) to make.


Quote:
Originally Posted by tateu
So do your changes work? And if so, what are they?
Yeah, although I ultimately went with a completely different approach that uses a different backend and a new BB client, the code below was working fine for me. Note that you will need to grab the Unicode::Normalize module (if haven't already grabbed it for something else) and will likely need to adjust other parts like the path to Aspell, language file used, and options passed... Some of the replacements could be removed (like for the accent characters I brought up) as they are covered in the decomposition. Also, you could do things like have œ (\x{0153}) replaced with a capital O, so that when used anywhere but the first char it would still prompt you to correct the word.

Anyway here it is:

Code:
#!c:/perl/bin/perl

#
# BBSpellCheck Server
#
# This script accepts a block of text from the BlackBerry software
# BBSpellCheck, runs it through Aspell, and returns an XML packet
# indicating spelling errors.
#
# NOTES:
#
# - It is recommended you protect this script with some form of HTTP
#   authentication. BBSpellCheck is setup to handle Basic Authentication.
#
# 2005-06-04 GWGaston:
# Added code to convert to plain ASCII (wack symbols, glyphs, diacritics)

use CGI qw(:standard Vars);
use File::Temp qw/ tempfile tempdir /;

# The Aspell executable
my $cmdAspellExe = "\"C:/Program Files/Aspell/bin/aspell\"";

# Language is US English
# my $lang = "en_US";
my $lang = "en";

use utf8;

# Options for Aspell. Puts Aspell into Ispell compatibility mode
# so that its output is written to stdout
my $cmdAspellOptions = "-a --lang=$lang --repl=.en.prepl ";

my %FORM = Vars();

# Get the block of text from the HTTP parameter "check"
my $text2Check = "$FORM{check}";


# Convert line endings to a common format. In this case whatever
# line ending combination we get (CRLF, LF, etc), we convert to a standard
# format of LF

$text2Check =~ s/\x0D\x0A|\r/\n/g;

use Encode;
use Unicode::Normalize;

my $tmptext = Encode::decode( 'utf-8', $text2Check );
$text2Check = NFD( $tmptext );   ## Decompose using Normalization Form D
$text2Check =~ s/\pM//g;         ## Remove combining characters

# A lot of the replacements below are now redundant... 
# but I left 'em in anyway. -GWGaston

$text2Check =~ s/ß/b/g;
$text2Check =~ s/Ð/D/g;
$text2Check =~ s/ð/d/g;
$text2Check =~ s/×/x/g;
$text2Check =~ s/þ/T/g;
$text2Check =~ s/¿/?/g;
$text2Check =~ s/[§xxx346;xxx348;xxx350;Š]/S/g;
$text2Check =~ s/[xxx347;xxx349;xxx351;š]/s/g;
$text2Check =~ s/[xxx284;xxx286;xxx288;xxx290;]/G/g;
$text2Check =~ s/[xxx285;xxx287;xxx289;xxx291;]/G/g;
$text2Check =~ s/[xxx294;xxx292;]/H/g;
$text2Check =~ s/[xxx293;xxx295;]/h/g;
$text2Check =~ s/[xxx257;xxx259;xxx261;àáâãäåæª]/a/g;
$text2Check =~ s/[xxx256;xxx258;xxx260;ÀÁÂÃÄÅÆ]/A/g;
$text2Check =~ s/[èéêë]/e/g;
$text2Check =~ s/[ÈÉÊË]/E/g;
$text2Check =~ s/[ìíîï¡]/i/g;
$text2Check =~ s/[ÌÍÎÏ]/I/g;
$text2Check =~ s/[òóôõöøxxx333;xxx335;xxx337;xxx972;œ]/o/g;
$text2Check =~ s/[ÒÓÔÕÖØxxx332;xxx334;xxx336;Œ]/O/g;
$text2Check =~ s/çxxx263;xxx265;xxx267;xxx269;/c/g;
$text2Check =~ s/[Çxxx262;xxx264;xxx266;xxx268;]/C/g;
$text2Check =~ s/[ùúûüµ]/u/g;
$text2Check =~ s/[ÙÚÛÜ]/U/g;
$text2Check =~ s/[ýÿ]/y/g;
$text2Check =~ s/Ý/Y/g;
$text2Check =~ s/ñ/n/g;
$text2Check =~ s/Ñ/N/g;

$text2Check =~ s/([^[:ascii:]]+)/' '/eg;


# Create a temporary file to store our block of text
my $dirTemp = tempdir( CLEANUP => 1 );
my( $tempHandle, $tempFilename ) = tempfile( DIR => $dir );


# Split block of text into lines and write to temp file
@lines = split( /\n/, $text2Check );
for my $line ( @lines ) {
  # Force Aspell to check whole line via ^ contol character
  print $tempHandle "^$line\n";
}
close $tempHandle;

# XML packet has format such as:
# <spell-results>
#   <error>
#     <word>maan</word>
#     <position>12</position>
#     <suggest>Man</suggest>
#     <suggest>man</suggest>
#     <suggest>moan</suggest>
#   </error>
#   <error>
#     <word>helllo</word>
#     <position>33</position>
#     <suggest>hello</suggest>
#   </error>
#   <error>
#     <word>chris</word>
#     <position>41</position>
#     <suggest>Chris</suggest>
#     <suggest>Charis</suggest>
#   </error>
# </spell-results>
my $xmlPacket = "<spell-results>";

# Do this here so that when we are debugging we can display it in return output
print header;

# Keeps track of current line number
my $lineNum = 0;

# Keeps track of the absolute position in the block of text
my $posAbsolute = 0;

# Execute Aspell
my $cmd = "$cmdAspellExe $cmdAspellOptions < $tempFilename 2>&1";
# TODO: $status most likely only tracks wether the fork failed or not, not
# whether the actual command we are running (ie: aspell) failed
my $status = open ASPELL, "$cmd |";

if ($status > 0) {
  # Parse Aspell output
  for my $cmdReturn (<ASPELL>) {
    chomp($cmdReturn);
#print "$cmdReturn<br>\n";

    if( $cmdReturn =~ /^\*/ ) {
      # Line begins with *. Do nothing.

    } elsif( $cmdReturn =~ /^(&|#)/ ) {
      # Line begins with & or #.

      # Start error element
      $xmlPacket .= "<error>";

      # Split return line up for easier access
      my @tokens = split(" ", $cmdReturn, 5);

      # Add word element which contains original misspelled word
      $xmlPacket .= "<word>$tokens[1]</word>";

      # Need to work out absolute position in file, not just position in current line
      my $offsetIdx = 3;
      if ($cmdReturn =~ /^\#/) {
        $offsetIdx--;
      }
      my $pos = $posAbsolute + ($tokens[$offsetIdx] - 1);
      $xmlPacket .= "<position>".$pos."</position>";

      # Add suggestions
      my @suggestions = ();
      if ($tokens[4]) {
        @suggestions = split(", ", $tokens[4]);
        for my $suggestion (@suggestions) {
          $xmlPacket .= "<suggest>$suggestion</suggest>";
        }
      }

      # End error element
      $xmlPacket .= "</error>";

    } elsif( $cmdReturn =~ /^$/ ) {
      # We have a blank line which indicates a line of text has been processed

      my $line = $lines[$lineNum];
      $posAbsolute += (length($line) + 1);
      $lineNum++;
    }
  }
  close ASPELL;

} else {
  $xmlPacket .= "<exception>BBSpellCheck Server has encountered an error ($!)</exception>";
}

# Delete the temp file
#unlink $tempFilename;

# End results XML packet
$xmlPacket .= "</spell-results>";

#print "check = $text2Check<p>\n";

my( $tempHandle, $tempFilename ) = tempfile( DIR => $dir );
print $tempHandle "$xmlPacket\n";
close $tempHandle;

# Return XML packet back to client
print "$xmlPacket\n";
Gerald W. Gaston

Last edited by gwgaston; 09-18-2005 at 07:31 PM..
Offline  
Old 09-20-2005, 05:37 AM   #85
gwgaston
Knows Where the Search Button Is
 
Join Date: Oct 2004
Location: nowhere
Model: 5790
Carrier: Velocita
Posts: 33
Default

Actually that might not be the last/error free one i used. I will verify today.
Offline  
Old 09-20-2005, 06:04 AM   #86
tzarcone
Thumbs Must Hurt
 
Join Date: Jun 2005
Model: 7520
Posts: 76
Default

Quote:
Originally Posted by gwgaston
Actually that might not be the last/error free one i used. I will verify today.
Just let me know if you find the last error free one and I will replace the one I am using on my server.
__________________
BB Model: 7520
PIN: 40098213
Blackberry Messenger
Offline  
Old 09-24-2005, 09:42 AM   #87
Dawg
No longer Registered.
 
Dawg's Avatar
 
Join Date: Mar 2005
Location: Atlanta
Model: 8330
OS: 4.5.0.138
PIN: 31a6c9c9
Carrier: Verizon BIS
Posts: 13,962
Default

i have loaded it ota and through app loader and cant get it to work it doenst show up in my menu
Offline  
Old 09-24-2005, 01:59 PM   #88
Soapm
BlackBerry Extraordinaire
 
Soapm's Avatar
 
Join Date: Apr 2005
Location: The Mile Hi City
Model: 9900
OS: 7.0
Carrier: TMO
Posts: 2,794
Default

Quote:
Originally Posted by Dawg
i have loaded it ota and through app loader and cant get it to work it doenst show up in my menu
Dawg, do you get an uncaught exception error when your BB first starts up? That's what I noticed when mines wearn't showing up in the menues. To fix it I had to change net_rim_pdap_todo.cod with a file from a previous OS version.
Offline  
Old 10-09-2005, 12:46 PM   #89
pinkpig
New Member
 
Join Date: Sep 2005
Model: 7290
Posts: 11
Default

Anyone know of a solution to the problem i posted above?? Im still having the Service book entry for IPPP error.

Any help would be great!
Thanks
Laura
Offline  
Old 10-11-2005, 07:45 AM   #90
tzarcone
Thumbs Must Hurt
 
Join Date: Jun 2005
Model: 7520
Posts: 76
Default

Just an update....My linux box took a surge of power the other day and courpted some files. I started to rebuild it by doing an update from the dvd and that failed so installed from scatch and updated to a newer version as well. The BBCorrector Server is currently down and hope to have it back up and running in the next few days...
Thanks for your patience.

Ted
__________________
BB Model: 7520
PIN: 40098213
Blackberry Messenger
Offline  
Old 10-11-2005, 07:53 AM   #91
Dawg
No longer Registered.
 
Dawg's Avatar
 
Join Date: Mar 2005
Location: Atlanta
Model: 8330
OS: 4.5.0.138
PIN: 31a6c9c9
Carrier: Verizon BIS
Posts: 13,962
Default

reinstalled tasks and memo pad and bam nextels spell checker worked also so i think I am going to just stick with it for now
Quote:
Originally Posted by Soapm
Dawg, do you get an uncaught exception error when your BB first starts up? That's what I noticed when mines wearn't showing up in the menues. To fix it I had to change net_rim_pdap_todo.cod with a file from a previous OS version.
Offline  
Old 10-12-2005, 01:04 PM   #92
jetspeedz
CrackBerry Addict
 
jetspeedz's Avatar
 
Join Date: Feb 2005
Model: 9900
Carrier: ATT
Posts: 603
Default

Ted i just noticed that im getting a HTTP repsonse code: 404 error, dont know why it was working over the weekend...
Offline  
Old 10-12-2005, 02:22 PM   #93
tzarcone
Thumbs Must Hurt
 
Join Date: Jun 2005
Model: 7520
Posts: 76
Default

Yes just posted this like yesterday two up from yours lol.
Just an update....My linux box took a surge of power the other day and courpted some files. I started to rebuild it by doing an update from the dvd and that failed so installed from scatch and updated to a newer version as well. The BBCorrector Server is currently down and hope to have it back up and running in the next few days...
Thanks for your patience.

I hope to have some extra time tonight to work on it been busy at work on one of thier servers crashing.

Quote:
Originally Posted by jetspeedz
Ted i just noticed that im getting a HTTP repsonse code: 404 error, dont know why it was working over the weekend...
__________________
BB Model: 7520
PIN: 40098213
Blackberry Messenger
Offline  
Old 10-12-2005, 03:13 PM   #94
jetspeedz
CrackBerry Addict
 
jetspeedz's Avatar
 
Join Date: Feb 2005
Model: 9900
Carrier: ATT
Posts: 603
Default

lol my bad Ted just been busy the last day i downgraded from 4.0 to bes 3.6 to get Ramble to work and i just noticed the bbcorrector wasnt working and thought it might be b/c i dont have MDS anymore...

thanks
Offline  
Old 10-12-2005, 10:50 PM   #95
Soapm
BlackBerry Extraordinaire
 
Soapm's Avatar
 
Join Date: Apr 2005
Location: The Mile Hi City
Model: 9900
OS: 7.0
Carrier: TMO
Posts: 2,794
Default

Quote:
Originally Posted by Dawg
reinstalled tasks and memo pad and bam nextels spell checker worked also so i think I am going to just stick with it for now
Maybe this is my problem, I never load task or memo pad since I don't use them???
Offline  
Old 10-14-2005, 08:04 AM   #96
tzarcone
Thumbs Must Hurt
 
Join Date: Jun 2005
Model: 7520
Posts: 76
Default

Sorry for the interuption but the server is back online finally....
Had to also redo all the router settings but atleast it is back online.

If it ever does go down please send me a message I do not use it too often so don't always know if it is not working...
__________________
BB Model: 7520
PIN: 40098213
Blackberry Messenger

Last edited by tzarcone; 10-14-2005 at 08:06 AM..
Offline  
Old 10-14-2005, 08:58 AM   #97
jetspeedz
CrackBerry Addict
 
jetspeedz's Avatar
 
Join Date: Feb 2005
Model: 9900
Carrier: ATT
Posts: 603
Default

thanks Ted works great as usual
Offline  
Old 10-15-2005, 06:37 PM   #98
John Clark
BBF Moderator
 
John Clark's Avatar
 
Join Date: Jun 2005
Model: Z30
OS: 10.2.1.x
PIN: s & needles
Carrier: AT&T
Posts: 34,720
Default

I have a 7100t on a BES. I downloaded the BBCorrector 1.0 Advanced User Verson from http://blackberrytools.sourceforge.net/OverTheAir/. It installed ok, put in the URL and rebooted. The spelling menu item shows up fine but when I highlight the mispelled word, and choose a suggested word it removes the word prior and inserts the suggested word. I saw someone else had this problem but I can't seem to decipher what the fix is. It works fine except for this glitch. anyone help?
Offline  
Old 10-17-2005, 03:55 PM   #99
pharma1
Thumbs Must Hurt
 
Join Date: Oct 2004
Location: Castro Valley, California
Model: 7100t
Posts: 148
Default

Quote:
Originally Posted by John Clark
I have a 7100t on a BES. I downloaded the BBCorrector 1.0 Advanced User Verson from http://blackberrytools.sourceforge.net/OverTheAir/. It installed ok, put in the URL and rebooted. The spelling menu item shows up fine but when I highlight the mispelled word, and choose a suggested word it removes the word prior and inserts the suggested word. I saw someone else had this problem but I can't seem to decipher what the fix is. It works fine except for this glitch. anyone help?
I am still having this same issue. It is really frustraiting the @#$% out of me. From reading this thread it seems like it is a known problem and has been corrected, but I can't figure what the problem is. Is there a different version of BB Corrector out there?
Offline  
Old 10-17-2005, 03:57 PM   #100
agep
Knows Where the Search Button Is
 
Join Date: Mar 2005
Location: Toronto
Model: 8350
Carrier: Rogers
Posts: 44
Default

I have the exact same problem.... I'm not using any symbols or anything.
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


2711-NM11 PCMCIA Linear Flash Memory Card 256KB Fast Shipping AB 2711NM11 picture

2711-NM11 PCMCIA Linear Flash Memory Card 256KB Fast Shipping AB 2711NM11

$350.66



SeeSii NanoVNA-H4 Vector Network Analyzer 4

SeeSii NanoVNA-H4 Vector Network Analyzer 4" Handheld TFT MF Antenna Analyzer

$59.99



Kitchen Brain Fast Z080120HFC Digital Timer, 8-Timers, Memory, 120V Fast 81308 picture

Kitchen Brain Fast Z080120HFC Digital Timer, 8-Timers, Memory, 120V Fast 81308

$175.00



Nightingale CXO 6200 Memory Foam, New Headrest, Lumbar Support Ergo Office Chair picture

Nightingale CXO 6200 Memory Foam, New Headrest, Lumbar Support Ergo Office Chair

$415.00



CORSTAT INTEGRATED CIRCUIT EXPANDED MEMORY DIP REV. A SER. B 2711-NM3 picture

CORSTAT INTEGRATED CIRCUIT EXPANDED MEMORY DIP REV. A SER. B 2711-NM3

$174.95



OKTIS-2 Portable Fuel Tester Analyzer Meter Octane Number Gasoline Petrol Cont picture

OKTIS-2 Portable Fuel Tester Analyzer Meter Octane Number Gasoline Petrol Cont

$196.93







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.