# HG changeset patch # User Patrick PIERRE # Date 1365628429 -7200 # Node ID 48cf8cfe8b1a2a1cf8507f289259d469a7d63b66 # Parent 0de4e60edc15edf17bb3187a78d66825d467e331 Ajout des quiz PIP diff -r 0de4e60edc15 -r 48cf8cfe8b1a RelaxNG/Examples/Quiz/Images/bingo.png Binary file RelaxNG/Examples/Quiz/Images/bingo.png has changed diff -r 0de4e60edc15 -r 48cf8cfe8b1a RelaxNG/Examples/Quiz/Images/bingo_green.png Binary file RelaxNG/Examples/Quiz/Images/bingo_green.png has changed diff -r 0de4e60edc15 -r 48cf8cfe8b1a RelaxNG/Examples/Quiz/Images/bingo_red.png Binary file RelaxNG/Examples/Quiz/Images/bingo_red.png has changed diff -r 0de4e60edc15 -r 48cf8cfe8b1a RelaxNG/Examples/Quiz/pip.xml --- /dev/null jeu. janv. 01 00:00:00 1970 +0000 +++ b/RelaxNG/Examples/Quiz/pip.xml mer. avril 10 23:13:49 2013 +0200 @@ -0,0 +1,26 @@ + + + + + + Images dans une image (PIP) + + + +

Entoure en vert les nombres multiples de 3 et en rouge ceux multiples + de 5.

+
+ + + + + + + + + + + + +
+
diff -r 0de4e60edc15 -r 48cf8cfe8b1a RelaxNG/publiquiz.rnc --- a/RelaxNG/publiquiz.rnc mer. avril 10 13:24:12 2013 +0200 +++ b/RelaxNG/publiquiz.rnc mer. avril 10 23:13:49 2013 +0200 @@ -102,6 +102,7 @@ | matching | sort | categories + | pip | production # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ choices ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -212,6 +213,16 @@ shorttitle?, subtitle? +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pip ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +pip = element pip { pip.attributes, pip.content } + +pip.attributes = + multiple.attribute? + +pip.content = + pip.image + # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ production ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ production = element production { empty } @@ -369,21 +380,33 @@ # ~~~~~~ blanks.image blanks.image = element image { image.attributes, blanks.image.content } +pip.image = element image { image.attributes, pip.image.content } blanks.image.content = copyright?, blanks.dropzone* +pip.image.content = + pip.dropzone+ -# ~~~~~~ blanks.dropzone +# ~~~~~~dropzone blanks.dropzone = element dropzone { blanks.dropzone.attributes, blanks.dropzone.content } +pip.dropzone = element dropzone { + pip.dropzone.attributes, pip.dropzone.content } blanks.dropzone.attributes = x.attribute & y.attribute +pip.dropzone.attributes = + x.attribute + & y.attribute + & w.attribute + & h.attribute blanks.dropzone.content = blank +pip.dropzone.content = + image? # ~~~~~~~~~~~~~~~~~~~~~~~~ choices.right, choices.wrong ~~~~~~~~~~~~~~~~~~~~~~~