## #911 Grammar checker marks word repetitions between figure caption and text

None
fixed
nobody
None
1
2014-09-24
2014-02-26
No

Example:

\begin{figure}
<some figure>
\caption{Kontrolle und Korrektur der Ergebnisse}
\end{figure}
%
Der für die Kontrolle und Korrektur benötigte Zeitaufwand...


The grammar checker complains about repetitions in the text. Considering that the final figure placement will not be next to the text, this is too eager.

I think, the grammar check should not extend across float boundaries. In fact, it should skip the float and consider the text right before the float for repetitions as the text before and after float definition will be right next to each other in the final document.

Example:

...erfordert eine Kontrolle der Ergebnisse.
%
\begin{figure}
<some figure>
\caption{Some longish caption of the figure, at least longer than the word repetition threshold. }
\end{figure}
%
Der für die Kontrolle und Korrektur benötigte Zeitaufwand...


In this case, the grammar check stays silent, but should mark "Kontrolle" following the figure as a repetition.

But I am not sure, if this is easily doable.

## Discussion

• . Considering that the final figure placement will not be next to the text, this is too eager.

Why do you have a % between figure and text, instead just writing

\end{figure}

Der für die Kontrolle und Korrektur benötigte Zeitaufwand...


It treats empty lines as separators for the repetition check.

In fact, it should skip the float and consider the text right before the float for repetitions as the text before and after float definition will be right next to each other in the final document.

That is not really possible with the current checker design

Last edit: Benito van der Zander 2014-03-06
• sirixlancelot - 2014-03-07

. Considering that the final figure placement will not be next to the text, this is too eager.

Why do you have a % between figure and text, instead just writin

\end{figure}

Der für die Kontrolle und Korrektur benötigte Zeitaufwand...


It treats empty lines as separators for the repetition check.

The empty line will start a new paragraph which I don't want. The figure is basically declared in the middle of the paragraph to be as close to the first reference as possible. The empty lines with % are used to separate it visually from the text during editing.

• status: open --> fixed
• Group: -->

• implemented in 4330:917f9d002061

not much tested