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

[reflow] Abbreviation "ch." does not end sentence #510

Merged
merged 1 commit into from
Nov 30, 2023
Merged
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
6 changes: 3 additions & 3 deletions adoc/chapters/opencl_backend.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1157,9 +1157,9 @@ All content in this section is non-normative.

=== Work-item functions

The OpenCL 1.2 specification document <<opencl12, ch.
6.12.1 in Table 6.7>> defines work-item functions that tell various information
about the currently executing work-item in an OpenCL kernel.
The OpenCL 1.2 specification document <<opencl12, ch. 6.12.1 in Table 6.7>>
defines work-item functions that tell various information about the currently
executing work-item in an OpenCL kernel.
SYCL provides equivalent functionality through the item and group classes that
are defined in <<subsec:item.class>>, <<nditem-class>> and <<group-class>>.

Expand Down
3 changes: 1 addition & 2 deletions adoc/chapters/programming_interface.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -20587,8 +20587,7 @@ determined by their linear id.

In SYCL the OpenCL math functions are available in the namespace [code]#sycl# on
host and device with the same precision guarantees as defined in the OpenCL 1.2
specification document <<opencl12, ch.
7>> for host and device.
specification document <<opencl12, ch. 7>> for host and device.
For a SYCL platform the numerical requirements for host need to match the
numerical requirements of the OpenCL math built-in functions.

Expand Down
2 changes: 1 addition & 1 deletion adoc/scripts/reflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
# A single letter followed by a period, typically a middle initial.
endInitial = re.compile(r'^[A-Z]\.$')
# An abbreviation, which does not (usually) end a line.
endAbbrev = re.compile(r'(e\.g|i\.e|c\.f|vs|co|ltd)\.$', re.IGNORECASE)
endAbbrev = re.compile(r'(e\.g|i\.e|c\.f|\bvs\b|\bco\b|\bltd\b|\bch\b)\.$', re.IGNORECASE)

# Explicit Valid Usage list item with one or more leading asterisks
# The re.DOTALL is needed to prevent vuPat.search() from stripping
Expand Down