diff --git a/lib/translate-1.2.jar b/lib/translate-1.2.jar deleted file mode 100644 index 8f5148c..0000000 Binary files a/lib/translate-1.2.jar and /dev/null differ diff --git a/lib/translate-1.3.jar b/lib/translate-1.3.jar new file mode 100644 index 0000000..78bdae1 Binary files /dev/null and b/lib/translate-1.3.jar differ diff --git a/plugin.xml b/plugin.xml index 9ee8e0e..9f9a91f 100755 --- a/plugin.xml +++ b/plugin.xml @@ -6,7 +6,7 @@ --> - + 4.0.0 fox.jason translate - 1.2 + 1.3 diff --git a/src/fox/jason/translate/tasks/ReinsertDoctypeTask.java b/src/fox/jason/translate/tasks/ReinsertDoctypeTask.java index ed5b6b7..2fbd375 100644 --- a/src/fox/jason/translate/tasks/ReinsertDoctypeTask.java +++ b/src/fox/jason/translate/tasks/ReinsertDoctypeTask.java @@ -51,6 +51,10 @@ private String getDoctype(String doctype) { type = "PUBLIC \"-//OASIS//DTD DITA Glossary Entry//EN\" \"glossentry.dtd\""; break; + case "glossgroup": + type = + "PUBLIC \"-//OASIS//DTD DITA Glossary Group//EN\" \"glossgroup.dtd\""; + break; case "glossary": type = "PUBLIC \"-//OASIS//DTD DITA Glossary//EN\" \"glossary.dtd\""; break; @@ -122,6 +126,10 @@ private String getDoctype(String doctype) { case "ditaval": type = "PUBLIC \"-//OASIS//DTD DITA DITAVAL//EN\" \"ditaval.dtd\""; break; + case "troubleshooting": + type = + "PUBLIC \"-//OASIS//DTD DITA Troubleshooting//EN\" \"troubleshooting.dtd\""; + break; default: getProject().log("Unknown Doctype: " + doctype, 1); } diff --git a/test/bootstrap.xml b/test/bootstrap.xml index 55235c7..01afd7c 100644 --- a/test/bootstrap.xml +++ b/test/bootstrap.xml @@ -67,7 +67,7 @@ + file="${basedir}/out/translate.xlf" + flags="gi" + match="id=\".*\"" + replace="id=""" + /> - + Basic usage - + You will need to include the - prism.cssand - prism.jsfiles you downloaded in your page. Example: + 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. + <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. + <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). + <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: + 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. + <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: + 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: + npm: - + You can then - importinto your bundle + 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 + 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 index ae0f223..e8a69c8 100644 --- a/test/create-xliff1-glossentry/build.xml +++ b/test/create-xliff1-glossentry/build.xml @@ -12,7 +12,14 @@ + + - Mnemonicsare keywords by which each of the instrument's subsystems is referred to. + Mnemonicsare keywords by which each of the instrument's subsystems is referred to. diff --git a/test/create-xliff1-translate-no/build.xml b/test/create-xliff1-translate-no/build.xml index eef21f3..a50381f 100644 --- a/test/create-xliff1-translate-no/build.xml +++ b/test/create-xliff1-translate-no/build.xml @@ -65,6 +65,13 @@ replace="" /> + + The following lines are the origin of - Lorem Ipsum: + Lorem Ipsum: @@ -53,12 +53,12 @@ The following lines are the origin of - Lorem Ipsum: + 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. + 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-xliff1-translate-yes/build.xml b/test/create-xliff1-translate-yes/build.xml index 33fd733..bf1dbf6 100644 --- a/test/create-xliff1-translate-yes/build.xml +++ b/test/create-xliff1-translate-yes/build.xml @@ -32,6 +32,13 @@ match="<pc.*>" replace="<pc>" /> + + The following lines are the origin of - Lorem Ipsum: + 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. + pain of itself, because it is pain, but occasionally circumstances occur in which toil and pain can procure him some great pleasure.