Révision 2966
tmp/org.txm.groovy.core/src/groovy/org/txm/macro/projects/antract/FixINATRSMacro.groovy (revision 2966) | ||
---|---|---|
1 | 1 |
package org.txm.macro.projects.antract |
2 | 2 |
|
3 |
import org.txm.Toolbox |
|
3 | 4 |
import org.txm.utils.ConsoleProgressBar |
5 |
import org.txm.utils.io.FileCopy |
|
6 |
import org.txm.utils.io.IOUtils |
|
4 | 7 |
import org.kohsuke.args4j.* |
5 | 8 |
import groovy.transform.Field |
6 | 9 |
import org.txm.rcp.swt.widget.parameters.* |
... | ... | |
29 | 32 |
trsFile.setText(content, "ISO-8859-1") |
30 | 33 |
} |
31 | 34 |
cpb.done() |
35 |
|
|
36 |
// Add missing the transcriber DTD file |
|
37 |
File dtdFile = new File(trsDirectory, "trans-14.dtd") |
|
38 |
if (!dtdFile.exists()) { |
|
39 |
File txmDTDFile = new File(Toolbox.getTxmHomePath(), "schema/trans-14.dtd") |
|
40 |
FileCopy.copy(txmDTDFile, dtdFile) |
|
41 |
} |
|
42 |
if (IOUtils.replace(dtdFile, " elapsed_time CDATA \"0\"", " elapsed_time CDATA #IMPLIED")) |
|
43 |
|
|
32 | 44 |
println "Done" |
tmp/org.txm.core/res/org/txm/xml/schema/trans-14.dtd (revision 2966) | ||
---|---|---|
7 | 7 |
xml:lang NMTOKEN #IMPLIED |
8 | 8 |
version NMTOKEN #IMPLIED |
9 | 9 |
version_date CDATA #IMPLIED |
10 |
elapsed_time CDATA "0"
|
|
10 |
elapsed_time CDATA #IMPLIED
|
|
11 | 11 |
> |
12 | 12 |
|
13 | 13 |
<!ELEMENT Episode (Section*)> |
tmp/org.txm.tigersearch.rcp/src/org/txm/tigersearch/commands/ImportCONNLUAnnotationsFromDirectory.java (revision 2966) | ||
---|---|---|
323 | 323 |
if (normalize_word_ids) { |
324 | 324 |
if (!id.startsWith("w_")) |
325 | 325 |
id = "w_" + id.substring(1); |
326 |
id = AsciiUtils.buildId(id); |
|
326 |
id = AsciiUtils.buildWordId(id);
|
|
327 | 327 |
} |
328 | 328 |
|
329 | 329 |
processor.addProperty(id, properties); |
Formats disponibles : Unified diff