Home Search Member List Faq Register Login  
UltimateSpell
double underlines and other weirdness

Thread Starter: proace   Started: 03-26-2008 2:35 PM   Replies: 2
 Karamasoft Support Forums » General Discussions » UltimateSpell » double underlines and other weirdness
 Printable Version    « Previous Thread   Next Thread »
  26 Mar 2008, 2:35 PM
proace is not online. Last active: 4/1/2008 3:13:53 PM proace

Top 10 Posts
Joined on 02-20-2008
Austin, TX
Posts 13
double underlines and other weirdness
Hey guys, got a new one for you.

A user discovered a bug where sometimes if you forget to put a space between an unknown word and a regular word, UltimateSpell will underline the run-on word, which is fine.  The problem is that if you then enter a space between the two words, it should the only underline the unknown word, and the regular word should not be underlined.

For example, in our case, the user entered "TharpPlumbing" so UltimateSpell underlined the whole thing.  The user then added a space between Tharp and Plumbing.  When he did that, the whole thing remained underlined, and Tharp got an additional underline.  See screenshot.

I was unable to recreate this problem on your demo, but I created a test vb application and was able to recreate it there.  The contents of my test page are below.  There's nothing extra in the codebehind.

<%@ Register TagPrefix="cc1" Namespace="Karamasoft.WebControls.UltimateSpell" Assembly="UltimateSpell" %>
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="UltimateSpellTest.WebForm1" smartNavigation="True"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
    <HEAD>
        <title>WebForm1</title>
        <meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
        <meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
        <meta name="vs_defaultClientScript" content="JavaScript">
        <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
    </HEAD>
    <body>
        <form id="Form1" method="post" runat="server">
            <H1>Ultimate Spell Test</H1>
            <P>
                <asp:textbox id="TextBox1" runat="server" TextMode="MultiLine" Width="100%" Height="100px" Font-Names="Arial"></asp:textbox>
            </P>
            <cc1:ultimatespell id="usSpellCheck" runat="server" ShowSpellButton="False" SpellAsYouType="True" ControlIdsToCheck="TextBox1" EnableViewState="True">
                <MisspelledWordStyle Font-Bold="True" ForeColor="Red"></MisspelledWordStyle>
                <SpellButton ImageAlign="AbsMiddle" ImageUrl="" ButtonType="Button" Text="Spell Check" CausesValidation="True"></SpellButton>
            </cc1:ultimatespell>
        </form>
    </body>
</HTML>


So if you run that test page, here's how you can recreate the double underline and some other weird behavior:
  1. In the textbox type "TharpPlumbing test." without quotes. TharpPlumbing should now be underlined.
  2. Add a space between Tharp and Plumbing.  Tharp should now be double underlined, and "Tharp Plumbing" should be underlined as well.
  3. Hit Control + A and press backspace to clear the field.
  4. Type "UltimateSpell test." again without quotes. UltimateSpell will be underlined
  5. Add a space between Ultimate and Spell and now both should be underlined including the space, even though they're both words that are spelled correctly.
After that, depending on how fast you do this, you can cause the next text you type to be doubled or spaced weird.  By this I mean sometimes after that your next text will be changed to something like this. It only does that sometimes, but it basically happens after you do the steps I listed above, then hit Control A again and delete the text in the field, then start typing something again. In the case of the screenshot, I typed "UltimateSpell test."  It kind of depends on how long you wait after step 5 to do it.  I found if you do it immediately after step 5, that causes it to happen.  Other times instead of the spacing being weird, it just doubles what I typed, so if I typed "UltimateSpell test." after the spellchecker does its work, it would replace my text with "UltimateSpell test.UltimateSpell test."

Still yet another strange behavior I found is that if you type "TharpPlumbing test." and then add a space between Tharp and Plumbing, and keep deleting the space and re-adding it, the spellchecker starts to freak out after a while but eventually it gets it right so that only Tharp is underlined and nothing else. This can also be recreated on my test page.

Sorry for the long post, but this should be enough info for you guys to look into. If you need screenshots, my test application, or any other info from me, just let me know.  Since I can't recreate the problem in your demo application, is there just something silly I'm doing wrong?

Thanks,
Anthony

  
  26 Mar 2008, 2:48 PM
Karamasoft is not online. Last active: 9/2/2010 12:02:18 PM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 5,325
Re: double underlines and other weirdness
We recently fixed the issue for separating an underlined word, therefore, we couldn't reproduce this isseu on our live demo. If you are not using the latest version, please download from our website, replace your UltimateSpellInclude directory with the new one and try again and let us know if the issue is still there. Thanks.
  
  26 Mar 2008, 4:28 PM
proace is not online. Last active: 4/1/2008 3:13:53 PM proace

Top 10 Posts
Joined on 02-20-2008
Austin, TX
Posts 13
Re: double underlines and other weirdness
I downloaded and installed the updated version and that appears to have fixed it.  Thanks!

  
 Page 1 of 1 (3 items)
Karamasoft Support Forums » General Discussions » UltimateSpell » double underlines and other weirdness

You can add attachments
You can post new topics
You can reply to topics
You can delete your posts
You can edit your posts
You can create polls
You can vote in polls
Forum statistics are enabled
Forum is unmoderated

© 2002-2010 Karamasoft LLC. All rights reserved.