diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 1d5d15a..0000000 --- a/.travis.yml +++ /dev/null @@ -1,41 +0,0 @@ -language: java -sudo: required -dist: bionic - -jdk: - - openjdk11 - -addons: - apt: - packages: - - ant - sonarcloud: - organization: "dita-ot-plugins" - token: - secure: "An2XPZRN1zP8K8tshQNnNL8jJB5VvjYOCsHWEvW4+YDstvsJJKHc0M/9LQA9b/l6n3AoZJhrP7nyLqy2CDhwLCaPfr94sRDZiCVi5y/cXWXIP5r0ytesII6AT3t0abaeTYOgu3kyRPx8ikyWKhBezuoKR1wBlerzTQrzwMHmK3sNxoCjyJXy+lghPkZ/9ibDmdFTz7OkZ7CIeKxkIfPzWQD3v0yfJ2d1HHxl5vq4F4st9v4kdW5ITRjsq2blNEs/THLMLBvS/0Z8t4JkY//iVg8aeG+14GpkswiJxC2kK7lMtqwS4wdtXSSHl81UUpTSiJXnw3INYztoIZf7CyaZbCvB0RiY75zfWMEPVNswKo/nVjaWIw7hh05XNzSquPQ0+Q/PUZEEvNR+4HVoD+VWR6DqAajSzTBSTKrn0iuQBMg5tgT9KXB//74w8JNSK0WjP3916CZiv6UK5kKQcqDm40y47V0ImRuPmFMosTo5b73D6xxXp4KT42EWkrB2xuOARn7SsqcNOsVFJT21+vRqIl/djmaOZA6aK3+FygAJEdVCewH+vKk94A6ju3cNCGEwxKgTTaAbGwig3ti5qoASo6tHhhs8j92dotYjWcKT6vGvPA/LLrOvVKP/XHyCgfR0GTXoCVbwwSVlvBzfYyFraszJt0Xdd3+WBTNH42eiLEY=" -env: - - DITA_OT=3.4.1 - -before_install: - - zip -r fox.jason.translate.xliff.zip . -x *.zip* *.git/* *temp/* *out/* - - curl -LO https://github.com/dita-ot/dita-ot/releases/download/$DITA_OT/dita-ot-$DITA_OT.zip - - unzip -q dita-ot-$DITA_OT.zip - - chmod +x dita-ot-$DITA_OT/bin/dita - -install: - - dita-ot-$DITA_OT/bin/dita --install https://github.com/jason-fox/fox.jason.unit-test/archive/master.zip - - dita-ot-$DITA_OT/bin/dita --install https://github.com/doctales/org.doctales.xmltask/archive/master.zip - - dita-ot-$DITA_OT/bin/dita --install fox.jason.translate.xliff.zip - -before_script: - - dita-ot-$DITA_OT/bin/dita --input dita-ot-$DITA_OT/plugins/fox.jason.translate.xliff -f xsl-instrument - -script: - - dita-ot-$DITA_OT/bin/dita --input dita-ot-$DITA_OT/plugins/fox.jason.translate.xliff -f unit-test --output . -v - -after_success: - - mvn clean compile - - cp dita-ot-$DITA_OT/plugins/fox.jason.unit-test/resource/pom.xml pom.xml - - mvn org.eluder.coveralls:coveralls-maven-plugin:report - - rm -rf dita-ot-$DITA_OT - - sonar-scanner diff --git a/pom.xml b/pom.xml deleted file mode 100644 index acb4c7e..0000000 --- a/pom.xml +++ /dev/null @@ -1,80 +0,0 @@ - - 4.0.0 - fox.jason - translate - 1.0 - - - - org.apache.ant - ant - 1.10.7 - - - com.googlecode.json-simple - json-simple - 1.1.1 - - - junit - junit - - - - - - - src - - - maven-clean-plugin - 3.1.0 - - - - lib - - - - - - - - maven-dependency-plugin - 2.8 - - - generate-resources - - copy-dependencies - - - ${basedir}/lib - runtime - - - - - - - maven-compiler-plugin - 3.7.0 - - 1.8 - 1.8 - ${compilerArgument} - - - - - org.apache.maven.plugins - maven-jar-plugin - 2.3.1 - - ${basedir}/lib - - - - - \ No newline at end of file diff --git a/sonar-project.properties b/sonar-project.properties deleted file mode 100644 index bea96fc..0000000 --- a/sonar-project.properties +++ /dev/null @@ -1,10 +0,0 @@ -sonar.projectKey=fox.jason.translate.xliff -sonar.organization=dita-ot-plugins -sonar.sources=cfg,src,Customization,xsl -sonar.java.binaries=target/classes/fox/jason/translate/tasks -sonar.java.libraries=lib/*.jar -sonar.test.exclusions=test -sonar.cpd.exclusions=src/fox/jason/translate/tasks/** -sonar.host.url=https://sonarcloud.io -sonar.cobertura.reportPath=coverage.xml -sonar.exclusions=coverage.html,test-results.html,pom.xml,coverage.xml \ No newline at end of file diff --git a/src/fox/jason/translate/tasks/BingParseTask.java b/src/fox/jason/translate/tasks/BingParseTask.java deleted file mode 100644 index 7c05767..0000000 --- a/src/fox/jason/translate/tasks/BingParseTask.java +++ /dev/null @@ -1,80 +0,0 @@ -/* - * This file is part of the DITA-OT Translate Plug-in project. - * See the accompanying LICENSE file for applicable licenses. - */ - -package fox.jason.translate.tasks; - -import org.apache.tools.ant.BuildException; -import org.apache.tools.ant.Task; -import org.json.simple.JSONObject; -import org.json.simple.JSONArray; -import org.json.simple.parser.JSONParser; -import org.json.simple.parser.ParseException; - -// Microsoft Translation. Copies text translated by Azure cloud services to a file -// - -public class BingParseTask extends Task { - - private String text; - private String outproperty; - private JSONParser parser; - - /** - * Creates a new BingParseTask instance. - */ - public BingParseTask() { - super(); - this.text = null; - this.outproperty = null; - this.parser = new JSONParser(); - } - - /** - * Method setText. - * - * @param text String - */ - public void setText(String text) { - this.text = text; - } - - /** - * Method setOutproperty. - * - * @param outproperty String - */ - public void setOutproperty(String outproperty) { - this.outproperty = outproperty; - } - - /** - * Method execute. - * - * @throws BuildException if something goes wrong - */ - @Override - public void execute() { - // @param text - The response from Microsoft Translate - // @param outproperty - The property to output to - if (this.text == null) { - throw new BuildException("You must supply a response from Microsoft Translate"); - } - if (this.outproperty == null) { - throw new BuildException("You must supply a property to output to"); - } - - try { - JSONArray json = (JSONArray) this.parser - .parse(this.text); - JSONArray translations = (JSONArray) ((JSONObject) json.get(0)).get("translations"); - String trans = (String) ((JSONObject) translations.get(0)).get("text"); - trans = trans.replaceAll("\\\\\"", "\""); - trans = trans.replaceAll("class=\"notranslate\"", "translate=\"no\""); - getProject().setProperty(this.outproperty, trans); - } catch (ParseException e) { - throw new BuildException("Unable to translate JSON", e); - } - } -} diff --git a/src/fox/jason/translate/tasks/DeeplParseTask.java b/src/fox/jason/translate/tasks/DeeplParseTask.java deleted file mode 100644 index aca7b1e..0000000 --- a/src/fox/jason/translate/tasks/DeeplParseTask.java +++ /dev/null @@ -1,80 +0,0 @@ -/* - * This file is part of the DITA-OT Translate Plug-in project. - * See the accompanying LICENSE file for applicable licenses. - */ - -package fox.jason.translate.tasks; - -import org.apache.tools.ant.BuildException; -import org.apache.tools.ant.Task; -import org.json.simple.JSONObject; -import org.json.simple.JSONArray; -import org.json.simple.parser.JSONParser; -import org.json.simple.parser.ParseException; - -// Watson Translation. Parses the response and extracts the translated text -// - -public class DeeplParseTask extends Task { - - private String text; - private String outproperty; - private JSONParser parser; - - /** - * Creates a new DeeplParseTask instance. - */ - public DeeplParseTask() { - super(); - this.text = null; - this.outproperty = null; - this.parser = new JSONParser(); - } - - /** - * Method setText. - * - * @param text String - */ - public void setText(String text) { - this.text = text; - } - - /** - * Method setOutproperty. - * - * @param outproperty String - */ - public void setOutproperty(String outproperty) { - this.outproperty = outproperty; - } - - /** - * Method execute. - * - * @throws BuildException if something goes wrong - */ - @Override - public void execute() { - // @param text - The response from Deepl - // @param outproperty - The property to output to - if (this.text == null) { - throw new BuildException("You must supply a response from Deepl"); - } - if (this.outproperty == null) { - throw new BuildException("You must supply a property to output to"); - } - - try { - JSONObject json = (JSONObject) this.parser - .parse(this.text); - JSONArray translations = (JSONArray) json.get("translations"); - String trans = (String) ((JSONObject) translations.get(0)).get("text"); - trans = trans.replaceAll("\\\\\"", "\""); - getProject().setProperty(this.outproperty, trans); - } catch (ParseException e) { - throw new BuildException("Unable to translate JSON", e); - } - - } -} diff --git a/src/fox/jason/translate/tasks/IterateFilesetTask.java b/src/fox/jason/translate/tasks/IterateFilesetTask.java deleted file mode 100644 index 6762ba6..0000000 --- a/src/fox/jason/translate/tasks/IterateFilesetTask.java +++ /dev/null @@ -1,124 +0,0 @@ -/* - * This file is part of the DITA-OT Pretty DITA Plug-in project. - * See the accompanying LICENSE file for applicable licenses. - */ - -package fox.jason.translate.tasks; - -import java.util.ArrayList; -import java.util.List; -import org.apache.tools.ant.BuildException; -import org.apache.tools.ant.DirectoryScanner; -import org.apache.tools.ant.Task; -import org.apache.tools.ant.taskdefs.MacroInstance; -import org.apache.tools.ant.types.FileSet; - -// -// Iterator function to run a given macro against a set of files -// - -public class IterateFilesetTask extends Task { - /** - * Field filesets. - */ - private List filesets; - /** - * Field todir. - */ - private String macro; - /** - * Field todir. - */ - private String todir; - - /** - * Field dir. - */ - private String dir; - - /** - * Creates a new IterateFilesetTask instance. - */ - public IterateFilesetTask() { - super(); - this.dir = null; - this.todir = null; - this.macro = null; - this.filesets = new ArrayList<>(); - } - - /** - * Method setDir. - * - * @param dir String - */ - public void setDir(String dir) { - this.dir = dir; - } - - /** - * Method setTodir. - * - * @param todir String - */ - public void setTodir(String todir) { - this.todir = todir; - } - - /** - * Method setMacro. - * - * @param macro String - */ - public void setMacro(String macro) { - this.macro = macro; - } - - /** - * @param set FileSet - */ - public void addFileset(FileSet set) { - this.filesets.add(set); - } - - /** - * Method execute. - * - * @throws BuildException if something goes wrong - */ - @Override - public void execute() { - // @param toDir - The output location of the files - // @param dir - The location of the files to process - // @param macro - A macro to run. - // @param fileset - A set of files - if (this.dir == null) { - throw new BuildException("You must supply a source directory"); - } - if (this.macro == null) { - throw new BuildException("You must supply a macro"); - } - if (filesets.isEmpty()) { - throw new BuildException("You must supply a set of files"); - } - - for (FileSet fileset : this.filesets) { - DirectoryScanner scanner = fileset.getDirectoryScanner(getProject()); - scanner.scan(); - - for (String file : scanner.getIncludedFiles()) { - MacroInstance task = (MacroInstance) getProject() - .createTask(this.macro); - try { - task.setDynamicAttribute("file", this.dir + "/" + file); - if (this.todir != null){ - task.setDynamicAttribute("toDir", this.todir); - } - task.execute(); - } catch (Exception err) { - throw new BuildException(err); - } - } - } - } -} \ No newline at end of file diff --git a/src/fox/jason/translate/tasks/ReinsertDoctypeTask.java b/src/fox/jason/translate/tasks/ReinsertDoctypeTask.java deleted file mode 100644 index 14ffda2..0000000 --- a/src/fox/jason/translate/tasks/ReinsertDoctypeTask.java +++ /dev/null @@ -1,193 +0,0 @@ -/* - * This file is part of the DITA-OT Translate Plug-in project. - * See the accompanying LICENSE file for applicable licenses. - */ - -package fox.jason.translate.tasks; - -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; -import org.apache.tools.ant.BuildException; -import org.apache.tools.ant.Task; -import java.util.regex.Pattern; -import org.apache.tools.ant.taskdefs.Echo; -import org.apache.tools.ant.util.FileUtils; - -// Iterator function to run a given macro against a set of files -// - -public class ReinsertDoctypeTask extends Task { - - private String file; - /** - * Creates a new ReinsertDoctypeTask instance. - */ - public ReinsertDoctypeTask() { - super(); - this.file = null; - } - - private void addDoctype(String doctype, List textArr){ - if (doctype.contains(" ")) { - doctype = doctype.substring(0, doctype.indexOf(' ')); - } - - textArr.add(""); - } - - // Standard Doctype replacements - private String getDoctype(String doctype) { - String type = null; - - switch (doctype.toLowerCase()) { - case "concept": - type = "PUBLIC \"-//OASIS//DTD DITA Concept//EN\" \"concept.dtd\""; - break; - case "ditabase": - type = "PUBLIC \"-//OASIS//DTD DITA Composite//EN\" \"ditabase.dtd\""; - break; - case "glossentry": - type = - "PUBLIC \"-//OASIS//DTD DITA Glossary Entry//EN\" \"glossentry.dtd\""; - break; - case "glossary": - type = "PUBLIC \"-//OASIS//DTD DITA Glossary//EN\" \"glossary.dtd\""; - break; - case "reference": - type = "PUBLIC \"-//OASIS//DTD DITA Reference//EN\" \"reference.dtd\""; - break; - case "task": - type = "PUBLIC \"-//OASIS//DTD DITA Task//EN\" \"task.dtd\""; - break; - case "generaltask": - type = - "PUBLIC \"-//OASIS//DTD DITA General Task//EN\" \"generalTask.dtd\""; - break; - case "topic": - type = "PUBLIC \"-//OASIS//DTD DITA Topic//EN\" \"topic.dtd\""; - break; - case "basetopic": - type = "PUBLIC \"-//OASIS//DTD DITA Base Topic//EN\" \"basetopic.dtd\""; - break; - case "machinerytask": - type = - "PUBLIC \"-//OASIS//DTD DITA Machinery Task//EN\" \"machineryTask.dtd\""; - break; - case "learningassessment": - type = - "PUBLIC \"-//OASIS//DTD DITA Learning Assessment//EN\" \"learningAssessment.dtd\""; - break; - case "learningcontent": - type = - "PUBLIC \"-//OASIS//DTD DITA Learning Content//EN\" \"learningContent.dtd\""; - break; - case "learningoverview": - type = - "PUBLIC \"-//OASIS//DTD DITA Learning Overview//EN\" \"learningOverview.dtd\""; - break; - case "learningplan": - type = - "PUBLIC \"-//OASIS//DTD DITA Learning Plan//EN\" \"learningPlan.dtd\""; - break; - case "learningsummary": - type = - "PUBLIC \"-//OASIS//DTD DITA Learning Summary//EN\" \"learningSummary.dtd\""; - break; - case "map": - type = "PUBLIC \"-//OASIS//DTD DITA Map//EN\" \"map.dtd\""; - break; - case "basemap": - type = "PUBLIC \"-//OASIS//DTD DITA Base Map//EN\" \"basemap.dtd\""; - break; - case "bookmap": - type = "PUBLIC \"-//OASIS//DTD DITA BookMap//EN\" \"bookmap.dtd\""; - break; - case "subjectscheme": - type = - "PUBLIC \"-//OASIS//DTD DITA Subject Scheme Map//EN\" \"subjectScheme.dtd\""; - break; - case "classifymap": - type = - "PUBLIC \"-//OASIS//DTD DITA Classification Map//EN\" \"classifyMap.dtd\""; - break; - case "learningbookmap": - type = - "PUBLIC \"-//OASIS//DTD DITA Learning BookMap//EN\" \"learningBookmap.dtd\""; - break; - case "learningmap": - type = - "PUBLIC \"-//OASIS//DTD DITA Learning Map//EN\" \"learningMap.dtd\""; - break; - case "ditaval": - type = "PUBLIC \"-//OASIS//DTD DITA DITAVAL//EN\" \"ditaval.dtd\""; - break; - default: - getProject().log("Unknown Doctype: " + doctype, 1); - } - return type; - } - - private String addDoctype(String dita) { - String[] lines = dita.split("\n"); - List text = new ArrayList<>(); - String doctype = null; - Pattern reDoctype = Pattern.compile("^<\\w"); - - for (String line : lines) { - if (doctype == null && reDoctype.matcher(line).lookingAt()) { - doctype = line.substring(line.indexOf('<') + 1, line.indexOf('>')); - addDoctype(doctype, text); - } - if (line.length() > 0) { - text.add(line); - } - } - return String.join("\n", text); - } - - /** - * Method setFile. - * - * @param file String - */ - public void setFile(String file) { - this.file = file; - } - - /** - * Method execute. - * - * @throws BuildException if something goes wrong - */ - @Override - public void execute() { - // @param file - A file to add a doctype to - if (this.file == null) { - throw new BuildException("You must supply a file to add a doctype to"); - } - - try { - String input = FileUtils.readFully( - new java.io.FileReader(this.file) - ); - String output = addDoctype(input); - Echo task = (Echo) getProject().createTask("echo"); - task.setFile(new java.io.File(file)); - task.setMessage(output); - task.perform(); - } catch (IOException e) { - throw new BuildException("Unable to read file", e); - } - - } -} - - - - - - - - - diff --git a/src/fox/jason/translate/tasks/UrlEncodeTask.java b/src/fox/jason/translate/tasks/UrlEncodeTask.java deleted file mode 100644 index 8ae79fb..0000000 --- a/src/fox/jason/translate/tasks/UrlEncodeTask.java +++ /dev/null @@ -1,78 +0,0 @@ -/* - * This file is part of the DITA-OT Translate Plug-in project. - * See the accompanying LICENSE file for applicable licenses. - */ - -package fox.jason.translate.tasks; - -import org.apache.tools.ant.BuildException; -import org.apache.tools.ant.Task; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; -import java.io.UnsupportedEncodingException; - -// -// Converts a value to URI Encoding -// - -public class UrlEncodeTask extends Task { - - private String to; - private String string; - - /** - * Creates a new UriEncodeTask instance. - */ - public UrlEncodeTask() { - super(); - this.to = null; - this.string = null; - } - - /** - * Method setTo. - * - * @param to String - */ - public void setTo(String to) { - this.to = to; - } - - /** - * Method setString. - * - * @param string String - */ - public void setString(String string) { - this.string = string; - } - - // Method to encode a string value using `UTF-8` encoding scheme - private String encodeURIComponent(String value) { - try { - return URLEncoder.encode(value, StandardCharsets.UTF_8.toString()); - } catch (UnsupportedEncodingException ex) { - throw new BuildException("Unable to encode URI", ex); - } - } - - /** - * Method execute. - * - * @throws BuildException if something goes wrong - */ - @Override - public void execute() { - - // @param string - The value to convert - // @param to - The property to set - if (this.string == null) { - throw new BuildException("You must supply a value to convert"); - } - if (this.to == null) { - throw new BuildException("You must supply a property to set"); - } - - getProject().setProperty(this.to, encodeURIComponent(this.string)); - } -} diff --git a/src/fox/jason/translate/tasks/WatsonParseTask.java b/src/fox/jason/translate/tasks/WatsonParseTask.java deleted file mode 100644 index 36bcff6..0000000 --- a/src/fox/jason/translate/tasks/WatsonParseTask.java +++ /dev/null @@ -1,80 +0,0 @@ -/* - * This file is part of the DITA-OT Translate Plug-in project. - * See the accompanying LICENSE file for applicable licenses. - */ - -package fox.jason.translate.tasks; - -import org.apache.tools.ant.BuildException; -import org.apache.tools.ant.Task; -import org.json.simple.JSONObject; -import org.json.simple.JSONArray; -import org.json.simple.parser.JSONParser; -import org.json.simple.parser.ParseException; - -// -// Watson Translation. Parses the response and extracts the translated text -// - -public class WatsonParseTask extends Task { - - private String text; - private String outproperty; - private JSONParser parser; - - /** - * Creates a new WatsonParseTask instance. - */ - public WatsonParseTask() { - super(); - this.text = null; - this.outproperty = null; - this.parser = new JSONParser(); - } - - /** - * Method setText. - * - * @param text String - */ - public void setText(String text) { - this.text = text; - } - - /** - * Method setOutproperty. - * - * @param outproperty String - */ - public void setOutproperty(String outproperty) { - this.outproperty = outproperty; - } - - /** - * Method execute. - * - * @throws BuildException if something goes wrong - */ - @Override - public void execute() { - // @param text - The response from Watson Translate - // @param outproperty - The property to output to - if (this.text == null) { - throw new BuildException("You must supply a response from Watson Translate"); - } - if (this.outproperty == null) { - throw new BuildException("You must supply a property to output to"); - } - - try { - JSONObject json = (JSONObject) this.parser - .parse(this.text); - - JSONArray translations = (JSONArray) json.get("translations"); - String trans = (String) ((JSONObject) translations.get(0)).get("translation"); - getProject().setProperty(this.outproperty, trans); - } catch (ParseException e) { - throw new BuildException("Unable to translate JSON", e); - } - } -} diff --git a/src/fox/jason/translate/tasks/YandexParseTask.java b/src/fox/jason/translate/tasks/YandexParseTask.java deleted file mode 100644 index 97bd8f4..0000000 --- a/src/fox/jason/translate/tasks/YandexParseTask.java +++ /dev/null @@ -1,82 +0,0 @@ -/* - * This file is part of the DITA-OT Translate Plug-in project. - * See the accompanying LICENSE file for applicable licenses. - */ - -package fox.jason.translate.tasks; - -import org.apache.tools.ant.BuildException; -import org.apache.tools.ant.Task; -import org.json.simple.JSONObject; -import org.json.simple.JSONArray; -import org.json.simple.parser.JSONParser; -import org.json.simple.parser.ParseException; - -// -// Yandex Translation. Parses the response and extracts the translated text -// - -public class YandexParseTask extends Task { - - private String text; - private String outproperty; - private JSONParser parser; - - /** - * Creates a new YandexParseTask instance. - */ - public YandexParseTask() { - super(); - this.text = null; - this.outproperty = null; - this.parser = new JSONParser(); - } - - /** - * Method setText. - * - * @param text String - */ - public void setText(String text) { - this.text = text; - } - - /** - * Method setOutproperty. - * - * @param outproperty String - */ - public void setOutproperty(String outproperty) { - this.outproperty = outproperty; - } - - /** - * Method execute. - * - * @throws BuildException if something goes wrong - */ - @Override - public void execute() { - // @param text - The response from Yandex Translate - // @param outproperty - The property to output to - if (this.text == null) { - throw new BuildException("You must supply a response from Yandex Translate"); - } - if (this.outproperty == null) { - throw new BuildException("You must supply a property to output to"); - } - - try { - JSONObject json = (JSONObject) this.parser - .parse(this.text); - JSONArray texts = (JSONArray) json.get("text"); - String trans = (String) texts.get(0); - trans = trans.replaceAll("\\\\\"", "\""); - trans = trans.replaceAll("class=\"notranslate\"", "translate=\"no\""); - getProject().setProperty(this.outproperty, trans); - } catch (ParseException e) { - throw new BuildException("Unable to translate JSON", e); - } - - } -} diff --git a/src/main/resources/fox/jason/translate/antlib.xml b/src/main/resources/fox/jason/translate/antlib.xml deleted file mode 100644 index e82a321..0000000 --- a/src/main/resources/fox/jason/translate/antlib.xml +++ /dev/null @@ -1,568 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@@@@${target.dita.id}@@@@@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/test/add-translations/build.xml b/test/add-translations/build.xml deleted file mode 100644 index 48cfae6..0000000 --- a/test/add-translations/build.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - Expect that a translation service can populate unapproved translations - - - - - - - - \ No newline at end of file diff --git a/test/add-translations/expected.xlf b/test/add-translations/expected.xlf deleted file mode 100644 index 6f045c9..0000000 --- a/test/add-translations/expected.xlf +++ /dev/null @@ -1,39 +0,0 @@ - - - - -
- - - -
- -
- -
- - - -
- - - Cicero - Cicero - - - Loves or pursues or desires to obtain pain of itself, because it is pain, but occasionally circumstances occur in which toil and pain can procure him some great pleasure. - Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do - eiusmod tempor incididunt ut labore et dolore magna aliqua. - - - To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? - To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? - - - But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who avoids a pain that produces no resultant pleasure? - But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who avoids a pain that produces no resultant pleasure? - - -
-
- diff --git a/test/add-translations/test.properties b/test/add-translations/test.properties deleted file mode 100644 index b50e6a9..0000000 --- a/test/add-translations/test.properties +++ /dev/null @@ -1 +0,0 @@ -translate.service=dummy \ No newline at end of file diff --git a/test/add-translations/xliff-no-translations.xml b/test/add-translations/xliff-no-translations.xml deleted file mode 100644 index adb6770..0000000 --- a/test/add-translations/xliff-no-translations.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - -
- - - -
- -
- -
- - - -
- - Cicero Cicero - - Loves or pursues or desires to obtain pain of itself, because it is pain, but occasionally circumstances occur in which toil and pain can procure him some great pleasure. - Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do - eiusmod tempor incididunt ut labore et dolore magna aliqua. - - - To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? - But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who avoids a pain that produces no resultant pleasure? - -
-
diff --git a/test/approved-translations/build.xml b/test/approved-translations/build.xml deleted file mode 100644 index ea82a04..0000000 --- a/test/approved-translations/build.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - Expect that using a pre-exisiting XLIFF cache will pre-populate translations - - - - - - - - - - - - \ No newline at end of file diff --git a/test/approved-translations/document.ditamap b/test/approved-translations/document.ditamap deleted file mode 100644 index c643867..0000000 --- a/test/approved-translations/document.ditamap +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/test/approved-translations/expected.xlf b/test/approved-translations/expected.xlf deleted file mode 100644 index 1eb5236..0000000 --- a/test/approved-translations/expected.xlf +++ /dev/null @@ -1,39 +0,0 @@ - - - - -
- - - -
- -
- -
- - - -
- - - Cicero - Cicero - - - Loves or pursues or desires to obtain pain of itself, because it is pain, but occasionally circumstances occur in which toil and pain can procure him some great pleasure. - Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do - eiusmod tempor incididunt ut labore et dolore magna aliqua. - - - To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? - - - - But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who avoids a pain that produces no resultant pleasure? - - - -
-
- diff --git a/test/approved-translations/topic.dita b/test/approved-translations/topic.dita deleted file mode 100644 index 8123b10..0000000 --- a/test/approved-translations/topic.dita +++ /dev/null @@ -1,19 +0,0 @@ - - Cicero - -

