- 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/create-xliff1-glossentry/build.xml b/test/create-xliff1-glossentry/build.xml
deleted file mode 100644
index ae0f223..0000000
--- a/test/create-xliff1-glossentry/build.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
-
-
-
- Expect that a DITA glossentry can be transformed into an XLIFF 1.2 file
-
-
-
-
-
-
-
-
-
diff --git a/test/create-xliff1-glossentry/document.ditamap b/test/create-xliff1-glossentry/document.ditamap
deleted file mode 100644
index 8a6ffd3..0000000
--- a/test/create-xliff1-glossentry/document.ditamap
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/test/create-xliff1-glossentry/expected.xlf b/test/create-xliff1-glossentry/expected.xlf
deleted file mode 100644
index f848e4d..0000000
--- a/test/create-xliff1-glossentry/expected.xlf
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/test/create-xliff1-glossentry/glossary.dita b/test/create-xliff1-glossentry/glossary.dita
deleted file mode 100644
index bc10203..0000000
--- a/test/create-xliff1-glossentry/glossary.dita
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
- Mnemonics
- Mnemonics are keywords by which each
- of the instrument's subsystems is referred to.
-
\ No newline at end of file
diff --git a/test/create-xliff1-glossentry/test.properties b/test/create-xliff1-glossentry/test.properties
deleted file mode 100644
index 5103fc5..0000000
--- a/test/create-xliff1-glossentry/test.properties
+++ /dev/null
@@ -1,2 +0,0 @@
-translate.service=dummy
-xliff.version=1
\ No newline at end of file
diff --git a/test/create-xliff1-text/build.xml b/test/create-xliff1-text/build.xml
deleted file mode 100644
index fdfc9e1..0000000
--- a/test/create-xliff1-text/build.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
-
-
-
- Expect that simple DITA texts can be transformed into an XLIFF 1.2 file
-
-
-
-
-
-
-
-
-
diff --git a/test/create-xliff1-text/document.ditamap b/test/create-xliff1-text/document.ditamap
deleted file mode 100644
index c643867..0000000
--- a/test/create-xliff1-text/document.ditamap
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
-
-
\ No newline at end of file
diff --git a/test/create-xliff1-text/expected.xlf b/test/create-xliff1-text/expected.xlf
deleted file mode 100644
index dacdcb6..0000000
--- a/test/create-xliff1-text/expected.xlf
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/test/create-xliff1-text/test.properties b/test/create-xliff1-text/test.properties
deleted file mode 100644
index 5103fc5..0000000
--- a/test/create-xliff1-text/test.properties
+++ /dev/null
@@ -1,2 +0,0 @@
-translate.service=dummy
-xliff.version=1
\ No newline at end of file
diff --git a/test/create-xliff1-text/topic.dita b/test/create-xliff1-text/topic.dita
deleted file mode 100644
index 8123b10..0000000
--- a/test/create-xliff1-text/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?
-
- The following lines are the origin of Lorem Ipsum:
-
-
-
-
-
- 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/create-xliff1-translate-no/notranslate-sub-topic.dita b/test/create-xliff1-translate-no/notranslate-sub-topic.dita
deleted file mode 100644
index ba6e677..0000000
--- a/test/create-xliff1-translate-no/notranslate-sub-topic.dita
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
- Cicero
-
-
- The following lines are the origin of Lorem Ipsum:
-
-
-
-
-
- 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/create-xliff1-translate-no/notranslate.topic.dita b/test/create-xliff1-translate-no/notranslate.topic.dita
deleted file mode 100644
index c598422..0000000
--- a/test/create-xliff1-translate-no/notranslate.topic.dita
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
- Cicero
-
-
- The following lines are the origin of Lorem Ipsum:
-
-
-
- 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/create-xliff1-translate-no/test.properties b/test/create-xliff1-translate-no/test.properties
deleted file mode 100644
index 5103fc5..0000000
--- a/test/create-xliff1-translate-no/test.properties
+++ /dev/null
@@ -1,2 +0,0 @@
-translate.service=dummy
-xliff.version=1
\ No newline at end of file
diff --git a/test/create-xliff1-translate-no/topic.dita b/test/create-xliff1-translate-no/topic.dita
deleted file mode 100644
index f0e2d96..0000000
--- a/test/create-xliff1-translate-no/topic.dita
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
- Cicero
-
-
- The following lines are the origin of Lorem Ipsum:
-
-
-
- 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-xliff1-translate-yes/build.xml b/test/create-xliff1-translate-yes/build.xml
deleted file mode 100644
index 33fd733..0000000
--- a/test/create-xliff1-translate-yes/build.xml
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
-
-
-
- Expect that DITA block elements with translate='yes' are included in XLIFF 1.2
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/test/create-xliff1-translate-yes/document.ditamap b/test/create-xliff1-translate-yes/document.ditamap
deleted file mode 100644
index c643867..0000000
--- a/test/create-xliff1-translate-yes/document.ditamap
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
-
-
\ No newline at end of file
diff --git a/test/create-xliff1-translate-yes/expected.xlf b/test/create-xliff1-translate-yes/expected.xlf
deleted file mode 100644
index c703fad..0000000
--- a/test/create-xliff1-translate-yes/expected.xlf
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/test/create-xliff1-translate-yes/test.properties b/test/create-xliff1-translate-yes/test.properties
deleted file mode 100644
index 5103fc5..0000000
--- a/test/create-xliff1-translate-yes/test.properties
+++ /dev/null
@@ -1,2 +0,0 @@
-translate.service=dummy
-xliff.version=1
\ No newline at end of file
diff --git a/test/create-xliff1-translate-yes/topic.dita b/test/create-xliff1-translate-yes/topic.dita
deleted file mode 100644
index a4c84f1..0000000
--- a/test/create-xliff1-translate-yes/topic.dita
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-
- Cicero
-
-
- The following lines are the origin of Lorem Ipsum:
-
-
- 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.
-
- 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/create-xliff2-glossentry/build.xml b/test/create-xliff2-glossentry/build.xml
deleted file mode 100644
index 3a06966..0000000
--- a/test/create-xliff2-glossentry/build.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
-
-
-
- Expect that simple DITA glossentry can be transformed into an XLIFF 2.1 file
-
-
-
-
-
-
-
-
-
diff --git a/test/create-xliff2-glossentry/document.ditamap b/test/create-xliff2-glossentry/document.ditamap
deleted file mode 100644
index 8a6ffd3..0000000
--- a/test/create-xliff2-glossentry/document.ditamap
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/test/create-xliff2-glossentry/expected.xlf b/test/create-xliff2-glossentry/expected.xlf
deleted file mode 100644
index 60121f3..0000000
--- a/test/create-xliff2-glossentry/expected.xlf
+++ /dev/null
@@ -1,27 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
- <term>
- </term>
-
-
-
-
-
-
-
-
-
diff --git a/test/create-xliff2-glossentry/glossary.dita b/test/create-xliff2-glossentry/glossary.dita
deleted file mode 100644
index bc10203..0000000
--- a/test/create-xliff2-glossentry/glossary.dita
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
- Mnemonics
- Mnemonics are keywords by which each
- of the instrument's subsystems is referred to.
-
\ No newline at end of file
diff --git a/test/create-xliff2-glossentry/test.properties b/test/create-xliff2-glossentry/test.properties
deleted file mode 100644
index 6cacfe6..0000000
--- a/test/create-xliff2-glossentry/test.properties
+++ /dev/null
@@ -1,2 +0,0 @@
-translate.service=dummy
-xliff.version=2
\ No newline at end of file
diff --git a/test/create-xliff2-text/build.xml b/test/create-xliff2-text/build.xml
deleted file mode 100644
index 9d659e1..0000000
--- a/test/create-xliff2-text/build.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
-
-
-
- Expect that simple DITA texts can be transformed into an XLIFF 2.1 file
-
-
-
-
-
-
-
-
-
diff --git a/test/create-xliff2-text/document.ditamap b/test/create-xliff2-text/document.ditamap
deleted file mode 100644
index c643867..0000000
--- a/test/create-xliff2-text/document.ditamap
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
-
-
\ No newline at end of file
diff --git a/test/create-xliff2-text/expected.xlf b/test/create-xliff2-text/expected.xlf
deleted file mode 100644
index 1cf42b3..0000000
--- a/test/create-xliff2-text/expected.xlf
+++ /dev/null
@@ -1,32 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/test/create-xliff2-text/test.properties b/test/create-xliff2-text/test.properties
deleted file mode 100644
index 6cacfe6..0000000
--- a/test/create-xliff2-text/test.properties
+++ /dev/null
@@ -1,2 +0,0 @@
-translate.service=dummy
-xliff.version=2
\ No newline at end of file
diff --git a/test/create-xliff2-text/topic.dita b/test/create-xliff2-text/topic.dita
deleted file mode 100644
index 8123b10..0000000
--- a/test/create-xliff2-text/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?
-
- The following lines are the origin of Lorem Ipsum:
-
-
-
-
-
- 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/create-xliff2-translate-no/notranslate-sub-topic.dita b/test/create-xliff2-translate-no/notranslate-sub-topic.dita
deleted file mode 100644
index ba6e677..0000000
--- a/test/create-xliff2-translate-no/notranslate-sub-topic.dita
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
- Cicero
-
-
- The following lines are the origin of Lorem Ipsum:
-
-
-
-
-
- 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/create-xliff2-translate-no/notranslate.topic.dita b/test/create-xliff2-translate-no/notranslate.topic.dita
deleted file mode 100644
index c598422..0000000
--- a/test/create-xliff2-translate-no/notranslate.topic.dita
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
- Cicero
-
-
- The following lines are the origin of Lorem Ipsum:
-
-
-
- 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/create-xliff2-translate-no/test.properties b/test/create-xliff2-translate-no/test.properties
deleted file mode 100644
index 6cacfe6..0000000
--- a/test/create-xliff2-translate-no/test.properties
+++ /dev/null
@@ -1,2 +0,0 @@
-translate.service=dummy
-xliff.version=2
\ No newline at end of file
diff --git a/test/create-xliff2-translate-no/topic.dita b/test/create-xliff2-translate-no/topic.dita
deleted file mode 100644
index f0e2d96..0000000
--- a/test/create-xliff2-translate-no/topic.dita
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
- Cicero
-
-
- The following lines are the origin of Lorem Ipsum:
-
-
-
- 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?
-
- The following lines are the origin of Lorem Ipsum:
-
-
- 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.
-
-
-
diff --git a/test/create-xliff2-ul-li-p/build.xml b/test/create-xliff2-ul-li-p/build.xml
deleted file mode 100644
index c44bead..0000000
--- a/test/create-xliff2-ul-li-p/build.xml
+++ /dev/null
@@ -1,39 +0,0 @@
-
-
-
-
-
- Expect that DITA with a p inside a li can be transformed into an XLIFF 2.0 file
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/test/create-xliff2-ul-li-p/document.ditamap b/test/create-xliff2-ul-li-p/document.ditamap
deleted file mode 100644
index c643867..0000000
--- a/test/create-xliff2-ul-li-p/document.ditamap
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
-
-
\ No newline at end of file
diff --git a/test/create-xliff2-ul-li-p/expected.xlf b/test/create-xliff2-ul-li-p/expected.xlf
deleted file mode 100644
index b0339a2..0000000
--- a/test/create-xliff2-ul-li-p/expected.xlf
+++ /dev/null
@@ -1,46 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <b>
- </b>
-
-
-
-
-
-
- <p>
- </p>
- <p>
- </p>
-
-
-
-
-
-
-
-
-
diff --git a/test/create-xliff2-ul-li-p/test.properties b/test/create-xliff2-ul-li-p/test.properties
deleted file mode 100644
index 6cacfe6..0000000
--- a/test/create-xliff2-ul-li-p/test.properties
+++ /dev/null
@@ -1,2 +0,0 @@
-translate.service=dummy
-xliff.version=2
\ No newline at end of file
diff --git a/test/create-xliff2-ul-li-p/topic.dita b/test/create-xliff2-ul-li-p/topic.dita
deleted file mode 100644
index f27b514..0000000
--- a/test/create-xliff2-ul-li-p/topic.dita
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
- Cicero
-
-
- The following lines are the origin of "Lorem Ipsum":
-
-
-
- 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?
-
- 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/preapproved-cache-xliff1/translate-cache.xlf b/test/preapproved-cache-xliff1/translate-cache.xlf
deleted file mode 100644
index 6023d2a..0000000
--- a/test/preapproved-cache-xliff1/translate-cache.xlf
+++ /dev/null
@@ -1,41 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Cicero
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
- eiusmod tempor incididunt ut labore et dolore magna aliqua.
-
-
-
-
-
-
diff --git a/test/preapproved-cache-xliff2/build.xml b/test/preapproved-cache-xliff2/build.xml
deleted file mode 100644
index c056df4..0000000
--- a/test/preapproved-cache-xliff2/build.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-
-
-
-
-
- Expect that using a pre-exisiting XLIFF 2.1 cache will pre-populate translations
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/test/preapproved-cache-xliff2/document.ditamap b/test/preapproved-cache-xliff2/document.ditamap
deleted file mode 100644
index c643867..0000000
--- a/test/preapproved-cache-xliff2/document.ditamap
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
-
-
\ No newline at end of file
diff --git a/test/preapproved-cache-xliff2/expected.xlf b/test/preapproved-cache-xliff2/expected.xlf
deleted file mode 100644
index 193bf36..0000000
--- a/test/preapproved-cache-xliff2/expected.xlf
+++ /dev/null
@@ -1,33 +0,0 @@
-
-
-
-
-
-
-
-
- Cicero
-
-
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
- eiusmod tempor incididunt ut labore et dolore magna aliqua.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/test/preapproved-cache-xliff2/test.properties b/test/preapproved-cache-xliff2/test.properties
deleted file mode 100644
index e93772c..0000000
--- a/test/preapproved-cache-xliff2/test.properties
+++ /dev/null
@@ -1,2 +0,0 @@
-translate.cachefile=/Users/jasonfox/Workspace/dita/dita-ot-3.5/plugins/fox.jason.translate.xliff/test/preapproved-cache-xliff2/translate-cache.xlf
-xliff.version=2
\ No newline at end of file
diff --git a/test/preapproved-cache-xliff2/topic.dita b/test/preapproved-cache-xliff2/topic.dita
deleted file mode 100644
index 8123b10..0000000
--- a/test/preapproved-cache-xliff2/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/preapproved-cache-xliff2/translate-cache.xlf b/test/preapproved-cache-xliff2/translate-cache.xlf
deleted file mode 100644
index 5b79401..0000000
--- a/test/preapproved-cache-xliff2/translate-cache.xlf
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
-
-
-
-
-
- Cicero
-
-
-
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
- eiusmod tempor incididunt ut labore et dolore magna aliqua.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/test/watson-response/build.xml b/test/watson-response/build.xml
deleted file mode 100644
index 5674b86..0000000
--- a/test/watson-response/build.xml
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
-
-
-
- Expect that Watson translations can be read.
-
-
-
-
-
-
-
-
-
-
-
-
-
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/xliff1-dita-embedded/build.xml b/test/xliff1-dita-embedded/build.xml
deleted file mode 100644
index d35a841..0000000
--- a/test/xliff1-dita-embedded/build.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
-
-
- Expect that skeletons + XLIFF 1.0 with embedded elements can be used to create DITA
-
-
-
-
-
-
-
-
diff --git a/test/xliff1-dita-embedded/expected.dita b/test/xliff1-dita-embedded/expected.dita
deleted file mode 100644
index 0959d92..0000000
--- a/test/xliff1-dita-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:
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/xliff1-dita-embedded/skl/document.ditamap.skl b/test/xliff1-dita-embedded/skl/document.ditamap.skl
deleted file mode 100644
index b74e228..0000000
--- a/test/xliff1-dita-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/xliff1-dita-embedded/skl/topic.dita.skl b/test/xliff1-dita-embedded/skl/topic.dita.skl
deleted file mode 100644
index c00128f..0000000
--- a/test/xliff1-dita-embedded/skl/topic.dita.skl
+++ /dev/null
@@ -1,56 +0,0 @@
-
-
-
-
- @@@59931@@@
-
-
- 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/xliff1-dita-embedded/test.properties b/test/xliff1-dita-embedded/test.properties
deleted file mode 100644
index 5103fc5..0000000
--- a/test/xliff1-dita-embedded/test.properties
+++ /dev/null
@@ -1,2 +0,0 @@
-translate.service=dummy
-xliff.version=1
\ No newline at end of file
diff --git a/test/xliff1-dita-embedded/translate.xlf b/test/xliff1-dita-embedded/translate.xlf
deleted file mode 100644
index 76f5335..0000000
--- a/test/xliff1-dita-embedded/translate.xlf
+++ /dev/null
@@ -1,77 +0,0 @@
-
-
-
-
-
-
-
-
-
- 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.
-
-
-
-
-
-
-
-
-
-
- Grundnutzung
-
-
- SieWirdSie müssen die und prism.css prism.js die Autorendateien , die Sie heruntergeladen haben, auf Ihrer Seite einfügen. beispiel:
-
-
-
-
- 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:
-
- 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:
-
- Einsatz mit Webpack, Browserify, & Andere Bundler
-
- Wenn Sie Prism mit einem Bundler verwenden wollen, installieren Sie Prism mit npm :
-
- Sie können dann import in Ihr Bündel einsteigen:
-
- 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:
-
- 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:
-
-
- 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/xliff1-dita/build.xml b/test/xliff1-dita/build.xml
deleted file mode 100644
index 7c045d0..0000000
--- a/test/xliff1-dita/build.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
-
-
- Expect that skeletons + XLIFF 1.2 can be used to create DITA
-
-
-
-
-
-
-
-
diff --git a/test/xliff1-dita/expected.dita b/test/xliff1-dita/expected.dita
deleted file mode 100644
index a787223..0000000
--- a/test/xliff1-dita/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/xliff1-dita/skl/document.ditamap.skl b/test/xliff1-dita/skl/document.ditamap.skl
deleted file mode 100644
index c643867..0000000
--- a/test/xliff1-dita/skl/document.ditamap.skl
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
-
-
\ No newline at end of file
diff --git a/test/xliff1-dita/skl/topic.dita.skl b/test/xliff1-dita/skl/topic.dita.skl
deleted file mode 100644
index a19d1a5..0000000
--- a/test/xliff1-dita/skl/topic.dita.skl
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
- @@@46167@@@
-
-
@@@54947@@@
-
@@@9962@@@
-
@@@19770@@@
-
-
\ No newline at end of file
diff --git a/test/xliff1-dita/test.properties b/test/xliff1-dita/test.properties
deleted file mode 100644
index 5103fc5..0000000
--- a/test/xliff1-dita/test.properties
+++ /dev/null
@@ -1,2 +0,0 @@
-translate.service=dummy
-xliff.version=1
\ No newline at end of file
diff --git a/test/xliff1-dita/translate.xlf b/test/xliff1-dita/translate.xlf
deleted file mode 100644
index 2b7f565..0000000
--- a/test/xliff1-dita/translate.xlf
+++ /dev/null
@@ -1,49 +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/xliff1-translate/build.xml b/test/xliff1-translate/build.xml
deleted file mode 100644
index b43df5d..0000000
--- a/test/xliff1-translate/build.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
-
-
- Expect that a translation service can populate unapproved translations for XLIFF 1.2
-
-
-
-
-
-
-
-
diff --git a/test/xliff1-translate/expected.xlf b/test/xliff1-translate/expected.xlf
deleted file mode 100644
index bc8703e..0000000
--- a/test/xliff1-translate/expected.xlf
+++ /dev/null
@@ -1,31 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- Cicero
-
-
-
- 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/xliff1-translate/test.properties b/test/xliff1-translate/test.properties
deleted file mode 100644
index 5103fc5..0000000
--- a/test/xliff1-translate/test.properties
+++ /dev/null
@@ -1,2 +0,0 @@
-translate.service=dummy
-xliff.version=1
\ No newline at end of file
diff --git a/test/xliff1-translate/translate.xlf b/test/xliff1-translate/translate.xlf
deleted file mode 100644
index bc8703e..0000000
--- a/test/xliff1-translate/translate.xlf
+++ /dev/null
@@ -1,31 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- Cicero
-
-
-
- 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/xliff1-translate/xliff-no-translations.xml b/test/xliff1-translate/xliff-no-translations.xml
deleted file mode 100644
index b7169b6..0000000
--- a/test/xliff1-translate/xliff-no-translations.xml
+++ /dev/null
@@ -1,42 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Cicero
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
- eiusmod tempor incididunt ut labore et dolore magna aliqua.
-
-
-
-
-
-
-
diff --git a/test/xliff2-dita-embedded/build.xml b/test/xliff2-dita-embedded/build.xml
deleted file mode 100644
index 7f4596f..0000000
--- a/test/xliff2-dita-embedded/build.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
-
-
- Expect that skeletons + XLIFF 2.1 with embedded elements can be used to create DITA
-
-
-
-
-
-
-
-
diff --git a/test/xliff2-dita-embedded/expected.dita b/test/xliff2-dita-embedded/expected.dita
deleted file mode 100644
index 1036984..0000000
--- a/test/xliff2-dita-embedded/expected.dita
+++ /dev/null
@@ -1,56 +0,0 @@
-
-
-
-
- Grundsätzliche Verwendung
-
-
PRISMA tut sein bestes, um bewährte Praktiken zu fördern. Daher funktioniert es nur mit <code> Elemente, da die Auszeichnung von code ohne <code> element ist semantisch ungültig. Gemäß der HTML5-Spezifikation die empfohlene Art und Weise zu definieren, die eine code-Sprache ist eine Sprache-xxxx Klasse, das ist das, was Prism verwendet. Alternativ PRISMA unterstützt auch eine kürzere version: lang-xxxx .
-
Dinge einfacher zu machen, jedoch PRISMA geht davon aus, dass diese Sprache-definition vererbt wird. Daher, wenn mehrere <code> Elemente haben die gleiche Sprache, können Sie die Sprache-xxxx Klasse auf einem Ihrer gemeinsamen Vorfahren. Auf diese Weise können Sie auch definieren ein Dokument-weiten Standard-Sprache ist, indem Sie ein Sprache-xxxx Klasse auf dem <body> oder <html> element.
-
Wenn Sie wollen opt-out-highlighting für eine <code> element, das ein Nachfahre eines Elements mit einem deklarierten code-Sprache, die Sie hinzufügen können, die Klasse Sprache-keine um es (oder nicht vorhandenen Sprache, wirklich).
-
Die empfohlene Methode zur Markierung einen code-block (sowohl für die Semantik und für PRISMA) ist ein <pre> element mit einem <code> element im inneren, etwa so:
- <pre><code class="language-css">p { color: red }</code></pre>
-
Wenn Sie das Muster, die <pre> erhalten automatisch den Sprache-xxxx Klasse (wenn es nicht bereits haben) und gestylt werden wie ein code-block.
-
Wenn Sie verhindern möchten, dass alle Elemente aus, die automatisch markiert ist, können Sie mithilfe der attribute Daten-Handbuch auf der <script> element, die Sie für prism und verwenden Sie die API . Beispiel:
- <script src="prism.js" data-manual></script>
-
- Verwendung mit Webpack, Browserify, & Andere Bundlers
-
Wenn Sie verwenden möchten PRISMA mit bundler installieren Sie PRISMA mit npm :
- $ npm install prismjs
-
Sie können dann import in Ihr bündeln:
- import Prism from 'prismjs';
-
Um es einfach zu konfigurieren Sie Ihre Prism-Instanz nur mit den Sprachen und plugins, die Sie benötigen, verwenden Sie den babel-plugin, babel-plugin-prismjs . Dies ermöglicht es Ihnen, laden Sie die minimale Anzahl von Sprachen und plugins, um Ihre Bedürfnisse zu befriedigen. Sehen, dass der plugin-Dokumentation für details zur Konfiguration.
-
-
- Verwendung mit Knoten
-
Wenn Sie möchten, verwenden Sie Prism auf die server oder die über die Befehlszeile, PRISMA kann verwendet werden, mit Node.js wie gut. Dies kann nützlich sein, wenn Sie versuchen, generieren von statischen HTML-Seiten mit hervorgehobenen code für Umgebungen, die keine Unterstützung für browser-side JS, 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');
-
Erfordern prismjs lädt die Standard-Sprachen: markup , css , gleich und javascript . Laden Sie weitere Sprachen mit der loadLanguages() Dienstprogramm, das automatisch verarbeitet alle erforderlichen Abhängigkeiten.
-
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 : Tun nicht verwenden loadLanguages() mit Webpack oder anderen bundler, da dies dazu führen Webpack alle Sprachen und plugins. Verwenden Sie den babel-plugin wie oben beschrieben.
- 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/xliff2-dita-embedded/test.properties b/test/xliff2-dita-embedded/test.properties
deleted file mode 100644
index 6cacfe6..0000000
--- a/test/xliff2-dita-embedded/test.properties
+++ /dev/null
@@ -1,2 +0,0 @@
-translate.service=dummy
-xliff.version=2
\ No newline at end of file
diff --git a/test/xliff2-dita-embedded/translate.xlf b/test/xliff2-dita-embedded/translate.xlf
deleted file mode 100644
index ba67bbf..0000000
--- a/test/xliff2-dita-embedded/translate.xlf
+++ /dev/null
@@ -1,467 +0,0 @@
-
-
-
-
-
-
-
- PRISMA JS-Plug-in
-
-
-
-
-
-
- prismjs
-
-
-
-
-
-
-
-
-
- Grundsätzliche Verwendung
-
-
-
-
-
- <codeph>
- </codeph>
- <codeph>
- </codeph>
- <ph xml:lang="de">
- </ph>
-
-
-
- Sie müssen die
- prism.css
- und
- prism.js
-
-
- authoring
- Dateien, die Sie heruntergeladen haben, in Ihre Seite aufnehmen. Beispiel:
-
-
-
-
-
- <b>
- </b>
- <i>
- </i>
- <xref format="html" scope="external" href="https://www.w3.org/TR/html52/textlevel-semantics.html#the-code-element">
- </xref>
- <codeph>
- </codeph>
- <codeph>
- </codeph>
-
-
-
- PRISMA tut sein bestes, um bewährte Praktiken zu fördern. Daher funktioniert es nur mit
- <code>
- Elemente, da die Auszeichnung von code ohne
- <code>
- element ist semantisch ungültig.
- Gemäß der HTML5-Spezifikation
- die empfohlene Art und Weise zu definieren, die eine code-Sprache ist eine
- Sprache-xxxx
- Klasse, das ist das, was Prism verwendet. Alternativ PRISMA unterstützt auch eine kürzere version:
- lang-xxxx
- .
-
-
-
-
-
- <codeph>
- </codeph>
- <codeph>
- </codeph>
- <codeph>
- </codeph>
- <codeph>
- </codeph>
- <codeph>
- </codeph>
-
-
-
- Dinge einfacher zu machen, jedoch PRISMA geht davon aus, dass diese Sprache-definition vererbt wird. Daher, wenn mehrere
- <code>
- Elemente haben die gleiche Sprache, können Sie die
- Sprache-xxxx
- Klasse auf einem Ihrer gemeinsamen Vorfahren. Auf diese Weise können Sie auch definieren ein Dokument-weiten Standard-Sprache ist, indem Sie ein
- Sprache-xxxx
- Klasse auf dem
- <body>
- oder
- <html>
- element.
-
-
-
-
-
- <codeph>
- </codeph>
- <codeph>
- </codeph>
-
-
-
- Wenn Sie wollen opt-out-highlighting für eine
- <code>
- element, das ein Nachfahre eines Elements mit einem deklarierten code-Sprache, die Sie hinzufügen können, die Klasse
- Sprache-keine
- um es (oder nicht vorhandenen Sprache, wirklich).
-
-
-
-
-
- <xref format="html" scope="external" href="https://www.w3.org/TR/html5/grouping-content.html#the-pre-element">
- </xref>
- <codeph>
- </codeph>
- <codeph>
- </codeph>
-
-
-
- Die
- empfohlene Methode zur Markierung einen code-block
- (sowohl für die Semantik und für PRISMA) ist ein
- <pre>
- element mit einem
- <code>
- element im inneren, etwa so:
-
-
-
-
-
- <codeph>
- </codeph>
- <codeph>
- </codeph>
-
-
-
- Wenn Sie das Muster, die
- <pre>
- erhalten automatisch den
- Sprache-xxxx
- Klasse (wenn es nicht bereits haben) und gestylt werden wie ein code-block.
-
-
-
-
-
- <codeph>
- </codeph>
- <codeph>
- </codeph>
- <xref format="html" scope="external" href="https://prismjs.com/extending.html#api">
- </xref>
-
-
-
- Wenn Sie verhindern möchten, dass alle Elemente aus, die automatisch markiert ist, können Sie mithilfe der attribute
- Daten-Handbuch
- auf der
- <script>
- element, die Sie für prism und verwenden Sie die
- API
- . Beispiel:
-
-
-
-
-
-
- Verwendung mit Webpack, Browserify, & Andere Bundlers
-
-
-
-
-
- <codeph>
- </codeph>
-
-
-
- Wenn Sie verwenden möchten PRISMA mit bundler installieren Sie PRISMA mit
- npm
- :
-
-
-
-
-
- <codeph outputclass="language-js">
- </codeph>
-
-
-
- Sie können dann
- import
- in Ihr bündeln:
-
-
-
-
-
- <xref format="html" scope="external" href="https://github.com/mAAdhaTTah/babel-plugin-prismjs">
- </xref>
-
-
-
- Um es einfach zu konfigurieren Sie Ihre Prism-Instanz nur mit den Sprachen und plugins, die Sie benötigen, verwenden Sie den babel-plugin,
- babel-plugin-prismjs
- . Dies ermöglicht es Ihnen, laden Sie die minimale Anzahl von Sprachen und plugins, um Ihre Bedürfnisse zu befriedigen. Sehen, dass der plugin-Dokumentation für details zur Konfiguration.
-
-
-
-
-
-
- Verwendung mit Knoten
-
-
-
-
-
- <xref format="html" scope="external" href="https://www.ampproject.org/">
- </xref>
-
-
-
- Wenn Sie möchten, verwenden Sie Prism auf die server oder die über die Befehlszeile, PRISMA kann verwendet werden, mit Node.js wie gut. Dies kann nützlich sein, wenn Sie versuchen, generieren von statischen HTML-Seiten mit hervorgehobenen code für Umgebungen, die keine Unterstützung für browser-side JS, wie
- AMP Seiten
- .
-
-
-
-
-
-
- Beispiel:
-
-
-
-
-
- <codeph>
- </codeph>
- <codeph>
- </codeph>
- <codeph>
- </codeph>
- <codeph>
- </codeph>
- <codeph>
- </codeph>
- <codeph outputclass="language-javascript">
- </codeph>
-
-
-
- Erfordern
- prismjs
- lädt die Standard-Sprachen:
- markup
- ,
- css
- ,
- gleich
- und
- javascript
- . Laden Sie weitere Sprachen mit der
- loadLanguages()
- Dienstprogramm, das automatisch verarbeitet alle erforderlichen Abhängigkeiten.
-
-
-
-
-
-
- Beispiel:
-
-
-
-
-
- <b>
- </b>
- <i>
- </i>
- <codeph outputclass="language-javascript">
- </codeph>
-
-
-
-
-
- Hinweis
- : Tun
- nicht
- verwenden
- loadLanguages()
- mit Webpack oder anderen bundler, da dies dazu führen Webpack alle Sprachen und plugins. Verwenden Sie den babel-plugin wie oben beschrieben.
-
-
-
-
-
diff --git a/test/xliff2-dita/build.xml b/test/xliff2-dita/build.xml
deleted file mode 100644
index 2746dd1..0000000
--- a/test/xliff2-dita/build.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
-
-
- Expect that skeletons + XLIFF 2.0 can be used to create DITA
-
-
-
-
-
-
-
-
diff --git a/test/xliff2-dita/expected.dita b/test/xliff2-dita/expected.dita
deleted file mode 100644
index a787223..0000000
--- a/test/xliff2-dita/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/xliff2-dita/skl/document.ditamap.skl b/test/xliff2-dita/skl/document.ditamap.skl
deleted file mode 100644
index c643867..0000000
--- a/test/xliff2-dita/skl/document.ditamap.skl
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
-
-
\ No newline at end of file
diff --git a/test/xliff2-dita/skl/topic.dita.skl b/test/xliff2-dita/skl/topic.dita.skl
deleted file mode 100644
index a19d1a5..0000000
--- a/test/xliff2-dita/skl/topic.dita.skl
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
- @@@46167@@@
-
-
@@@54947@@@
-
@@@9962@@@
-
@@@19770@@@
-
-
\ No newline at end of file
diff --git a/test/xliff2-dita/test.properties b/test/xliff2-dita/test.properties
deleted file mode 100644
index 6cacfe6..0000000
--- a/test/xliff2-dita/test.properties
+++ /dev/null
@@ -1,2 +0,0 @@
-translate.service=dummy
-xliff.version=2
\ No newline at end of file
diff --git a/test/xliff2-dita/translate.xlf b/test/xliff2-dita/translate.xlf
deleted file mode 100644
index 7148bdb..0000000
--- a/test/xliff2-dita/translate.xlf
+++ /dev/null
@@ -1,41 +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/xliff2-translate/build.xml b/test/xliff2-translate/build.xml
deleted file mode 100644
index 1d27973..0000000
--- a/test/xliff2-translate/build.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
-
-
- Expect that a translation service can populate unapproved translations for XLIFF 2.1
-
-
-
-
-
-
-
-
diff --git a/test/xliff2-translate/expected.xlf b/test/xliff2-translate/expected.xlf
deleted file mode 100644
index 6c6c2ea..0000000
--- a/test/xliff2-translate/expected.xlf
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
-
-
-
- Cicero
-
-
-
-
-
-
- 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/xliff2-translate/test.properties b/test/xliff2-translate/test.properties
deleted file mode 100644
index 6cacfe6..0000000
--- a/test/xliff2-translate/test.properties
+++ /dev/null
@@ -1,2 +0,0 @@
-translate.service=dummy
-xliff.version=2
\ No newline at end of file
diff --git a/test/xliff2-translate/translate.xlf b/test/xliff2-translate/translate.xlf
deleted file mode 100644
index 6c6c2ea..0000000
--- a/test/xliff2-translate/translate.xlf
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
-
-
-
- Cicero
-
-
-
-
-
-
- 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/xliff2-translate/xliff-no-translations.xml b/test/xliff2-translate/xliff-no-translations.xml
deleted file mode 100644
index 5b79401..0000000
--- a/test/xliff2-translate/xliff-no-translations.xml
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
-
-
-
-
-
- Cicero
-
-
-
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
- eiusmod tempor incididunt ut labore et dolore magna aliqua.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/test/yandex-response/build.xml b/test/yandex-response/build.xml
deleted file mode 100644
index 0ee9fe7..0000000
--- a/test/yandex-response/build.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
- Expect that Yandex translations can be read.
-
-
-
-
-
-
-
-
-
-
-
-
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 @@
-你好, 你叫什么名字?