Skip to content

[checks] Check for missing hyphen in "floating point" #8124

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/basic.tex
Original file line number Diff line number Diff line change
Expand Up @@ -6163,7 +6163,7 @@
defined as follows:
\begin{itemize}
\item
The rank of a floating point type \tcode{T} is greater than
The rank of a floating-point type \tcode{T} is greater than
the rank of any floating-point type
whose set of values is a proper subset of the set of values of \tcode{T}.
\item
Expand Down
2 changes: 1 addition & 1 deletion source/compatibility.tex
Original file line number Diff line number Diff line change
Expand Up @@ -2674,7 +2674,7 @@

\diffref{facet.num.get.virtuals}
\change
The \tcode{num_get} facet recognizes hexadecimal floating point values.
The \tcode{num_get} facet recognizes hexadecimal floating-point values.
\rationale
Required by new feature.
\effect
Expand Down
2 changes: 1 addition & 1 deletion source/numerics.tex
Original file line number Diff line number Diff line change
Expand Up @@ -11902,7 +11902,7 @@
the \tcode{value_type} is a floating-point type,
implementers are free to leverage approximations,
use arithmetic operations not explicitly listed above, and
compute floating point sums in any way that improves their accuracy.
compute floating-point sums in any way that improves their accuracy.
\end{note}

\pnum
Expand Down
5 changes: 5 additions & 0 deletions tools/check-source.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ failed=0
texfiles=$(ls *.tex | grep -v macros.tex | grep -v layout.tex | grep -v tables.tex)
texlibdesc="support.tex concepts.tex diagnostics.tex memory.tex meta.tex utilities.tex containers.tex iterators.tex ranges.tex algorithms.tex strings.tex text.tex numerics.tex time.tex iostreams.tex threads.tex exec.tex"
texlib="lib-intro.tex $texlibdesc"
texnoback=$(ls *.tex | grep -v back.tex)

# Filter that reformats the error message as a "workflow command",
# for native handling by github actions.
Expand Down Expand Up @@ -39,6 +40,10 @@ for f in *.tex; do
echo "$f" | fail 'trailing empty lines' || failed=1
done

# "floating point" instead of "floating-point"
grep -in 'floating point' $texnoback |
fail '"floating point" should be hyphenated like "floating-point"' || failed=1

# indented \begin{codeblock} / \end{codeblock} (causes unwanted empty space)
grep -ne '^.\+\\\(begin\|end\){codeblock}' $texfiles |
fail 'indented codeblock env' || failed=1
Expand Down