- Loves or pursues or desires to obtain pain of itself, because it - is pain, but occasionally circumstances occur in which toil and - pain can procure him some great pleasure. -

-

- To take a trivial example, which of us ever undertakes laborious - physical exercise, except to obtain some advantage from it? -

-

- But who has any right to find fault with a man who chooses to - enjoy a pleasure that has no annoying consequences, or one who - avoids a pain that produces no resultant pleasure? -

- -
\ No newline at end of file diff --git a/test/approved-translations/translate-cache.xlf b/test/approved-translations/translate-cache.xlf deleted file mode 100644 index 929d50e..0000000 --- a/test/approved-translations/translate-cache.xlf +++ /dev/null @@ -1,41 +0,0 @@ - - - -
- - - -
- -
- -
- - - -
- - Cicero - Cicero - Loves or pursues or desires to obtain pain of itself, because it is pain, but occasionally circumstances occur in which toil and pain can procure him some great pleasure. - Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do - eiusmod tempor incididunt ut labore et dolore magna aliqua. - - - To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? - -
-
diff --git a/test/bing-response/build.xml b/test/bing-response/build.xml deleted file mode 100644 index 7154a80..0000000 --- a/test/bing-response/build.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - Expect that Bing translations can be read. - - - - - - - - - - - - \ No newline at end of file diff --git a/test/bing-response/expected.txt b/test/bing-response/expected.txt deleted file mode 100644 index 4863a82..0000000 --- a/test/bing-response/expected.txt +++ /dev/null @@ -1 +0,0 @@ -你好, 你叫什么名字? diff --git a/test/bing-response/response.json b/test/bing-response/response.json deleted file mode 100644 index 3dfa503..0000000 --- a/test/bing-response/response.json +++ /dev/null @@ -1,7 +0,0 @@ -[ - { - "translations":[ - {"text":"你好, 你叫什么名字?","to":"zh-Hans"} - ] - } -] \ No newline at end of file diff --git a/test/bing-response/result.txt b/test/bing-response/result.txt deleted file mode 100644 index 4863a82..0000000 --- a/test/bing-response/result.txt +++ /dev/null @@ -1 +0,0 @@ -你好, 你叫什么名字? diff --git a/test/bootstrap.xml b/test/bootstrap.xml deleted file mode 100644 index 3cebfdb..0000000 --- a/test/bootstrap.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/test/create-xliff/build.xml b/test/create-xliff/build.xml deleted file mode 100644 index 86fc8e7..0000000 --- a/test/create-xliff/build.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - Expect that simple DITA texts can be transformed into an XLIFF file - - - - - - - - - \ No newline at end of file diff --git a/test/create-xliff/document.ditamap b/test/create-xliff/document.ditamap deleted file mode 100644 index c643867..0000000 --- a/test/create-xliff/document.ditamap +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/test/create-xliff/expected.xlf b/test/create-xliff/expected.xlf deleted file mode 100644 index 6dbb08d..0000000 --- a/test/create-xliff/expected.xlf +++ /dev/null @@ -1,38 +0,0 @@ - - - - -
- - - -
- -
- -
- - - -
- - - Cicero - - - - Loves or pursues or desires to obtain pain of itself, because it is pain, but occasionally circumstances occur in which toil and pain can procure him some great pleasure. - - - - To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? - - - - But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who avoids a pain that produces no resultant pleasure? - - - -
-
- diff --git a/test/create-xliff/topic.dita b/test/create-xliff/topic.dita deleted file mode 100644 index 8123b10..0000000 --- a/test/create-xliff/topic.dita +++ /dev/null @@ -1,19 +0,0 @@ - - Cicero - -

