Project

General

Profile

root / branches / 3.8-sc50 / model / sources / l10n / xRTL / opaleRtl4strt.extdef @ 4204

1
<?xml version="1.0"?>
2
<sm:extDefinition xmlns:sm="http://www.utc.fr/ics/scenari/v3/modeling" xmlns:sc="http://www.utc.fr/ics/scenari/v3/core" keyExt="OpaleRTL4strt" name=";Opale &quot;Lecture de droite à gauche&quot;" majorVersion="3" mediumVersion="8" minorVersion="009">
3
	<sm:parentWspDef sc:refUri="/opale/opaleStarter.wspdef"/>
4
	<sm:classOverlays>
5
		<!--# Class sur lequelles seront exécutés les contrôles des caractères spéciaux (définis ci-dessous)-->
6
		<sm:class sc:refUri="/academic/model/root/webRoot.model"/>
7
		<sm:class sc:refUri="/academic/model/root/odRoot.model"/>
8
		<sm:class sc:refUri="/academic/model/root/presRoot.model"/>
9
		<sm:class sc:refUri="/academic/model/Ue/ue.model"/>
10
		<sm:class sc:refUri="/academic/model/Ue/ueDiv.model"/>
11
		<sm:class sc:refUri="/academic/model/Ua/courseUa.model"/>
12
		<sm:class sc:refUri="/academic/model/Ua/assmntUa.model"/>
13
		<sm:class sc:refUri="/academic/model/Uc/expUc.model"/>
14
		<sm:class sc:refUri="/academic/model/Uc/practUc.model"/>
15
		<sm:class sc:refUri="/academic/model/Uc/quiz/mcqSur.model"/>
16
		<sm:class sc:refUri="/academic/model/Uc/quiz/mcqMur.model"/>
17
		<sm:class sc:refUri="/academic/model/Uc/quiz/match.model"/>
18
		<sm:class sc:refUri="/academic/model/Uc/quiz/ordWord.model"/>
19
		<sm:class sc:refUri="/academic/model/Uc/quiz/cloze.model"/>
20
		<sm:class sc:refUri="/academic/model/Uc/quiz/field.model"/>
21
		<sm:class sc:refUri="/academic/model/Uc/quiz/numerical.model"/>
22
		<sm:class sc:refUri="/academic/model/Uc/quiz/coQuiz.model"/>
23
		<sm:class sc:refUri="/academic/model/Uc/quiz/mcgSur.model"/>
24
		<sm:class sc:refUri="/academic/model/Uc/quiz/mcgMur.model"/>
25
		<sm:class sc:refUri="/academic/model/Re/refs/acr.model"/>
26
		<sm:class sc:refUri="/academic/model/Re/refs/glos.model"/>
27
		<sm:class sc:refUri="/academic/model/Re/refs/bib.model"/>
28
		<sm:class sc:refUri="/academic/model/Re/refs/ref.model"/>
29
		<sm:class sc:refUri="/binaries/image/image.model"/>
30
		<sm:class sc:refUri="/binaries/odg/odg.model"/>
31
		<sm:class sc:refUri="/binaries/audio/audio.model"/>
32
		<sm:class sc:refUri="/binaries/opus/opus.model"/>
33
		<sm:class sc:refUri="/binaries/video/video.model"/>
34
		<sm:class sc:refUri="/binaries/flash/flash.model"/>
35
		<sm:class sc:refUri="/binaries/flv/flv.model"/>
36
		<sm:class sc:refUri="/binaries/avi/avi.model"/>
37
		<sm:class sc:refUri="/binaries/mov/mov.model"/>
38
		<sm:class sc:refUri="/binaries/mpg/mpg.model"/>
39
		<sm:class sc:refUri="/binaries/rm/rm.model"/>
40
		<sm:class sc:refUri="/binaries/wmv/wmv.model"/>
41
		<sm:class sc:refUri="/academic/model/Re/eSite/eSite.model"/>
42
		<sm:class sc:refUri="/binaries/eWeb/eWeb.model"/>
