Révision 2402

tmp/org.txm.treetagger.core/.classpath (revision 2402)
1 1
<?xml version="1.0" encoding="UTF-8"?>
2 2
<classpath>
3
	  <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
4
	  <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins">
5
		    <accessrules>
6
			      <accessrule kind="accessible" pattern="**"/>
7
		    </accessrules>
8
	  </classpathentry>
9
	  <classpathentry kind="src" path="src"/>
10
	  <classpathentry exported="true" kind="con" path="GROOVY_SUPPORT"/>
11
	  <classpathentry exported="true" kind="con" path="GROOVY_DSL_SUPPORT"/>
12
	  <classpathentry kind="output" path="bin"/>
3
	<classpathentry kind="con"
4
		path="org.eclipse.jdt.launching.JRE_CONTAINER" />
5
	<classpathentry kind="con"
6
		path="org.eclipse.pde.core.requiredPlugins">
7
		<accessrules>
8
			<accessrule kind="accessible" pattern="**" />
9
		</accessrules>
10
	</classpathentry>
11
	<classpathentry kind="src" path="src" />
12
	<classpathentry exported="true" kind="con"
13
		path="GROOVY_SUPPORT" />
14
	<classpathentry exported="true" kind="con"
15
		path="GROOVY_DSL_SUPPORT" />
16
	<classpathentry kind="output" path="bin" />
13 17
</classpath>
tmp/org.txm.treetagger.core/src/org/txm/importer/xmltxm/package.html (revision 2402)
1 1
<html>
2 2
<body>
3
<p>Manages xml-tei-txm files</p>
3
	<p>Manages xml-tei-txm files</p>
4 4
</body>
5 5
</html>
tmp/org.txm.treetaggerinstaller.rcp/src/org/txm/treetagger/DoInstallStep.java (revision 2402)
19 19

  
20 20

  
21 21
public class DoInstallStep extends PostInstallationStep {
22
	
22 23
	protected String name = "TreeTaggerInstaller"; //$NON-NLS-1$
23 24
	
24 25
	@Override
......
26 27
		
27 28
	}
28 29
	
29
	public DoInstallStep() { name = "TreeTagger"; }
30
	public DoInstallStep() {
31
		name = "TreeTagger";
32
	}
30 33
	
31 34
	@Override
32 35
	public void install() {
......
41 44
				return; // nothing to do
42 45
			}
43 46
		}
44
		System.out.println("Updating TreeTagger preferences for TreeTaggerInstaller version="+currentVersion);
47
		System.out.println("Updating TreeTagger preferences for TreeTaggerInstaller version=" + currentVersion);
45 48
		
46 49
		String os = "win";