- Loves or pursues or desires to obtain pain of itself, because it - is pain, but occasionally circumstances occur in which toil and - pain can procure him some great pleasure. -

-

- To take a trivial example, which of us ever undertakes laborious - physical exercise, except to obtain some advantage from it? -

-

- But who has any right to find fault with a man who chooses to - enjoy a pleasure that has no annoying consequences, or one who - avoids a pain that produces no resultant pleasure? -

- -
\ No newline at end of file diff --git a/test/decode-embedded/build.xml b/test/decode-embedded/build.xml deleted file mode 100644 index 50e44d3..0000000 --- a/test/decode-embedded/build.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - Expect that skeletons + XLIFF with embedded elements can be used to create DITA - - - - - - - - \ No newline at end of file diff --git a/test/decode-embedded/expected.dita b/test/decode-embedded/expected.dita deleted file mode 100644 index ed925a6..0000000 --- a/test/decode-embedded/expected.dita +++ /dev/null @@ -1,56 +0,0 @@ - - - - - Grundnutzung - -

Sie Wird Sie müssen die und prism.css prism.js die Autorendateien , die Sie heruntergeladen haben, auf Ihrer Seite einfügen. beispiel:

- <!DOCTYPE html> -<html> -<head> - ... - <link href="themes/prism.css" rel="stylesheet" /> - ></head> -<body> - ... - <script src="prism.js"></script> - </body> -</html> -

