Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grazie thinks that a sentence after \section is no new sentence. #3508

Closed
MartinX3 opened this issue Apr 4, 2024 · 3 comments · Fixed by #3798
Closed

Grazie thinks that a sentence after \section is no new sentence. #3508

MartinX3 opened this issue Apr 4, 2024 · 3 comments · Fixed by #3798
Labels
bug Deficiencies in TeXiFy behaviour. Grazie
Milestone

Comments

@MartinX3
Copy link

MartinX3 commented Apr 4, 2024

Type of JetBrains IDE (IntelliJ, PyCharm, etc.) and version

IntelliJ IDEA 2024.1 (Ultimate Edition)

Operating System

Arch Linux

TeXiFy IDEA version

0.9.4

What I did (steps to reproduce)

Write the text.

Minimal example to reproduce the problem

\documentclass{article}
\begin{document}
    \section{Motivation und Hintergrund}\label{sec:motivation-und-hintergrund}
     Der Hintergrund des Themas der Thesis ist der Umbruch beim Prozess des \gls{api}-Managements.
\end{document}

Expected behavior

No warning.

Actual behavior

It tells me to write "Der" lowercase because I'm "inside" a sentence.

image

@MartinX3 MartinX3 added bug Deficiencies in TeXiFy behaviour. untriaged Issue type still needs to be triaged or verified. labels Apr 4, 2024
@PHPirates PHPirates changed the title Tool thinks that a sentence after \section is no new sentence. Grazie thinks that a sentence after \section is no new sentence. Apr 23, 2024
@PHPirates
Copy link
Collaborator

Thanks for the report, but I cannot reproduce the issue. Are you using grazie pro or lite?
Could you double check if the issue occurs in the example you gave? The screenshot shows a larger document, it seems.

image

@PHPirates PHPirates added more-info-needed More information is needed from the person filing the issue. and removed untriaged Issue type still needs to be triaged or verified. labels Apr 23, 2024
@MartinX3
Copy link
Author

MartinX3 commented Apr 24, 2024

Thanks for your response.
I use Grazie pro.
image

And this warning is also wrong:
image
It thinks \gls{api} doesn't exist.

@PHPirates
Copy link
Collaborator

PHPirates commented Apr 24, 2024

Thanks, I just put some text in front of the section and now it suddenly triggers. You are right about the second warning, the trouble is that we somehow need the information that e.g. \gls{text} should be replaced with text but \label{text} should be removed as a whole. That is not possible in general, but maybe we can hardcode some common cases, I will see what we can do.

\documentclass{article}
\usepackage{glossaries}
\begin{document}
    Außer am Satzanfang werden nur Nomen und Eigennamen großgeschrieben.
    \section{Motivation und Hintergrund}\label{sec:motivation-und-hintergrund}
    Der Hintergrund des Themas der Thesis ist der Umbruch beim Prozess des \gls{api}-Managements.
\end{document}

PS duplicate of #3494

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Deficiencies in TeXiFy behaviour. Grazie
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants