Hello texstudio team,
please keep up the great work!
I am using texstudio 2.10.6 with languagetool 3.2 on MacOSX.
Is it possible to replace the \gls{}, \glspl{}, \glsdisp{}, \acr{} ... commands by the strings LaTeX is going to place there? Or alternatively always by the name string?
Anonymous
TXS does not have this information and it would be very tedious to parse and maintain it. On the other hand I don't really see a benefit. Why would you want it?
I am using the language tool to give me some hints were my grammar might be possibly wrong. But I get many false positive languagetool-warnings around \gls{}, [...] commands in my text
Thus I would really like to see, if there would be a way to enhance this.
Another approach for this just came into my mind: How about handing over the text from the generated pdf file to the languagetool. Would that be possible?
note: I just tried it and it turns out you are right. It takes a serious logic to insert spaces and reconnect wordwraps to make languagetool understand the text.
Any other idea?
Last edit: Florian 2016-01-21
No. The text in a pdf is for reading not for parsing. For example, words may be in different containers due do line/pagebreak or wrapping. You cannot necessarly reconstruct an order of words. Also, TeX might insert ligatures.
It may be possible to have a static mapping list. e.g. replace
\gls{matlab}byMATLABbefore sending a text to language tool. But this list would still have to be maintained manually by the user.@Florian: The trick is to download the glossaries.cwl[1], put it into your user-cwl-folder and replace
\gls{label}#rwith\gls{label}#r%text.Edit: Wrong format + Unfortunately, at closer inspection, it does not work for me, although languagetool is happy when I just remove the tag around my acronym.
[1] https://sourceforge.net/p/texstudio/hg/ci/default/tree/completion/glossaries.cwl
Last edit: Moritz Strübe 2016-09-21