Prism tut sein Bestes, um bewährte Praktiken zu fördern. Daher funktioniert es nur mit < Code > Elementen, da das Markieren von Code ohne < Code > Element semantisch ungültig ist. Laut der HTML5-Spezifikation ist die language-xxxx empfohlene Methode, eine Code-Sprache zu definieren, eine Klasse, die Prism verwendet. Alternativ unterstützt Prism auch eine kürzere Version: lang-xxxx .

-

Um die Sache zu erleichtern, geht Prism jedoch davon aus, dass diese Sprachdefinition vererbt wird. Wenn also <code> mehrere Elemente die gleiche Sprache haben, können Sie die language-xxxx Klasse auf einem ihrer gemeinsamen Vorfahren hinzufügen. Auf diese Weise können Sie auch eine dokumentweite Standardsprache definieren, indem Sie eine language-xxxx Klasse auf dem <body> oder <html> Element hinzufügen.

-

Wenn Sie sich gegen die <code> Hervorhebung eines Elements entscheiden wollen, das ein Nachkomme eines Elements mit einer deklarierten Code-Sprache ist, können Sie die Klasse language-none dazu hinzufügen (oder eine nicht existierende Sprache, wirklich).

-

Die empfohlene Methode, einen Code-Block zu markieren (sowohl für die Semantik als auch für <pre> die Prisma), ist ein Element mit einem <code> Element im Inneren, wie es so ist:

