Comments (4)
I added the options --username
and --apikey
to the --lt-options
. Unfortunately, I have no premium subscription, I could test with. If you know how to install from GitHub, you could test my branch https://github.com/torik42/YaLafi/tree/issue-225 and check whether it works as expected. The command after installation would be
python -m yalafi.shell --server lt --lt-options '~--username <username> --apikey <apikey>' document.tex
If it works out, I would add documentation and open a PR. Unfortunately, @matze-dd wasn’t active lately.
from yalafi.
Wow, thank you so much. It worked almost perfectly. I forgot to mention that in addition to an API key, the URL for the premium server is different. Once I changed the hardcoded URL for the LT server in shell.py to ltserver='https://api.languagetoolplus.com/v2/'
, it worked flawlessly.
It might be nice to have the URL for a remote LT server as an actual option rather than having to hardcode it. Anyone wanting to connect to a remote LT server that is not the public one hosted by LT will have to change this; however, it is trivially easy to do, so it is not that big of a deal.
Again, thank you so much. I am very happy to have this working. I thought I had wasted money, but now that it is working correctly, I am very happy with it.
from yalafi.
That’s great to hear. There already is a PR to allow custom server URLs #222. It would also need some more documentation and for the premium server, one might add --server ltplus
to ease the process.
Do you know any documentation or discussion about the difference between api.languagetool.org
and api.languagetoolplus.com
?
from yalafi.
The only documentation I know of is the Swagger documentation, which I really haven't found to be very helpful. In general, I have found LT's documentation to be very confusing all around. In fact, I am not even sure that access to this API is even supposed to be available with their premium service. They only gave me an API key after I complained to them that their documentation was misleading. I still haven't gotten a clear answer, so just a heads up to anyone who is considering buying a premium membership.
From what I have gathered, the free public API at api.languagetool.org
runs a copy of the basic LT server that is open source, and the one at api.languagetoolplus.com
runs the premium version that is closed source and requires an API key to access. The premium features (which are actually very good) must be accessed through this server as they do not allow you to host your own premium server locally. I may be stating the obvious, but that is about the extent of my knowledge on this. I am not experienced at all with web APIs.
from yalafi.
Related Issues (20)
- Ignore minted environment
- Custom global macro packages HOT 2
- Support `autoref`
- Update glossaries
- Custom LanguageTool Server URL
- Status of the project HOT 23
- How to avoid own commands. HOT 2
- Local installation doesn't work after change in build system HOT 4
- Add tests for successful installation HOT 1
- YaLafi to handle LaTeX syntax (recognize begin/end of environments) HOT 10
- Remove cyclic imports
- `\newenvironment` is not parsed by YaLafi
- Add `LTadd`, `LTskip` and `LTextract` environments.
- Add support for the `comment` package.
- Problems when including files with the extensions txt, pgf, and latex
- How to make the proofreading tool LanguageTool know new words? HOT 3
- Disable single command, because its arguments (labels) are not meant to be checked HOT 3
- Add LaTeX macro `\providecommand`
- Documentation overhaul
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 yalafi.