Révision 515
tmp/org.txm.concordance.rcp/OSGI-INF/l10n/bundle.properties (revision 515) | ||
---|---|---|
6 | 6 |
command.tooltip = Concordances |
7 | 7 |
|
8 | 8 |
editor.name = Concordances |
9 |
editor.name.2=Concordance |
|
9 | 10 |
|
10 | 11 |
page.name = Concordances |
12 |
|
|
13 |
command.label.11=Concordance |
tmp/org.txm.concordance.rcp/OSGI-INF/l10n/bundle_fr.properties (revision 515) | ||
---|---|---|
1 | 1 |
|
2 | 2 |
command.name = Concordances |
3 |
|
|
3 |
command.name.5=Concordances |
|
4 | 4 |
command.name.37 = Supprimer la ligne |
5 | 5 |
|
6 | 6 |
command.tooltip = Concordances |
7 |
command.tooltip.7=Calculer une concordance |
|
7 | 8 |
|
8 | 9 |
editor.name = Concordances |
10 |
editor.name.2=Concordances |
|
9 | 11 |
|
10 | 12 |
page.name = Concordances |
13 |
page.name.1=Concordances |
|
14 |
|
|
15 |
command.label.11=Concordances |
tmp/org.txm.rcp/OSGI-INF/l10n/bundle_fr.properties (revision 515) | ||
---|---|---|
22 | 22 |
command.name.8=Afficher dans un lecteur HTML |
23 | 23 |
command.name.7=Index |
24 | 24 |
command.name.6=Analyse des Correspondances |
25 |
command.name.5=Concordances |
|
25 |
|
|
26 | 26 |
command.name.4=Spécificités |
27 | 27 |
command.name.3=Convertir ancien fichier binaire |
28 | 28 |
command.name.2=Créer une Partition |
... | ... | |
132 | 132 |
menu.label=Fichier |
133 | 133 |
command.tooltip.9=XML-TEI Frantext |
134 | 134 |
command.tooltip.8=XML-TEI BFM |
135 |
command.tooltip.7=Calculer une concordance |
|
135 |
|
|
136 | 136 |
command.tooltip.6=Calculer les mots spécifiques de chaque partie |
137 | 137 |
command.tooltip.5=Import au format XML-TRS de Trasncriber |
138 | 138 |
command.tooltip.4=Diviser l'objet sélectionné en plusieurs parties |
... | ... | |
151 | 151 |
page.name.4=Moteur de Corpus |
152 | 152 |
page.name.3=Moteur de Statistique |
153 | 153 |
page.name.2=Explorateur de fichiers |
154 |
page.name.1=Concordances |
|
154 |
|
|
155 | 155 |
page.name.0=Avancé |
156 | 156 |
commandParameter.name.3=clé web page |
157 | 157 |
commandParameter.name.2=import script |
... | ... | |
202 | 202 |
command.label.3=XML Transcriber +CSV |
203 | 203 |
editor.name.3=Spécificités |
204 | 204 |
command.label.2=XML Factiva |
205 |
editor.name.2=Concordances |
|
205 |
|
|
206 | 206 |
command.label.1=XML/w + CSV |
207 | 207 |
editor.name.1=Multitab |
208 | 208 |
command.label.0=CNR + CSV |
... | ... | |
407 | 407 |
command.label.14=À Propos de TXM |
408 | 408 |
command.label.13=Charger corpus TXM 0.5 |
409 | 409 |
command.label.12=XML-TEI TXM |
410 |
command.label.11=Concordances |
|
410 |
|
|
411 | 411 |
command.tooltip.79=Classification |
412 | 412 |
command.label.10=Spécificitiés |
413 | 413 |
command.tooltip.78=Dimensions |
tmp/org.txm.rcp/OSGI-INF/l10n/bundle.properties (revision 515) | ||
---|---|---|
165 | 165 |
editor.name.4=Text |
166 | 166 |
command.label.3=XML Transcriber + CSV |
167 | 167 |
command.label.2=XML Factiva |
168 |
editor.name.2=Concordance |
|
168 |
|
|
169 | 169 |
command.label.1=XML/w + CSV |
170 | 170 |
editor.name.1=Multitab |
171 | 171 |
command.label.0=CNR + CSV |
... | ... | |
355 | 355 |
command.label.14=About TXM |
356 | 356 |
command.label.13=Load TXM 0.5 corpus |
357 | 357 |
command.label.12=XML-TEI TXM |
358 |
command.label.11=Concordance |
|
358 |
|
|
359 | 359 |
command.tooltip.79=Classification |
360 | 360 |
command.tooltip.77=Export as a binary file |
361 | 361 |
command.label.149=Send to cooccurrence |
tmp/org.txm.cooccurrence.core/src/org/txm/cooccurrence/core/messages/messages_fr.properties (revision 515) | ||
---|---|---|
1 | 1 |
|
2 |
Cooccurrence_0 = Coocurrence: |
|
3 |
Cooccurrence_1 = ** Error: can't find 'n' or 'o': |
|
4 | 2 |
Cooccurrence_10 = \ properties: |
5 | 3 |
Cooccurrence_102 = ** Error: negative argument in 'factln' function |
6 | 4 |
Cooccurrence_103 = ** Error: negative argument in 'rbicoln' function |
7 |
Cooccurrence_105 = Occ\ Freq\ CoFreq\ Score\ MeanDist\ Mode |
|
8 |
Cooccurrence_106 = \n |
|
9 | 5 |
Cooccurrence_107 = ** Error: |
10 | 6 |
Cooccurrence_11 = Occ |
11 | 7 |
Cooccurrence_12 = Freq |
12 | 8 |
Cooccurrence_13 = CoFreq |
13 | 9 |
Cooccurrence_14 = Score |
14 | 10 |
Cooccurrence_15 = MeanDist |
15 |
Cooccurrence_16 = Mode |
|
16 |
Cooccurrence_2 = Cooc: |
|
17 | 11 |
Cooccurrence_22 = Error: ref_forms.length ! ref_freqs.length |
18 | 12 |
Cooccurrence_23 = Error: no cooccurrents |
19 | 13 |
Cooccurrence_4 = \ F: |
tmp/org.txm.cooccurrence.core/src/org/txm/cooccurrence/core/messages/CooccurrenceCoreMessages.java (revision 515) | ||
---|---|---|
32 | 32 |
public static String CooccurrencesEditor_30; |
33 | 33 |
public static String CooccurrencesEditor_31; |
34 | 34 |
public static String CooccurrencesEditor_32; |
35 |
|
|
36 | 35 |
|
37 |
//FIXME: unused keys |
|
38 |
public static String Cooccurrence_0; |
|
39 |
public static String Cooccurrence_1; |
|
40 |
public static String Cooccurrence_105; |
|
41 |
public static String Cooccurrence_106; |
|
42 |
public static String Cooccurrence_16; |
|
43 |
public static String Cooccurrence_2; |
|
44 |
// end of fixme |
|
45 |
|
|
46 |
|
|
47 | 36 |
static { |
48 | 37 |
// initialize resource bundle |
49 | 38 |
Utf8NLS.initializeMessages(BUNDLE_NAME, CooccurrenceCoreMessages.class); |
tmp/org.txm.cooccurrence.core/src/org/txm/cooccurrence/core/messages/messages.properties (revision 515) | ||
---|---|---|
1 | 1 |
|
2 |
Cooccurrence_0 = Coocurrence : |
|
3 |
Cooccurrence_1 = ** Echec de la recherche de 'n' ou 'o' : |
|
4 | 2 |
Cooccurrence_10 = \ propriétés : |
5 | 3 |
Cooccurrence_102 = ** Erreur : argument négatif dans la fonction 'factln' |
6 | 4 |
Cooccurrence_103 = ** Erreur : argument négatif dans la fonction 'rbicoln' |
7 |
Cooccurrence_105 = Occ\ Fréq\ CoFréq\ Indice\ DistMoy\ Mode |
|
8 |
Cooccurrence_106 = \n |
|
9 | 5 |
Cooccurrence_107 = ** Erreur : |
10 | 6 |
Cooccurrence_11 = Occ |
11 | 7 |
Cooccurrence_12 = Fréq |
12 | 8 |
Cooccurrence_13 = CoFréq |
13 | 9 |
Cooccurrence_14 = Indice |
14 | 10 |
Cooccurrence_15 = DistMoy |
15 |
Cooccurrence_16 = Mode |
|
16 |
Cooccurrence_2 = Cooc : |
|
17 | 11 |
Cooccurrence_22 = Erreur: ref_forms.length ! ref_freqs.length |
18 | 12 |
Cooccurrence_23 = Erreur: pas de cooccurrents |
19 | 13 |
Cooccurrence_4 = \ F : |
tmp/org.txm.cooccurrence.core/src/org/txm/cooccurrence/core/functions/Cooccurrence.java (revision 515) | ||
---|---|---|
1255 | 1255 |
//System.out.println("found o: "+o); |
1256 | 1256 |
|
1257 | 1257 |
if (!matchFound) { |
1258 |
//System.out.println(Messages.Cooccurrence_1 + n + " ; " + o); //$NON-NLS-1$ |
|
1259 | 1258 |
continue; |
1260 | 1259 |
} |
1261 | 1260 |
|
... | ... | |
1535 | 1534 |
txtseparator+CooccurrenceCoreMessages.Cooccurrence_13+txtseparator+colseparator+ |
1536 | 1535 |
txtseparator+CooccurrenceCoreMessages.Cooccurrence_14+txtseparator+colseparator+ |
1537 | 1536 |
txtseparator+CooccurrenceCoreMessages.Cooccurrence_15+txtseparator+"\n");//colseparator+ //$NON-NLS-1$ |
1538 |
//txtseparator+Messages.Cooccurrence_16+txtseparator+"\n"); //$NON-NLS-1$ |
|
1539 | 1537 |
for (CLine line : lines) |
1540 | 1538 |
writer.write(line.resume(colseparator, txtseparator) + "\n"); //$NON-NLS-1$ |
1541 | 1539 |
writer.close(); |
tmp/org.txm.chartsengine.core/src/org/txm/chartsengine/core/ChartsEngine.java (revision 515) | ||
---|---|---|
25 | 25 |
* |
26 | 26 |
*/ |
27 | 27 |
public abstract class ChartsEngine { |
28 |
|
|
29 | 28 |
|
30 | 29 |
// FIXME: should be done in an activator? |
31 | 30 |
static { |
... | ... | |
37 | 36 |
|
38 | 37 |
} |
39 | 38 |
|
40 |
|
|
41 | 39 |
public final static String extensionPointId = "org.txm.chartsengine.chartsengine"; //$NON-NLS-1$ |
42 | 40 |
|
43 |
|
|
44 | 41 |
/** |
45 | 42 |
* Chart type constants. |
46 | 43 |
*/ |
... | ... | |
62 | 59 |
*/ |
63 | 60 |
protected String name; |
64 | 61 |
|
65 |
|
|
66 | 62 |
/** |
67 | 63 |
* The engine description. |
68 | 64 |
*/ |
69 | 65 |
protected String description; |
70 | 66 |
|
71 |
|
|
72 | 67 |
/** |
73 | 68 |
* The current output format. |
74 | 69 |
*/ |
75 | 70 |
protected String outputFormat; |
76 |
|
|
77 | 71 |
|
78 | 72 |
/** |
79 | 73 |
* Chart creators extension contributions. |
80 | 74 |
*/ |
81 | 75 |
protected HashMap<Class, HashMap<String, ChartCreator>> chartCreators; |
82 | 76 |
|
83 |
|
|
84 | 77 |
/** |
85 | 78 |
* Installed charts engines. |
86 | 79 |
*/ |
... | ... | |
117 | 110 |
Log.warning("Starting Charts Engine: " + this); |
118 | 111 |
} |
119 | 112 |
|
120 |
|
|
121 | 113 |
/** |
122 | 114 |
* Gets a chart creator for the specified result data type and chart type. |
123 | 115 |
* @param resultDataType |
... | ... | |
177 | 169 |
Log.warning(log); |
178 | 170 |
|
179 | 171 |
} |
180 |
|
|
181 | 172 |
|
182 | 173 |
/** |
183 | 174 |
* Checks if the charts engine can create a chart according to the specified result data type and chart type. |
... | ... | |
197 | 188 |
public boolean canCreateChart(Class resultDataType) { |
198 | 189 |
return this.getChartCreator(resultDataType) != null; |
199 | 190 |
} |
200 |
|
|
201 | 191 |
|
202 | 192 |
/** |
203 | 193 |
* Creates and stores charts engines from installed extension contributions. |
... | ... | |
309 | 299 |
} |
310 | 300 |
} |
311 | 301 |
|
312 |
|
|
313 | 302 |
/** |
314 | 303 |
* Populates the chart creators from loaded extensions. |
315 | 304 |
*/ |
... | ... | |
317 | 306 |
this.registerChartCreatorExtensions(this.getClass()); |
318 | 307 |
} |
319 | 308 |
|
320 |
|
|
321 | 309 |
/** |
322 | 310 |
* Creates a font from the specified encoded String in JFace format (eg.: "1|Lucida Sans Unicode|12.0|0|WINDOWS|1|-16|0|0|0|400|0|0|0|0|3|2|1|34|Lucida Sans Unicode;") |
323 | 311 |
* @param encodedStr |
... | ... | |
374 | 362 |
*/ |
375 | 363 |
public abstract File createChartFile(Object chart, File file); |
376 | 364 |
|
377 |
|
|
378 | 365 |
/** |
379 | 366 |
* Creates a chart according to the specified result and output format and writes it in the specified file. |
380 | 367 |
* @param result |
... | ... | |
392 | 379 |
return file; |
393 | 380 |
} |
394 | 381 |
|
395 |
|
|
396 |
|
|
397 | 382 |
/** |
398 | 383 |
* Exports the chart to the specified file. Also crops the image according to the specified drawing area values. |
399 | 384 |
* @param chart |
... | ... | |
409 | 394 |
*/ |
410 | 395 |
public abstract File exportChart(Object chart, File file, String outputFormat, int imageWidth, int imageHeight, int drawingAreaX, int drawingAreaY, int drawingAreaWidth, int drawingAreaHeight); |
411 | 396 |
|
412 |
|
|
413 | 397 |
/** |
414 | 398 |
* Exports the chart to the specified file. |
415 | 399 |
* @param chart |
... | ... | |
423 | 407 |
return this.exportChart(chart, file, outputFormat, imageWidth, imageHeight, 0, 0, imageWidth, imageHeight); |
424 | 408 |
} |
425 | 409 |
|
426 |
|
|
427 | 410 |
/** |
428 | 411 |
* @return the name |
429 | 412 |
*/ |
... | ... | |
438 | 421 |
this.name = name; |
439 | 422 |
} |
440 | 423 |
|
441 |
|
|
442 | 424 |
/** |
443 | 425 |
* Gets the current output format. |
444 | 426 |
* @return |
... | ... | |
461 | 443 |
*/ |
462 | 444 |
public abstract ArrayList<String> getSupportedOutputFileFormats(); |
463 | 445 |
|
464 |
|
|
465 | 446 |
/** |
466 | 447 |
* Sets the output format for the generated charts. |
467 | 448 |
* @param outputFormat the output format to set |
... | ... | |
479 | 460 |
return fileName.replaceAll("[^a-zA-Z0-9\\._-]+", "_"); |
480 | 461 |
} |
481 | 462 |
|
482 |
|
|
483 | 463 |
/** |
484 | 464 |
* Auto-populate supported output file raster formats list from available system image writers. |
485 | 465 |
* @param supportedOutputFileFormats |
... | ... | |
497 | 477 |
return supportedOutputFileFormats; |
498 | 478 |
} |
499 | 479 |
|
500 |
|
|
501 |
|
|
502 |
|
|
503 | 480 |
@Override |
504 | 481 |
public String toString() { |
505 | 482 |
String str = this.name + " (description: " + this.description + ", output format: " + this.outputFormat; |
... | ... | |
512 | 489 |
return str; |
513 | 490 |
} |
514 | 491 |
|
515 |
|
|
516 | 492 |
/** |
517 | 493 |
* @return the theme |
518 | 494 |
*/ |
... | ... | |
520 | 496 |
return theme; |
521 | 497 |
} |
522 | 498 |
|
523 |
|
|
524 | 499 |
/** |
525 | 500 |
* @param theme the theme to set |
526 | 501 |
*/ |
... | ... | |
528 | 503 |
this.theme = theme; |
529 | 504 |
} |
530 | 505 |
|
531 |
|
|
532 | 506 |
/** |
533 | 507 |
* UI related, this preference can be used to tell if the chart must be updated directly after editing a widget value or only after pressed a "Compute" button. |
534 | 508 |
* @return the directComputing |
... | ... | |
537 | 511 |
public boolean isDirectComputing() { |
538 | 512 |
return directComputing; |
539 | 513 |
} |
540 |
|
|
541 |
|
|
542 |
|
|
543 |
|
|
544 | 514 |
} |
Formats disponibles : Unified diff