- <pre><code class="language-css">p { color: red }</code></pre> -

Wenn Sie dieses Muster verwenden, erhält <pre> der language-xxxx Kurs automatisch die Klasse (wenn sie es nicht bereits hat) und wird als Codeblock gestylt.

-

Wenn Sie verhindern wollen, dass Elemente automatisch hervorgehoben werden, können Sie das Attribut data-manual auf dem <script> Element verwenden, das Sie für Prisma verwendet haben, und die API verwenden. beispiel:

- <script src="prism.js" data-manual></script> -
- Einsatz mit Webpack, Browserify, & Andere Bundler -

Wenn Sie Prism mit einem Bundler verwenden wollen, installieren Sie Prism mit npm :

- $ npm install prismjs -

Sie können dann import in Ihr Bündel einsteigen:

- import Prism from 'prismjs'; -

Um es einfach zu machen, Ihre Prism-Instanz mit nur den Sprachen und Plugins zu konfigurieren, die Sie benötigen, verwenden Sie das Babel-Plugin, Babel-Plugin-prismjs . Auf diese Weise können Sie die Mindestanzahl an Sprachen und Plugins laden, um Ihre Bedürfnisse zu erfüllen. Sehen Sie sich die Dokumentation des Plugins an, um die Konfigurationsdetails zu erfahren.

-
-
- Einsatz mit Knoten -

Wenn Sie Prism auf dem Server oder über die Kommandozeile verwenden wollen, kann Prism auch mit Node.js verwendet werden. Dies könnte nützlich sein, wenn Sie versuchen, statische HTML-Seiten mit hervorgehobenem Code für Umgebungen zu generieren, die keine Browser-side-JS unterstützen, wie AMP-Seiten .

-

beispiel:

- var Prism = require('prismjs'); -// The code snippet you want to highlight, as a string -var code = "var data = 1;"; -// Returns a highlighted HTML string -var html = Prism.highlight(code, Prism.languages.javascript, 'javascript'); -

Wenn prismjs Sie eine Anfrage stellen wollen, werden die markup Standardsprachen: javascript , css clike und geladen. Sie können mehr Sprachen mit dem loadLanguages() Programm laden, das automatisch die erforderlichen Abhängigkeiten bearbeitet.

-

beispiel:

- var Prism = require('prismjs'); -var loadLanguages = require('prismjs/components/'); -loadLanguages(['haml']); -// The code snippet you want to highlight, as a string -var code = "= ['hi', 'there', 'reader!'].join \" \""; -// Returns a highlighted HTML string -var html = Prism.highlight(code, Prism.languages.haml, 'haml'); -

Hinweis : Verwenden Sie loadLanguages() nicht mit Webpack oder einem anderen Bundler, da dies dazu führt, dass Webpack alle Sprachen und Plugins einschließt. Verwenden Sie das oben beschriebene Babel-Plugin.

-
- -
diff --git a/test/decode-embedded/skl/document.ditamap.skl b/test/decode-embedded/skl/document.ditamap.skl deleted file mode 100644 index b74e228..0000000 --- a/test/decode-embedded/skl/document.ditamap.skl +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - Books about stuff - A book about one thing - - - @@@42094@@@ - Jane - - Example Publishers - Austin, TX - - - - 1977 - - - - - - 1994 - - - 2006 - - - OASIS - - - - - - prismjs - - - - \ No newline at end of file diff --git a/test/decode-embedded/skl/topic.dita.skl b/test/decode-embedded/skl/topic.dita.skl deleted file mode 100644 index c00128f..0000000 --- a/test/decode-embedded/skl/topic.dita.skl +++ /dev/null @@ -1,56 +0,0 @@ - - - - - @@@59931@@@ - -

@@@60323@@@

- <!DOCTYPE html> -<html> -<head> - ... - <link href="themes/prism.css" rel="stylesheet" /> - ></head> -<body> - ... - <script src="prism.js"></script> - </body> -</html> -

@@@51849@@@

-

@@@50700@@@

-

@@@46850@@@

-

@@@25020@@@

- <pre><code class="language-css">p { color: red }</code></pre> -

@@@34362@@@

-

@@@25518@@@

- <script src="prism.js" data-manual></script> -
- @@@33578@@@ -

@@@32784@@@

- $ npm install prismjs -

@@@4035@@@

- import Prism from 'prismjs'; -

@@@57344@@@

-
-
- @@@11900@@@ -

@@@5250@@@

-

@@@60425@@@

- var Prism = require('prismjs'); -// The code snippet you want to highlight, as a string -var code = "var data = 1;"; -// Returns a highlighted HTML string -var html = Prism.highlight(code, Prism.languages.javascript, 'javascript'); -

@@@14934@@@

-

@@@60425@@@

- var Prism = require('prismjs'); -var loadLanguages = require('prismjs/components/'); -loadLanguages(['haml']); -// The code snippet you want to highlight, as a string -var code = "= ['hi', 'there', 'reader!'].join \" \""; -// Returns a highlighted HTML string -var html = Prism.highlight(code, Prism.languages.haml, 'haml'); -

@@@34183@@@

