Skip to content

Commit

Permalink
terminology: Improve logout/log out patterns (fixes #168)
Browse files Browse the repository at this point in the history
"log in" however remains untouched (for now)
  • Loading branch information
Stefan Knorr committed Apr 19, 2018
1 parent a771b1b commit 6087c1d
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/sdsc/xsl-checks/terminology.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2319,11 +2319,16 @@
<pattern>(log-out|log-?off|sign-?o(ut|ff))s?</pattern>
<contextpattern look="before" match="negative" location="2" mode="fuzzy">(to|not|is|was|be(en)?|will|ha(s|d|ve)|(we|a)re|can|could|may|might|shall|should)</contextpattern>
<contextpattern look="before">(the|an?)</contextpattern>
<contextpattern match="negative" location="2" mode="fuzzy">off?|from</contextpattern>
<contextpattern match="negative" look="bothways">[-a-z0-9]*ly</contextpattern>
</patterngroup>
<patterngroup>
<pattern>(log|sign)</pattern>
<pattern>o(ut|ff)s?</pattern>
<contextpattern look="before" mode="fuzzy" location="2">(the|an?)</contextpattern>
<contextpattern look="before" match="negative" location="2" mode="fuzzy">to</contextpattern>
<contextpattern look="bothways" match="negative">\w+ly</contextpattern>
<contextpattern match="negative" location="2" mode="fuzzy">of|from</contextpattern>
</patterngroup>
</term>

Expand All @@ -2334,6 +2339,21 @@
<patterngroup>
<pattern>((logg?|sign)(ed|ing)-?o(ut|ff)|(sign|log)-?o(ut|ff)(ed|ing))</pattern>
</patterngroup>
<patterngroup>
<pattern>logout</pattern>
<contextpattern look="before" match="negative" mode="fuzzy" location="2">(the|an?)</contextpattern>
<contextpattern look="before" location="2" mode="fuzzy">to</contextpattern>
</patterngroup>
<patterngroup>
<pattern>logout</pattern>
<contextpattern look="before" match="negative" mode="fuzzy" location="2">(the|an?)</contextpattern>
<contextpattern look="bothways">\w+ly</contextpattern>
</patterngroup>
<patterngroup>
<pattern>logout</pattern>
<contextpattern look="before" match="negative" mode="fuzzy" location="2">(the|an?)</contextpattern>
<contextpattern>of|from</contextpattern>
</patterngroup>
<patterngroup>
<pattern>sign(ed|ing|s)</pattern>
<pattern>o(ff|ut)</pattern>
Expand Down
11 changes: 11 additions & 0 deletions tests/cases/terminology.xml
Original file line number Diff line number Diff line change
Expand Up @@ -356,4 +356,15 @@
<para xml:id="sdsc.valid.namespace">
Namespaces are defined first.
</para>
<para xml:id="sdsc.valid.log-out">
Unmount the partitions, log out of the change-root environment, and
reboot the system.
</para>
<para xml:id="sdsc.expect.error.terminology.log-out-from">
Unmount the partitions, log out from the change-root environment, and
reboot the system
</para>
<para xml:id="sdsc.expect.error.terminology.logout-of">
To logout of the system, press <keycap function="escape"/> five times.
</para>
</chapter>

0 comments on commit 6087c1d

Please sign in to comment.