Title Back Colour Keyoti Title Line Title Curve
Blue Box Top

AsYouType chokes on Single Quotes - RapidSpell Desktop .NET - Forum

Welcome Guest Search | Active Topics | Log In | Register

Options
Christian Ebel
#1 Posted : Friday, August 10, 2018 2:07:27 PM
Rank: Member

Groups: Registered

Joined: 1/17/2012
Posts: 23
Hi Jim,

with AsYouType activated typing a lot of single quotes (', U+0027) brings AYT to a grinding halt. Not sure if it's the case with any other characters as well.

To reproduce activate AYT and start spamming single quotes.
Once you reach ~25 things start to slow down.

A customer had the bright idea to use 80 of them to structure a text. Loading that text brought the program to a hold.

We are using RapidSpell with TX TextControl (v25/X15) via Keyoti.RapidSpell.NET2.TXSupportv25.dll (6.0.17.1124).

Regards,
Christian
Jim
#2 Posted : Sunday, August 12, 2018 1:26:12 AM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,669
Location: Canada
HI Christian, with TX 25 you shouldn`t be using RapidSpellAsYouType anymore, instead you just use RapidSpellDialog and the way it integrates with TX means that the as you type is enabled too.

Eg


private void Form1_Load(object sender, System.EventArgs e) {
dia = new Keyoti.RapidSpell.RapidSpellDialog();
textControl1.ButtonBar = buttonBar1;
textControl1.RulerBar = rulerBar1;
textControl1.StatusBar = statusBar1;


dia.AddTextComponent(textControl1);
}


For me it works fine like that, and for what it`s worth so does RapidSpellAsYouType with a regular textbox (I didn`t check it with TX since it`s not correct usage).

Best
Jim
-your feedback is helpful to other users, thank you!


Christian Ebel
#3 Posted : Monday, August 13, 2018 7:50:44 AM
Rank: Member

Groups: Registered

Joined: 1/17/2012
Posts: 23
Hi Jim,

I meant the feature AYT, i.e. setting the property CheckAsYouType of a RapidSpellDialog instance to true (I wasn't aware that there's a component of that name ... sorry for the confusion).

Regards,
Christian
Christian Ebel
#4 Posted : Monday, August 13, 2018 8:31:58 AM
Rank: Member

Groups: Registered

Joined: 1/17/2012
Posts: 23
After some more testing it seems it depends on the following settings:
Code:
rapidSpell.DictFilePath = "<SomePath>\DICT-DE-NDE-GermanRechtschreibreform.dict"
rapidSpell.LanguageParser = LanguageType.GERMAN
Jim
#5 Posted : Tuesday, August 14, 2018 11:59:56 AM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,669
Location: Canada
Thanks, I've found the problem code and will get a new build to you soon.
-your feedback is helpful to other users, thank you!


Jim
#6 Posted : Tuesday, August 21, 2018 3:20:22 AM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,669
Location: Canada
Sorry for the delay, please try this one

https://www.dropbox.com/...2.TXSupportv25.dll?dl=0

You will need to Unblock the file from file->properties in explorer. Also you might need to update or just remove the version info for the file in licenses.licx
-your feedback is helpful to other users, thank you!


Christian Ebel
#7 Posted : Friday, August 24, 2018 8:45:44 AM
Rank: Member

Groups: Registered

Joined: 1/17/2012
Posts: 23
The problem still persists.
Jim
#8 Posted : Thursday, August 30, 2018 5:14:47 AM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,669
Location: Canada
Sorry for the unusual delay, I will get an answer to you on Thursday.
-your feedback is helpful to other users, thank you!


Jim
#9 Posted : Thursday, August 30, 2018 7:18:49 PM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,669
Location: Canada
Here's a demo project, for me it works fine when I type some text and then have 20-30 apostrophes ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

https://www.dropbox.com/...avn8qx3/Simple.zip?dl=0

Could you show me how to reproduce your issue with it please? I didn't bother including a German dictionary because it shouldn't be relevant.

Jim
-your feedback is helpful to other users, thank you!


Christian Ebel
#10 Posted : Wednesday, September 5, 2018 1:57:22 PM
Rank: Member

Groups: Registered

Joined: 1/17/2012
Posts: 23
I can confirm that it works with the project you provided.

However, I can still reproduce the problem with "TX Text Control Words Spell" (the sample project provided with RapidSpell) – and with our application too, of course.
Just setting the LanguageParser is enough.

Code:
public frmMain(string[] Args) {
    InitializeComponent();
    textControl1.ButtonBar = buttonBar1;
    textControl1.RulerBar = rulerBar1;
    textControl1.VerticalRulerBar = rulerBar2;
    textControl1.StatusBar = statusBar1;

    fileHandler1 = new FileHandler(this, textControl1);
    fileDragDrop = new FileDragDropHandler();

    if (Args.Length != 0) {
        fileHandler1.DocumentFileName = Args[0];
        m_LoadFileOnCreate = true;
    }

    rapidSpellDialog1.AddTextComponent(textControl1);

    //rapidSpellDialog1.DictFilePath = @"DICT-DE-NDE-GermanRechtschreibreform.dict";
    rapidSpellDialog1.LanguageParser = Keyoti.RapidSpell.LanguageType.GERMAN;
}


Cann you confirm this?
Jim
#11 Posted : Thursday, September 6, 2018 4:43:16 AM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,669
Location: Canada
Are you sure you're using the new version that I sent? I tried our demo project with the German parser, I typed in a lot of apostrophes and some text and then more apostrophes and it seemed fine.
-your feedback is helpful to other users, thank you!


Christian Ebel
#12 Posted : Thursday, September 6, 2018 9:05:45 AM
Rank: Member

Groups: Registered

Joined: 1/17/2012
Posts: 23
I was using 6.0.18.307; that's the version you uploaded to Dropbox.

Your project contains a different DLL, version 6.0.18.820 ... which explains why it runs just fine.

Anyway, everything's good now.
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.




About | Contact | Site Map | Privacy Policy

Copyright © 2002- Keyoti Inc.