adobe flex spellchecker for multiple language - apache-flex

I am trying to figure out the best way for doing spellcheck in flex application.
I need a support of multiple languages, like: english, russian and so on. Also, I don't need a realtime spellchecking, only in some particular moment(for example, user click button: "check my text"). I found clientside solution here - flex:SpellCheck , but looks like it able to check only english text. So now I am thinking
serverside solution, that recieve a text and needed language, check it(for example with aspell) and returns result. How do you think: is this a good way or I am missing something?
Thanks.

You can check the Squiglly project on Adobe Labs - link
Quoting the page:
Squiggly is a
spell checking engine for Adobe®
Flash® Player and Adobe AIR®. The
Squiggly library allows you to easily
add spell checking functionality in
any Adobe Flex® 3 or Flex 4 based text
control. The distribution package
consists of a utility for building
your own spelling dictionaries, a
sample English dictionary [...]

Related

GNAT GPS on the fly syntax checking and getting the best out of the IDE

I've started using GPS for coding Ada at work - does anyone have any tips for getting the best out of the IDE? or any plugins I should be aware of?
For example is there a way to enable on the fly syntax/type checking - of the sorts you get in eclipse/visual studio where errors are underlined as you go?
Also what are people's general opinions on GNAT Workbench compared to GPS?
thanks
Matt
The GPS does not have a from of background syntax checking and that is by design. The idea behind GPS is that it is the compiler who decides what code is correct and what code is not correct. It means that if you want to know if your code is correct or not you have to compile it. On a Windows computer the short cut key for that is SHIFT+F4 and will only compile the specification or body file you are currently editing. Pressing F4 will compile your whole project. You will save time by using SHIFT+F4.
Another interesting feature is that the GPS uses cross-reference (XREF) information when navigation through the code. For example, let's say you would like to find all the places in your code where a specific subprogram is called. In GPS (GNAT PRO), right click on the subprogram you are interested in a press Find references. In the GPS GNAT Libre version you don't have a menu when right clicking in your code. In this case go to the Navigate menu and click on Find references there. If the GPS does not find any references and you know that the subprogram is used in the application it means that the XREF information needs to be updated. You may compile the whole application by F4 since the XREF information will be generated along with the binary that is produced. If you go to Edit and click on Key shortcuts you can set up a short cut key to generate the XREF information only. You may also find several interesting features there that you can set up a short cut key for.
The cross-reference information (XREF) is also used for refactoring (GNAT PRO specific functionality). It often works well for changing variable and subprogram names. Just make sure the cross-reference information is up to date!
Code snippets in GPS are also useful. You use them by writing a keyword followed by CTRL+O (not zero, O as in Orwell). To see the code snippets you can choose between go to Edit and click on Aliases. You can also create your own Aliases and code snippets to become a more productive Ada Software Engineer.
Good luck!
I do not think that GPS has a form of background syntax checking like Eclipse does, at least I haven't found it.
I wrote a small sized terminal program in GPS as my first Ada program and my opinion of it is generally negative.
The browser is very confusing and it is hard to find items you are looking for.
The editor has the nasty habit of adding a column to the left and removing it dynamically based on the item under your mouse. What that does is when you are trying to select text with the mouse, your text switches right and left by one character as you move which makes precise selection a difficult thing to do
Getting in the debugger involves too many steps and it generally moves your files in the editor to the EOF position when you set breakpoints, so you will do a lot of scrolling to go back to the sections of interest.
The debugger output looks fancy with all the graphical elements but it is also cumbersome to operate.
GPS offers better help features for Ada libraries though, it's generally easier to browse the standard libraries and check them out than in Eclipse.
All in all, if Eclipse works for you, you might want to stick with it or perhaps open both on the same project and switch to GPS for things like help etc.
I had a related question out here which is on hold now (as I expect your question will soon be due to it's broad content) but I did some research and I am generally dissatisfied with what is out there in the Ada field. The language is great but it suffocates under bad tools.
One last tip: You might want to try Slick Edit as it's text editor and browsing features are quite good, although they too have flaws with Ada (for instance the beautifier).
Good luck with your venture

Avalonedit Show syntax error

when I develop a custom language IDE using avalonedit, I encountered a problem. I use regex to check the syntax, and it works as designed. However, I want to show the syntax error with wave text mark. I did search at google, yet the solution is either outdated or not feasible. Any ideas? Thanks ahead.
AvalonEdit does not have this functionality built-in. However it provides all the infrastructure needed to implement it yourself. In the SharpDevelop IDE we have an implementation that should suit your needs.
You'll need some of the code from the SharpDevelop repository (https://github.com/icsharpcode/SharpDevelop/):
TextMarkerService, TextMarker
and its related interfaces and enums.
To make it easier for you, I have created a small sample application:
https://github.com/siegfriedpammer/AvalonEditSamples/tree/master/TextMarkerSample
It uses the AvalonEdit 5 nuget package and contains the classes mentioned above, plus a WPF Window to test it.

How to create an editable pdf in asp.net?

here is a different type of requirement in my project regarding pdf.
I want to generate a pdf with few of prefilled values. rest of the fields can be filled by user so Pdf should allow the user to edit the pdf so that he can save it locally on his system.
The pdf may contain checkboxes and textboxes.
I have worked with "itextsharp", "abc pdf" and "Rad Pdf".
For this purpose i can't use "Rad Pdf", due to some limitations by project owner.
Please share your valuable answers to give me a proper way to do this task.
Looking forward for your replies.
You need to use Adobe Professional, you can turn your existing electronic or paper forms into fillable forms with a few clicks.
http://adobe.ly/Ydc7qb
Acrobat Reader XI provides features to save eForms out of the box.
Provided your clients are using this version of Acrobat they will be able to fill in and save standard PDF forms.
The only problem you may have relates to older versions of Acrobat Reader which did not have this feature.
So any eForm produced using ABCpdf or indeed any PDF library should work the way you want provided your clients have a recent version of Acrobat Reader.
ABCpdf includes an example project called 'Annotations' which shows how to create eForms in this way.
My replies may feature concepts based around ABCpdf .NET because it's something I work on. :-)

How to enter mathematics equations in asp.net and save equation to SQL Server for my online test

I want to take math equations from user interface like a textbox and save them to SQL Server.
Is there any possible way please suggest me. I found like creating images but it not possible for my project which needs to create lot and user did not have that much of knowledge in creating images and me too.
Please help me like binding virtual keyboard to textbox or other possible ways
NMaheshGoud
I'd take a look at MathML if I were you. It would require a custom control to allow the user to enter the data. Unfortunately the .Net editor appears to no longer be available but you could resort to a Flash-based one such as fmath Editor.
Why can't you save it in a nvarchar field?
Assuming you are allowing text input then save it as this base form?
I've published a JavaScript library that you can use to create a virtual math keyboard. It is intended for use together with any LaTeX typesetting library (for example MathJax or KaTeX).
GitHub repository: https://github.com/MathKeyboardEngine/MathKeyboardEngine
Live examples: https://mathkeyboardengine.github.io
I see that you want to store the user's input in a database. Call getViewModeLatex to get the user's input as a LaTeX string (for example \frac{x}{1-x}) that you can store.

Recommendations for a multi-language spell checking control for ASP.NET

Looking for recommendations for a control which make can do spell checking for various languages.
You should check out the NetSpell as it is free first:
http://www.loresoft.com/projects/netspell/default.aspx
Here is a quick description:
The NetSpell project is a spell
checking engine written entirely in
managed C# .net code. NetSpell's
suggestions for a misspelled word are
generated using phonetic (sounds like)
matching and ranked by a typographical
(looks like) score. NetSpell supports
multiple languages and the
dictionaries are based on the
OpenOffice Affix compression format.
The library can be used in Windows or
Web Form projects. The download
includes an English dictionary with
dictionaries for other languages
available for download on the project
web site. NetSpell also supports user
added words and automatic creation of
user dictionaries. It also includes a
dictionary build tool to build custom
dictionaries.
If you want a good one that is not free I would recomment KarmaSoft UltimateSpell:
http://www.aspnetspellchecker.com/UltimateSpell/Features.aspx
Top 10 Features of Karamasoft
UltimateSpell for ASP.NET
Spell check as you type
Grammar check and synonyms
Spell check TEXT and HTML
Spell 1500 words per second
Auto correct misspelled words
Auto find all editable areas
Lookup online dictionary
34 dictionaries for free
Add to custom dictionary
Windows Forms support
Have a look at Telerik RadSpell:
http://www.telerik.com/products/aspnet-ajax/spell.aspx
We use UltimateSpell. Price is very reasonable and has a clean/easy to use interface.
http://www.karamasoft.com/ultimatespell/features.aspx
Hunspell works well, and the price is right - free!

Resources