Skip to content

Commit

Permalink
Merge pull request #510 from gmlueck/gmlueck/reflow-ch
Browse files Browse the repository at this point in the history
[reflow] Abbreviation "ch." does not end sentence
  • Loading branch information
gmlueck committed Nov 30, 2023
1 parent 2464dad commit 2c93503
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
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

0 comments on commit 2c93503

Please sign in to comment.