-
- -
\ No newline at end of file diff --git a/test/decode-embedded/translate.xlf b/test/decode-embedded/translate.xlf deleted file mode 100644 index b4b14cb..0000000 --- a/test/decode-embedded/translate.xlf +++ /dev/null @@ -1,77 +0,0 @@ - - - -
- - - -
- - This is a generic topic that is designed to test sub-topics in a variety of locations. It should always be referenced from a topicref element; specialized elements in this test get their OWN, very special topics. Dies ist ein generisches Thema, das darauf abzielt, Unterthemen an verschiedenen Orten zu testen. Es sollte immer von einem Element des Thrones aus erwähnt werden; Spezielle Elemente in diesem Test erhalten ihre OWN, ganz besondere Themen. - - -
- -
- - - -
- - Basic usage Grundnutzung - - You will need to include the prism.css and prism.js authoring files you downloaded in your page. Example: - Sie Wird Sie müssen die und prism.css prism.js die Autorendateien , die Sie heruntergeladen haben, auf Ihrer Seite einfügen. beispiel: - - - - - Prism does its best to encourage good practices. Therefore, it only works with <code> elements, since marking up code without a <code> element is semantically invalid. According to the HTML5 spec , the recommended way to define a code language is a language-xxxx class, which is what Prism uses. Alternatively, Prism also supports a shorter version: lang-xxxx . Prism tut sein Bestes, um bewährte Praktiken zu fördern. Daher funktioniert es nur mit < Code > Elementen, da das Markieren von Code ohne < Code > Element semantisch ungültig ist. Laut der HTML5-Spezifikation ist die language-xxxx empfohlene Methode, eine Code-Sprache zu definieren, eine Klasse, die Prism verwendet. Alternativ unterstützt Prism auch eine kürzere Version: lang-xxxx . - - To make things easier however, Prism assumes that this language definition is inherited. Therefore, if multiple <code> elements have the same language, you can add the language-xxxx class on one of their common ancestors. This way, you can also define a document-wide default language, by adding a language-xxxx class on the <body> or <html> element. Um die Sache zu erleichtern, geht Prism jedoch davon aus, dass diese Sprachdefinition vererbt wird. Wenn also <code> mehrere Elemente die gleiche Sprache haben, können Sie die language-xxxx Klasse auf einem ihrer gemeinsamen Vorfahren hinzufügen. Auf diese Weise können Sie auch eine dokumentweite Standardsprache definieren, indem Sie eine language-xxxx Klasse auf dem <body> oder <html> Element hinzufügen. - - If you want to opt-out of highlighting for a <code> element that is a descendant of an element with a declared code language, you can add the class language-none to it (or any non-existing language, really). Wenn Sie sich gegen die <code> Hervorhebung eines Elements entscheiden wollen, das ein Nachkomme eines Elements mit einer deklarierten Code-Sprache ist, können Sie die Klasse language-none dazu hinzufügen (oder eine nicht existierende Sprache, wirklich). - - The recommended way to mark up a code block (both for semantics and for Prism) is a <pre> element with a <code> element inside, like so: Die empfohlene Methode, einen Code-Block zu markieren (sowohl für die Semantik als auch für <pre> die Prisma), ist ein Element mit einem <code> Element im Inneren, wie es so ist: - - If you use that pattern, the <pre> will automatically get the language-xxxx class (if it doesn’t already have it) and will be styled as a code block. Wenn Sie dieses Muster verwenden, erhält <pre> der language-xxxx Kurs automatisch die Klasse (wenn sie es nicht bereits hat) und wird als Codeblock gestylt. - - If you want to prevent any elements from being automatically highlighted, you can use the attribute data-manual on the <script> element you used for prism and use the API . Example: Wenn Sie verhindern wollen, dass Elemente automatisch hervorgehoben werden, können Sie das Attribut data-manual auf dem <script> Element verwenden, das Sie für Prisma verwendet haben, und die API verwenden. beispiel: - - Usage with Webpack, Browserify, & Other Bundlers Einsatz mit Webpack, Browserify, & Andere Bundler - - If you want to use Prism with a bundler, install Prism with npm : Wenn Sie Prism mit einem Bundler verwenden wollen, installieren Sie Prism mit npm : - - You can then import into your bundle: Sie können dann import in Ihr Bündel einsteigen: - - To make it easy to configure your Prism instance with only the languages and plugins you need, use the babel plugin, babel-plugin-prismjs . This will allow you to load the minimum number of languages and plugins to satisfy your needs. See that plugin's documentation for configuration details. Um es einfach zu machen, Ihre Prism-Instanz mit nur den Sprachen und Plugins zu konfigurieren, die Sie benötigen, verwenden Sie das Babel-Plugin, Babel-Plugin-prismjs . Auf diese Weise können Sie die Mindestanzahl an Sprachen und Plugins laden, um Ihre Bedürfnisse zu erfüllen. Sehen Sie sich die Dokumentation des Plugins an, um die Konfigurationsdetails zu erfahren. - - Usage with Node Einsatz mit Knoten - - If you want to use Prism on the server or through the command line, Prism can be used with Node.js as well. This might be useful if you're trying to generate static HTML pages with highlighted code for environments that don't support browser-side JS, like AMP pages . Wenn Sie Prism auf dem Server oder über die Kommandozeile verwenden wollen, kann Prism auch mit Node.js verwendet werden. Dies könnte nützlich sein, wenn Sie versuchen, statische HTML-Seiten mit hervorgehobenem Code für Umgebungen zu generieren, die keine Browser-side-JS unterstützen, wie AMP-Seiten . - - Example: beispiel: - - Requiring prismjs will load the default languages: markup , css , clike and javascript . You can load more languages with the loadLanguages() utility, which will automatically handle any required dependencies. Wenn prismjs Sie eine Anfrage stellen wollen, werden die markup Standardsprachen: javascript , css clike und geladen. Sie können mehr Sprachen mit dem loadLanguages() Programm laden, das automatisch die erforderlichen Abhängigkeiten bearbeitet. - - Example: beispiel: - - Note : Do not use loadLanguages() with Webpack or another bundler, as this will cause Webpack to include all languages and plugins. Use the babel plugin described above. - Hinweis : Verwenden Sie loadLanguages() nicht mit Webpack oder einem anderen Bundler, da dies dazu führt, dass Webpack alle Sprachen und Plugins einschließt. Verwenden Sie das oben beschriebene Babel-Plugin. - - -
-
diff --git a/test/deepl-response/build.xml b/test/deepl-response/build.xml deleted file mode 100644 index 33eed61..0000000 --- a/test/deepl-response/build.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - Expect that Deepl translations can be read. - - - - - - - - - - - - \ No newline at end of file diff --git a/test/deepl-response/expected.txt b/test/deepl-response/expected.txt deleted file mode 100644 index 8095a18..0000000 --- a/test/deepl-response/expected.txt +++ /dev/null @@ -1 +0,0 @@ -Hallo, Welt! diff --git a/test/deepl-response/response.json b/test/deepl-response/response.json deleted file mode 100644 index cda2ba3..0000000 --- a/test/deepl-response/response.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "translations": [{ - "detected_source_language":"EN", - "text":"Hallo, Welt!" - }] -} \ No newline at end of file diff --git a/test/deepl-response/result.txt b/test/deepl-response/result.txt deleted file mode 100644 index 4863a82..0000000 --- a/test/deepl-response/result.txt +++ /dev/null @@ -1 +0,0 @@ -你好, 你叫什么名字? diff --git a/test/encode-embedded/build.xml b/test/encode-embedded/build.xml deleted file mode 100644 index d65aca2..0000000 --- a/test/encode-embedded/build.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - Expect that DITA with embedded elements can be transformed into an XLIFF file - - - - - - - - - \ No newline at end of file diff --git a/test/encode-embedded/document.ditamap b/test/encode-embedded/document.ditamap deleted file mode 100644 index c643867..0000000 --- a/test/encode-embedded/document.ditamap +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/test/encode-embedded/expected.xlf b/test/encode-embedded/expected.xlf deleted file mode 100644 index 7ebc6a6..0000000 --- a/test/encode-embedded/expected.xlf +++ /dev/null @@ -1,95 +0,0 @@ - - - - -
- - - -
- -
- -
- - - -
- - - Basic usage - - - - You will need to include the - prism.cssand - prism.jsfiles you downloaded in your page. Example: - - - - Prism does its best to encourage good authoring practices. Therefore,it only works with - <code>elements, since marking upcode without a - <code>element is semantically invalid. - According to the HTML5 spec, the recommended way to define a code language is a - language-xxxxclass, which is what Prism uses. Alternatively, Prism also supports a shorter version: - lang-xxxx. - - - - To make things easier however, Prism assumes that this language definition is inherited. Therefore, if multiple - <code>elements have the same language, you can add the - language-xxxxclass on one of their common ancestors. This way, you can also define a document-wide default language, by adding a - language-xxxxclass on the - <body>or - <html>element. - - - - If you want to opt-out of highlighting for a - <code>element that is a descendant of an element with a declared code language, you can add the class - language-noneto it (or any non-existing language, really). - - - - The - recommended way to mark up a code block(both for semantics and for Prism) is a - <pre>element with a - <code>element inside, like so: - - - - If you use that pattern, the - <pre>will automatically get the - language-xxxxclass (if it doesn’t already have it) and will be styled as a code block. - - - - If you want to prevent any elements from being automatically highlighted, you can use the attribute - data-manualon the - <script>element you used for prism and use the - API. Example: - - - - Usage with Webpack, Browserify, & Other Bundlers - - - - If you want to use Prism with a bundler, install Prism with - npm: - - - - You can then - importinto your bundle - - - - To make it easy to configure your Prism instance with only thelanguages and plugins you need, use the babel plugin, - babel-plugin-prismjs. This will allow you to load the minimum number of languages and plugins to satisfy your needs. See that plugin's documentation for configuration details - - - -
-
- diff --git a/test/encode-embedded/topic.dita b/test/encode-embedded/topic.dita deleted file mode 100644 index 5c81967..0000000 --- a/test/encode-embedded/topic.dita +++ /dev/null @@ -1,81 +0,0 @@ - - - - Basic usage - -

