Skip to content

Commit

Permalink
[de,en] ensure sentence is not split for 'Seven.One' (which is a larg…
Browse files Browse the repository at this point in the history
…e German company)
  • Loading branch information
tiff committed Jun 28, 2024
1 parent 4e936d1 commit 0e1defb
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1107,6 +1107,10 @@
</rule>
</languagerule>
<languagerule languagerulename="English">
<rule break="no"><!-- https://www.seven.one/ -->
<beforebreak>\b[Se]even\.</beforebreak>
<afterbreak>[Oo]ne\b</afterbreak>
</rule>
<rule break="no">
<beforebreak>\b[1-9]\.[\s\u00A0]</beforebreak>
<afterbreak>[a-z]</afterbreak>
Expand Down Expand Up @@ -4986,6 +4990,10 @@
<beforebreak>\b(https?|ftp|file|chrome|chromium|android|(chrome|moz)\-extension):///?[A-Za-z0-9\-]+\.</beforebreak>
<afterbreak>[A-Za-z0-9\-]+(\.|\b)</afterbreak>
</rule>
<rule break="no"><!-- https://www.seven.one/ -->
<beforebreak>\b[Se]even\.</beforebreak>
<afterbreak>[Oo]nes?\b</afterbreak>
</rule>
<rule break="no">
<beforebreak>\b[A-Za-z0-9\-]+\.</beforebreak>
<afterbreak>[A-Za-z0-9\-]+\.(com|net|org|info|de|es|edu|co|eu|nl|io|cn|uk|gov|biz|ca|tk|ru|br|jp|pl)(\.|\b)</afterbreak>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38537,6 +38537,11 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
<token>.</token>
<token>NRW</token>
</antipattern>
<antipattern>
<token>Seven</token>
<token>.</token>
<token regexp="yes">Ones?</token>
</antipattern>
<antipattern>
<token>notion</token>
<token>.</token>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2072,6 +2072,11 @@ USA
<token spacebefore="no" regexp="yes">[a-zöüäßA-ZÖÄÜ].+</token>
<token spacebefore="no">(</token>
</antipattern>
<antipattern>
<token>Seven</token>
<token>.</token>
<token>One</token>
</antipattern>
<antipattern>
<token>.</token>
<token spacebefore="no" regexp="yes">[a-zöüäßA-ZÖÄÜ].+</token>
Expand Down

0 comments on commit 0e1defb

Please sign in to comment.