[gnome-user-docs] Made gnome-help.sct a little bit better



commit 62218ca9f918580b37fa9d2a6cbfbbb10c18c022
Author: Shaun McCance <shaunm redhat com>
Date:   Tue Sep 29 10:20:34 2015 -0400

    Made gnome-help.sct a little bit better

 gnome-help/C/gnome-help.sct |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/gnome-help/C/gnome-help.sct b/gnome-help/C/gnome-help.sct
index 0c1e623..6497a1f 100644
--- a/gnome-help/C/gnome-help.sct
+++ b/gnome-help/C/gnome-help.sct
@@ -1,3 +1,6 @@
+<?run this:
+xmllint --noout --schematron gnome-help.sct *.page 2>&1 | grep -v 'validates$'
+?>
 <schema xmlns="http://www.ascc.net/xml/schematron"; >
   <title>Some sanity checks for the GNOME desktop help</title>
   <ns prefix="mal" uri="http://projectmallard.org/1.0/"/>
@@ -13,10 +16,14 @@
       <assert test="normalize-space(mal:desc) != ''">Must have non-empty desc</assert>
     </rule>
     <rule context="mal:page/mal:info/mal:desc">
-      <assert test="substring(normalize-space(.), string-length(normalize-space(.))) = '.'">Desc must end 
with a period</assert>
+      <assert test="mal:link or
+                    substring(normalize-space(.), string-length(normalize-space(.))) = '.'"
+                    >Desc must end with a period</assert>
     </rule>
     <rule context="mal:page/mal:info/mal:desc/mal:link">
-      <assert test="substring(normalize-space(..), string-length(normalize-space(..)) - 2) = '...'">Desc 
with links must end with an ellipsis</assert>
+      <assert test="substring(normalize-space(..), string-length(normalize-space(..)) - 2) = '...' or
+                    substring(normalize-space(..), string-length(normalize-space(..))) = '…'"
+                   >Desc with links must end with an ellipsis</assert>
     </rule>
   </pattern>
 </schema>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]