Révision 1959
| tmp/org.txm.groovy.core/src/groovy/org/txm/macro/text/Text2TXTMacro.groovy (revision 1959) | ||
|---|---|---|
| 5 | 5 |
import groovy.transform.Field |
| 6 | 6 |
import org.txm.rcp.swt.widget.parameters.* |
| 7 | 7 |
import org.txm.doc.*; |
| 8 |
import org.txm.scripts.importer.*;
|
|
| 8 |
import org.txm.importer.*; |
|
| 9 | 9 |
|
| 10 | 10 |
// BEGINNING OF PARAMETERS |
| 11 | 11 |
@Field @Option(name="inputDirectory", usage="the directory containing the DOC/ODT/RTF files to convert", widget="Folder", required=true, def="") |
| tmp/org.txm.groovy.core/src/groovy/org/txm/macro/stats/BasicVocabularyMacro.groovy (revision 1959) | ||
|---|---|---|
| 67 | 67 |
|
| 68 | 68 |
def output = new File(outputDirectory.toString()+"/"+outputFile) |
| 69 | 69 |
def writer = output.newWriter("UTF-8")
|
| 70 |
def specif = corpusViewSelection
|
|
| 70 |
Specificities specif = corpusViewSelection
|
|
| 71 | 71 |
def indices = specif.getSpecificitesIndex() |
| 72 |
def freqs = specif.getFrequency()
|
|
| 72 |
def freqs = specif.getFrequencies()
|
|
| 73 | 73 |
def rownames = specif.getTypeNames() |
| 74 |
def colnames = specif.getPartShortNames()
|
|
| 74 |
def colnames = specif.getColumnsNames()
|
|
| 75 | 75 |
|
| 76 | 76 |
def selected = [] |
| 77 | 77 |
|
| tmp/org.txm.groovy.core/src/groovy/org/txm/macro/transcription/TextTranscription2TRS.groovy (revision 1959) | ||
|---|---|---|
| 27 | 27 |
|
| 28 | 28 |
import org.txm.rcp.swt.widget.parameters.* |
| 29 | 29 |
import org.txm.utils.xml.DomUtils; |
| 30 |
import org.w3c.tidy.Tidy |
|
| 31 | 30 |
import org.txm.doc.*; |
| 32 | 31 |
|
| 33 | 32 |
import javax.xml.stream.*; |
| ... | ... | |
| 37 | 36 |
|
| 38 | 37 |
import org.txm.scripts.importer.*; |
| 39 | 38 |
import org.xml.sax.Attributes; |
| 39 |
import org.txm.importer.ConvertDocument; |
|
| 40 | 40 |
import org.txm.importer.scripts.filters.*; |
| 41 | 41 |
|
| 42 | 42 |
import java.io.File; |
| tmp/org.txm.groovy.core/src/groovy/org/txm/macro/transcription/TXT2TRS.groovy (revision 1959) | ||
|---|---|---|
| 21 | 21 |
package org.txm.macro.transcription |
| 22 | 22 |
|
| 23 | 23 |
import org.txm.utils.xml.DomUtils; |
| 24 |
import org.w3c.tidy.Tidy |
|
| 25 | 24 |
import org.txm.doc.* |
| 26 | 25 |
|
| 27 | 26 |
import javax.xml.stream.* |
| tmp/org.txm.groovy.core/src/groovy/org/txm/macro/utils/ApplyPropertiesMacro.groovy (revision 1959) | ||
|---|---|---|
| 1 |
// Copyright © 2017 ENS de Lyon, CNRS, University of Franche-Comté
|
|
| 1 |
// Copyright © 2019 ENS de Lyon, CNRS, University of Franche-Comté
|
|
| 2 | 2 |
// Licensed under the terms of the GNU General Public License (http://www.gnu.org/licenses) |
| 3 | 3 |
// @author sheiden |
| 4 | 4 |
|
| ... | ... | |
| 8 | 8 |
import groovy.transform.Field |
| 9 | 9 |
import org.txm.rcpapplication.swt.widget.parameters.* |
| 10 | 10 |
import org.txm.utils.Timer |
| 11 |
import org.txm.importer.XPathResult |
|
| 12 | 11 |
|
| 13 | 12 |
@Field @Option(name="propertiesFile", usage="properties parameter file", widget="File", required=true, def="") |
| 14 | 13 |
def propertiesFile |
| ... | ... | |
| 35 | 34 |
macro = macro.substring(0, macro.lastIndexOf(".groovy"))
|
| 36 | 35 |
|
| 37 | 36 |
pkg = macroFile.getParentFile().getAbsolutePath() |
| 38 |
pkg = pkg.substring(pkg.indexOf("/TXM/scripts/macro/")+"/TXM/scripts/macro/".length())
|
|
| 37 |
pkg = pkg.substring(pkg.indexOf("scripts/groovy/user/")+"scripts/groovy/user/".length())
|
|
| 39 | 38 |
pkg = pkg.replace("/", ".")
|
| 40 | 39 |
|
| 41 | 40 |
fullclassname = "$pkg.$macro" |
| tmp/org.txm.groovy.core/src/groovy/org/txm/macro/r/Index2barplotMacro.groovy (revision 1959) | ||
|---|---|---|
| 20 | 20 |
((Index)sel).asRMatrix() |
| 21 | 21 |
symbol = "t("+((Index)sel).getSymbol()+'$data)'
|
| 22 | 22 |
prop = ((Index)sel).getProperties().toString() |
| 23 |
} |
|
| 24 |
|
|
| 25 |
if (symbol == null) {
|
|
| 23 |
} else {
|
|
| 26 | 24 |
println "Selection is not an Index. Aborting." |
| 27 | 25 |
return |
| 28 | 26 |
} |
Formats disponibles : Unified diff