- You will need to include the prism.css and prism.js - files you downloaded in your page. Example: -

- <!DOCTYPE html> -<html> -<head> - ... - <link href="themes/prism.css" rel="stylesheet" /> - ></head> -<body> - ... - <script src="prism.js"></script> - </body> -</html> -

- Prism does its best to encourage good authoring practices. Therefore,it only - works with <code> elements, since marking upcode - without a <code> element is semantically invalid.According - to the HTML5 spec, the recommended way to define a code language is a language-xxxx - class, which is what Prism uses. Alternatively, Prism also supports a shorter version: lang-xxxx. -

-

- To make things easier however, Prism assumes that this language definition is - inherited. Therefore, if multiple <code> elements have - the same language, you can add the language-xxxx class on one - of their common ancestors. This way, you can also define a document-wide - default language, by adding a language-xxxx class on the <body> - or <html> element. -

-

- If you want to opt-out of highlighting for a <code> - element that is a descendant of an element with a declared code language, you - can add the class language-none to it (or any non-existing - language, really). -

-

- The recommended - way to mark up a code block (both for semantics and for Prism) is a <pre> - element with a <code> element inside, like so: -

- <pre><code class="language-css">p { color: red }</code></pre> -

- If you use that pattern, the <pre> will automatically get - the language-xxxx class (if it doesn’t already have it) and - will be styled as a code block. -

-

- If you want to prevent any elements from being automatically highlighted, you - can use the attribute data-manual on the <script> - element you used for prism and use the API. Example: -

-
- Usage with Webpack, Browserify, & Other Bundlers -

- If you want to use Prism with a bundler, install Prism with npm: -

- $ npm install prismjs -

- You can then import into your bundle -

- import Prism from 'prismjs'; -

- To make it easy to configure your Prism instance with only thelanguages and - plugins you need, use the babel plugin, babel-plugin-prismjs. - This will allow you to load the minimum number of languages and plugins to - satisfy your needs. See that plugin's documentation for configuration details -

-
- -
diff --git a/test/order.xsl b/test/order.xsl deleted file mode 100644 index c4a19df..0000000 --- a/test/order.xsl +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/test/watson-response/build.xml b/test/watson-response/build.xml deleted file mode 100644 index b0286a3..0000000 --- a/test/watson-response/build.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - - Expect that Watson translations can be read. - - - - - - - - - - - - - \ No newline at end of file diff --git a/test/watson-response/expected.txt b/test/watson-response/expected.txt deleted file mode 100644 index a19abfe..0000000 --- a/test/watson-response/expected.txt +++ /dev/null @@ -1 +0,0 @@ -Hola diff --git a/test/watson-response/response.json b/test/watson-response/response.json deleted file mode 100644 index 4b4b649..0000000 --- a/test/watson-response/response.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "translations": [ - { - "translation": "Hola" - } - ], - "word_count": 1, - "character_count": 5 -} \ No newline at end of file diff --git a/test/watson-response/result.txt b/test/watson-response/result.txt deleted file mode 100644 index 4863a82..0000000 --- a/test/watson-response/result.txt +++ /dev/null @@ -1 +0,0 @@ -你好, 你叫什么名字? diff --git a/test/xliff2dita/build.xml b/test/xliff2dita/build.xml deleted file mode 100644 index d89205f..0000000 --- a/test/xliff2dita/build.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - Expect that skeletons + XLIFF can be used to create DITA - - - - - - - - \ No newline at end of file diff --git a/test/xliff2dita/expected.dita b/test/xliff2dita/expected.dita deleted file mode 100644 index a787223..0000000 --- a/test/xliff2dita/expected.dita +++ /dev/null @@ -1,10 +0,0 @@ - - - - Cicero - -

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

-

Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

-

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

- -
diff --git a/test/xliff2dita/skl/document.ditamap.skl b/test/xliff2dita/skl/document.ditamap.skl deleted file mode 100644 index c643867..0000000 --- a/test/xliff2dita/skl/document.ditamap.skl +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/test/xliff2dita/skl/topic.dita.skl b/test/xliff2dita/skl/topic.dita.skl deleted file mode 100644 index a19d1a5..0000000 --- a/test/xliff2dita/skl/topic.dita.skl +++ /dev/null @@ -1,10 +0,0 @@ - - - - @@@46167@@@ - -

@@@54947@@@

-

@@@9962@@@

-

@@@19770@@@

- -
\ No newline at end of file diff --git a/test/xliff2dita/translate.xlf b/test/xliff2dita/translate.xlf deleted file mode 100644 index d0e0e26..0000000 --- a/test/xliff2dita/translate.xlf +++ /dev/null @@ -1,49 +0,0 @@ - - - -
- - - -
- -
- -
- - - -
- - Cicero Cicero - - Loves or pursues or desires to obtain pain of itself, because it is pain, but occasionally circumstances occur in which toil and pain can procure him some great pleasure. - Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do - eiusmod tempor incididunt ut labore et dolore magna aliqua. - - - To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? - Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris - nisi ut aliquip ex ea commodo consequat. - - But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who avoids a pain that produces no resultant pleasure? Duis aute irure dolor in reprehenderit in voluptate velit esse - cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat - cupidatat non proident, sunt in culpa qui officia deserunt mollit - anim id est laborum. - - -
-
diff --git a/test/yandex-response/build.xml b/test/yandex-response/build.xml deleted file mode 100644 index 3f5930f..0000000 --- a/test/yandex-response/build.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - Expect that Yandex translations can be read. - - - - - - - - - - - - \ No newline at end of file diff --git a/test/yandex-response/expected.txt b/test/yandex-response/expected.txt deleted file mode 100644 index f308173..0000000 --- a/test/yandex-response/expected.txt +++ /dev/null @@ -1 +0,0 @@ -Autolink URLs und E-Mails, verwenden Markdown-links in Kommentaren (erfordert plugin ) diff --git a/test/yandex-response/response.json b/test/yandex-response/response.json deleted file mode 100644 index 0b27cb8..0000000 --- a/test/yandex-response/response.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "code": 200, - "lang": "en-de", - "text": [ - "Autolink URLs und E-Mails, verwenden Markdown-links in Kommentaren (erfordert plugin ) " - ] -} \ No newline at end of file diff --git a/test/yandex-response/result.txt b/test/yandex-response/result.txt deleted file mode 100644 index 4863a82..0000000 --- a/test/yandex-response/result.txt +++ /dev/null @@ -1 +0,0 @@ -你好, 你叫什么名字?