47
		if (Util.isWindows()) { //$NON-NLS-1$
50
		if (Util.isWindows()) { // $NON-NLS-1$
48 51
			os = "win";
49
		} else if (Util.isMac()) { //$NON-NLS-1$
52
		}
53
		else if (Util.isMac()) { // $NON-NLS-1$
50 54
			os = "macosx";
51
		} else {
55
		}
56
		else {
52 57
			os = "linux32";
53 58
			if (System.getProperty("os.arch").contains("64"))
54 59
				os = "linux64";
55 60
		}
56

  
61
		
57 62
		File bundleDir = BundleUtils.getBundleFile("TreeTaggerInstaller");
58 63
		if (bundleDir == null) {
59 64
			System.out.println("Error while retrieving TreeTaggerInstaller bundle directory.");
......
62 67
		File treetaggerDir = new File(bundleDir, "TreeTagger");
63 68
		File OSDir = new File(treetaggerDir, os);
64 69
		final File treetaggerModelsDir = new File(treetaggerDir, "models");
65

  
70
		
66 71
		TreeTaggerPreferences.getInstance().put(TreeTaggerPreferences.INSTALL_PATH, OSDir.getAbsolutePath());
67 72
		
68 73
		final String previousModelDirectoryPath = TreeTaggerPreferences.getInstance().getString(TreeTaggerPreferences.MODELS_PATH);
69 74
		if (previousModelDirectoryPath == null) {
70
			Log.info("Set TreeTagger model directory to: "+treetaggerModelsDir);
75
			Log.info("Set TreeTagger model directory to: " + treetaggerModelsDir);
71 76
			TreeTaggerPreferences.getInstance().put(TreeTaggerPreferences.MODELS_PATH, treetaggerModelsDir.getAbsolutePath());
72
		} else if (previousModelDirectoryPath.equals(treetaggerModelsDir.getAbsolutePath())) {
73
			// nothing to do	
77
		}
78
		else if (previousModelDirectoryPath.equals(treetaggerModelsDir.getAbsolutePath())) {
79
			// nothing to do
74 80
			Log.info("No change to TreeTagger model directory.");
75
		} else {
81
		}
82
		else {
76 83
			final File previousModelDirectoryDirectory = new File(previousModelDirectoryPath);
77 84
			final File[] files = previousModelDirectoryDirectory.listFiles();
78
			if (previousModelDirectoryDirectory.exists() && previousModelDirectoryDirectory.isDirectory() 
85
			if (previousModelDirectoryDirectory.exists() && previousModelDirectoryDirectory.isDirectory()
79 86
					&& files != null && files.length > 0) {
80 87
				
81
				Log.info("TreeTagger model directory already set to: "+previousModelDirectoryDirectory);
82
//				final ;
83
//				if (Display.getCurrent() == null) display = Display.getDefault();
84
//				else display = Display.getCurrent();
85
//				
86
//				if (display == null) return;
88
				Log.info("TreeTagger model directory already set to: " + previousModelDirectoryDirectory);
89
				// final ;
90
				// if (Display.getCurrent() == null) display = Display.getDefault();
91
				// else display = Display.getCurrent();
92
				//
93
				// if (display == null) return;
87 94
				final Display display = TXMWindows.getDisplay();
88 95
				display.syncExec(new Runnable() {
96
					
89 97
					@Override
90 98
					public void run() {
91 99
						Shell shell = display.getActiveShell(); // ask user if he's sure
92 100
						String[] filenames = new String[files.length];
93
						for (int i = 0 ; i < files.length ; i++) filenames[i] = files[i].getName();
94
						boolean b = MessageDialog.openConfirm(shell, "TreeTagger model directory", "The TreeTagger model directory is already set in TXM preferences and is not empty: \n  - "+StringUtils.join(filenames, "\n  - ")+"\n\nKeep using this one ?\n("+previousModelDirectoryPath+")");
101
						for (int i = 0; i < files.length; i++)
102
							filenames[i] = files[i].getName();
103
						boolean b = MessageDialog.openConfirm(shell, "TreeTagger model directory", "The TreeTagger model directory is already set in TXM preferences and is not empty: \n  - "
104
								+ StringUtils.join(filenames, "\n  - ") + "\n\nKeep using this one ?\n(" + previousModelDirectoryPath + ")");
95 105
						if (!b) {
96
							Log.info("Set TreeTagger model directory to: "+treetaggerModelsDir);
106
							Log.info("Set TreeTagger model directory to: " + treetaggerModelsDir);
97 107
							TreeTaggerPreferences.getInstance().put(TreeTaggerPreferences.MODELS_PATH, treetaggerModelsDir.getAbsolutePath());
98
						} else {
99
							Log.info("Keep TreeTagger model directory to: "+previousModelDirectoryDirectory);
100 108
						}
109
						else {
110
							Log.info("Keep TreeTagger model directory to: " + previousModelDirectoryDirectory);
111
						}
101 112
					}
102 113
				});
103
			} else {
114
			}
115
			else {
104 116
				TreeTaggerPreferences.getInstance().put(TreeTaggerPreferences.MODELS_PATH, treetaggerModelsDir.getAbsolutePath());
105 117
			}
106 118
		}
107 119
		
108 120
		String ttdir = TreeTaggerPreferences.getInstance().getString(TreeTaggerPreferences.INSTALL_PATH);
109 121
		String ttmodeldir = TreeTaggerPreferences.getInstance().getString(TreeTaggerPreferences.MODELS_PATH);
110
		Log.warning("TreeTagger preferences set to: "+ttdir+ " and "+ttmodeldir);
122
		Log.warning("TreeTagger preferences set to: " + ttdir + " and " + ttmodeldir);
111 123
		TXMPreferences.put(TreeTaggerInstallerPreferences.PREFERENCES_NODE, TreeTaggerInstallerPreferences.VERSION, currentVersion.toString());
112 124
		
113
		//FIXME: to beremoved when 0.8.0 preferences are ready 
125
		// FIXME: to beremoved when 0.8.0 preferences are ready
114 126
		TreeTaggerPreferences.getInstance().put(TreeTaggerPreferences.INSTALL_PATH, ttdir);
115 127
		TreeTaggerPreferences.getInstance().put(TreeTaggerPreferences.MODELS_PATH, ttmodeldir);
116 128
	}
tmp/org.txm.treetaggerinstaller.rcp/src/org/txm/treetagger/Activator.java (revision 2402)
4 4
import org.osgi.framework.BundleContext;
5 5

  
6 6
public class Activator implements BundleActivator {
7

  
7
	
8 8
	@Override
9 9
	public void start(BundleContext context) throws Exception {
10 10
		
11
//		System.out.println("Activating TreeTagger plugin");
12
//		String os = "win";
13
//		if (Util.isWindows()) { //$NON-NLS-1$
14
//			os = "win";
15
//		} else if (Util.isMac()) { //$NON-NLS-1$
16
//			os = "macosx";
17
//		} else {
18
//			os = "linux32";
19
//			if (System.getProperty("os.arch").contains("64"))
20
//				os = "linux64";
21
//		}
22
//
23
//		URL url = FileLocator.find(Platform.getBundle("TreeTaggerInstaller"), new Path("TreeTagger"), null);
24
//		
25
//		String treetaggerDir = url.getFile();
26
//		File treetaggerOSDir = new File(treetaggerDir, os);
27
//		File treetaggerModelsDir = new File(treetaggerDir,"models");
28
//		
29
//		System.out.println("Set TreeTagger preferences to: "+treetaggerDir);
30
//		
31
//		TxmPreferences.set(TreeTaggerPreferencePage.TREETAGGER_INSTALL_PATH, treetaggerOSDir.getAbsolutePath());
32
//		TxmPreferences.set(TreeTaggerPreferencePage.TREETAGGER_MODELS_PATH, treetaggerModelsDir.getAbsolutePath());
11
		// System.out.println("Activating TreeTagger plugin");
12
		// String os = "win";
13
		// if (Util.isWindows()) { //$NON-NLS-1$
14
		// os = "win";
15
		// } else if (Util.isMac()) { //$NON-NLS-1$
16
		// os = "macosx";
17
		// } else {
18
		// os = "linux32";
19
		// if (System.getProperty("os.arch").contains("64"))
20
		// os = "linux64";
21
		// }
22
		//
23
		// URL url = FileLocator.find(Platform.getBundle("TreeTaggerInstaller"), new Path("TreeTagger"), null);
24
		//
25
		// String treetaggerDir = url.getFile();
26
		// File treetaggerOSDir = new File(treetaggerDir, os);
27
		// File treetaggerModelsDir = new File(treetaggerDir,"models");
28
		//
29
		// System.out.println("Set TreeTagger preferences to: "+treetaggerDir);
30
		//
31
		// TxmPreferences.set(TreeTaggerPreferencePage.TREETAGGER_INSTALL_PATH, treetaggerOSDir.getAbsolutePath());
32
		// TxmPreferences.set(TreeTaggerPreferencePage.TREETAGGER_MODELS_PATH, treetaggerModelsDir.getAbsolutePath());
33 33
	}
34

  
34
	
35 35
	@Override
36 36
	public void stop(BundleContext context) throws Exception {
37 37
		// TODO Auto-generated method stub
38

  
38
		
39 39
	}
40

  
40
	
41 41
}
tmp/org.txm.treetaggerinstaller.rcp/.classpath (revision 2402)
1 1
<?xml version="1.0" encoding="UTF-8"?>
2 2
<classpath>
3
	  <classpathentry exported="true" kind="lib" path="TreeTagger/"/>
4
	  <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
5
	  <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins">
6
		    <accessrules>
7
			      <accessrule kind="accessible" pattern="**"/>
8
		    </accessrules>
9
	  </classpathentry>
10
	  <classpathentry kind="src" path="src"/>
11
	  <classpathentry kind="output" path="bin"/>
3
	<classpathentry exported="true" kind="lib"
4
		path="TreeTagger/" />
5
	<classpathentry kind="con"
6
		path="org.eclipse.jdt.launching.JRE_CONTAINER" />
7
	<classpathentry kind="con"
8
		path="org.eclipse.pde.core.requiredPlugins">
9
		<accessrules>
10
			<accessrule kind="accessible" pattern="**" />
11
		</accessrules>
12
	</classpathentry>
13
	<classpathentry kind="src" path="src" />
14
	<classpathentry kind="output" path="bin" />
12 15
</classpath>
tmp/org.txm.textsbalance.rcp/.classpath (revision 2402)
1 1
<?xml version="1.0" encoding="UTF-8"?>
2 2
<classpath>
3
	  <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
4
	  <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins">
5
		    <accessrules>
6
			      <accessrule kind="accessible" pattern="**"/>
7
		    </accessrules>
8
	  </classpathentry>
9
	  <classpathentry kind="src" path="src"/>
10
	  <classpathentry kind="output" path="bin"/>
3
	<classpathentry kind="con"
4
		path="org.eclipse.jdt.launching.JRE_CONTAINER" />
5
	<classpathentry kind="con"
6
		path="org.eclipse.pde.core.requiredPlugins">
7
		<accessrules>
8
			<accessrule kind="accessible" pattern="**" />
9
		</accessrules>
10
	</classpathentry>
11
	<classpathentry kind="src" path="src" />
12
	<classpathentry kind="output" path="bin" />
11 13
</classpath>
tmp/org.txm.tigersearch.rcp/groovy/org/txm/scripts/importer/srcmf/package.html (revision 2402)
1 1
<html>
2 2
<body>
3
<p>TIGERSearch import module. This is a prototype that can only manage SRCMF TIGERSearch sources</p>
3
	<p>TIGERSearch import module. This is a prototype that can only
4
		manage SRCMF TIGERSearch sources</p>
4 5
</body>
5 6
</html>
tmp/org.txm.tigersearch.rcp/groovy/org/txm/scripts/importer/tigersearch/TigerXML.xsd (revision 2402)
1 1
<?xml version="1.0" encoding="UTF-8"?>
2
  <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
2
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
3 3

  
4
 <!-- ==================================================================
5
      XML Schema for the TIGER-XML format
6
      http://www.ims.uni-stuttgart.de/projekte/TIGER/public/TigerXML.xsd
7
      ==================================================================
8
      TIGER Project, Wolfgang Lezius
9
      IMS, University of Stuttgart, 04/01/2003
10
      ================================================================== -->
4
	<!-- ================================================================== 
5
		XML Schema for the TIGER-XML format http://www.ims.uni-stuttgart.de/projekte/TIGER/public/TigerXML.xsd 
6
		================================================================== TIGER 
7
		Project, Wolfgang Lezius IMS, University of Stuttgart, 04/01/2003 ================================================================== -->
11 8

  
12 9

  
13
  <!-- ======================================================
14
       INCLUDES DECLARATION OF THE HEADER
15
       ====================================================== -->
16
  <xs:include schemaLocation="TigerXMLHeader.xsd"/>
10
	<!-- ====================================================== INCLUDES DECLARATION 
11
		OF THE HEADER ====================================================== -->
12
	<xs:include schemaLocation="TigerXMLHeader.xsd" />
17 13

  
18 14

  
19
  <!-- ======================================================
20
       INCLUDES DECLARATION OF SUBCORPORA AND SENTENCES
21
       ====================================================== -->
22
  <xs:include schemaLocation="TigerXMLSubcorpus.xsd"/>
15
	<!-- ====================================================== INCLUDES DECLARATION 
16
		OF SUBCORPORA AND SENTENCES ====================================================== -->
17
	<xs:include schemaLocation="TigerXMLSubcorpus.xsd" />
23 18

  
24 19

  
25
  <!-- ======================================================
26
       DECLARATION OF THE CORPUS DOCUMENT
27
       ====================================================== -->
20
	<!-- ====================================================== DECLARATION 
21
		OF THE CORPUS DOCUMENT ====================================================== -->
28 22

  
29
  <!-- declaration of the root element: corpus -->
23
	<!-- declaration of the root element: corpus -->
30 24

  
31
  <xs:element name="corpus">
32
  
33
    
34
  
35
        <xs:complexType>
25
	<xs:element name="corpus">
36 26

  
37
      <xs:sequence>
38 27

  
39
        <xs:choice>           
40
           <!-- header of the document is optional -->
41
           <xs:element name="head" type="headType" minOccurs="0" maxOccurs="1" />
42
        <xs:/choice>
43 28

  
44
        <xs:element name="body" type="bodyType" minOccurs="1" maxOccurs="1" />
29
		<xs:complexType>
45 30

  
46
      <xs:/sequence>
31
			<xs:sequence>
47 32

  
48
      <!-- corpus ID -->
49
      <xs:attribute name="id" type="idType" use="required" />
33
				<xs:choice>
34
					<!-- header of the document is optional -->
35
					<xs:element name="head" type="headType" minOccurs="0"
36
						maxOccurs="1" />
37
					<xs: / choice>
50 38

  
51
      <!-- optional attribute: TigerXML version; used by TIGERSearch only -->
52
      <xs:attribute name="version" type="xsd:string" use="optional" />
39
						<xs:element name="body" type="bodyType" minOccurs="1"
40
							maxOccurs="1" />
53 41

  
54
    <xs:/complexType>
55
    <xs:/element>
42
						<xs: / sequence>
56 43

  
44
							<!-- corpus ID -->
45
							<xs:attribute name="id" type="idType" use="required" />
57 46

  
58
  <!-- declaration of the body type -->
47
							<!-- optional attribute: TigerXML version; used by TIGERSearch only -->
48
							<xs:attribute name="version" type="xsd:string"
49
								use="optional" />
59 50

  
60
  <xs:complexType name="bodyType">
51
							<xs: / complexType>
52
								<xs: / element>
61 53

  
62
    <xs:choice minOccurs="1" maxOccurs="unbounded">
63
      <xs:element name="subcorpus" type="subcorpusType" minOccurs="1" maxOccurs="1"/>
64
      <xs:element name="s" type="sentenceType" minOccurs="1" maxOccurs="1"/>
65
    <xs:/choice>
66 54

  
67
  <xs:/complexType>
55
									<!-- declaration of the body type -->
68 56

  
57
									<xs:complexType name="bodyType">
69 58

  
70
<xs:/schema>
59
										<xs:choice minOccurs="1" maxOccurs="unbounded">
60
											<xs:element name="subcorpus" type="subcorpusType"
61
												minOccurs="1" maxOccurs="1" />
62
											<xs:element name="s" type="sentenceType"
63
												minOccurs="1" maxOccurs="1" />
64
											<xs: / choice>
65

  
66
												<xs: / complexType>
67

  
68

  
69
													<xs: / schema>
tmp/org.txm.tigersearch.rcp/groovy/org/txm/scripts/importer/tigersearch/ts.xsl (revision 2402)
1 1
<?xml version="1.0"?>
2 2
<xsl:stylesheet version="1.0"
3
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4
                xmlns:tei="http://www.tei-c.org/ns/1.0"
5
                xmlns:xd="http://www.pnp-software.com/XSLTdoc"
6
                xmlns:edate="http://exslt.org/dates-and-times"
7
                exclude-result-prefixes="edate xd">
3
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4
	xmlns:tei="http://www.tei-c.org/ns/1.0"
5
	xmlns:xd="http://www.pnp-software.com/XSLTdoc"
6
	xmlns:edate="http://exslt.org/dates-and-times"
7
	exclude-result-prefixes="edate xd">
8 8

  
9
  <xd:doc type="stylesheet">
9
	<xd:doc type="stylesheet">
10 10

  
11
    <xd:short>
12
      Feuille de transformation du format TIGER-XML vers le format XML-TXM
13
    </xd:short>
11
		<xd:short>
12
			Feuille de transformation du format TIGER-XML vers le format XML-TXM
13
		</xd:short>
14 14

  
15
    <xd:detail>
16
      This stylesheet is free software; you can redistribute it and/or
17
      modify it under the terms of the GNU Lesser General Public
18
      License as published by the Free Software Foundation; either
19
      version 3 of the License, or (at your option) any later version.
20
      
21
      This stylesheet is distributed in the hope that it will be useful,
22
      but WITHOUT ANY WARRANTY; without even the implied warranty of
23
      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
24
      Lesser General Public License for more details.
25
      
26
      You should have received a copy of GNU Lesser Public License with
27
      this stylesheet. If not, see http://www.gnu.org/licenses/lgpl.html
28
    </xd:detail>
15
		<xd:detail>
16
			This stylesheet is free software; you can redistribute it and/or
17
			modify it under the terms of the GNU Lesser General Public
18
			License as published by the Free Software Foundation; either
19
			version 3 of the License, or (at your option) any later version.
29 20

  
30
    <xd:author>Matthieu Decorde, matthieu.decorde AT ens-lyon.fr</xd:author>
31
    <xd:author>Serge Heiden, slh AT ens-lyon.fr</xd:author>
32
    <xd:author>Alexey Lavrentev, alexei.lavrentev AT ens-lyon.fr></xd:author>
21
			This stylesheet is distributed in the hope that it will be useful,
22
			but WITHOUT ANY WARRANTY; without even the implied warranty of
23
			MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
24
			Lesser General Public License for more details.
33 25

  
34
    <xd:copyright>2016, ENS de Lyon/CNRS (UMR IHRIM Cactus)</xd:copyright>
26
			You should have received a copy of GNU Lesser Public License with
27
			this stylesheet. If not, see http://www.gnu.org/licenses/lgpl.html
28
		</xd:detail>
35 29

  
36
  </xd:doc>
37
  
38
  <xsl:output 
39
   method="xml"
40
   encoding="UTF-8"
41
   indent="yes" />
30
		<xd:author>Matthieu Decorde, matthieu.decorde AT ens-lyon.fr</xd:author>
31
		<xd:author>Serge Heiden, slh AT ens-lyon.fr</xd:author>
32
		<xd:author>Alexey Lavrentev, alexei.lavrentev AT ens-lyon.fr></xd:author>
42 33

  
43
  <xsl:template match="corpus">
44
    <corpus>
45
    	<xsl:choose>
46
    		<xsl:when test="subcorpus">
47
    			<xsl:apply-templates select="subcorpus"/>
48
    		</xsl:when>
49
    		<xsl:otherwise>
50
    			<text>
51
    				<xsl:apply-templates select="s"/>
52
    			</text>			
53
    		</xsl:otherwise>
54
    	</xsl:choose>
55
    	<xsl:apply-templates/>
56
    </corpus>
57
  </xsl:template>
58
  
59
  <xsl:template match="subcorpus">
60
    <text>
61
	<xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute>
62
	<xsl:apply-templates select="s"/>
63
    </text>
64
  </xsl:template>
65
  
66
  <xsl:template match="s">
67
	<p>
68
	  <s>
69
	    <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
70
	      <xsl:apply-templates select="graph/terminals/t" />
71
	  </s>
72
	</p>
73
  </xsl:template>
34
		<xd:copyright>2016, ENS de Lyon/CNRS (UMR IHRIM Cactus)</xd:copyright>
74 35

  
75
  <xsl:template match="t">
36
	</xd:doc>
37

  
38
	<xsl:output method="xml" encoding="UTF-8" indent="yes" />
39

  
40
	<xsl:template match="corpus">
41
		<corpus>
42
			<xsl:choose>
43
				<xsl:when test="subcorpus">
44
					<xsl:apply-templates select="subcorpus" />
45
				</xsl:when>
46
				<xsl:otherwise>
47
					<text>
48
						<xsl:apply-templates select="s" />
49
					</text>
50
				</xsl:otherwise>
51
			</xsl:choose>
52
			<xsl:apply-templates />
53
		</corpus>
54
	</xsl:template>
55

  
56
	<xsl:template match="subcorpus">
57
		<text>
58
			<xsl:attribute name="name"><xsl:value-of
59
				select="@name" /></xsl:attribute>
60
			<xsl:apply-templates select="s" />
61
		</text>
62
	</xsl:template>
63

  
64
	<xsl:template match="s">
65
		<p>
66
			<s>
67
				<xsl:attribute name="id"><xsl:value-of
68
					select="@id" /></xsl:attribute>
69
				<xsl:apply-templates select="graph/terminals/t" />
70
			</s>
71
		</p>
72
	</xsl:template>
73

  
74
	<xsl:template match="t">
76 75
		<w>
77 76
			<xsl:for-each select="@*[not(name()='word')]">
78
				<xsl:copy/>
77
				<xsl:copy />
79 78
			</xsl:for-each>
80
	        <xsl:value-of select="@word"/>
79
			<xsl:value-of select="@word" />
81 80
		</w>
82
  </xsl:template>
81
	</xsl:template>
83 82

  
84 83
</xsl:stylesheet>
tmp/org.txm.tigersearch.rcp/groovy/org/txm/scripts/importer/tigersearch/TigerXMLSubcorpus.xsd (revision 2402)
1 1
<?xml version="1.0" encoding="UTF-8"?>
2
  <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
2
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
3 3

  
4
 <!-- ===========================================================================
5
      XML Schema for the subcorpus part of the TIGER-XML format
6
      http://www.ims.uni-stuttgart.de/projekte/TIGER/public/TigerXMLSubcorpus.xsd
7
      ===========================================================================
8
      TIGER Project, Wolfgang Lezius
9
      IMS, University of Stuttgart, 04/01/2003
10
      =========================================================================== -->
4
	<!-- =========================================================================== 
5
		XML Schema for the subcorpus part of the TIGER-XML format http://www.ims.uni-stuttgart.de/projekte/TIGER/public/TigerXMLSubcorpus.xsd 
6
		=========================================================================== 
7
		TIGER Project, Wolfgang Lezius IMS, University of Stuttgart, 04/01/2003 =========================================================================== -->
11 8

  
12
  <!-- ======================================================
13
       DECLARATION OF SUBCORPORA AND SENTENCES
14
       ====================================================== -->
9
	<!-- ====================================================== DECLARATION 
10
		OF SUBCORPORA AND SENTENCES ====================================================== -->
15 11

  
16 12

  
17
  <!-- declaration of the subcorpus element -->
13
	<!-- declaration of the subcorpus element -->
18 14

  
19
  <xs:element name="subcorpus" type="subcorpusType"/>
15
	<xs:element name="subcorpus" type="subcorpusType" />
20 16

  
21 17

  
22
  <!-- declaration of the subcorpus type -->
18
	<!-- declaration of the subcorpus type -->
23 19

  
24
  <xs:complexType name="subcorpusType">
20
	<xs:complexType name="subcorpusType">
25 21

  
26
    <!-- A subcorpus may comprise another subcorpora or sentences -->
22
		<!-- A subcorpus may comprise another subcorpora or sentences -->
27 23

  
28
    <xs:choice minOccurs="0" maxOccurs="unbounded">
29
      <xs:element name="subcorpus" type="subcorpusType" minOccurs="1" maxOccurs="1"/>
30
      <xs:element name="s" type="sentenceType" minOccurs="1" maxOccurs="1"/>
31
    <xs:/choice>
24
		<xs:choice minOccurs="0" maxOccurs="unbounded">
25
			<xs:element name="subcorpus" type="subcorpusType"
26
				minOccurs="1" maxOccurs="1" />
27
			<xs:element name="s" type="sentenceType" minOccurs="1"
28
				maxOccurs="1" />
29
			<xs: / choice>
32 30

  
33
    <!-- required: subcorpus name -->
34
 
35
    <xs:attribute name="name" type="xsd:string" use="required"/>
31
				<!-- required: subcorpus name -->
36 32

  
37
    <!-- optional: reference to external subcorpus file 
33
				<xs:attribute name="name" type="xsd:string"
34
					use="required" />
38 35

  
39
         A subcorpus of a TigerXML corpus can also be stored in separate file. 
40
         This attribute points to the external subcorpus file. The pointer is
41
         an URI. Examples: file:relative.xml or file:/path/to/absolute.xml 
36
				<!-- optional: reference to external subcorpus file A subcorpus of a 
37
					TigerXML corpus can also be stored in separate file. This attribute points 
38
					to the external subcorpus file. The pointer is an URI. Examples: file:relative.xml 
39
					or file:/path/to/absolute.xml Note: If there is a pointer to an external 
40
					file, the subcorpus element must be empty. -->
42 41

  
43
         Note: If there is a pointer to an external file, the subcorpus
44
               element must be empty. -->
42
				<xs:attribute name="external" type="xsd:anyURI" />
45 43

  
46
    <xs:attribute name="external" type="xsd:anyURI"/>  
44
				<xs: / complexType>
47 45

  
48
  <xs:/complexType>
49 46

  
47
					<!-- declaration of the sentence type -->
50 48

  
51
  <!-- declaration of the sentence type -->
49
					<xs:complexType name="sentenceType">
52 50

  
53
  <xs:complexType name="sentenceType">
51
						<xs:sequence>
52
							<xs:element name="graph" type="graphType"
53
								minOccurs="0" maxOccurs="1" />
54
							<xs:element name="matches" type="matchesType"
55
								minOccurs="0" maxOccurs="1" />
56
							<xs: / sequence>
54 57

  
55
    <xs:sequence>
56
      <xs:element name="graph" type="graphType" minOccurs="0" maxOccurs="1"/>
57
      <xs:element name="matches" type="matchesType" minOccurs="0" maxOccurs="1"/>
58
    <xs:/sequence>
58
								<xs:attribute name="id" type="idType"
59
									use="required" />
59 60

  
60
    <xs:attribute name="id" type="idType" use="required"/>
61
								<xs: / complexType>
61 62

  
62
  <xs:/complexType>
63 63

  
64
									<!-- declaration of the graph type -->
64 65

  
65
  <!-- declaration of the graph type -->
66
									<xs:complexType name="graphType">
66 67

  
67
  <xs:complexType name="graphType">
68
										<xs:sequence>
69
											<xs:element name="terminals" type="terminalsType"
70
												minOccurs="1" maxOccurs="1" />
71
											<xs:element name="nonterminals"
72
												type="nonterminalsType" minOccurs="1" maxOccurs="1" />
73
											<xs: / sequence>
68 74

  
69
    <xs:sequence>
70
      <xs:element name="terminals" type="terminalsType" minOccurs="1" maxOccurs="1"/>
71
      <xs:element name="nonterminals" type="nonterminalsType" minOccurs="1" maxOccurs="1"/>
72
    <xs:/sequence>
75
												<xs:attribute name="root" type="idrefType"
76
													use="required" />
73 77

  
74
    <xs:attribute name="root" type="idrefType" use="required"/>
78
												<!-- indicated that the exported sentence is discontinuous -->
79
												<xs:attribute name="discontinuous"
80
													type="xsd:boolean" default="false" use="optional" />
75 81

  
76
    <!-- indicated that the exported sentence is discontinuous -->
77
    <xs:attribute name="discontinuous" type="xsd:boolean" default="false" use="optional"/>
82
												<xs: / complexType>
78 83

  
79
  <xs:/complexType>
80 84

  
85
													<!-- declaration of the terminals type -->
81 86

  
82
  <!-- declaration of the terminals type -->
87
													<xs:complexType name="terminalsType">
83 88

  
84
  <xs:complexType name="terminalsType">
89
														<xs:sequence>
90
															<xs:element name="t" type="tType"
91
																minOccurs="1" maxOccurs="unbounded" />
92
															<xs: / sequence>
85 93

  
86
    <xs:sequence>
87
      <xs:element name="t" type="tType" minOccurs="1" maxOccurs="unbounded"/>
88
    <xs:/sequence>
94
																<xs: / complexType>
89 95

  
90
  <xs:/complexType>
91 96

  
97
																	<!-- declaration of the t element -->
92 98

  
93
  <!-- declaration of the t element -->
99
																	<xs:complexType name="tType">
94 100

  
95
  <xs:complexType name="tType">
101
																		<!-- secondary edges possible -->
102
																		<xs:sequence>
103
																			<xs:element name="secedge"
104
																				type="secedgeType" minOccurs="0"
105
																				maxOccurs="unbounded" />
106
																			<xs: / sequence>
96 107

  
97
    <!-- secondary edges possible -->
98
    <xs:sequence>
99
      <xs:element name="secedge" type="secedgeType" minOccurs="0" maxOccurs="unbounded"/>
100
    <xs:/sequence>
108
																				<xs:attribute name="id" type="idType"
109
																					use="required" />
110
																				<xs:attributeGroup
111
																					ref="tfeatureAttributes" />
101 112

  
102
    <xs:attribute name="id" type="idType" use="required"/>    
103
    <xs:attributeGroup ref="tfeatureAttributes"/>
113
																				<xs: / complexType>
104 114

  
105
  <xs:/complexType>
106 115

  
116
																					<!-- declaration of the nonterminals type -->
107 117

  
108
  <!-- declaration of the nonterminals type -->
118
																					<xs:complexType
119
																						name="nonterminalsType">
109 120

  
110
  <xs:complexType name="nonterminalsType">
121
																						<xs:sequence>
122
																							<xs:element name="nt" type="ntType"
123
																								minOccurs="0" maxOccurs="unbounded" />
124
																							<xs: / sequence>
111 125

  
112
    <xs:sequence>
113
      <xs:element name="nt" type="ntType" minOccurs="0" maxOccurs="unbounded"/>
114
    <xs:/sequence>
126
																								<xs: / complexType>
115 127

  
116
  <xs:/complexType>
117 128

  
129
																									<!-- declaration of the nt element -->
118 130

  
119
  <!-- declaration of the nt element -->
131
																									<xs:complexType name="ntType">
120 132

  
121
  <xs:complexType name="ntType">
133
																										<!-- edge and secondary edges possible -->
134
																										<xs:sequence>
135
																											<xs:element name="edge"
136
																												type="edgeType" minOccurs="0"
137
																												maxOccurs="unbounded" />
138
																											<xs:element name="secedge"
139
																												type="secedgeType" minOccurs="0"
140
																												maxOccurs="unbounded" />
141
																											<xs: / sequence>
122 142

  
123
    <!-- edge and secondary edges possible -->
124
    <xs:sequence>
125
      <xs:element name="edge" type="edgeType" minOccurs="0" maxOccurs="unbounded"/>
126
      <xs:element name="secedge" type="secedgeType" minOccurs="0" maxOccurs="unbounded"/>
127
    <xs:/sequence>
143
																												<xs:attribute name="id"
144
																													type="idType" use="required" />
145
																												<xs:attributeGroup
146
																													ref="ntfeatureAttributes" />
128 147

  
129
    <xs:attribute name="id" type="idType" use="required"/>    
130
    <xs:attributeGroup ref="ntfeatureAttributes"/>
148
																												<xs: / complexType>
131 149

  
132
  <xs:/complexType>
133 150

  
151
																													<!-- declaration of the edge type -->
134 152

  
135
  <!-- declaration of the edge type -->
153
																													<xs:complexType
154
																														name="edgeType">
136 155

  
137
  <xs:complexType name="edgeType">
156
																														<xs:attribute name="idref"
157
																															type="idrefType" use="required" />
138 158

  
139
    <xs:attribute name="idref" type="idrefType" use="required"/>    
159
																														<xs:attributeGroup
160
																															ref="edgelabelAttribute" />
140 161

  
141
    <xs:attributeGroup ref="edgelabelAttribute"/>
162
																														<xs: / complexType>
142 163

  
143
  <xs:/complexType>
144 164

  
165
																															<!-- declaration of the secondary edge type -->
145 166

  
146
  <!-- declaration of the secondary edge type -->
167
																															<xs:complexType
168
																																name="secedgeType">
147 169

  
148
  <xs:complexType name="secedgeType">
170
																																<xs:attribute name="idref"
171
																																	type="idrefType" use="required" />
149 172

  
150
    <xs:attribute name="idref" type="idrefType" use="required"/>    
173
																																<xs:attributeGroup
174
																																	ref="secedgelabelAttribute" />
151 175

  
152
    <xs:attributeGroup ref="secedgelabelAttribute"/>
176
																																<xs: / complexType>
153 177

  
154
  <xs:/complexType>
155 178

  
179
																																	<!-- declaration of the matches type -->
156 180

  
157
  <!-- declaration of the matches type -->
181
																																	<xs:complexType
182
																																		name="matchesType">
158 183

  
159
  <xs:complexType name="matchesType">
184
																																		<xs:sequence>
185
																																			<xs:element name="match"
186
																																				type="matchType" minOccurs="1"
187
																																				maxOccurs="unbounded" />
188
																																			<xs: / sequence>
160 189

  
161
    <xs:sequence>
162
      <xs:element name="match" type="matchType" minOccurs="1" maxOccurs="unbounded"/>
163
    <xs:/sequence>
190
																																				<xs: / complexType>
164 191

  
165
  <xs:/complexType>
166 192

  
193
																																					<!-- declaration of the match type -->
167 194

  
168
  <!-- declaration of the match type -->
195
																																					<xs:complexType
196
																																						name="matchType">
169 197

  
170
  <xs:complexType name="matchType">
198
																																						<xs:sequence>
199
																																							<xs:element
200
																																								name="variable" type="varType"
201
																																								minOccurs="1"
202
																																								maxOccurs="unbounded" />
203
																																							<xs: / sequence>
171 204

  
172
    <xs:sequence>
173
      <xs:element name="variable" type="varType" minOccurs="1" maxOccurs="unbounded"/>
174
    <xs:/sequence>
205
																																								<xs:attribute
206
																																									name="subgraph"
207
																																									type="idrefType" use="required" />
175 208

  
176
    <xs:attribute name="subgraph" type="idrefType" use="required"/>    
209
																																								<xs: / complexType>
177 210

  
178
  <xs:/complexType>
179 211

  
212
																																									<!-- declaration of the variable 
213
																																										type -->
180 214

  
181
  <!-- declaration of the variable type -->
215
																																									<xs:complexType
216
																																										name="varType">
182 217

  
183
  <xs:complexType name="varType">
218
																																										<xs:attribute
219
																																											name="name" type="xsd:string"
220
																																											use="required" />
184 221

  
185
    <xs:attribute name="name" type="xsd:string" use="required"/>    
222
																																										<xs:attribute
223
																																											name="idref" type="idrefType"
224
																																											use="required" />
186 225

  
187
    <xs:attribute name="idref" type="idrefType" use="required"/>    
226
																																										<xs: / complexType>
188 227

  
189
  <xs:/complexType>
190 228

  
229
																																											<!-- ====================================================== 
230
																																												SENTENCE DECLARATIONS THAT SHOULD BE REFINED ====================================================== -->
191 231

  
192
  <!-- ======================================================
193
       SENTENCE DECLARATIONS THAT SHOULD BE REFINED
194
       ====================================================== -->
232
																																											<!-- declaration of the TERMINAL 
233
																																												FEATURE ATTRIBUTES; this group is unrestricted, but should be refined by 
234
																																												a specialised, corpus-dependent schema -->
195 235

  
196
  <!-- declaration of the TERMINAL FEATURE ATTRIBUTES;
197
       this group is unrestricted, but should be refined by a 
198
       specialised, corpus-dependent schema -->
236
																																											<xs:attributeGroup
237
																																												name="tfeatureAttributes">
199 238

  
200
  <xs:attributeGroup name="tfeatureAttributes">
201
  
202
    <xs:anyAttribute processContents="skip"/>
239
																																												<xs:anyAttribute
240
																																													processContents="skip" />
203 241

  
204
  <xs:/attributeGroup>
242
																																												<xs: / attributeGroup>
205 243

  
206 244

  
207
  <!-- declaration of the NONTERMINAL FEATURE ATTRIBUTES;
208
       this group is unrestricted, but should be refined by a 
209
       specialised, corpus-dependent schema -->
245
																																													<!-- declaration of the NONTERMINAL 
246
																																														FEATURE ATTRIBUTES; this group is unrestricted, but should be refined by 
247
																																														a specialised, corpus-dependent schema -->
210 248

  
211
  <xs:attributeGroup name="ntfeatureAttributes">
212
  
213
    <xs:anyAttribute processContents="skip"/>
249
																																													<xs:attributeGroup
250
																																														name="ntfeatureAttributes">
214 251

  
215
  <xs:/attributeGroup>
252
																																														<xs:anyAttribute
253
																																															processContents="skip" />
216 254

  
255
																																														<xs: / attributeGroup>
217 256

  
218
  <!-- declaration of the EDGE-LABEL ATTRIBUTE;
219
       the label attribute is optional which should be refined by a 
220
       specialised, corpus-dependent schema -->
221 257

  
222
  <xs:attributeGroup name="edgelabelAttribute">
223
  
224
    <xs:attribute name="label" type="xsd:string" use="optional"/>    
258
																																															<!-- declaration of the EDGE-LABEL 
259
																																																ATTRIBUTE; the label attribute is optional which should be refined by a specialised, 
260
																																																corpus-dependent schema -->
225 261

  
226
  <xs:/attributeGroup>
227
    
262
																																															<xs:attributeGroup
263
																																																name="edgelabelAttribute">
228 264

  
229
  <!-- declaration of the SECONDARY-EDGE-LABEL ATTRIBUTE;
230
       the label attribute is optional which should be refined by a 
231
       specialised, corpus-dependent schema -->
265
																																																<xs:attribute
266
																																																	name="label"
267
																																																	type="xsd:string"
268
																																																	use="optional" />
232 269

  
233
  <xs:attributeGroup name="secedgelabelAttribute">
234
  
235
    <xs:attribute name="label" type="xsd:string" use="optional"/>    
270
																																																<xs: /
271
																																																	attributeGroup>
236 272

  
237
  <xs:/attributeGroup>
238
 
239 273

  
240
  <!-- ======================================================
241
       ID and IDREF TYPE DECLARATIONS
242
       ====================================================== -->
274
																																																	<!-- declaration of the 
275
																																																		SECONDARY-EDGE-LABEL ATTRIBUTE; the label attribute is optional which should 
276
																																																		be refined by a specialised, corpus-dependent schema -->
243 277

  
244
  <!-- Even though XML Schema are a W3C Recommendation, schema
245
       support of XML parsers is still restricted. Using some
246
       parsers you might have problems with the ID and IDREF
247
       attributes in combination with an "anyAttribute"
248
       declaration. In this case, just modify the base type 
249
       of the following two declarations to "xsd:string".  -->
278
																																																	<xs:attributeGroup
279
																																																		name="secedgelabelAttribute">
250 280

  
281
																																																		<xs:attribute
282
																																																			name="label"
283
																																																			type="xsd:string"
284
																																																			use="optional" />
251 285

  
252
  <!-- declaration of idType -->
286
																																																		<xs: /
287
																																																			attributeGroup>
253 288

  
254
  <xs:simpleType name="idType">
255 289

  
256
    <xs:restriction base="xsd:ID"/>
290
																																																			<!-- ====================================================== 
291
																																																				ID and IDREF TYPE DECLARATIONS ====================================================== -->
257 292

  
258
  <xs:/simpleType>
293
																																																			<!-- Even though XML Schema 
294
																																																				are a W3C Recommendation, schema support of XML parsers is still restricted. 
295
																																																				Using some parsers you might have problems with the ID and IDREF attributes 
296
																																																				in combination with an "anyAttribute" declaration. In this case, just modify 
297
																																																				the base type of the following two declarations to "xsd:string". -->
259 298

  
260 299

  
261
  <!-- declaration of idrefType -->
300
																																																			<!-- declaration of idType -->
262 301

  
263
  <xs:simpleType name="idrefType">
302
																																																			<xs:simpleType
303
																																																				name="idType">
264 304

  
265
    <xs:restriction base="xsd:IDREF"/>
305
																																																				<xs:restriction
306
																																																					base="xsd:ID" />
266 307

  
267
  <xs:/simpleType>
308
																																																				<xs: /
309
																																																					simpleType>
268 310

  
269 311

  
270
<xs:/schema>
312
																																																					<!-- declaration of 
313
																																																						idrefType -->
314

  
315
																																																					<xs:simpleType
316
																																																						name="idrefType">
317

  
318
																																																						<xs:restriction
319
																																																							base="xsd:IDREF" />
320

  
321
																																																						<xs: /
322
																																																							simpleType>
323

  
324

  
325
																																																							<xs: / schema>
tmp/org.txm.tigersearch.rcp/groovy/org/txm/scripts/importer/tigersearch/package.html (revision 2402)
1 1
<html>
2 2
<body>
3
<p>TIGERSearch import module. This is a prototype that can only manage SRCMF TIGERSearch sources</p>
3
	<p>TIGERSearch import module. This is a prototype that can only
4
		manage SRCMF TIGERSearch sources</p>
4 5
</body>
5 6
</html>
tmp/org.txm.tigersearch.rcp/groovy/org/txm/scripts/importer/tigersearch/TigerXMLHeader.xsd (revision 2402)
1 1
<?xml version="1.0" encoding="UTF-8"?>
2
  <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
2
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
3 3

  
4
 <!-- =======================================================================
5
      XML SubSchema for the header part of the TIGER-XML format
6
      http://www.ims.uni-stuttgart.de/projekte/TIGER/publicTigerXMLHeader.xsd
7
      =======================================================================
8
      TIGER Project, Wolfgang Lezius 
9
      IMS, University of Stuttgart, 04/01/2003
10
      ======================================================================= -->
4
	<!-- ======================================================================= 
5
		XML SubSchema for the header part of the TIGER-XML format http://www.ims.uni-stuttgart.de/projekte/TIGER/publicTigerXMLHeader.xsd 
6
		======================================================================= TIGER 
7
		Project, Wolfgang Lezius IMS, University of Stuttgart, 04/01/2003 ======================================================================= -->
11 8

  
12 9

  
13
  <!-- ======================================================
14
       DECLARATION OF THE HEADER
15
       ====================================================== -->
10
	<!-- ====================================================== DECLARATION 
11
		OF THE HEADER ====================================================== -->
16 12

  
17 13

  
18
  <!-- declaration of the head element -->
14
	<!-- declaration of the head element -->
19 15

  
20
  <xs:element name="head" type="headType"/>
16
	<xs:element name="head" type="headType" />
21 17

  
22 18

  
23
  <!-- declaration of the header type -->
19
	<!-- declaration of the header type -->
24 20

  
25
  <xs:complexType name="headType">
21
	<xs:complexType name="headType">
26 22

  
27
     <xs:sequence>
28
        <xs:element name="meta" type="metaType" minOccurs="0" maxOccurs="1"/>
29
        <xs:element name="annotation" type="annotationType" minOccurs="0" maxOccurs="1"/>
30
     <xs:/sequence>    
23
		<xs:sequence>
24
			<xs:element name="meta" type="metaType" minOccurs="0"
25
				maxOccurs="1" />
26
			<xs:element name="annotation" type="annotationType"
27
				minOccurs="0" maxOccurs="1" />
28
			<xs: / sequence>
31 29

  
32
     <!-- optional: reference to external header file 
30
				<!-- optional: reference to external header file The header of a TigerXML 
31
					corpus can also be stored in separate file. This attribute points to the 
32
					external header file. The pointer is an URI. Examples: file:relative.xml 
33
					or file:/path/to/absolute.xml Note: If there is a pointer to an external 
34
					file, the head element must be empty. -->
33 35

  
34
          The header of a TigerXML corpus can also be stored in separate file. 
35
          This attribute points to the external header file. The pointer is
36
          an URI. Examples: file:relative.xml or file:/path/to/absolute.xml
36
				<xs:attribute name="external" type="xsd:anyURI" />
37 37

  
38
          Note: If there is a pointer to an external file, the head
39
                element must be empty. -->
38
				<xs: / complexType>
40 39

  
41
     <xs:attribute name="external" type="xsd:anyURI"/>  
42 40

  
43
  <xs:/complexType>
41
					<!-- declaration of the meta information type -->
44 42

  
43
					<xs:complexType name="metaType">
45 44

  
46
  <!-- declaration of the meta information type -->
45
						<xs:sequence>
46
							<xs:element name="name" type="xsd:string"
47
								minOccurs="0" maxOccurs="1" />
48
							<xs:element name="author" type="xsd:string"
49
								minOccurs="0" maxOccurs="1" />
50
							<xs:element name="date" type="xsd:string"
51
								minOccurs="0" maxOccurs="1" />
52
							<xs:element name="description" type="xsd:string"
53
								minOccurs="0" maxOccurs="1" />
54
							<xs:element name="format" type="xsd:string"
55
								minOccurs="0" maxOccurs="1" />
56
							<xs:element name="history" type="xsd:string"
57
								minOccurs="0" maxOccurs="1" />
58
							<xs: / sequence>
47 59

  
48
  <xs:complexType name="metaType">
60
								<xs: / complexType>
49 61

  
50
    <xs:sequence>
51
      <xs:element name="name" type="xsd:string" minOccurs="0" maxOccurs="1"/>
52
      <xs:element name="author" type="xsd:string" minOccurs="0" maxOccurs="1"/>
53
      <xs:element name="date" type="xsd:string" minOccurs="0" maxOccurs="1"/>
54
      <xs:element name="description" type="xsd:string" minOccurs="0" maxOccurs="1"/>
55
      <xs:element name="format" type="xsd:string" minOccurs="0" maxOccurs="1"/>
56
      <xs:element name="history" type="xsd:string" minOccurs="0" maxOccurs="1"/>
57
    <xs:/sequence>    
58 62

  
59
  <xs:/complexType>
60
  
63
									<!-- declaration of the annotation type -->
61 64

  
62
  <!-- declaration of the annotation type -->
65
									<xs:complexType name="annotationType">
63 66

  
64
  <xs:complexType name="annotationType">
67
										<xs:sequence>
68
											<xs:element name="feature" type="featureType"
69
												minOccurs="1" maxOccurs="unbounded" />
70
											<xs:element name="edgelabel" type="edgelabelType"
71
												minOccurs="0" maxOccurs="1" />
72
											<xs:element name="secedgelabel"
73
												type="edgelabelType" minOccurs="0" maxOccurs="1" />
74
											<xs: / sequence>
65 75

  
66
    <xs:sequence>
67
      <xs:element name="feature" type="featureType" minOccurs="1" maxOccurs="unbounded"/>
68
      <xs:element name="edgelabel" type="edgelabelType" minOccurs="0" maxOccurs="1"/>
69
      <xs:element name="secedgelabel" type="edgelabelType" minOccurs="0" maxOccurs="1"/>
70
    <xs:/sequence>
76
												<xs: / complexType>
71 77

  
72
  <xs:/complexType>
73 78

  
79
													<!-- declaration of the feature type -->
74 80

  
75
  <!-- declaration of the feature type -->
81
													<xs:complexType name="featureType">
76 82

  
77
  <xs:complexType name="featureType">
83
														<xs:sequence>
84
															<xs:element name="value"
85
																type="featurevalueType" minOccurs="0"
86
																maxOccurs="unbounded" />
87
															<xs: / sequence>
78 88

  
79
    <xs:sequence>
80
       <xs:element name="value" type="featurevalueType" minOccurs="0" maxOccurs="unbounded"/>
81
    <xs:/sequence>
82
    
83
    <xs:attribute name="name" type="featurenameType" use="required"/>
89
																<xs:attribute name="name"
90
																	type="featurenameType" use="required" />
84 91

  
85
    <xs:attribute name="domain" use="required">
86
       <xs:simpleType>
87
         <xs:restriction base="xsd:string">
88
           <xs:enumeration value="T"/>     <!-- feature for terminal nodes -->
89
           <xs:enumeration value="NT"/>    <!-- feature for nonterminal nodes -->
90
           <xs:enumeration value="FREC"/>  <!-- feature for both -->
91
         <xs:/restriction>
92
       <xs:/simpleType>
93
    <xs:/attribute>
92
																<xs:attribute name="domain" use="required">
93
																	<xs:simpleType>
94
																		<xs:restriction base="xsd:string">
95
																			<xs:enumeration value="T" />     <!-- feature for terminal nodes -->
96
																			<xs:enumeration value="NT" />    <!-- feature for nonterminal nodes -->
97
																			<xs:enumeration value="FREC" />  <!-- feature for both -->
98
																			<xs: / restriction>
99
																				<xs: / simpleType>
100
																					<xs: / attribute>
94 101

  
95
  <xs:/complexType>
102
																						<xs: / complexType>
96 103

  
97 104

  
98
  <!-- declaration of the (secondary) edge label type -->
105
																							<!-- declaration of the (secondary) edge label type -->
99 106

  
100
  <xs:complexType name="edgelabelType">
107
																							<xs:complexType
108
																								name="edgelabelType">
101 109

  
102
    <xs:sequence>
103
       <xs:element name="value" type="featurevalueType" minOccurs="0" maxOccurs="unbounded"/>
104
    <xs:/sequence>
105
    
106
  <xs:/complexType>
110
																								<xs:sequence>
111
																									<xs:element name="value"
112
																										type="featurevalueType" minOccurs="0"
113
																										maxOccurs="unbounded" />
114
																									<xs: / sequence>
107 115

  
116
																										<xs: / complexType>
108 117

  
109
  <!-- declaration of the feature value type -->
110 118

  
111
  <xs:complexType name="featurevalueType">
119
																											<!-- declaration of the feature value type -->
112 120

  
113
    <xs:simpleContent>   <!-- element content: documentation of the feature value -->
114
      <xs:extension base="xsd:string">
115
        <xs:attribute name="name" type="xsd:string"/>
116
      <xs:/extension>
117
    <xs:/simpleContent>
121
																											<xs:complexType
122
																												name="featurevalueType">
118 123

  
124
																												<xs:simpleContent>   <!-- element content: documentation of the feature value -->
125
																													<xs:extension
126
																														base="xsd:string">
127
																														<xs:attribute name="name"
128
																															type="xsd:string" />
129
																														<xs: / extension>
130
																															<xs: / simpleContent>
119 131

  
120
  <xs:/complexType>
121 132

  
133
																																<xs: / complexType>
122 134

  
123
  <!-- ======================================================
124
       HEADER DECLARATIONS THAT SHOULD BE REFINED
125
       ====================================================== -->
126 135

  
127
  <!-- declaration of the FEATURE NAMES used in the corpus header;
128
       this type is unrestricted, but should be refined by a 
129
       specialised, corpus-dependent schema -->
136
																																	<!-- ====================================================== 
137
																																		HEADER DECLARATIONS THAT SHOULD BE REFINED ====================================================== -->
130 138

  
131
  <xs:simpleType name="featurenameType">
139
																																	<!-- declaration of the FEATURE NAMES used 
140
																																		in the corpus header; this type is unrestricted, but should be refined by 
141
																																		a specialised, corpus-dependent schema -->
132 142

  
133
    <xs:restriction base="xsd:string">
134
      <xs:minLength value="1"/>
135
      <xs:maxLength value="20"/>
136
      <xs:whiteSpace value="preserve"/>
137
    <xs:/restriction>
143
																																	<xs:simpleType
144
																																		name="featurenameType">
138 145

  
139
  <xs:/simpleType>
146
																																		<xs:restriction
147
																																			base="xsd:string">
148
																																			<xs:minLength value="1" />
149
																																			<xs:maxLength value="20" />
150
																																			<xs:whiteSpace
151
																																				value="preserve" />
152
																																			<xs: / restriction>
140 153

  
154
																																				<xs: / simpleType>
141 155

  
142
<xs:/schema>
156

  
157
																																					<xs: / schema>
tmp/org.txm.tigersearch.rcp/src/org/txm/export/ts/package.html (revision 2402)
1 1
<html>
2 2
<body>
3
<p>Contains scripts to build the TIGERSearch concordances</p>
3
	<p>Contains scripts to build the TIGERSearch concordances</p>
4 4
</body>
5 5
</html>
tmp/org.txm.tigersearch.rcp/src/org/txm/searchengine/ts/package.html (revision 2402)
1 1
<html>
2 2
<body>
3
<p>Implementation of syntax querying using the TIGERSearch engine.
3
	<p>Implementation of syntax querying using the TIGERSearch engine.
4
	
4 5
</body>
5 6
</html>
tmp/org.txm.tigersearch.rcp/.classpath (revision 2402)
1 1
<?xml version="1.0" encoding="UTF-8"?>
2 2
<classpath>
3
	  <classpathentry exported="true" kind="lib" path="lib/"/>
4
	  <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
5
	  <classpathentry exported="true"
6
                   kind="con"
7
                   path="org.eclipse.pde.core.requiredPlugins">
8
		    <accessrules>
9
			      <accessrule kind="accessible" pattern="**"/>
10
		    </accessrules>
11
	  </classpathentry>
12
	  <classpathentry kind="src" path="src"/>
13
	  <classpathentry exported="true" kind="lib" path="lib/dom4j-1.6.1.jar"/>
14
	  <classpathentry exported="true" kind="lib" path="lib/log4j-1.2.12.jar"/>
15
	  <classpathentry exported="true" kind="lib" path="lib/TigerSearch.jar">
16
		    <accessrules>
17
			      <accessrule kind="accessible" pattern="**"/>
18
		    </accessrules>
19
	  </classpathentry>
20
	  <classpathentry exported="true" kind="con" path="GROOVY_SUPPORT"/>
21
	  <classpathentry exported="true" kind="con" path="GROOVY_DSL_SUPPORT"/>
22
	  <classpathentry kind="output" path="bin"/>
3
	<classpathentry exported="true" kind="lib" path="lib/" />
4
	<classpathentry kind="con"
5
		path="org.eclipse.jdt.launching.JRE_CONTAINER" />
6
	<classpathentry exported="true" kind="con"
7
		path="org.eclipse.pde.core.requiredPlugins">
8
		<accessrules>
9
			<accessrule kind="accessible" pattern="**" />
10
		</accessrules>
11
	</classpathentry>
12
	<classpathentry kind="src" path="src" />
13
	<classpathentry exported="true" kind="lib"
14
		path="lib/dom4j-1.6.1.jar" />
15
	<classpathentry exported="true" kind="lib"
16
		path="lib/log4j-1.2.12.jar" />
17
	<classpathentry exported="true" kind="lib"
18
		path="lib/TigerSearch.jar">
19
		<accessrules>
20
			<accessrule kind="accessible" pattern="**" />
21
		</accessrules>
22
	</classpathentry>
23
	<classpathentry exported="true" kind="con"
24
		path="GROOVY_SUPPORT" />
25
	<classpathentry exported="true" kind="con"
26
		path="GROOVY_DSL_SUPPORT" />
27
	<classpathentry kind="output" path="bin" />
23 28
</classpath>
tmp/org.txm.wordcloud.core/.classpath (revision 2402)
1 1
<?xml version="1.0" encoding="UTF-8"?>
2 2
<classpath>
3
	  <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
4
	  <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins">
5
		    <accessrules>
6
			      <accessrule kind="accessible" pattern="**"/>
7
		    </accessrules>
8
	  </classpathentry>
9
	  <classpathentry kind="src" path="src"/>
10
	  <classpathentry kind="output" path="bin"/>
3
	<classpathentry kind="con"
4
		path="org.eclipse.jdt.launching.JRE_CONTAINER" />
5
	<classpathentry kind="con"
6
		path="org.eclipse.pde.core.requiredPlugins">
7
		<accessrules>
8
			<accessrule kind="accessible" pattern="**" />
9
		</accessrules>
10
	</classpathentry>
11
	<classpathentry kind="src" path="src" />
12
	<classpathentry kind="output" path="bin" />
11 13
</classpath>
tmp/org.txm.wordcloud.core/src/org/txm/wordcloud/core/messages/WordCloudCoreMessages.java (revision 2402)
17 17
	public static String RESULT_TYPE;
18 18
	
19 19
	public static String info_aborting;
20
	
20 21
	public static String error_couldNotInstallRPackage;
22
	
21 23
	public static String info_installingRPackage;
24
	
22 25
	public static String info_loadingRPackage;
26
	
23 27
	public static String error_rPackagesInstallationFailed;
28
	
24 29
	public static String info_rPackagesLoaded;
30
	
25 31
	public static String info_openingWordCloudResult;
26

  
27 32
	
33
	
28 34
	static {
29 35
		// initialize resource bundle
30 36
		Utf8NLS.initializeMessages(BUNDLE_NAME, WordCloudCoreMessages.class);
31 37
	}
32

  
33
	private WordCloudCoreMessages() {
34
	}
38
	
39
	private WordCloudCoreMessages() {}
35 40
}
tmp/org.txm.wordcloud.core/src/org/txm/wordcloud/core/functions/WordCloud.java (revision 2402)
25 25
	
... Ce différentiel a été tronqué car il excède la taille maximale pouvant être affichée.

Formats disponibles : Unified diff