Comments (14)
maybe an idea to implement http://languagetool.org/ ?
from open-latex-studio.
Thanks for the link @angelabp It's worth investigating that tool.
from open-latex-studio.
@sebbrudzinski
I'm interested in this, but does anyone has experience with https://languagetool.org/ previously? Or is there any other recommended way to implement this feature?
from open-latex-studio.
Hello @WhiteHsu
We have no previous experience with LanguageTool. The first step in this ticket would be to familiarize with it and investigae whether we can use and if it helps us. Of course we can use any other tool/library as well.
from open-latex-studio.
I have some fast investigation and find there're some tools mentioned in internet discussions. I list them with information I know so far:
-
Suggester
- URL: http://www.softcorporation.com/products/spellcheck/
- Supported Languages: http://www.softcorporation.com/products/spellcheck/dictionaries/
- The Latest Release: 17 Aug, 2013
- License: http://www.softcorporation.com/products/spellcheck/LICENSE.TXT
- Local spellchecking API
- Suggester provides free version for basic functions, but free version only uses one language dictionary. So if we would like to support multi-language, free version won't be enough.
-
JOrtho
- URL: http://jortho.sourceforge.net/
- Supported Languages: http://jortho.sourceforge.net/
- The Latest Release: Version 1.0 (2013-03-11)
- License: GNU General Public License (GPL)
- Local spellchecking API
- This API seems able to consider. However, its latest release is provided in 2013, and some URLs in the webpage cannot work, so I'm afraid this library may not maintained now.
-
Jazzy
- http://jazzy.sourceforge.net/
- Because Jazzy has not been upated from 2005, I think we will not consider this.
-
Google API
- Some people says this's useful. However, Google does not maintain this service now. So we can remove this from consideration.
-
JSpell
- URL: http://www.jspell.com/
- There's recommendation on this software. However, after running its demo, the spell check will be triggered to show dialog after clicking the checked word one by one, so it seems not a good way we would like to adopt.
-
Language Tool
- URL: https://languagetool.org/
- Supported Language: https://languagetool.org/languages/
- The Latest Release: 3.5 (2016-09-30)
- License: Freely available under the LGPL 2.1 or later
- Local spellchecking API
- This tool seems being kept updated. The latest version will be released 2016-12-28. In addition, this doesn't provide Java API but also source codes and LaText tool: http://wiki.languagetool.org/checking-la-tex-with-languagetool
So it seems Language Tool provides more resources to fulfill our requirement.
In summary, my idea is to try Language Tool firstly. How about your suggestions? :-)
from open-latex-studio.
Thanks for this investigation @WhiteHsu It seems like all we need at this point is Java API. I think giving Language Tool a shoot first is a good idea.
from open-latex-studio.
Sorry for late update because being too busy previously. I'll continue my development on this workitem in these days.
from open-latex-studio.
@sebbrudzinski
Because I'm not very familiar with NetBeans IDE, I encounter several questions and would like to ask your suggestions:
-
In order to adopt Language Tool, we need to include its JAR library files. However, under the project file structure, I don't find a folder named "libs" or similar ones, so where do you suggest to put these JAR files under the project "OpenLaTeXStudio"?
-
After copying the JAR files, the next I think we should add them into project. I've followed instructions based on some webpages as this one:
http://stackoverflow.com/questions/1975973/how-to-use-jar-files-in-netbeans
The steps are: Tool -> Libraries -> New Libraries -> Add JAR/Folder:
However, after these steps, I cannot import the packages of Language Tool still. I guess there must be something missed among my steps. So may you help instruct the correct process to add library into project in NetBeans?
- In addition to add library files, I guess we should also update pom.xml, correct? But why I find many pom.xml in my built project as below? Which is the one we should update?
Sorry for these questions. Please kindly suggest and feedback. Thank you very much.
from open-latex-studio.
@WhiteHsu We use Maven, that handles the dependencies and external libraries. LanguageTool explains how to add their library to an existing Maven project here: http://wiki.languagetool.org/java-api (it should be as simple as adding a few lines in pom.xml)
from open-latex-studio.
@sebbrudzinski
I've checked in updates for this new feature. Here're some points about this feature:
-
After clicking this icon, it'll execute spell check and highlight incorrect words:
-
Then you can click the green icon again to clear highlights:
-
This "spell check" can be also triggered by clicking the option in the menu:
Please help review and provide your valuable feedback. Any advice will be very appreciated. Thank you very much. :-)
from open-latex-studio.
@sebbrudzinski
Is there anything able to improve or enhance? Please kindly help review and provide your valuable feedback on my check-in. Thank you very much. :-)
from open-latex-studio.
@WhiteHsu sorry for delay. Thanks for the pull request, I've reviewed it now. Overall this works, but we need to improve several things in the code.
from open-latex-studio.
@sebbrudzinski
Thanks for your review comments. I've updated codes based on your review comments. Please kindly help check again and provide your feedback. Thank you very much. :-)
from open-latex-studio.
Fixed by @WhiteHsu New tickets will be created to expand and improve the current spell check
from open-latex-studio.
Related Issues (20)
- Preview Does Not Change After Generating Template Preview HOT 2
- Template Opens Over Existing File HOT 2
- Introduce Dependency Injection framework
- Handle long time operations better
- Update "Start the application" point of the "Setting up development env" wiki page HOT 9
- Refactor Editor state to a new class HOT 2
- Loading template does not change file HOT 3
- Zoom not working right in /dev/new-pdfbox HOT 3
- No out of range checking on pages. /dev/new-pdfbox HOT 2
- Text highlighting fails for \% HOT 4
- PDF Preview stops updating HOT 3
- Same position for toggle comment and undo action HOT 1
- Automatic completion is overzealous HOT 1
- Editor visual error HOT 1
- Make welcome.tex file use application version from pom file HOT 1
- Update wiki page with the LaTeX distribution’s path HOT 1
- More features on spell checking HOT 7
- Error connecting to dropbox HOT 5
- Follow last page feature
- Cannot launch Open LaTeX Studio on Ubuntu HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from open-latex-studio.