43
		<sm:class sc:refUri="/academic/model/Re/mediaWeb/mediaWeb.model"/>
44
		<sm:class sc:refUri="/academic/model/Re/gallery.model"/>
45
		<sm:class sc:refUri="/math/odf/odf.model"/>
46
		<sm:class sc:refUri="/math/latex/mathTex.model"/>
47
		<sm:class sc:refUri="/binaries/ods/ods.model"/>
48
		<sm:class sc:refUri="/binaries/doc/doc.model"/>
49
		<sm:class sc:refUri="/binaries/xls/xls.model"/>
50
		<sm:class sc:refUri="/binaries/odp/odp.model"/>
51
		<sm:class sc:refUri="/binaries/odt/odt.model"/>
52
		<sm:class sc:refUri="/binaries/pdf/pdf.model"/>
53
		<sm:class sc:refUri="/binaries/rtf/rtf.model"/>
54
		<sm:class sc:refUri="/binaries/zip/zip.model"/>
55
		<sm:class sc:refUri="/academic/model/Re/code.model"/>
56
		<sm:class sc:refUri="/academic/model/Re/applet/applet.model"/>
57
		<sm:class sc:refUri="/academic/model/Re/applet/jar.model"/>
58
		<sm:class sc:refUri="/binaries/srt/srt.model"/>
59
		<sm:class sc:refUri="/binaries/vtt/vtt.model"/>
60
	</sm:classOverlays>
61
	<sm:skinSets>
62
		<sm:skinSet code="auroraRTL" name=";Aurora &quot;Lecture de droite à gauche&quot;">
63
			<sm:skin sc:refUri="/l10n/xRTL/aurora/web/auroraRTL.skin.doss">
64
				<sm:generator sc:refUri="/aurora/scorm/multiSCO/auroraMS.generator"/>
65
			</sm:skin>
66
			<sm:skin sc:refUri="/l10n/xRTL/aurora/web/auroraRTL.skin.doss">
67
				<sm:generator sc:refUri="/aurora/scorm/uniSCO/activity/auroraAUS.generator"/>
68
			</sm:skin>
69
			<sm:skin sc:refUri="/l10n/xRTL/aurora/web/auroraRTL.skin.doss">
70
				<sm:generator sc:refUri="/aurora/scorm/uniSCO/auroraUS.generator"/>
71
			</sm:skin>
72
			<sm:skin sc:refUri="/l10n/xRTL/aurora/web/auroraRTL.skin.doss">
73
				<sm:generator sc:refUri="/aurora/web/activity/auroraAW.generator"/>
74
			</sm:skin>
75
			<sm:skin sc:refUri="/l10n/xRTL/aurora/web/auroraRTL.skin.doss">
76
				<sm:generator sc:refUri="/aurora/web/auroraW.generator"/>
77
			</sm:skin>
78
			<sm:skin sc:refUri="/l10n/xRTL/aurora/web/auroraRTL.skin.doss">
79
				<sm:generator sc:refUri="/aurora/web/pre/auroraWpre.generator"/>
80
			</sm:skin>
81
		</sm:skinSet>
82
		<sm:skinSet code="quadraRTL" name=";Quadra &quot;Lecture de droite à gauche&quot;">
83
			<sm:skin sc:refUri="/l10n/xRTL/quadra/paper/paper.skin.odt">
84
				<sm:generator sc:refUri="/quadra/gen/quadra/paper/paper.generator"/>
85
			</sm:skin>
86
			<sm:skin sc:refUri="/l10n/xRTL/quadra/paper/paper.skin.odt">
87
				<sm:generator sc:refUri="/academic/gen/paper/paperLight.generator"/>
88
			</sm:skin>
89
			<sm:skin sc:refUri="/l10n/xRTL/quadra/web/web.skin.doss">
90
				<sm:generator sc:refUri="/quadra/gen/quadra/web/web.generator"/>
91
			</sm:skin>
92
			<sm:skin sc:refUri="/l10n/xRTL/quadra/web/web.skin.doss">
93
				<sm:generator sc:refUri="/quadra/gen/quadra/scormMulti/scormMulti.generator"/>
94
			</sm:skin>
95
			<sm:skin sc:refUri="/l10n/xRTL/quadra/web/web.skin.doss">
96
				<sm:generator sc:refUri="/quadra/gen/quadra/scormMono/scormMono.generator"/>
97
			</sm:skin>
98
		</sm:skinSet>
99
	</sm:skinSets>
100
	<sm:wspFront>
101
		<!--# Zone d'édition XED en RTL-->
102
	</sm:wspFront>
103
	<sm:free>
104
		<sm:back>
105
			<!--# Controle du path des items : caracteres alphanumériques uniquement (cf http://scenari-platform.org/trac/opale/wiki/l10n.ar.doc)-->
106
			<sm:freeSsOverlay xml:space="preserve">&lt;module code="validItemUri" type="com.scenari.m.bdp.module.genitem.HModuleGenItemBeanshellLoader" paramType="stream"&gt;   &lt;beanshell&gt;&lt;![CDATA[    void fillItem(eu.scenari.wsp.item.IItem pItem, java.io.InputStream pStream) throws Exception {   if(pStream!=null){    try {     String vUri = pItem.getSrcNode().getSrcUri();     String[] vTokens = vUri.split("/");     java.util.regex.Pattern sPatternSpace = java.util.regex.Pattern.compile("[A-Za-z0-9\\-_]");     java.util.regex.Pattern sPatternItem  = java.util.regex.Pattern.compile("[A-Za-z0-9\\-_\\.]");          for (int ii = 0; ii &lt; vTokens.length; ii++){      if(vTokens[ii].length()&gt;0){       if(ii &lt; vTokens.length-1){        // espace        String vUnauthorizedChar = sPatternSpace.matcher(vTokens[ii]).replaceAll("");        if(vUnauthorizedChar.length()&gt;0) pItem.addContentError("charset", "Caractère(s) interdit(s) dans le nom de l'espace - '"+vTokens[ii]+"' : "+vUnauthorizedChar, "Seuls les caractères alphanumériques sont autorisés.");       }else{        // item        String vUnauthorizedChar = sPatternItem.matcher(vTokens[ii]).replaceAll("");        if(vUnauthorizedChar.length()&gt;0) pItem.addContentError("charset", "Caractère(s) interdit(s) dans le nom de l'item - '"+vTokens[ii]+"' : "+vUnauthorizedChar, "Seuls les caractères alphanumériques sont autorisés.");       }      }     }    } catch(Exception e) {     throw e;    }   }  }   ]]&gt;&lt;/beanshell&gt;  &lt;/module&gt;</sm:freeSsOverlay>
107
			<sm:freeSsOverlay regexpSgn=".*@sfile_.*" xml:space="preserve">&lt;module code="enreg" type="com.scenari.m.bdp.module.save.automultires.HModuleSaveAutoMultiResLoader"&gt;&lt;genItem codeModule="validItemUri" /&gt;&lt;/module&gt;</sm:freeSsOverlay>
108
			<sm:freeSsOverlay regexpSgn=".*@op_.*" xml:space="preserve">&lt;module code="enreg" type="com.scenari.m.bdp.module.save.HModuleSaveLoader"&gt;&lt;genItem codeModule="validItemUri" /&gt;&lt;/module&gt;</sm:freeSsOverlay>
109
		</sm:back>
110
		<sm:front>
111
			<sm:freeUiOverlay targetUri="xedView:" xml:space="preserve">&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;so:overlay xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns:so="scenari.eu:xmlOverlay:1.0"&gt;  &lt;so:script&gt;    document.getElementById("xedBox").style.direction="rtl";  &lt;/so:script&gt; &lt;/so:overlay&gt;</sm:freeUiOverlay>
112
		</sm:front>
113
	</sm:free>
114
</sm:extDefinition>
(2-2/2)