diff --git a/Prototypes/PacletInfo.m b/Prototypes/PacletInfo.m index d9512a8..41d4584 100644 --- a/Prototypes/PacletInfo.m +++ b/Prototypes/PacletInfo.m @@ -18,7 +18,7 @@ Context -> {"Prototypes`"}, Symbols -> {"Prototypes`AdjectiveQ","Prototypes`AdverbQ","Prototypes`AlphaChannelQ","Prototypes`Antepenultimate", - "Prototypes`Antonyms","Prototypes`BoxSyntaxQ","Prototypes`BuildCompilerLibraries", + "Prototypes`BoxSyntaxQ","Prototypes`BuildCompilerLibraries", "Prototypes`BuildInfo","Prototypes`BuildWikiDocumentation","Prototypes`By", "Prototypes`CapitalizeSentences","Prototypes`CaptureFromIPCamera","Prototypes`ClickToCopy", "Prototypes`CommonestBy","Prototypes`CopyAsBitmap","Prototypes`CreateDock", @@ -40,14 +40,14 @@ "Prototypes`NotebookTranslate","Prototypes`NounQ","Prototypes`OpenSky", "Prototypes`PacletInformationDataset","Prototypes`Penultimate","Prototypes`PrimeCount", "Prototypes`PrimeSum","Prototypes`Prototype","Prototypes`QuickSearch","Prototypes`RandomDelete", - "Prototypes`RandomGeoPosition", "Prototypes`RandomPosition","Prototypes`RandomRomanNumeral", + "Prototypes`RandomPosition","Prototypes`RandomRomanNumeral", "Prototypes`RandomWikipediaData","Prototypes`Rarest","Prototypes`RarestBy", "Prototypes`RenderOnlineNotebook","Prototypes`ResourceObjectDataset","Prototypes`ResourceObjectManager", "Prototypes`RGBColor255","Prototypes`Runtime","Prototypes`Second","Prototypes`SetAutoStyleOptions", "Prototypes`Seventh","Prototypes`Sixth","Prototypes`StandardDeviationBy","Prototypes`StringComplement", "Prototypes`StringDisjointQ","Prototypes`StringFirst","Prototypes`StringIntersectingQ", "Prototypes`StringIntersection","Prototypes`StringLast","Prototypes`StringMost","Prototypes`StringRest", - "Prototypes`StringSort","Prototypes`StringSwap","Prototypes`StringUnion","Prototypes`Synonyms", + "Prototypes`StringSort","Prototypes`StringSwap","Prototypes`StringUnion", "Prototypes`SystemStringOpen","Prototypes`Tenth","Prototypes`Third","Prototypes`ToStringFileName", "Prototypes`TranslationCell","Prototypes`Ultimate","Prototypes`Uniconize","Prototypes`UnmatchQ", "Prototypes`URLHash","Prototypes`VarianceBy","Prototypes`VerbQ","Prototypes`What3Words", @@ -65,3 +65,10 @@ } } ] + +(* +These functions have been adopted in the System` context: +"Prototypes`Synonyms" +"Prototypes`Antonyms" +"Prototypes`RandomGeoPosition" +*) diff --git a/Prototypes/Prototypes.wl b/Prototypes/Prototypes.wl index 0ba8ad1..3c50a7b 100644 --- a/Prototypes/Prototypes.wl +++ b/Prototypes/Prototypes.wl @@ -17,7 +17,7 @@ Module[ {files}, (* load in any session *) files = {"Build.wl", "Dataset.wl", "Files.wl", "Cloud.wl", - "Image.wl", "Language.wl", "Paclet.wl", "Formats.wl", + "Image.wl", "Language.wl", "Paclet.wl", "Formats.wl", "Import.wl", "Resources.wl", "Search.wl", "String.wl", "System.wl", "Color.wl", "Styles.wl", "Entities.wl", "WolframAlpha.wl", "Translation.wl","GeoGraphics.wl", "Words.wl", "Packages.wl", "Random.wl", "Cryptography.wl", "External.wl", "Service/What3Words.wl", "Service/OpenSky.wl", "Service/Satellite.wl", "Service/IPStack.wl", @@ -44,6 +44,7 @@ Module[ {files}, ]; ]; +(* If[ $VersionNumber > 11.3, (* functions which have become System functions *) @@ -51,7 +52,7 @@ If[ Prototypes`Antonyms=System`Antonyms; Prototypes`Synonyms=System`Synonyms; ] - +*) AppendTo[ timings, "End" ->N@SessionTime[] ]; diff --git a/Prototypes/Source/Import.wl b/Prototypes/Source/Import.wl new file mode 100644 index 0000000..ca6746c --- /dev/null +++ b/Prototypes/Source/Import.wl @@ -0,0 +1 @@ +ImportExport`RegisterImport["SVG",Prototypes`JavaImport,"DefaultElement" -> "Image"]; \ No newline at end of file diff --git a/Prototypes/Source/Java/Apache-Batik/CHANGES b/Prototypes/Source/Java/Apache-Batik/CHANGES new file mode 100644 index 0000000..dd80b49 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/CHANGES @@ -0,0 +1,1677 @@ +Change Log +========== + +The following log records some of the most important changes. +Bug fixing is an ongoing task, so it is implied in all sub-releases. + +1.11 -> 1.12 +------------ + +Java 7 or later is minimum runtime required + +BATIK-1203: ImageTagRegistry forgets to reinitialize cache +BATIK-1251: Correct policy file in Squiggle +BATIK-1253: build.sh referenced from build.xml +BATIK-1257: Rasterizer - insufficient permissions when transcoding to PDF +BATIK-1272: Update Xerces to 2.12 + +1.10 -> 1.11 +------------ + +BATIK-1232: Zip release should use mvn jars +BATIK-1233: Add policy file for batik-rasterizer +BATIK-1234: Tools cannot be run using java -jar xxx.jar when built with Maven +BATIK-1240: Java 11 compile error +BATIK-1249: Fix Java 11 module error + +1.9 -> 1.10 +----------- + +BATIK-906: Should never use Error to report runtime errors +BATIK-1123: Missing import of ImportInfo class +BATIK-1125: Rasterizer fails with base64 embedded png +BATIK-1140: Show line numbers on exception +BATIK-1142: Remove e.printStackTrace for BridgeException in SVGAbstractTranscoder +BATIK-1157: Wrong value for default JPEG quality in documentation +BATIK-1170: Incorrect ColorConvertOp alpha handling breaks masking +BATIK-1196: Run batik tests from junit +BATIK-1197: Make jython and rhino optional +BATIK-1198: TIFF transcoder looks for invalid class name for its WriteAdapter +BATIK-1200: ImagingOpException: Unable to transform src image +BATIK-1204: Remove hashtable +BATIK-1212: Show real error on URL failure +BATIK-1216: Compile error on Java 10 +BATIK-1222: Only call DOMImplementation in deserialization + +1.8 -> 1.9 +---------- + +- Maven build support +- Java 6 or later is minimum runtime required +- FOP-2489: An SVG file using markers is not rendered by FOP 2.0 + +1.7 -> 1.8 +---------- + +1. Bugzilla problem reports fixed: + + 42408, 43411, 43847, 43950, 44553, 44590, 44919, 44936, 44966, + 45112, 45114, 45117, 45397, 45520, 45883, 45958, 46072, 46124, + 46202, 46227, 46430, 46431, 46513, 46855, 46871, 47201, 47202, + 48182, 48411, 49889, 49968, 50006, 50100, 51908, 42395 + +2. New features + + * Support for the printNode() script function. + * Support for the Window and Location interface subsets from + SVG Tiny 1.2. + +3. Improvements + + * DocumentType nodes are now created for XML documents where one was + supplied in the markup (although only the name, publicId and systemId + properties of the DocumentType object are filled in). + * Dynamically created + + + + + + + + + + + + + + + + + + +Batik 3D + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/GVT.svg b/Prototypes/Source/Java/Apache-Batik/samples/GVT.svg new file mode 100644 index 0000000..852da2f --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/GVT.svg @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/anne.pdf b/Prototypes/Source/Java/Apache-Batik/samples/anne.pdf new file mode 100644 index 0000000..8ea1667 Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/anne.pdf differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/anne.png b/Prototypes/Source/Java/Apache-Batik/samples/anne.png new file mode 100644 index 0000000..0b6f5a6 Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/anne.png differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/anne.svg b/Prototypes/Source/Java/Apache-Batik/samples/anne.svg new file mode 100644 index 0000000..cbebe74 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/anne.svg @@ -0,0 +1,706 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/asf-logo.svg b/Prototypes/Source/Java/Apache-Batik/samples/asf-logo.svg new file mode 100644 index 0000000..3b18b25 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/asf-logo.svg @@ -0,0 +1,760 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/barChart.svg b/Prototypes/Source/Java/Apache-Batik/samples/barChart.svg new file mode 100644 index 0000000..e22cbdb --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/barChart.svg @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + Bar Chart + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Shoe + Car + Travel + Computer + + 0 + 10 + 20 + 30 + 40 + 50 + 60 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/batik3D.svg b/Prototypes/Source/Java/Apache-Batik/samples/batik3D.svg new file mode 100644 index 0000000..3fa1557 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/batik3D.svg @@ -0,0 +1,555 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/batik70.svg b/Prototypes/Source/Java/Apache-Batik/samples/batik70.svg new file mode 100644 index 0000000..f66edeb --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/batik70.svg @@ -0,0 +1,129 @@ + + + + + + + + + + + + +Batik, 70's Mood + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/batikBatik.svg b/Prototypes/Source/Java/Apache-Batik/samples/batikBatik.svg new file mode 100644 index 0000000..edb3e0f --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/batikBatik.svg @@ -0,0 +1,212 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/batikCandy.svg b/Prototypes/Source/Java/Apache-Batik/samples/batikCandy.svg new file mode 100644 index 0000000..ddae952 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/batikCandy.svg @@ -0,0 +1,143 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Batik + Batik + Batik + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/batikFX.svg b/Prototypes/Source/Java/Apache-Batik/samples/batikFX.svg new file mode 100644 index 0000000..5014d61 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/batikFX.svg @@ -0,0 +1,151 @@ + + + + + + + + + + + + +Batik, Futuristic Mood + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/batikLogo.svg b/Prototypes/Source/Java/Apache-Batik/samples/batikLogo.svg new file mode 100644 index 0000000..d3ed558 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/batikLogo.svg @@ -0,0 +1,186 @@ + + + + + + + + + + + + + + + Batik Logo + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/batikYin.svg b/Prototypes/Source/Java/Apache-Batik/samples/batikYin.svg new file mode 100644 index 0000000..0105ba5 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/batikYin.svg @@ -0,0 +1,198 @@ + + + + + + + + + + + + +Batik, Yin-Yang + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/chessFont.svg b/Prototypes/Source/Java/Apache-Batik/samples/chessFont.svg new file mode 100644 index 0000000..7e74419 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/chessFont.svg @@ -0,0 +1,202 @@ + + + + + + + + + + + + + Chess Font + Chess Font + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 8 + 7 + 6 + 5 + 4 + 3 + 2 + 1 + + a + b + c + d + e + f + g + h + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/chessboard.svg b/Prototypes/Source/Java/Apache-Batik/samples/chessboard.svg new file mode 100644 index 0000000..2e1cd00 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/chessboard.svg @@ -0,0 +1,105 @@ + + + + + + + + + + + + +Chessboard + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/extensions/colorSwitch.svg b/Prototypes/Source/Java/Apache-Batik/samples/extensions/colorSwitch.svg new file mode 100644 index 0000000..ad64182 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/extensions/colorSwitch.svg @@ -0,0 +1,129 @@ + + + + + + + + + + + + + + + + Star Extension Tag + + + + + + + Color Switch Paint Server + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/extensions/extension.css b/Prototypes/Source/Java/Apache-Batik/samples/extensions/extension.css new file mode 100644 index 0000000..9c682a1 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/extensions/extension.css @@ -0,0 +1,29 @@ +/* + + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + */ + +.title { + font-family: Arial, Helvetica; + font-size: 16; + text-anchor: middle; +} +.legend { + font-family: Arial, Helvetica; + font-size: 10; + text-anchor: middle; +} diff --git a/Prototypes/Source/Java/Apache-Batik/samples/extensions/flowText.svg b/Prototypes/Source/Java/Apache-Batik/samples/extensions/flowText.svg new file mode 100644 index 0000000..4ad66aa --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/extensions/flowText.svg @@ -0,0 +1,67 @@ + + + + + + + + + + + + + + +Test of Text wrapping stuff. + + + + Test of Text wrapping stuff + + + + + + + + + + + + + + + + + This is an ex­ample of a very long string that is split ‍across multi­ple lines via text wrap­ping. + Now check if text wrapping handles a number of tricky situations: averylongrunonwordthatspansmultiplelineswithembeddedspanelements & super or sub scripts. + Now we are just about to go to the next flow rect (note if the 'about' were included on the last line of the previous flow rect the line would not have fit and the whole line would have moved here). + I'll keep going because I want to make sure that it properly stops when it hits the end of all of the the flow regions defined. Also the last line includes text in a larger font size so it will not fit. Thus the end of this sentence will be cut off because the line size gets taller + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/extensions/flowTextAlign.svg b/Prototypes/Source/Java/Apache-Batik/samples/extensions/flowTextAlign.svg new file mode 100644 index 0000000..09994da --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/extensions/flowTextAlign.svg @@ -0,0 +1,189 @@ + + + + + + + + + + + + + + + +Test of Text vertical-align. + + + Test of Text vertical-align + + + + + + + + + + + + + + + + + + + + Try top + Try middle + Try bottom + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Try top two lines + Middle two lines + Bottom two lines + + + + + + + + + + + + + + + + + + + + + + + Try top two lines + Middle two lines + Bottom two lines + + + + + + + + + + + + + + + + + + + + + + + Try top + two lines + Middle + two lines + Bottom + two lines + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/extensions/gears.svg b/Prototypes/Source/Java/Apache-Batik/samples/extensions/gears.svg new file mode 100644 index 0000000..b03dfef --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/extensions/gears.svg @@ -0,0 +1,76 @@ + + + + + + + + + + + Animated Stars + + Animation on a Custom Element + + + + + + + + + Batik Rules! + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/extensions/histogramNormalization.jpg b/Prototypes/Source/Java/Apache-Batik/samples/extensions/histogramNormalization.jpg new file mode 100644 index 0000000..c038d77 Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/extensions/histogramNormalization.jpg differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/extensions/histogramNormalization.svg b/Prototypes/Source/Java/Apache-Batik/samples/extensions/histogramNormalization.svg new file mode 100644 index 0000000..d459e0f --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/extensions/histogramNormalization.svg @@ -0,0 +1,88 @@ + + + + + + + + + + + + + + + + Histogram Normalization Extension Tag + + + + + + Histogram Normalization Extension Tag + + + + + Before + + + + + + + + + + + + + + + + + With Extension + + + + + + Extension not present + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/extensions/regularPolygon.svg b/Prototypes/Source/Java/Apache-Batik/samples/extensions/regularPolygon.svg new file mode 100644 index 0000000..7bca59f --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/extensions/regularPolygon.svg @@ -0,0 +1,84 @@ + + + + + + + + + + + + + + + + Regular Polygon Extension Tag + + + + + + + Regular Polygon Extension Tag + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/extensions/solidColor.svg b/Prototypes/Source/Java/Apache-Batik/samples/extensions/solidColor.svg new file mode 100644 index 0000000..025c5ff --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/extensions/solidColor.svg @@ -0,0 +1,109 @@ + + + + + + + + + + + + + + + + Solid Color Test + + + + + + + + + + + Solid Color Paint Server + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/extensions/solidColor2.svg b/Prototypes/Source/Java/Apache-Batik/samples/extensions/solidColor2.svg new file mode 100644 index 0000000..49081b4 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/extensions/solidColor2.svg @@ -0,0 +1,109 @@ + + + + + + + + + + + + + + + + Solid Color Test (Xlink> + + + + + + + + + + + Solid Color Paint Server (Xlink) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/extensions/star.svg b/Prototypes/Source/Java/Apache-Batik/samples/extensions/star.svg new file mode 100644 index 0000000..edf7b99 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/extensions/star.svg @@ -0,0 +1,83 @@ + + + + + + + + + + + + + + + + + Star Extension Tag + + + + + + + Star Extension Tag + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/extensions/xsl/data.xml b/Prototypes/Source/Java/Apache-Batik/samples/extensions/xsl/data.xml new file mode 100644 index 0000000..a019fdc --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/extensions/xsl/data.xml @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/extensions/xsl/data.xsl b/Prototypes/Source/Java/Apache-Batik/samples/extensions/xsl/data.xsl new file mode 100644 index 0000000..52fe135 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/extensions/xsl/data.xsl @@ -0,0 +1,68 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/extensions/xsl/nodata.xsl b/Prototypes/Source/Java/Apache-Batik/samples/extensions/xsl/nodata.xsl new file mode 100644 index 0000000..e98e995 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/extensions/xsl/nodata.xsl @@ -0,0 +1,70 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/gradients.svg b/Prototypes/Source/Java/Apache-Batik/samples/gradients.svg new file mode 100644 index 0000000..1066f89 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/gradients.svg @@ -0,0 +1,125 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/henryV.svg b/Prototypes/Source/Java/Apache-Batik/samples/henryV.svg new file mode 100644 index 0000000..d871171 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/henryV.svg @@ -0,0 +1,107 @@ + + + + + + + + + + + + +Henry V + + + + + + + + + + + + + Henry + V + + + + Henry + V + + +O for a Muse of fire, that would ascend +The brightest heaven of invention, +A kingdom for a stage, princes to act +And monarchs to behold the swelling scene! +Then should the warlike Harry, like himself, +Assume the port of Mars; and at his heels, +Leash'd in like hounds, should famine, sword and fire +Crouch for employment. But pardon, and gentles all, +The flat unraised spirits that have dared +On this unworthy scaffold to bring forth +So great an object: can this cockpit hold +The vasty fields of France? or may we cram +Within this wooden O the very casques +That did affright the air at Agincourt? +O, pardon! since a crooked figure may +Attest in little place a million; +And let us, ciphers to this great accompt, +On your imaginary forces work. +Suppose within the girdle of these walls +Are now confined two mighty monarchies, +Whose high upreared and abutting fronts +The perilous narrow ocean parts asunder: +Piece out our imperfections with your thoughts; +Into a thousand parts divide on man, +And make imaginary puissance; +Think when we talk of horses, that you see them +Printing their proud hoofs i' the receiving earth; +For 'tis your thoughts that now must deck our kings, +Carry them here and there; jumping o'er times, +Turning the accomplishment of many years +Into an hour-glass: for the which supply, +Admit me Chorus to this history; +Who prologue-like your humble patience pray, +Gently to hear, kindly to judge, our play. + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/logoShadowOffset.svg b/Prototypes/Source/Java/Apache-Batik/samples/logoShadowOffset.svg new file mode 100644 index 0000000..2a6ed2a --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/logoShadowOffset.svg @@ -0,0 +1,283 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/logoTexture.svg b/Prototypes/Source/Java/Apache-Batik/samples/logoTexture.svg new file mode 100644 index 0000000..c436405 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/logoTexture.svg @@ -0,0 +1,180 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/mapSpain.svg b/Prototypes/Source/Java/Apache-Batik/samples/mapSpain.svg new file mode 100644 index 0000000..272f26d --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/mapSpain.svg @@ -0,0 +1,1798 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 10 + 10 + 8 + 8 + 6 + 6 + 4 + 4 + 2 + 2 + 0 + 0 + 2 + 2 + 4 + 4 + + + westl. v. Greenwich + west of Greenwich + + + westl. v. Greenwich + west of Greenwich + + + östl. v. Greenwich + east of Greenwich + + + östl. v. Greenwich + east of Greenwich + + 36 + 36 + 38 + 38 + 40 + 40 + 42 + 42 + + + Modifizierte Kegelprojektion nach Lambert + Modified conic projection after Lambert + + + Berührungsbreitenkreise: 38° und 42° nördl. Breite, (Kanarische Inseln: 28° nördl. Breite) + Touching latitudes: 38° and 42° north latitude (Canary Islands: 28° north latitude) + + + Zentralmeridian: 4° westl. Länge, (Kanarische Inseln: 16° westl. Länge) + Central meridian: 4° west longitude, (Canary Islands: 16° west longitude) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Atlantischer Ozean + + + Atlantic Ocean + + + + + + + + Mittel- + + + Mediter- + + + + + ländisches Meer + + + ranean Sea + + + + + + + Balearen + + + Balearics + + + + Mallorca + Menorca + + + + + Marokko + + + Morocco + + + + + + Portugal + + + + + + Frankreich + + + France + + + + Barcelona + Valencia + Madrid + Bilbao + La Coruña + + + Sevilla + Seville + + + + + + + + + + Lissabon + Lisbon + + + Algier + Algiers + + Marseille + Montpellier + Perpignan + Porto + + + Ebro + + + Tajo + + Tejo + + Duero + + + + Guadalquivir + + + + Guadiana + + + Ibiza + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 18 + 16 + 14 + + + westl. v. Greenwich + west of Greenwich + + 18 + 16 + 14 + 28 + 28 + + + + + + + + + + + + + + + + Kanarische Inseln + + + Canary Islands + + + + Teneriffa + Gran Canaria + + + + + + + + + + + + + + + + + + + + + + + Spanien - Bevölkerung + 1970 - 1990 + Erstellt v. Andreas Neumann im Rahmen d. Kartenentwurfspraktikums, Sommersemester 1998, + geleitet v. Prof. Ingrid Kretschmer, Institut für Geographie der Universität Wien. + Verwendete Software: Arc/Info und Module, CorelDRAW und div. Perl-Scripts. + Bevölkerungsdichte + Bevölkerungsveränderung + Bevölkerung absolut + Einwohner/km² auf Provinzebene + Prozentuelle Veränderung der + Provinzen gegenüber Stand 1970 + Prozentuelle Veränderung der + Hauptstädte gegenüber Stand 1970 + Auf Provinzebene und in den + Hauptstädten (inneres Quadrat) + + Spain - Population + 1970 - 1990 + Created by Andreas Neumann for the map design course, summer semester 1998, + led by Prof. Ingrid Kretschmer, Geography Institute of Vienna University. + Used software: Arc/Info and Modules, CorelDRAW and various Perl scripts. + Population density + Population change + Population absolute + + Inhab. per km² at province level + Percentual change of the + province vs situation 1970 + Percentual change of the + capitals vs situation 1970 + At provincial level and in the + capitals (inner square) + + + + + + + + + + + + + + + + + + + + + + + + + + + < + 25 + < + 85 % + < + 115 % + 25 + 45 + < + 85 % + 100 % + < + 115 % + 130 % + < + 45 + 75 + < + 100 % + 115 % + < + 130 % + 145 % + < + 75 + 150 + < + 115 % + 130 % + < + 145 % + 160 % + < + 150 + < + 130 % + < + 160 % + < + + + + + + + 5.000 + 1.000 + 500 + 200 + 100 + 50 + + + + + + + + + Angaben in tausend + Indications in thousands + + + + + + + + + + + + + + + + + + + + + + 0 + 100 + 200 + 300 km + 50 + + Massstab 1 : 6.000.000 + Scale 1 : 6.000.000 + + + Quelle: Spanisches Statistisches Zentralamt + Source: Spanish Central Office for Statistics + + Min.: Soria - 9,46, Max.: Madrid - 628,91 + Minimum: Soria - 84,61 %, + Maximum: Las Palmas - 141,24 % + Minimum: Vizcaya - 93,50 %, + Maximum: Guadalajara - 199,18 % + + + Minimum (Provinz): Soria - 97.268 + Minimum (Province): Soria - 97.268 + + + Maximum (Provinz): Madrid - 5.028.120 + Maximum (Province): Madrid - 5.028.120 + + + Minimum (Hauptstadt): Teruel - 28.488 + Minimum (capital): Teruel - 28.488 + + + Maximum (Hauptstadt): Madrid - 3.120.732 + Maximum (capital): Madrid - 3.120.732 + + + Stand 1990 + Situation 1990 + + + Stand 1990 + Sit. 1990 + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/mapWaadt.svg b/Prototypes/Source/Java/Apache-Batik/samples/mapWaadt.svg new file mode 100644 index 0000000..d582a3f --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/mapWaadt.svg @@ -0,0 +1,2468 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Morges + Lavigny + + + + Lac Léman + + + Lausanne + Vevey + Moudon + Pompaples + Mex + Orbe + Vallorbe + Yverdon + + La Broye + + L'Orbe + + + + Le Talent + + + + Le Venoge + + + + + + Beschäftigung Kanton Waadt + Employment canton of Vaud + + 1985/95 + + + + Geschlechtsspez. Verteilung in Voll- und Teilzeit im 2. u. 3. Wirtschaftssektor + Gender-specific distribution of full- vs part-time in the industry and services + + + + + + + + + + + + + + + Verhältnis Teilzeit/Vollzeit + Ratio part-time/full-time + + < 22.3 % < 39.1 % < + + + + Anteil der Frauen an den + Share of women in the + + + Teilzeitbeschäftigten + part-time employees + + + < 81.8 % < 66.7 % < + + + Gemeinden unter 10 Beschäftigten + Municipalities under 10 employed + + + oder ohne Teilzeitbeschäftigung + or without part-time employment + + + + Massstab 1:200.000 + Echelle 1:200.000 + Scale 1:200.000 + + + + + + + + + + + + 0 + 10 + 20 + 30 + 40 + 50 km + + + + + + + + + + + + 20.000 + 20,000 + + + 10.000 + 10,000 + + + 5.000 + 5,000 + + + 2.000 + 2,000 + + + 1.000 + 1,000 + + 500 + 100 + + + Grösster Teilkreis: Lausanne + Biggest circle: Lausanne + + + 71.606 Vollzeitbeschäftigte + 71,606 full-time employed + + + 1 mm² = 22 Beschäftigte + 1 mm² = 22 employed + + + + + + + + + + + + + + Frauen + Frauen + Männer + Männer + Vollzeitbeschäftigte + Teilzeitbeschäftigte + + Women + Women + Men + Men + Full-time employed + Part-time employed + + + + + + 1985 + 1995 + + + + + Source: company counts 1985/1995, Federal Office of Statistics + Editors: Heiko Munde, Andreas Neumann, Simone Schoch + Tutors: Ernst Hutzler, Daniel Staub + Map created for the Exercises in Thematic Cartography, + summer semester 1997, Institute Cartography, ETH Zurich + Software: Themap (E. Hutzler, ETH), Microstation, Corel Draw + + + Gemeindetypen entsprechend Beschäftigungsverhältnis + Beschäftigte absolut + + Source: company counts 1985/1995, Federal Office of Statistics + Editors: Heiko Munde, Andreas Neumann, Simone Schoch + Tutors: Ernst Hutzler, Daniel Staub + Map created for the Exercises in Thematic Cartography, + summer semester 1997, Institute Cartography, ETH Zurich + Software: Themap (E. Hutzler, ETH), Microstation, Corel Draw + + + Municipalities according to employment ratio + Employed absolute + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/mathMetal.svg b/Prototypes/Source/Java/Apache-Batik/samples/mathMetal.svg new file mode 100644 index 0000000..50201a1 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/mathMetal.svg @@ -0,0 +1,415 @@ + + + + + + + + + + + + + + + + Math Metal + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + f + + + + + ( + + + + + g + + + + + ) + + + + + = + + + + + + ∫ + + + + + - + + + + + + + + + + + + + | + + + + + + g + + + + + + n + + + + + + + | + + + + + + + + + + + + d + + + + + g + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + MATH + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/mines.svg b/Prototypes/Source/Java/Apache-Batik/samples/mines.svg new file mode 100644 index 0000000..c7bc0e9 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/mines.svg @@ -0,0 +1,433 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + + + + + + + + SVG Mines + Mines Left: + + Board Size: + + + + + + + + Left: show +Right or Shift: place flag +Middle or Control: show surround + + ? + + + + Start new game + + NG + + + + + + + + + + + Working + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/moonPhases.svg b/Prototypes/Source/Java/Apache-Batik/samples/moonPhases.svg new file mode 100644 index 0000000..4042d22 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/moonPhases.svg @@ -0,0 +1,853 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Nouvelle lune + Premier croissant + Premier quartier + Lune gibbeuse + Pleine lune + Lune gibbeuse + Dernier quartier + Dernier croissant + Nouvelle lune + + Soleil + Lune + Terre + + + + + New moon + Waxing crescent + Waxing quarter + Near full + Full moon + Near full + Waning quarter + Waning crescent + New moon + + Sun + Moon + Earth + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Les phases de la lune + + + + + + + The phases of the moon + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/sizeOfSun.svg b/Prototypes/Source/Java/Apache-Batik/samples/sizeOfSun.svg new file mode 100644 index 0000000..35f3041 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/sizeOfSun.svg @@ -0,0 +1,227 @@ + + + + + + + + + + + + Size of the Sun + + + + + + + + + + + + + + Mercury + + + + + + + + + + + Venus + + + + + + + + + + + Earth + + + + + + + + + + + Mars + + + + + + + + + + + + Jupiter + + + + + + + + + + + + + + + + + + + + + Saturn + + + + + + + + + + + Uranus + + + + + + + + + + + Neptune + + + + + + + Pluto + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Size of the Sun + + You could line up all of the planets along the + Sun's 1,392,000 kilometer equator three times and still have room left + for 1 Saturn, 4 Earths, and a Mercury. + + + One time... + Two times... + 3 times... + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/solitaire/cards/default.svg b/Prototypes/Source/Java/Apache-Batik/samples/solitaire/cards/default.svg new file mode 100644 index 0000000..06ca708 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/solitaire/cards/default.svg @@ -0,0 +1,1141 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + A + A + + + + + + + + + 2 + 2 + + + + + + + + + + 3 + 3 + + + + + + + + + + + + + 4 + 4 + + + + + + + + + + + + + + 5 + 5 + + + + + + + + + + + + + + + + 6 + 6 + + + + + + + + + + + + + + + + + 7 + 7 + + + + + + + + + + + + + + + + + + + 8 + 8 + + + + + + + + + + + + + + + + + + + + 9 + 9 + + + + + + + + + + + + + + + + + + + + + 10 + 10 + + + + + J + J + + + + + Q + Q + + + + + K + K + + + + + + + A + A + + + + + + + + + 2 + 2 + + + + + + + + + + 3 + 3 + + + + + + + + + + + + + 4 + 4 + + + + + + + + + + + + + + 5 + 5 + + + + + + + + + + + + + + + + 6 + 6 + + + + + + + + + + + + + + + + + 7 + 7 + + + + + + + + + + + + + + + + + + + 8 + 8 + + + + + + + + + + + + + + + + + + + + 9 + 9 + + + + + + + + + + + + + + + + + + + + + 10 + 10 + + + + + J + J + + + + + Q + Q + + + + + K + K + + + + + + + A + A + + + + + + + + + 2 + 2 + + + + + + + + + + 3 + 3 + + + + + + + + + + + + + 4 + 4 + + + + + + + + + + + + + + 5 + 5 + + + + + + + + + + + + + + + + 6 + 6 + + + + + + + + + + + + + + + + + 7 + 7 + + + + + + + + + + + + + + + + + + + 8 + 8 + + + + + + + + + + + + + + + + + + + + 9 + 9 + + + + + + + + + + + + + + + + + + + + + 10 + 10 + + + + + J + J + + + + + Q + Q + + + + + K + K + + + + + + + A + A + + + + + + + + + 2 + 2 + + + + + + + + + + 3 + 3 + + + + + + + + + + + + + 4 + 4 + + + + + + + + + + + + + + 5 + 5 + + + + + + + + + + + + + + + + 6 + 6 + + + + + + + + + + + + + + + + + 7 + 7 + + + + + + + + + + + + + + + + + + + 8 + 8 + + + + + + + + + + + + + + + + + + + + 9 + 9 + + + + + + + + + + + + + + + + + + + + + 10 + 10 + + + + + J + J + + + + + Q + Q + + + + + K + K + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/solitaire/klondike.svg b/Prototypes/Source/Java/Apache-Batik/samples/solitaire/klondike.svg new file mode 100644 index 0000000..63bf85f --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/solitaire/klondike.svg @@ -0,0 +1,337 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/solitaire/script/board.js b/Prototypes/Source/Java/Apache-Batik/samples/solitaire/script/board.js new file mode 100644 index 0000000..001a918 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/solitaire/script/board.js @@ -0,0 +1,167 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +var svgns = "http://www.w3.org/2000/svg"; +var xlinkns = "http://www.w3.org/1999/xlink"; + +function Board(boardGroup, moveGroup, winG, helpG) { + this.doc = boardGroup.getOwnerDocument(); + this.root = this.doc.getRootElement(); + this.helpG = (helpG)?helpG:this.doc.getElementById("help"); + this.winG = (winG)?winG:this.doc.getElementById("win"); + this.boardGroup = boardGroup; + this.moveGroup = moveGroup; + this.thePiles = new Array(); + this.moves = new Array(); + this.moveIndex = 0; + this.numMoves = 0; + this.isWon = false; + + this.root.addEventListener("keypress", this, false); + + if (helpG) { + var board = this; + this.helpG.addEventListener("click", function() { board.hideHelp(); }, false); + } +} + +Board.prototype.won = function() { + if (!this.winG) return; + var style = this.winG.style; + if (style.getPropertyValue("display") == "inline") { + this.unwon(); + return; + } + style.setProperty("display", "inline", ""); + this.isWon = true; +}; + +Board.prototype.unwon = function() { + if (!this.winG) return; + if (this.winG.style.getPropertyValue("display") != "none") { + this.winG.style.setProperty("display", "none", ""); + } +}; + +Board.prototype.setNotifyMoveDone = function(moveDone) { + this.moveDone = moveDone; +}; + +Board.prototype.notifyMoveDone = function() { + if (this.moveDone) { + this.moveDone(); + } +}; + +Board.prototype.saveMove = function(moveinfo) { + this.moves[this.moveIndex++] = moveinfo; + this.numMoves = this.moveIndex; + this.isWon = false; +}; + +Board.prototype.setMoveInfo = function(moveinfo) { + if (this.moveIndex == 0) return null; + this.moves[this.moveIndex-1] = moveinfo; +}; + +Board.prototype.getMoveInfo = function() { + if (this.moveIndex == 0) return null; + return this.moves[this.moveIndex-1]; +}; + +Board.prototype.undoMove = function() { + if (this.moveIndex == 0) return; + if (this.isWon) this.unwon(); + + this.moveIndex--; + var mi = this.moves[this.moveIndex]; + mi.undo(); +}; + +Board.prototype.redoMove = function() { + if (this.moveIndex == this.numMoves) return; + + var mi = this.moves[this.moveIndex++]; + mi.redo(); + + if (this.isWon && (this.moveIndex == this.numMoves)) + this.won(); +}; + +Board.prototype.handleEvent = function(evt) { + var keycode = evt.keyCode ? evt.keyCode : + evt.charCode ? evt.charCode : + evt.which ? evt.which : void 0; + var key = String.fromCharCode(keycode); + if ((key == "z") || (key == "Z")) { + this.undoMove(); + } else if ((key == "r") || (key == "R")) { + this.redoMove(); + } else if (key == "?") { + this.showHelp(); + } +}; + +Board.prototype.showHelp = function() { + if (!this.helpG) return; + var style = this.helpG.style; + if (style.getPropertyValue("display") == "inline") { + this.hideHelp(); + return; + } + style.setProperty("display", "inline", ""); + style.setProperty("pointer-events", "fill", ""); + var board = this; +} + +Board.prototype.hideHelp = function() { + if (!this.helpG) return; + this.helpG.style.setProperty("pointer-events", "none", ""); + this.helpG.style.setProperty("display", "none", ""); +} + +function MultiMoveInfo(mi1, mi2) { + this.mi1 = mi1; + this.mi2 = mi2; + this.undo = function() { + this.mi2.undo(); + this.mi1.undo(); + }; + this.redo = function() { + this.mi1.redo(); + this.mi2.redo(); + }; +} + +function SimpleMoveInfo(fromCards, fromPile, toCards, toPile) { + this.fromCards = fromCards; + this.fromPile = fromPile; + this.toCards = toCards; + this.toPile = toPile; + + this.undo = function() { + var len = fromCards.length; + for (var i=0; i= this.dx)) { + newX = this.destX; + } else { + register = true; + } + } else { + if (((deltaX*1.01) >= this.dx) && + ((deltaX*0.99) <= this.dx)) { + newX = this.destX; + } else { + register = true; + } + } + var deltaY = (this.destY-this.y); + var newY = this.y + this.dy; + if (deltaY < 0) { + if (((deltaY*1.01) <= this.dy) && + ((deltaY*0.99) >= this.dy)) { + newY = this.destY; + } else { + register = true; + } + } else { + if (((deltaY*1.01) >= this.dy) && + ((deltaY*0.99) <= this.dy)) { + newY = this.destY; + } else { + register = true; + } + } + this.setPos(newX, newY); + if (!register) { + var nc = this.pile.nextCard(this); + while (nc) { + var ncelem = nc?nc.elem:null; + if (ncelem.parentNode == this.pile.g) { + this.pile.g.insertBefore(this.elem, ncelem); + break; + } + nc = this.pile.nextCard(nc); + } + if (!nc) + this.pile.g.appendChild(this.elem); + } + this.moving = register; + return register; +} + +function moveCards() { + var register = false; + var num = MOVING.length; + for (var i=0; i= len) + r = Math.floor(Math.random()*(len-x)); + var c = this.cards[r]; + this.cards.splice(r, 1); + this.cards[len-1] = c; + } + } +} + +Deck.prototype.dealCard = function(faceup) { + var c = this.cards.shift(); + c.flipCard(faceup); + return c; +} diff --git a/Prototypes/Source/Java/Apache-Batik/samples/solitaire/script/pile.js b/Prototypes/Source/Java/Apache-Batik/samples/solitaire/script/pile.js new file mode 100644 index 0000000..05a7269 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/solitaire/script/pile.js @@ -0,0 +1,399 @@ +/* + + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + */ + +var svgns = "http://www.w3.org/2000/svg"; +var xlinkns = "http://www.w3.org/1999/xlink"; + +function Pile(board, x, y, w, h, dx, dy, pdx, pdy) { + this.board = board; + this.doc = board.doc; + this.index = board.thePiles.length; + + board.thePiles.push(this); + this.g = this.doc.createElementNS(svgns, "g"); + this.g.setAttribute("id", "pile-"+this.index); + this.g.addEventListener("mousedown", new PileMouseDownHandler(this), false); + this.g.addEventListener("click", new PileClickHandler(this), false); + + this.base = this.doc.createElementNS(svgns, "rect"); + this.base.setAttribute("x", ""+x); + this.base.setAttribute("y", ""+y); + this.base.setAttribute("width", ""+w); + this.base.setAttribute("height", ""+h); + this.base.setAttribute("style", "visibility:hidden; pointer-events:fill"); + this.g.appendChild(this.base); + + board.boardGroup.appendChild(this.g); + this.x = x; + this.y = y; + this.width = w; + this.height = h; + this.dx = dx; + this.dy = dy; + this.pdx = pdx; + this.pdy = pdy; + this.cards = new Array(); + var me = this; +} + +Pile.prototype.addCard = function(card) { + if (card.pile) { + card.pile.removeCard(card); + } + var len = this.cards.length; + if ((this.pdx != 0) || (this.pdy !=0)) { + for (var i=0; i=0; i--) { + var c = this.cards[i]; + if (c == card) { + this.cards.splice(i, 1); + len = this.cards.length; + for (var j=i; j 9) { + this.clickX = evt.clientX; + this.clickY = evt.clientY; + this.clickCnt = 1; + if (this.pile.click) + this.pile.click(this.pile, evt); + return; + } + + this.clickX = evt.clientX; + this.clickY = evt.clientY; + this.clickCnt++; + + if (this.clickCnt > 2) { + this.clickCnt = 1; + if (this.pile.click) + this.pile.click(this.pile, evt); + return; + } + + if (this.pile.doubleClick) { + this.pile.doubleClick(this.pile, evt); + } +}; + +function PileMouseDownHandler(pile) { + this.pile = pile; +} + +PileMouseDownHandler.prototype.handleEvent = function(evt) { + if (!this.pile.dragCheck) return; + var tgt = evt.target; + var e = tgt; + var p = e.parentNode; + while (p && (p != this.pile.g)) { + e = p; + p = e.parentNode; + } + + if (!p) return; + var c, i; + var num = this.pile.cards.length; + for (i=num-1; i>=0; i--) { + c = this.pile.cards[i]; + if (e == c.elem) + break; + c = null; + } + if (!c) return; + + var g = this.pile.dragCheck(this.pile, c, i); + if (!g) return; + var cards = this.pile.cards.splice(i, num-i); + + new CardMoveManager(g, this.pile, cards, + evt.clientX, evt.clientY); +} + + +/** + * Finds the pile associated with elem, if any. + * returns null if elem is not associated with a pile. + * otherwise it returns the associated Pile object. + */ +function findPile(board, elem) { + var root = document.getRootElement(); + var tgt = elem + var destPile = null; + while (tgt != root) { + var id; + try { id = tgt.getAttribute("id"); } catch (x) { break; } + if (id && id.substring(0, 5) == "pile-") { + var idx = parseFloat(id.substring(5)); + destPile = board.thePiles[idx]; + break; + } + tgt = tgt.parentNode; + } + return destPile; +} + +function CardMoveManager(group, pile, cards, x, y) { + this.pile = pile; + this.board = pile.board; + this.cards = cards; + this.group = group; + this.parent = group.parentNode; + this.root = this.group.getOwnerDocument().getRootElement(); + this.startPt = localPt(this.parent, x, y); + this.fmm = new ForwardMouseMove(this); + this.fmu = new ForwardMouseUp(this); + this.root.addEventListener("mousemove", this.fmm, false); + this.root.addEventListener("mouseup", this.fmu, false); + this.moved = false; +}; + +CardMoveManager.prototype.mousemove = function(evt) { + var pt = localPt(this.parent, evt.clientX, evt.clientY); + var dx = pt.x-this.startPt.x; + var dy = pt.y-this.startPt.y; + if (!this.moved && ((dx*dx+dy*dy) < 4)) + return; + + if (!this.moved) { + this.moved = true; + // Now move cards + for (var i=0; i + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + z/Z - Undo move + + + r/R - Redo move + + ? - Get Help + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/starfield.svg b/Prototypes/Source/Java/Apache-Batik/samples/starfield.svg new file mode 100644 index 0000000..56cf2d5 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/starfield.svg @@ -0,0 +1,384 @@ + + + + + + + + + + + + + Starfield + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Starfield + + + + + + + + + + 5 + Stars at a time + + + + + + Frames per second + + + + 0 + Frames per second + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/strokeFont.svg b/Prototypes/Source/Java/Apache-Batik/samples/strokeFont.svg new file mode 100644 index 0000000..0ce3afc --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/strokeFont.svg @@ -0,0 +1,481 @@ + + + + + + + + + + + + + SVG 'Stroke' Font + SVG 'Stroke' Font + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + !"#$%&'()*+,-./0123456789:;<>? + @ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_ + `abcdefghijklmnopqrstuvwxyz|{}~ + + !"#$%&'()*+,-./0123456789:;<>? + @ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_ + `abcdefghijklmnopqrstuvwxyz|{}~ + + The quick brown fox jumped + over the lazy dog. + + The quick brown fox jumpedover the lazy dog. + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/sunRise.svg b/Prototypes/Source/Java/Apache-Batik/samples/sunRise.svg new file mode 100644 index 0000000..482d067 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/sunRise.svg @@ -0,0 +1,666 @@ + + + + + + + + + + +Sun Rise + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + BATIK + BATIK + BATIK + + + + + + + + Scalable Vector Graphics + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/sydney.svg b/Prototypes/Source/Java/Apache-Batik/samples/sydney.svg new file mode 100644 index 0000000..490be22 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/sydney.svg @@ -0,0 +1,206 @@ + + + + + + + + + + + + + + + + + + + + + Click and drag to move images + Click and drag to move images + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/icc/changeColor.icm b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/icc/changeColor.icm new file mode 100644 index 0000000..dc99698 Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/icc/changeColor.icm differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/arabic.png b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/arabic.png new file mode 100644 index 0000000..1bb4af6 Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/arabic.png differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/bmpCursor.bmp b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/bmpCursor.bmp new file mode 100644 index 0000000..daedbff Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/bmpCursor.bmp differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/brushedMetal.jpg b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/brushedMetal.jpg new file mode 100644 index 0000000..fd7dcc2 Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/brushedMetal.jpg differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/canaryRelief.png b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/canaryRelief.png new file mode 100644 index 0000000..e21696c Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/canaryRelief.png differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/hotSpotCenter.png b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/hotSpotCenter.png new file mode 100644 index 0000000..7b6e04a Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/hotSpotCenter.png differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/hotSpotCenterBig.png b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/hotSpotCenterBig.png new file mode 100644 index 0000000..ba2f3cf Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/hotSpotCenterBig.png differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/hotSpotCenterSmall.png b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/hotSpotCenterSmall.png new file mode 100644 index 0000000..eb26fa2 Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/hotSpotCenterSmall.png differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/hotSpotE.png b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/hotSpotE.png new file mode 100644 index 0000000..3451cd9 Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/hotSpotE.png differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/hotSpotN.png b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/hotSpotN.png new file mode 100644 index 0000000..d7d878e Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/hotSpotN.png differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/hotSpotNE.png b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/hotSpotNE.png new file mode 100644 index 0000000..096ddd8 Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/hotSpotNE.png differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/hotSpotNW.png b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/hotSpotNW.png new file mode 100644 index 0000000..b56095f Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/hotSpotNW.png differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/hotSpotS.png b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/hotSpotS.png new file mode 100644 index 0000000..1ae73bd Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/hotSpotS.png differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/hotSpotSE.png b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/hotSpotSE.png new file mode 100644 index 0000000..340fe00 Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/hotSpotSE.png differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/hotSpotSW.png b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/hotSpotSW.png new file mode 100644 index 0000000..146039a Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/hotSpotSW.png differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/hotSpotW.png b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/hotSpotW.png new file mode 100644 index 0000000..2923546 Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/hotSpotW.png differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/jpeg.jpg b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/jpeg.jpg new file mode 100644 index 0000000..ef89b4c Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/jpeg.jpg differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/jpegCursor.jpg b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/jpegCursor.jpg new file mode 100644 index 0000000..df1a5f3 Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/jpegCursor.jpg differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/operaBridge.jpg b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/operaBridge.jpg new file mode 100644 index 0000000..e1c5eef Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/operaBridge.jpg differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/operaSteps.jpg b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/operaSteps.jpg new file mode 100644 index 0000000..721c38e Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/operaSteps.jpg differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/operaWalk.jpg b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/operaWalk.jpg new file mode 100644 index 0000000..f78d01e Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/operaWalk.jpg differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/png.png b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/png.png new file mode 100644 index 0000000..d9494a2 Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/png.png differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/png2.png b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/png2.png new file mode 100644 index 0000000..5bcc67a Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/png2.png differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/pngCursor.png b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/pngCursor.png new file mode 100644 index 0000000..15f1208 Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/pngCursor.png differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/sm_colors.tif b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/sm_colors.tif new file mode 100644 index 0000000..9c62aea Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/sm_colors.tif differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/sm_colors_pb.tif b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/sm_colors_pb.tif new file mode 100644 index 0000000..29999db Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/sm_colors_pb.tif differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/sm_colors_pb_tile.tif b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/sm_colors_pb_tile.tif new file mode 100644 index 0000000..c655f41 Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/sm_colors_pb_tile.tif differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/sm_colors_tile.tif b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/sm_colors_tile.tif new file mode 100644 index 0000000..a6bc40d Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/sm_colors_tile.tif differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/spainRelief.png b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/spainRelief.png new file mode 100644 index 0000000..a7e4e7b Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/spainRelief.png differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/svg.png b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/svg.png new file mode 100644 index 0000000..c759e97 Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/svg.png differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/svg.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/svg.svg new file mode 100644 index 0000000..519ae14 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/svg.svg @@ -0,0 +1,85 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/svg2.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/svg2.svg new file mode 100644 index 0000000..b98828e --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/svg2.svg @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/svg3.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/svg3.svg new file mode 100644 index 0000000..976a584 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/svg3.svg @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/svgCursor.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/svgCursor.svg new file mode 100644 index 0000000..224a9e3 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/svgCursor.svg @@ -0,0 +1,29 @@ + + + + + + + + + + SVG + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/svgCursor2.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/svgCursor2.svg new file mode 100644 index 0000000..4d0d6e6 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/svgCursor2.svg @@ -0,0 +1,28 @@ + + + + + + + + + SVG 2 + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/svgCursor3.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/svgCursor3.svg new file mode 100644 index 0000000..fa046fd --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/svgCursor3.svg @@ -0,0 +1,28 @@ + + + + + + + + + SVG 3 + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/svgCursor4.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/svgCursor4.svg new file mode 100644 index 0000000..4ac27b4 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/svgCursor4.svg @@ -0,0 +1,24 @@ + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/tde.jpg b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/tde.jpg new file mode 100644 index 0000000..45c924a Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/tde.jpg differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/tiffCursor.tif b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/tiffCursor.tif new file mode 100644 index 0000000..51a63c4 Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/tiffCursor.tif differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/toBeProfiled.png b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/toBeProfiled.png new file mode 100644 index 0000000..148db9c Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/images/toBeProfiled.png differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/java/resources/com/test/script/java-binding.mf b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/java/resources/com/test/script/java-binding.mf new file mode 100644 index 0000000..d04a945 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/java/resources/com/test/script/java-binding.mf @@ -0,0 +1,2 @@ +Manifest-Version: 1.0 +SVG-Handler-Class: com.test.script.EventListenerInitializerImpl diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/java/resources/com/untrusted/script/security2.mf b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/java/resources/com/untrusted/script/security2.mf new file mode 100644 index 0000000..cae1927 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/java/resources/com/untrusted/script/security2.mf @@ -0,0 +1,2 @@ +Manifest-Version: 1.0 +Script-Handler: com.untrusted.script.UntrustedScriptHandler diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/java/sources/com/test/script/EventListenerInitializerImpl.java b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/java/sources/com/test/script/EventListenerInitializerImpl.java new file mode 100644 index 0000000..db0fb2a --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/java/sources/com/test/script/EventListenerInitializerImpl.java @@ -0,0 +1,55 @@ +/* + + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + */ + +package com.test.script; + +import org.w3c.dom.Element; + +import org.w3c.dom.events.Event; +import org.w3c.dom.events.EventListener; +import org.w3c.dom.events.EventTarget; + +import org.w3c.dom.svg.EventListenerInitializer; +import org.w3c.dom.svg.SVGDocument; + +/** + * This class implements the EventListenerInitializer interface. + * + * @author Christophe Jolif + * @version $Id: EventListenerInitializerImpl.java 1808001 2017-09-11 09:51:29Z ssteiner $ + */ +public class EventListenerInitializerImpl implements EventListenerInitializer { + + /** + * This method is called by the SVG viewer + * when the scripts are loaded to register + * the listener needed. + * @param doc The current document. + */ + public void initializeEventListeners(SVGDocument doc) { + System.err.println(">>>>>>>>>>>>>>>>>>> SVGDocument : " + doc); + ((EventTarget)doc.getElementById("testContent")). + addEventListener("mousedown", new EventListener() { + public void handleEvent(Event evt) { + ((Element)evt.getTarget()).setAttributeNS(null, "fill", "orange"); + } + }, false); + } +} + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/java/sources/com/untrusted/script/UntrustedScriptHandler.java b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/java/sources/com/untrusted/script/UntrustedScriptHandler.java new file mode 100644 index 0000000..b4c484f --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/java/sources/com/untrusted/script/UntrustedScriptHandler.java @@ -0,0 +1,304 @@ +/* + + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + */ +package com.untrusted.script; + +import java.awt.AWTPermission; +import java.io.FilePermission; +import java.io.SerializablePermission; +import java.lang.reflect.ReflectPermission; +import java.net.NetPermission; +import java.net.SocketPermission; +import java.net.URL; +import java.security.AllPermission; +import java.security.Permission; +import java.sql.SQLPermission; +import java.util.PropertyPermission; + +import javax.sound.sampled.AudioPermission; + +import org.w3c.dom.Document; +import org.w3c.dom.Element; +import org.w3c.dom.Window; +import org.w3c.dom.events.Event; +import org.w3c.dom.events.EventListener; +import org.w3c.dom.events.EventTarget; + +import org.apache.batik.anim.dom.SVGOMDocument; +import org.apache.batik.bridge.ScriptHandler; + +/** + * This class implements the ScriptHandler interface and represents an + * example of untrusted code. + * + * It creates a number of Java Permissions and checks that access is denied. + * the tests fail if the Permissions are granted. + * + * The only thing that the class should be allowed to make is a connection + * back to the server that served the document containing this script. + * + * @author Vincent Hardy + * @version $Id: UntrustedScriptHandler.java 1733420 2016-03-03 07:41:59Z gadams $ + */ +public class UntrustedScriptHandler implements ScriptHandler { + public static final String svgNS = "http://www.w3.org/2000/svg"; + + /** + * Path for the file tested with FilePermission + */ + public static final String testedPath = "build.sh"; + + /** + * Host which is used for testing + */ + public static final String testedHost = "nagoya.apache.org:8080"; + + /** + * Table of Permissions which will be tested. + */ + protected static Object[][] basePermissions = { + {"AllPermission", new AllPermission()}, + {"FilePermission read", new FilePermission(testedPath, "read")}, + {"FilePermission write", new FilePermission(testedPath, "write")}, + {"FilePermission execute", new FilePermission(testedPath, "execute")}, + {"FilePermission delete", new FilePermission(testedPath, "delete")}, + // 1.4 {"ServicePermission", new ServicePermission("krbtgt/EXAMPLE.COM@EXAMPLE.COM", "initiate")}, + {"SocketPermission accept", new SocketPermission(testedHost, "accept")}, + {"SocketPermission connect", new SocketPermission(testedHost, "connect")}, + {"SocketPermission listen", new SocketPermission(testedHost, "listen")}, + {"SocketPermission resolve", new SocketPermission(testedHost, "resolve")}, + {"AudioPermission play", new AudioPermission("play")}, + {"AudioPermission record", new AudioPermission("record")}, + {"AWTPermission accessClipboard", new AWTPermission("accessClipboard")}, + {"AWTPermission accessEventQueue", new AWTPermission("accessEventQueue")}, + {"AWTPermission listenToAllAWTEvents", new AWTPermission("listenToAllAWTEvents")}, + {"AWTPermission showWindowWithoutWarningBanner", new AWTPermission("showWindowWithoutWarningBanner")}, + {"AWTPermission readDisplayPixels", new AWTPermission("readDisplayPixels")}, + {"AWTPermission createRobot", new AWTPermission("createRobot")}, + {"AWTPermission fullScreenExclusive", new AWTPermission("fullScreenExclusive")}, + // 1.4 {"DelegationPermission", new DelegationPermission()}, + // 1.4 {"LoggingPermission", new LoggingPermission("control")}, + {"NetPermission setDefaultAuthenticator", new NetPermission("setDefaultAuthenticator")}, + {"NetPermission requestPasswordAuthentication", new NetPermission("requestPasswordAuthentication")}, + {"NetPermission specifyStreamHandler", new NetPermission("specifyStreamHandler")}, + {"PropertyPermission java.home read", new PropertyPermission("java.home", "read")}, + {"PropertyPermission java.home write", new PropertyPermission("java.home", "write")}, + {"ReflectPermission", new ReflectPermission("suppressAccessChecks")}, + {"RuntimePermission createClassLoader", new RuntimePermission("createClassLoader")}, + {"RuntimePermission getClassLoader", new RuntimePermission("getClassLoader")}, + {"RuntimePermission setContextClassLoader", new RuntimePermission("setContextClassLoader")}, + {"RuntimePermission setSecurityManager", new RuntimePermission("setSecurityManager")}, + {"RuntimePermission createSecurityManager", new RuntimePermission("createSecurityManager")}, + {"RuntimePermission exitVM", new RuntimePermission("exitVM")}, + {"RuntimePermission shutdownHooks", new RuntimePermission("shutdownHooks")}, + {"RuntimePermission setFactory", new RuntimePermission("setFactory")}, + {"RuntimePermission setIO", new RuntimePermission("setIO")}, + {"RuntimePermission modifyThread", new RuntimePermission("modifyThread")}, + {"RuntimePermission stopThread", new RuntimePermission("stopThread")}, + {"RuntimePermission modifyThreadGroup", new RuntimePermission("modifyThreadGroup")}, + {"RuntimePermission getProtectionDomain", new RuntimePermission("getProtectionDomain")}, + {"RuntimePermission readFileDescriptor", new RuntimePermission("readFileDescriptor")}, + {"RuntimePermission writeFileDescriptor", new RuntimePermission("writeFileDescriptor")}, + {"RuntimePermission loadLibrary.{library name}", new RuntimePermission("loadLibrary.{library name}")}, + {"RuntimePermission accessClassInPackage.java.security", new RuntimePermission("accessClassInPackage.java.security")}, + {"RuntimePermission defineClassInPackage.java.lang", new RuntimePermission("defineClassInPackage.java.lang")}, + {"RuntimePermission accessDeclaredMembers", new RuntimePermission("accessDeclaredMembers")}, + {"RuntimePermission queuePrintJob", new RuntimePermission("queuePrintJob")}, + + {"SecurityPermission createAccessControlContext", new SerializablePermission("createAccessControlContext")}, + {"SecurityPermission getDomainCombiner", new SerializablePermission("getDomainCombiner")}, + {"SecurityPermission getPolicy", new SerializablePermission("getPolicy")}, + {"SecurityPermission setPolicy", new SerializablePermission("setPolicy")}, + {"SecurityPermission setSystemScope", new SerializablePermission("setSystemScope")}, + {"SecurityPermission setIdentityPublicKey", new SerializablePermission("setIdentityPublicKey")}, + {"SecurityPermission setIdentityInfo", new SerializablePermission("setIdentityInfo")}, + {"SecurityPermission addIdentityCertificate", new SerializablePermission("addIdentityCertificate")}, + {"SecurityPermission removeIdentityCertificate", new SerializablePermission("removeIdentityCertificate")}, + {"SecurityPermission printIdentity", new SerializablePermission("printIdentity")}, + {"SecurityPermission getSignerPrivateKey", new SerializablePermission("getSignerPrivateKey")}, + {"SecurityPermission setSignerKeyPair", new SerializablePermission("setSignerKeyPair")}, + + {"SerializablePermission enableSubclassImplementation", new SerializablePermission("enableSubclassImplementation")}, + {"SerializablePermission enableSubstitution", new SerializablePermission("enableSubstitution")}, + + {"SQLPermission", new SQLPermission("setLog")}, + + // 1.4 {"SSLPermission setHostnameVerifier", new SSLPermission("setHostnameVerifier")} + // 1.4{"SSLPermission getSSLSessionContext", new SSLPermission("getSSLSessionContext")} + }; + + /** + * Set of Permissions to test. One is added if the Document is loaded from a host + */ + private Object[][] permissions; + + /** + * Reference to the rectangles which show the test status + */ + private Element[] statusRects; + + /** + * Runs this handler. This method is called by the SVG viewer + * when the scripts are loaded. + * @param doc The current document. + * @param win An object which represents the current viewer. + */ + public void run(final Document doc, final Window win){ + int nGrantedTmp = 0; + + // + // If the document is loaded over the network, check that the + // class has permission to access the server + // + URL docURL = ((SVGOMDocument)doc).getURLObject(); + if (docURL != null && docURL.getHost() != null && !"".equals(docURL.getHost())) { + permissions = new Object[basePermissions.length + 3][2]; + System.arraycopy(basePermissions, 0, + permissions, 3, basePermissions.length); + + String docHost = docURL.getHost(); + if (docURL.getPort() != -1) { + docHost += ":" + docURL.getPort(); + } + + permissions[0][0] = "SocketPermission accept " + docHost; + permissions[0][1] = new SocketPermission(docHost, "accept"); + permissions[1][0] = "SocketPermission connect " + docHost; + permissions[1][1] = new SocketPermission(docHost, "connect"); + permissions[2][0] = "SocketPermission resolve " + docHost; + permissions[2][1] = new SocketPermission(docHost, "resolve"); + nGrantedTmp = 3; + } else { + permissions = basePermissions; + } + + // Captures the number of permissions which should be + // granted to this code. + final int nGranted = nGrantedTmp; + + // + // Build a table in the scrollable area of the document + // + Element securityResults = doc.getElementById("securityResults"); + statusRects = new Element[permissions.length]; + + for (int i=0; i values.length) { + n = values.length; + } + + for (i=0; iVincent Hardy + * @version $Id: rhinoSecurity.js 1733420 2016-03-03 07:41:59Z gadams $ + */ + +importPackage(Packages.java.awt); +importPackage(Packages.java.io); +importPackage(Packages.java.lang.reflect); +importPackage(Packages.java.net); +importPackage(Packages.java.security); +importPackage(Packages.java.sql); +importPackage(Packages.java.util); +importPackage(Packages.javax.sound.sampled); + +var svgNS = "http://www.w3.org/2000/svg"; +var testedPath = "build.sh"; +var testedHost = "nagoya.apache.org:8080"; + +var basePermissions = [ + ["AllPermission", new AllPermission()], + ["FilePermission read", new FilePermission(testedPath, "read")], + ["FilePermission write", new FilePermission(testedPath, "write")], + ["FilePermission execute", new FilePermission(testedPath, "execute")], + ["FilePermission delete", new FilePermission(testedPath, "delete")], + ["SocketPermission accept", new SocketPermission(testedHost, "accept")], + ["SocketPermission connect", new SocketPermission(testedHost, "connect")], + ["SocketPermission listen", new SocketPermission(testedHost, "listen")], + ["SocketPermission resolve", new SocketPermission(testedHost, "resolve")], + ["AudioPermission play", new AudioPermission("play")], + ["AudioPermission record", new AudioPermission("record")], + ["AWTPermission accessClipboard", new AWTPermission("accessClipboard")], + ["AWTPermission accessEventQueue", new AWTPermission("accessEventQueue")], + ["AWTPermission listenToAllAWTEvents", new AWTPermission("listenToAllAWTEvents")], + ["AWTPermission showWindowWithoutWarningBanner", new AWTPermission("showWindowWithoutWarningBanner")], + ["AWTPermission readDisplayPixels", new AWTPermission("readDisplayPixels")], + ["AWTPermission createRobot", new AWTPermission("createRobot")], + ["AWTPermission fullScreenExclusive", new AWTPermission("fullScreenExclusive")], + ["NetPermission setDefaultAuthenticator", new NetPermission("setDefaultAuthenticator")], + ["NetPermission requestPasswordAuthentication", new NetPermission("requestPasswordAuthentication")], + ["NetPermission specifyStreamHandler", new NetPermission("specifyStreamHandler")], + ["PropertyPermission java.home read", new PropertyPermission("java.home", "read")], + ["PropertyPermission java.home write", new PropertyPermission("java.home", "write")], + ["ReflectPermission", new ReflectPermission("suppressAccessChecks")], + ["RuntimePermission createClassLoader", new RuntimePermission("createClassLoader")], + ["RuntimePermission getClassLoader", new RuntimePermission("getClassLoader")], + ["RuntimePermission setContextClassLoader", new RuntimePermission("setContextClassLoader")], + ["RuntimePermission setSecurityManager", new RuntimePermission("setSecurityManager")], + ["RuntimePermission createSecurityManager", new RuntimePermission("createSecurityManager")], + ["RuntimePermission exitVM", new RuntimePermission("exitVM")], + ["RuntimePermission shutdownHooks", new RuntimePermission("shutdownHooks")], + ["RuntimePermission setFactory", new RuntimePermission("setFactory")], + ["RuntimePermission setIO", new RuntimePermission("setIO")], + ["RuntimePermission modifyThread", new RuntimePermission("modifyThread")], + ["RuntimePermission stopThread", new RuntimePermission("stopThread")], + ["RuntimePermission modifyThreadGroup", new RuntimePermission("modifyThreadGroup")], + ["RuntimePermission getProtectionDomain", new RuntimePermission("getProtectionDomain")], + ["RuntimePermission readFileDescriptor", new RuntimePermission("readFileDescriptor")], + ["RuntimePermission writeFileDescriptor", new RuntimePermission("writeFileDescriptor")], + ["RuntimePermission loadLibrary.{library name}", new RuntimePermission("loadLibrary.{library name}")], + ["RuntimePermission accessClassInPackage.java.security", new RuntimePermission("accessClassInPackage.java.security")], + ["RuntimePermission defineClassInPackage.java.lang", new RuntimePermission("defineClassInPackage.java.lang")], + ["RuntimePermission accessDeclaredMembers", new RuntimePermission("accessDeclaredMembers")], + ["RuntimePermission queuePrintJob", new RuntimePermission("queuePrintJob")], + ["SecurityPermission createAccessControlContext", new SerializablePermission("createAccessControlContext")], + ["SecurityPermission getDomainCombiner", new SerializablePermission("getDomainCombiner")], + ["SecurityPermission getPolicy", new SerializablePermission("getPolicy")], + ["SecurityPermission setPolicy", new SerializablePermission("setPolicy")], + ["SecurityPermission setSystemScope", new SerializablePermission("setSystemScope")], + ["SecurityPermission setIdentityPublicKey", new SerializablePermission("setIdentityPublicKey")], + ["SecurityPermission setIdentityInfo", new SerializablePermission("setIdentityInfo")], + ["SecurityPermission addIdentityCertificate", new SerializablePermission("addIdentityCertificate")], + ["SecurityPermission removeIdentityCertificate", new SerializablePermission("removeIdentityCertificate")], + ["SecurityPermission printIdentity", new SerializablePermission("printIdentity")], + ["SecurityPermission getSignerPrivateKey", new SerializablePermission("getSignerPrivateKey")], + ["SecurityPermission setSignerKeyPair", new SerializablePermission("setSignerKeyPair")], + ["SerializablePermission enableSubclassImplementation", new SerializablePermission("enableSubclassImplementation")], + ["SerializablePermission enableSubstitution", new SerializablePermission("enableSubstitution")], + ["SQLPermission", new SQLPermission("setLog")], + ]; + +var permissions = null; +var statusRects = null; +var nGranted = 0; +function init(){ + var docURL = document.getURLObject(); + if (docURL != null + && (docURL.getHost() != null) + && !( "" == docURL.getHost()) + ) { + permissions = new Array(); + + var docHost = docURL.getHost(); + if (docURL.getPort() != -1) { + docHost += ":" + docURL.getPort(); + } + + permissions[0] = ["SocketPermission accept " + docHost, + new SocketPermission(docHost, "accept")]; + permissions[1] = ["SocketPermission connect " + docHost, + new SocketPermission(docHost, "connect")]; + permissions[2] = ["SocketPermission resolve " + docHost, + new SocketPermission(docHost, "resolve")]; + // permissions.concat(basePermissions); + + for (var i=0; i 0){ + this.scrollToStep(this.curStep - 1); + } + } + + this.getHandleScrollDownFunction = function() { + var thisObject = this; + return function(evt) { thisObject.handleScrollDown(evt); } + } + + this.getHandleScrollUpFunction = function() { + var thisObject = this; + return function(evt) { thisObject.handleScrollUp(evt); } + } + + upArrow.addEventListener('click', this.getHandleScrollDownFunction(), false); + downArrow.addEventListener('click', this.getHandleScrollUpFunction(), false); + +} + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/style/basicsad.css b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/style/basicsad.css new file mode 100644 index 0000000..0bd2f0e --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/style/basicsad.css @@ -0,0 +1,39 @@ +/* + + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + */ + +.smiling { + visibility: hidden; +} + +.basicsad { + visibility: visible; +} + +.wow { + visibility: hidden; +} + +.grim { + visibility: hidden; +} + +.oups { + visibility: hidden; +} + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/style/cold.css b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/style/cold.css new file mode 100644 index 0000000..6fb01ad --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/style/cold.css @@ -0,0 +1,26 @@ +/* + + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + */ + +.logo { + fill: RoyalBlue; +} + +.light { + lighting-color: #dfd; +} diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/style/cssMediaList.css b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/style/cssMediaList.css new file mode 100644 index 0000000..a0d6706 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/style/cssMediaList.css @@ -0,0 +1,79 @@ +/* + + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + */ + +@media all { + .all { + visibility: visible; + } +} + +@media aural { + .aural { + visibility: visible; + } +} + +@media braille { + .braille { + visibility: visible; + } +} + +@media embossed { + .embossed { + visibility: visible; + } +} + +@media handheld { + .handheld { + visibility: visible; + } +} + +@media print { + .print { + visibility: visible; + } +} + +@media projection { + .projection { + visibility: visible; + } +} + +@media screen { + .screen { + visibility: visible; + } +} + +@media tty { + .tty { + visibility: visible; + } +} + +@media tv { + .tv { + visibility: visible; + } +} + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/style/cssMediaPrint.css b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/style/cssMediaPrint.css new file mode 100644 index 0000000..ee9f2a1 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/style/cssMediaPrint.css @@ -0,0 +1,42 @@ +/* + + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + */ + +.fancyBackground { + visibility: hidden; +} + +.background { + fill: white; + stroke: none; +} + +.sectionTitle { + stroke: none; + fill: black; + font-size: 14; +} + +.sectionContent { + visibility: visible; + font-size: 10; + fill: black; + stroke: none; +} + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/style/cssMediaProjection.css b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/style/cssMediaProjection.css new file mode 100644 index 0000000..2ae202b --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/style/cssMediaProjection.css @@ -0,0 +1,39 @@ +/* + + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + */ + +.fancyBackground { + visibility: visible; +} + +.background { + fill: black; + stroke: none; +} + +.sectionTitle { + stroke: none; + fill: white; + font-size: 14; + font-weight: bold; +} + +.sectionContent { + visibility: hidden; +} + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/style/cssMediaScreen.css b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/style/cssMediaScreen.css new file mode 100644 index 0000000..65f2a1f --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/style/cssMediaScreen.css @@ -0,0 +1,41 @@ +/* + + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + */ + +.fancyBackground { + visibility: hidden; +} + +.background { + fill: black; + stroke: none; +} + +.sectionTitle { + stroke: none; + fill: white; + font-size: 14; +} + +.sectionContent { + visibility: visible; + font-size: 10; + fill: white; + stroke: none; +} + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/style/default.css b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/style/default.css new file mode 100644 index 0000000..5404cba --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/style/default.css @@ -0,0 +1,39 @@ +/* + + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + */ + +.smiling { + visibility: hidden; +} + +.basicsad { + visibility: hidden; +} + +.wow { + visibility: hidden; +} + +.grim { + visibility: hidden; +} + +.oups { + visibility: hidden; +} + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/style/grim.css b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/style/grim.css new file mode 100644 index 0000000..3a19ffa --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/style/grim.css @@ -0,0 +1,39 @@ +/* + + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + */ + +.smiling { + visibility: hidden; +} + +.basicsad { + visibility: hidden; +} + +.wow { + visibility: hidden; +} + +.grim { + visibility: visible; +} + +.oups { + visibility: hidden; +} + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/style/hot.css b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/style/hot.css new file mode 100644 index 0000000..b68c025 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/style/hot.css @@ -0,0 +1,26 @@ +/* + + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + */ + +.logo { + fill: crimson; +} + +.light { + lighting-color: #ffd; +} diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/style/oups.css b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/style/oups.css new file mode 100644 index 0000000..4bff8e1 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/style/oups.css @@ -0,0 +1,39 @@ +/* + + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + */ + +.smiling { + visibility: hidden; +} + +.basicsad { + visibility: hidden; +} + +.wow { + visibility: hidden; +} + +.grim { + visibility: hidden; +} + +.oups { + visibility: visible; +} + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/style/smiling.css b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/style/smiling.css new file mode 100644 index 0000000..65dc9b0 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/style/smiling.css @@ -0,0 +1,39 @@ +/* + + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + */ + +.smiling { + visibility: visible; +} + +.basicsad { + visibility: hidden; +} + +.wow { + visibility: hidden; +} + +.grim { + visibility: hidden; +} + +.oups { + visibility: hidden; +} + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/style/subdir/useStylesheet.css b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/style/subdir/useStylesheet.css new file mode 100644 index 0000000..aa91cd0 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/style/subdir/useStylesheet.css @@ -0,0 +1,35 @@ +/* + + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + */ + +/* for the defs.svg part */ +.colorClassStylesheet { + fill: gold; +} + +.pattClassStylesheet { + fill: url(../../svg/defs.svg#patternExtReference); +} + +.gradClassStylesheet { + fill: url(../../svg/defs.svg#extGrad3); +} + +.colorOrangeStylesheet { + fill: orange; +} diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/style/subdir/useStylesheet2.css b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/style/subdir/useStylesheet2.css new file mode 100644 index 0000000..f65937b --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/style/subdir/useStylesheet2.css @@ -0,0 +1,27 @@ +/* + + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + */ + +/* for the useStylesheet.svg part */ +.gradClass2 { + fill: url(../../../spec/structure/useStylesheet.svg#grad); +} + +.colorClass2 { + fill: crimson; +} diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/style/test.css b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/style/test.css new file mode 100644 index 0000000..9c682a1 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/style/test.css @@ -0,0 +1,29 @@ +/* + + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + */ + +.title { + font-family: Arial, Helvetica; + font-size: 16; + text-anchor: middle; +} +.legend { + font-family: Arial, Helvetica; + font-size: 10; + text-anchor: middle; +} diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/style/wow.css b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/style/wow.css new file mode 100644 index 0000000..39c4d4b --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/style/wow.css @@ -0,0 +1,39 @@ +/* + + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + */ + +.smiling { + visibility: hidden; +} + +.basicsad { + visibility: hidden; +} + +.wow { + visibility: visible; +} + +.grim { + visibility: hidden; +} + +.oups { + visibility: hidden; +} + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/svg/defs.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/svg/defs.svg new file mode 100644 index 0000000..5bcd91f --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/svg/defs.svg @@ -0,0 +1,396 @@ + + + + + + + + + + + + + + + +Not a test - only contains definitions + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <g> + + + + + local + + + + + + inherited + + + + + + explicit + + + + + + + + + + <g> + + + + + local + + + + + + inherited + + + + + + explicit + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <g> + + + + + local + + + + + + inherited + + + + + + explicit + + + + + + + + + + <g> + + + + + local + + + + + + inherited + + + + + + explicit + + + + + + + + + + + + + + + <g> + + + + + local + + + + + + inherited + + + + + + explicit + + + + + + + + + + <g> + + + + + local + + + + + + inherited + + + + + + explicit + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/svg/defs2.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/svg/defs2.svg new file mode 100644 index 0000000..771f265 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/svg/defs2.svg @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + +Not a test - only contains definitions + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/ttf/glb12.ttf b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/ttf/glb12.ttf new file mode 100644 index 0000000..77ff2b4 Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/ttf/glb12.ttf differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/wmf/batik-rendering-nothing2.wmf b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/wmf/batik-rendering-nothing2.wmf new file mode 100644 index 0000000..d68c1eb Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/wmf/batik-rendering-nothing2.wmf differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/wmf/black_shapes.wmf b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/wmf/black_shapes.wmf new file mode 100644 index 0000000..151db43 Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/wmf/black_shapes.wmf differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/wmf/imageWMF.wmf b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/wmf/imageWMF.wmf new file mode 100644 index 0000000..08a8f78 Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/wmf/imageWMF.wmf differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/wmf/negApmText1.wmf b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/wmf/negApmText1.wmf new file mode 100644 index 0000000..78d0eec Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/wmf/negApmText1.wmf differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/wmf/negApmText2.wmf b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/wmf/negApmText2.wmf new file mode 100644 index 0000000..55ccf5b Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/wmf/negApmText2.wmf differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/wmf/testChart.wmf b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/wmf/testChart.wmf new file mode 100644 index 0000000..42c825a Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/wmf/testChart.wmf differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/wmf/textGreek.wmf b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/wmf/textGreek.wmf new file mode 100644 index 0000000..c8c799c Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/resources/wmf/textGreek.wmf differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/color/colorProfile.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/color/colorProfile.svg new file mode 100644 index 0000000..1fdaba2 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/color/colorProfile.svg @@ -0,0 +1,310 @@ + + + + + + + + + + + + + + + +<color-profile> test + + + + + + <color-profile> test + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + raster image + + + icc color values + + + + + rendering-intent + + auto + + + perceptual + + + + saturation + + + + rel. col. + + + + abs. col. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Input colors for both + raster and icc colors + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/color/colors.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/color/colors.svg new file mode 100644 index 0000000..665e4e1 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/color/colors.svg @@ -0,0 +1,189 @@ + + + + + + + + + + + + +SVG Color Identifiers + + + SVG Color Identifiers + + AliceBlue + AntiqueWhite + Aqua + Aquamarine + Azure + Beige + Bisque + Black + BlancheDalmond + Blue + BlueViolet + Brown + BurlyWood + CadetBlue + Chartreuse + Chocolate + Coral + CornFlowerBlue + CornSilk + Crimson + Cyan + DarkBlue + DarkCyan + DarkGoldenRod + DarkGray + DarkGreen + DarkGrey + DarkKhaki + DarkMagenta + DarkOliveGreen + DarkOrange + DarkOrchid + DarkRed + DarkSalmon + DarkSeaGreen + DarkSlateBlue + DarkSlateGray + DarkSlateGrey + DarkTurquoise + DarkViolet + DeepPink + DeepSkyBlue + DimGray + DimGrey + DodgerBlue + FireBrick + FloralWhite + ForestGreen + Fuchsia + Gainsboro + GhostWhite + Gold + GoldenRod + Gray + Green + Grey + GreenYellow + HoneyDew + HotPink + IndianRed + Indigo + Ivory + Khaki + Lavender + LavenderBlush + LawnGreen + LemonChiffon + LightBlue + LightCoral + LightCyan + LightGoldenRodYellow + LightGray + LightGreen + LightGrey + LightPink + LightSalmon + LightSeaGreen + LightSkyBlue + LightSlateGray + LightSlateGrey + LightSteelBlue + LightYellow + Lime + LimeGreen + Linen + Magenta + Maroon + MediumAquamarine + MediumBlue + MediumOrchid + MediumPurple + MediumSeaGreen + MediumSlateBlue + MediumSpringGreen + MediumTurquoise + MediumVioletRed + MidnightBlue + MintCream + MistyRose + Moccasin + NavajoWhite + Navy + OldLace + Olive + OliveDrab + Orange + OrangeRed + Orchid + PaleGoldenRod + PaleGreen + PaleTurquoise + PaleVioletRed + PapayaWhip + PeachPuff + Peru + Pink + Plum + PowderBlue + Purple + Red + RosyBrown + RoyalBlue + SaddleBrown + Salmon + SandyBrown + SeaGreen + SeaShell + Sienna + Silver + SkyBlue + SlateBlue + SlateGray + SlateGrey + Snow + SpringGreen + SteelBlue + Tan + Teal + Thistle + Tomato + Turquoise + Violet + Wheat + White + WhiteSmoke + Yellow + YellowGreen + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/color/systemColors.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/color/systemColors.svg new file mode 100644 index 0000000..0cdc26b --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/color/systemColors.svg @@ -0,0 +1,178 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + System Colors + + + System Colors + + + + + + + + Inactive Caption + + + + + + + + + Active Caption + + + + + + Menu + + + + + Selected + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Item 1 + + + Item 2 + + + Item 3 + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/coordinates/em.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/coordinates/em.svg new file mode 100644 index 0000000..f92ee57 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/coordinates/em.svg @@ -0,0 +1,84 @@ + + + + + + + + + + + + + + + +Test 'em' units + + + + + Test 'em' units + + + + + + width: 300 + + + width: 30em / font-size: 10 + + + width: 60em / font-size: 5 + + + width: 30em / font-size: 10px + + + width: 60em / font-size: 5px + + + + width: 30em / font-size: 5em / parent font-size: 2 + + + + + width: 30em / font-size: 5em / parent font-size: 2px + + + + width: 30em / font-size: 7.5pt (96dpi) + + + + width: 30em / font-size: 2em / parent font-size: 3.75pt (96dpi) + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/coordinates/percentagesAndUnits.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/coordinates/percentagesAndUnits.svg new file mode 100644 index 0000000..bbc202e --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/coordinates/percentagesAndUnits.svg @@ -0,0 +1,140 @@ + + + + + + + + + + + + + + + + +Test percentages and units + + + + + + Test percentages and units + + + + + + + + + + + + + + + + + + + + px + % + mm + + + TopLevel + + + + + + + + + + + + + + + + px + % + mm + + + Viewport in px + + + + + + + + + + + + + + + + + px + % + mm + + + Viewport in % + + + + + + + + + + + + + + + + + px + % + mm + + + Viewport in mm + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/filters/enableBackground.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/filters/enableBackground.svg new file mode 100644 index 0000000..7e5472e --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/filters/enableBackground.svg @@ -0,0 +1,177 @@ + + + + + + + + + + + + + + +enable-background Test + + + + + + + + Enable-Background Test + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Left Copied to right + + + + + + + + + + + + + + + + + + + + + + + Right is transparent + + + + + + + + + + + + + + + + + + + + + + + + Blobs opaquely merged w/ oval + + + + + + + + + + + + Copy of middle of first row (by setting enable-background bounds) + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/filters/feColorMatrix.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/filters/feColorMatrix.svg new file mode 100644 index 0000000..0238612 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/filters/feColorMatrix.svg @@ -0,0 +1,152 @@ + + + + + + + + + + + + + + +Filter Effect: feColorMatrix + + + + + + + Filter Effect: feColorMatrix + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Reference Image + + + + + type=luminanceToAlpha + + + + + type=hueRotate + + + + + type=saturate + + + + + type=matrix (alpha) + + + + + type=matrix (red) + + + + + type=matrix (green) + + + + + type=matrix (blue) + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/filters/feComponentTransfer.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/filters/feComponentTransfer.svg new file mode 100644 index 0000000..914cf4b --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/filters/feComponentTransfer.svg @@ -0,0 +1,215 @@ + + + + + + + + + + + + + + +Filter Effect: feComponentTransfer + + + + + + + + Filter Effect: feComponentTransfer + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Reference Image + + + + + type=linear + Red channel. Alpha 1. + + + + + type=linear + Red channel. Alpha 1. + + + + + type=linear + Blue channel. Alpha 1. + + + + + type=linear + Alpha Channel. + + + + + type=linear + 50% gray + + + + + type=linear + Brighten + + + + + type=linear + Darken + + + + + type=linear + Offset + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/filters/feComponentTransfer2.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/filters/feComponentTransfer2.svg new file mode 100644 index 0000000..5186fb7 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/filters/feComponentTransfer2.svg @@ -0,0 +1,221 @@ + + + + + + + + + + + + + + +Filter Effect: feComponentTransfer (2) + + + + + + + + + Filter Effect: feComponentTransfer (2) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Reference Image + + + + + type=table + Identity tables (0 1) + + + + + type=table + Invert RGB (1 0) + + + + + type=table + darkBlue-cyan + + + + + type=table + darkRed-orange + + + + + type=table + darkGreen-green + + + + + type=discrete + yellow-red + + + + + type=discrete + White-Yellow-Orange-Red + + + + + type=gamma + exponent (2.4) + offset (0) amplitude (1) + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/filters/feComposite.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/filters/feComposite.svg new file mode 100644 index 0000000..faa313e --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/filters/feComposite.svg @@ -0,0 +1,248 @@ + + + + + + + + + + + + + + + feComposite Test + + + + + + + + feComposite Test + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1.1 Check FeImage + + + + + + + + + + 1.2 Orange over blue + + + + + + + + + + + 1.3 Orange in blue + + + + + + + + + + + + + + + 2.1 Orange out blue + + + + + + + + + + 2.2 Orange atop blue + + + + + + + + + + + 2.3 Orange xor blue + + + + + + + + + + + + + + 3.1 Orange arithmetic blue + + + k1=0 k2=0.5 k3=0.5 k4=0 + + + + + + + + 3.2 Orange arithmetic blue + + + k1=0 k2=0.75 k3=0.25 k4=0 + + + + + + + + + 3.3 Orange arithmetic blue + + + k1=1 k2=0.5 k3=0.5 k4=0.2 + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/filters/feConvolveMatrix.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/filters/feConvolveMatrix.svg new file mode 100644 index 0000000..4d6d17b --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/filters/feConvolveMatrix.svg @@ -0,0 +1,351 @@ + + + + + + + + + + + + + + + + feMerge Test + + + + + + + + feConvolveMatrix Text + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1.1 Replicate Top & Right + + + + + + + + + + 1.2 Replicate Top, targetX + + + + + + + + + + 1.3 Replicate Right, targetY, norm + + + + + + + + + + + + + + + 3.1 Rep Bottom & Left + + + + + + + + + + 3.2 Rep Bottom & Right + + + + + + + + + + 3.3 Rep Top & Left + + + + + + + + + + + + + + + 3.2 None PreserveAlpha B&L + + + + + + + + + 3.2 None Top & Right + + + + + + + + + + 3.3 None Bottom & Left + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/filters/feDisplacementMap.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/filters/feDisplacementMap.svg new file mode 100644 index 0000000..25f009e --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/filters/feDisplacementMap.svg @@ -0,0 +1,179 @@ + + + + + + + + + + + + + + +Filter Effect: feDisplacementMap + + + + + + + Filter Effect: feDisplacementMap + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Reference + + + + + + + + + x only + + + + + + + + + y only + + + + + + + + + x and y + + + + + + + + + x and y (different) + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/filters/feGaussianDefault.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/filters/feGaussianDefault.svg new file mode 100644 index 0000000..286b801 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/filters/feGaussianDefault.svg @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/filters/feImage.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/filters/feImage.svg new file mode 100644 index 0000000..2499cb8 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/filters/feImage.svg @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + feImage Test + + + + + + + + feImage Test + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1.1 Reference + + + local element + + + + + + + + 1.2 Reference + + + external SVG file + + + + + + + + + + 1.3 Reference + + + external SVG element + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/filters/feImage2.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/filters/feImage2.svg new file mode 100644 index 0000000..d735411 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/filters/feImage2.svg @@ -0,0 +1,160 @@ + + + + + + + + + + + + + + +feImage Test + + + + + + + + feImage Test + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <symbol> + + + + + <svg> + + + + + <g> + + + + + + + feImage + <symbol> + + + + feImage + <svg> + + + + feImage + <g> + + + + + + + + + feImage ObjBBox + <symbol> + + + + + + + feImage ObjBBox + <svg> + + + + + + + feImage ObjBBox + <g> + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/filters/feMerge.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/filters/feMerge.svg new file mode 100644 index 0000000..3715b91 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/filters/feMerge.svg @@ -0,0 +1,237 @@ + + + + + + + + + + + + + + + + feMerge Test + + + + + + + + feMerge Test + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + lt green/blue/lt blue/green + + + + + + + + + + lt green/lt blue/blue/green + + + + + + + + + + + lt green/lt blue/green/blue + + + + + + + + + + + + + + + lt blue/green/lt green/blue + + + + + + + + + + lt blue/lt green/green/blue + + + + + + + + + + green/blue/lt blue/lt green + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/filters/feMorphology.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/filters/feMorphology.svg new file mode 100644 index 0000000..c368526 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/filters/feMorphology.svg @@ -0,0 +1,112 @@ + + + + + + + + + + + + + + +Filter Effect: feMorphology + + + + + + + Filter Effect: feMorphology + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + type=erode radius=1 + + + + + type=erode radius=2 + + + + + type=dilate radius=1 + + + + + type=dilate radius=3 + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/filters/feTile.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/filters/feTile.svg new file mode 100644 index 0000000..20b829e --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/filters/feTile.svg @@ -0,0 +1,147 @@ + + + + + + + + + + + + + + +feTile Test + + + + + + + feTile Test + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + tile_1 + 4 tiles, quarter size + + + + + + tile_2 (centered) + 9 tiles, 1 full, 8 partial + + + + + + tile_3 (top left offset) + 9 tiles, 1 full, 8 partial + + + + + + + + tile_1 + skewed X + + + + + + + + tile_2 + (centered, rotate & scale) + + + + + + + + tile_3 (top left offset) + skewed Y + + + + + + + How it should look like... + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/filters/feTileTarget.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/filters/feTileTarget.svg new file mode 100644 index 0000000..c1bf1de --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/filters/feTileTarget.svg @@ -0,0 +1,199 @@ + + + + + + + + + + + + + + + +feTile Visual Reference + + + + + + + feTile Test Visual Reference + + + + + + + + + + + + + + + + + + + + + + + + + + + + + tile_1 + Reference + + + + + + + + + + + + + + tile_1 Skewed Reference + Reference + + + + + + + + + + + + + + + + + + + + + + + tile_2 + Reference + + + + + + + + + + + + + + + + + + + + + + + + + tile_2 + Reference Scaled Rotated + + + + + + + + + + + + + + + + + + + + + + + + tile_3 + Reference + + + + + + + + + + + + + + + + + + + + + + + + + tile_3 + Reference Skewed Y + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/filters/feTurbulence.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/filters/feTurbulence.svg new file mode 100644 index 0000000..160e331 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/filters/feTurbulence.svg @@ -0,0 +1,112 @@ + + + + + + + + + + + + + + +Filter Effect: feTurbulence + + + + + + + + Filter Effect: feTurbulence + + + + + + + + + + + + + + + + + + + + + + + + + type=turbulence + baseFrequency=0.05 + numOctaves=2 + + + type=turbulence + baseFrequency=0.1 + numOctaves=2 + + + type=turbulence + baseFrequency=0.05 + numOctaves=8 + + + type=fractalNoise + baseFrequency=0.1 + numOctaves=4 + + + type=fractalNoise + baseFrequency=0.4 + numOctaves=4 + + + type=fractalNoise + baseFrequency=0.1 + numOctaves=1 + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/filters/filterRegions.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/filters/filterRegions.svg new file mode 100644 index 0000000..a70783d --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/filters/filterRegions.svg @@ -0,0 +1,482 @@ + + + + + + + + + + + + + + + + + + +FilterRegions test + + + Filter Regions + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + filterRegion_0 + + + + + + + + filterRegion_1 + + + + + + + filterRegion_2 + + + + + + + + + filterRegion_3 + + + + + + + + + filterRegion_4 + + + + + + + + + filterRegion_5 + + + + + + + + + + + filterRegion_6 + + + + + + + + + filterRegion_2_0 + + + + + + + + + + + filterRegion_2_1 + + + + + + + + + + + filterRegion_2_2 + + + + + + + + + + + filterRegion_2_3 + + + + + + + + + + + filterRegion_2_4 + + + + + + + + + + + filterRegion_2_5 + + + + + + + + + + + filterRegion_3_1 + + + + + + + + + + + filterRegion_3_0 + + + + + + + + + + + filterRegion_3_2 + + + + + + + + + + + filterRegion_3_3 + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/filters/svgEnableBackground.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/filters/svgEnableBackground.svg new file mode 100644 index 0000000..97cf48e --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/filters/svgEnableBackground.svg @@ -0,0 +1,189 @@ + + + + + + + + + + + + + + + + + enable-background Test on< + svg> + + + + + + + + + Enable-Background Test on< + svg> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Left Copied to right + + + + + + + + + + + + + + + + + + + + + + + Right is transparent + + + + + + + + + + + + + + + + + + + + + + + + Blobs opaquely merged w/ oval + + + + + + + + + + + + Copy of middle of first row (by setting + enable-background bounds) + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/fonts/batikFont.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/fonts/batikFont.svg new file mode 100644 index 0000000..0131aff --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/fonts/batikFont.svg @@ -0,0 +1,182 @@ + + + + + + + + + + + + + +SVGFont - Batik Font test + + + + + + Batik SVG Font + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Batik + BBB + aaa + tititi + kkk + ktiaB + atikB + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/fonts/fontAltGlyph.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/fonts/fontAltGlyph.svg new file mode 100644 index 0000000..cc31b99 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/fonts/fontAltGlyph.svg @@ -0,0 +1,230 @@ + + + + + + + + + + + + + +SVGFont - altGlyph test + + + + + + altGlyph Test + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + a +bc +de +fg + + ab +c +d +efg + + ab +c +d +efg + + abcdefg + + abcdefg + + abcdefg + + abcdefg + + abcdefg + + + + + altGlyph references local glyph + altGlyph references local altGlyphDef + altGlyph references external glyph + altGlyph references external altGlyphDef + local altGlyphDef with multiple glyphRefs (internal and external) + external altGlyphDef with multiple glyphRefs (internal and external) + local altGlyphDef with altGlyphItems (some containing invalid glyphRef URIs) + external altGlyphDef with altGlyphItems + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/fonts/fontAltGlyph2.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/fonts/fontAltGlyph2.svg new file mode 100644 index 0000000..92c295d --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/fonts/fontAltGlyph2.svg @@ -0,0 +1,146 @@ + + + + + + + + + + + + + + altGlyph, altGlyphItem + + + + altGlyph, altGlyphItem Test + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + altGlyph referencing a unique glyph... + ...which is valid : " + No Match +" + ...which has an + invalid + id : " No Match +" + ...which is + not + an actual glyph : " No Match +" + altGlyph referencing a glyphDef containing... + ...5 valid glyphRefs : " + No Match +" + ...4 valid and an + invalid + glyphRefs : " No Match +" + ...2 altGlyphItems (both valid) : " + No Match +" + ...2 altGlyphItems (2nd is valid) : " + No Match +" + ...2 altGlyphItems (both + invalid +) : " No Match +" + ...5 glyphRefs with dx/dy/rotate : " + No Match +" + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/fonts/fontAltGlyph3.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/fonts/fontAltGlyph3.svg new file mode 100644 index 0000000..f7c38f2 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/fonts/fontAltGlyph3.svg @@ -0,0 +1,230 @@ + + + + + + + + + + + + + +SVGFont - altGlyph test + + + + + + altGlyph Test + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + a +bc +de +fg + + ab +c +d +efg + + ab +c +d +efg + + abcdefg + + abefg + + abfg + + abcefg + + acdefg + + + + + altGlyph references local glyph + altGlyph references local altGlyphDef + altGlyph references external glyph + altGlyph references external altGlyphDef + local altGlyphDef with multiple glyphRefs (internal and external) + external altGlyphDef with multiple glyphRefs (internal and external) + local altGlyphDef with altGlyphItems (some containing invalid glyphRef URIs) + external altGlyphDef with altGlyphItems + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/fonts/fontArabic.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/fonts/fontArabic.svg new file mode 100644 index 0000000..f75e01e --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/fonts/fontArabic.svg @@ -0,0 +1,724 @@ + + + + + + + + + + + + + +SVGFont - arabic shaping test + + + + Arabic shaping test + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Arabic using SVG font: + + لماذا + لا + يتكلمون + اللّغة + العربية + فحسب؟ + + + arabic: + ءأؤإئابةت + ثجحخدذرزس + شصضطظعـفق + كلمنهوىِᙶ + + Arabic using system font: + + لماذا + لا + يتكلمون + اللّغة + العربية + فحسب؟ + + + arabic: + ءأؤإئابةت + ثجحخدذرزس + شصضطظعـفق + كلمنهوىِᙶ + + + Reference image of arabic text: + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/fonts/fontBounds.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/fonts/fontBounds.svg new file mode 100644 index 0000000..2ce3137 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/fonts/fontBounds.svg @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + SVGFont - Text/Font Bounds computation. + + SVGFont - Text/Font Bounds computation. + + + + + + + + + + + + + + + + + + + + + + + + + FOP + + + + + + FOP + + + The bottoms of the letters should + appear in black on top of the blue rect + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/fonts/fontChoice.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/fonts/fontChoice.svg new file mode 100644 index 0000000..7e9ddc5 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/fonts/fontChoice.svg @@ -0,0 +1,202 @@ + + + + + + + + + + + + + + + + +SVGFont - font selection test + + + + + + Font Selection Test + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Georgia + + + + + Bold Georgia + + + + + SansSerif + + Bold Italic SansSerif + + + + font-family="SVGGeorgia, SansSerif" + font-family="SVGGeorgia, SansSerif" font-weight="bold" + font-family="SansSerif, SVGGeorgia" + font-family="SVGGeorgia, SansSerif" font-weight="bold" font-style="italic" + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/fonts/fontDecorations.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/fonts/fontDecorations.svg new file mode 100644 index 0000000..7b65b95 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/fonts/fontDecorations.svg @@ -0,0 +1,303 @@ + + + + + + + + + + + + + +SVGFont - tspan and decoration test + + + + + + SVGFont - tspan and Decoration Test + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + abcde fghij + UnderLine + OverLine + LineThrough + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/fonts/fontExternalFont.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/fonts/fontExternalFont.svg new file mode 100644 index 0000000..4af041b --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/fonts/fontExternalFont.svg @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + +SVGFont - external font test + + + + + + External SVG Font Test + + + + + + + + + + Batik Batik + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/fonts/fontFace.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/fonts/fontFace.svg new file mode 100644 index 0000000..5a8270a --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/fonts/fontFace.svg @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <font-face> and @font-face test + <font-face> and @font-face test + + + SVG Batik Batik + CSS Batik Batik + + SVG Batik Batik + CSS Batik Batik + + SVG Batik Batik + CSS Batik Batik + + SVG Batik Batik + CSS Batik Batik + + SVG Batik Batik + CSS Batik Batik + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/fonts/fontFamilyCaseSensitivity.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/fonts/fontFamilyCaseSensitivity.svg new file mode 100644 index 0000000..a38b541 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/fonts/fontFamilyCaseSensitivity.svg @@ -0,0 +1,122 @@ + + + + + + + + + + + + + + +font-family case-sensitivity + + + + + + font-family case-sensitivity + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + System Font with proper case sensitivity + + Times New Roman + + + + System Font with improper case sensitivity + + times new roman for Times New Roman + + + + + SVG Font with proper case sensitivity + + Larabiefont + + + + + SVG Font with improper case sensitivity + + larabieFont for Larabiefont + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/fonts/fontGlyphChoice.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/fonts/fontGlyphChoice.svg new file mode 100644 index 0000000..cc82611 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/fonts/fontGlyphChoice.svg @@ -0,0 +1,418 @@ + + + + + + + + + + + + + +SVGFont - glyph selection test + + + + + + Glyph Selection Test + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Horizontal Text + Vertical Text + English + Français + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/fonts/fontGlyphsBoth.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/fonts/fontGlyphsBoth.svg new file mode 100644 index 0000000..69ce1a0 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/fonts/fontGlyphsBoth.svg @@ -0,0 +1,473 @@ + + + + + + + + + + + + + + + + + + SVGFont - both glyph types test + + + + SVG fonts - both glyph types + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + without kerning + + + + with kerning + + + + font + + + + svg + + + + font + + + + svg + + + + + + + + + + + + + + abcdefgᨊ + + + + + + + + + + + + + + + + + + + + + uvwxyz + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/fonts/fontGlyphsChildSVG.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/fonts/fontGlyphsChildSVG.svg new file mode 100644 index 0000000..cb28752 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/fonts/fontGlyphsChildSVG.svg @@ -0,0 +1,474 @@ + + + + + + + + + + + + + + + + + +SVGFont - children SVG test + + + + SVG fonts - glyphs SVG children + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + without kerning + + + + with kerning + + + + font + + + + svg + + + + mask + + + + font + + + + svg + + + + mask + + + + + + + + + + + + + + abcdefgᨊ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + abcdefgᨊ + + + + + + + + + + uvwxyz + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + uvwxyz + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/fonts/fontGlyphsD.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/fonts/fontGlyphsD.svg new file mode 100644 index 0000000..1f44000 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/fonts/fontGlyphsD.svg @@ -0,0 +1,477 @@ + + + + + + + + + + + + + + + + + +SVGFont - d attribute test + + + + + + SVG fonts - glyphs "d" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + without kerning + + + + with kerning + + + + font + + + + svg + + + + mask + + + + font + + + + svg + + + + mask + + + + + + + + + + + + + + abcdefgᨊ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + abcdefgᨊ + + + + + + + + + + uvwxyz + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + uvwxyz + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/fonts/fontKerning.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/fonts/fontKerning.svg new file mode 100644 index 0000000..b48581b --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/fonts/fontKerning.svg @@ -0,0 +1,262 @@ + + + + + + + + + + + + + +SVGFont - kerning test + + + + + + SVG fonts - kerning test + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Horizontal Kerning + + abcdefg + abcdefg + u1="U+0061-0063" + u2="U+0064-0066" k="500" + + uvwxyz + uvwxyz + u1="u" g2="v" k="-200" + u1="v" g2="w" k="-400" + u1="w" g2="x" k="200" + u1="x" g2="y" k="400" + u1="y" g2="z" k="-1000" + + abcxyz + abcxyz + u1="U+006?" u2="U+007?" k="-1000" + + + + + Vertical Kerning + + abcdefg + abcdefg + + abcdefg + abcdefg + + uvwxyz + uvwxyz + + abcxyz + abcxyz + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/fonts/fontOnPath.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/fonts/fontOnPath.svg new file mode 100644 index 0000000..47d566b --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/fonts/fontOnPath.svg @@ -0,0 +1,153 @@ + + + + + + + + + + + + + +SVGFont - text path test + + + + + + SVG Font with textPath Test + + + + + + + + + + + + + + + + + + Font on a Path + + startOffset="0%" + text-anchor="start" + + + + + + + Font on a Path + + startOffset="0%" + text-anchor="middle" + + + + + + Font on a Path + + startOffset="50%" + text-anchor="end" + + + + + + + Font on a Path + + startOffset="50%" + text-anchor="start" + + + + + + + Font on a Path + + startOffset="50%" + text-anchor="middle" + + + + + + Font on a Path + + startOffset="100%" + text-anchor="end" + + + + + + + Font on a Path + + startOffset="35" + text-anchor="start" + + + + + + + Font on a Path + + startOffset="35" + text-anchor="middle" + + + + + + Font on a Path + + startOffset="35" + text-anchor="end" + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/fonts/fontStyling.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/fonts/fontStyling.svg new file mode 100644 index 0000000..c6adc48 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/fonts/fontStyling.svg @@ -0,0 +1,273 @@ + + + + + + + + + + + + + + + + +SVGFont - font styling test + + + + + + Font Styling Test + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + abcd + efgh + ijij + klmn + opqr + + + + + + + + + + + + + + + + + + + + + + + The text style should match the style of the box beside it. + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/interactivity/cursor.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/interactivity/cursor.svg new file mode 100644 index 0000000..ea1ec5f --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/interactivity/cursor.svg @@ -0,0 +1,211 @@ + + + + + + + + + + + + + + + + Cursor Property + + + + + + + + + + + + + + + + + + + + auto + + + crosshair + + + + default + + + + pointer + + + + move + + + + text + + + + wait + + + + help + + + + <a> cursor=auto + + + + <a> cursor=wait + + + + <text> cursor=auto + + + + <text> cursor=wait + + + + <a>.. <text />.. <a> cursor=auto + + + + <a> <text /> <a> cursor=crosshair + + + + <text><a/><text> cursor=auto + + + + <text><a/><text> cursor=wait + + + + + + + + e-resize + + + + + w-resize + + + + ne-resize + + + + nw-resize + + + + n-resize + + + + se-resize + + + + sw-resize + + + + s-resize + + + + Bad url, crosshair + + + + Good url, wait + + + + Bad url, good url, crosshair + + + + + + <use cursor=auto (wait)> + + + + + <use cursor=crosshair> + + + + + + <image cursor=auto (wait)> + + + + + <image cursor=crosshair> + + + + + + + + + Done + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/interactivity/cursor2.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/interactivity/cursor2.svg new file mode 100644 index 0000000..bd3919a --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/interactivity/cursor2.svg @@ -0,0 +1,143 @@ + + + + + + + + + + + + + + + + Custom Cursor Hot Spot Test + + + + Try and hit the small black dot + after selecting your cursor + + + + + + + + + + + + Hit Count : 0 + + Cursor Selection + + + + + + + + + + + + + + Current Target Area Cursor + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/interactivity/cursor3.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/interactivity/cursor3.svg new file mode 100644 index 0000000..55d1741 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/interactivity/cursor3.svg @@ -0,0 +1,118 @@ + + + + + + + + + + + + + + + + Custom Cursor Image Test + + + + Try and hit the small black dot + after selecting your cursor + + + + + + + + + + + + Hit Count : 0 + + Cursor Selection + + + + + + + + Current Target Area Cursor + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/interactivity/cursor4.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/interactivity/cursor4.svg new file mode 100644 index 0000000..7754395 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/interactivity/cursor4.svg @@ -0,0 +1,180 @@ + + + + + + + + + + + + + + + + + + + + + Custom Cursor Image Test (cntd) + + + + Try and hit the small black dot + after selecting your cursor + + + + + + + + + + + + Hit Count : 0 + + Cursor Selection + + + + + + + + + + + + + + Current Target Area Cursor + + + + Broken Imagedefaults to crosshair + + + + Tiff Image + + + + PNG Image + + + + JPEG Image + + + + Unsupported Image (BMP)defaults to crosshair + + + + SVG Imagedefaults to crosshair + + + + SVG ImageNo viewBox/width/height + + + + SVG ImageViewBox, no width/height + + +y + SVG ImageViewBox, different aspect ratio + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/interactivity/cursorImage.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/interactivity/cursorImage.svg new file mode 100644 index 0000000..7e34351 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/interactivity/cursorImage.svg @@ -0,0 +1,22 @@ + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/interactivity/cursorImage2.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/interactivity/cursorImage2.svg new file mode 100644 index 0000000..65b049b --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/interactivity/cursorImage2.svg @@ -0,0 +1,21 @@ + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/interactivity/focus.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/interactivity/focus.svg new file mode 100644 index 0000000..92af1b7 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/interactivity/focus.svg @@ -0,0 +1,112 @@ + + + + + + + + + + + + + + + + + DOMFocusIn, DOMFocusOut, and DOMActivate test + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Done + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/interactivity/keyEvents.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/interactivity/keyEvents.svg new file mode 100644 index 0000000..a75f5d4 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/interactivity/keyEvents.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + + KeyEvents test(type an upper case 'A' on each color) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Done + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/interactivity/keyEvents2.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/interactivity/keyEvents2.svg new file mode 100644 index 0000000..0223f27 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/interactivity/keyEvents2.svg @@ -0,0 +1,620 @@ + + + + + + + + + + + + + + + + + + + KeyEvents test: DOM_VK_* values + + + + + + Type text over the canvas to see the code of the last key pressed + + Last key pressed: + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/interactivity/pointerEvents.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/interactivity/pointerEvents.svg new file mode 100644 index 0000000..77403d1 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/interactivity/pointerEvents.svg @@ -0,0 +1,1612 @@ + + + + + + + + + + + + + + + + + Test 'pointer-events' property + Test 'pointer-events' property + + + + + + Done + + + + + + + + + + + Painted + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Fill + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Stroke + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + All + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + None + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Visible + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + VisiblePainted + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + VisibleFill + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + VisibleStroke + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/linking/anchor.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/linking/anchor.svg new file mode 100644 index 0000000..89b1301 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/linking/anchor.svg @@ -0,0 +1,728 @@ + + + + + + + + + + + + + + +Anchor (<a/>) Test + + + + + + Anchor (<a>) TestClick in any of the links in the + table. You should see a smilley. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Return to test + + + + + + + Return to test + + + + + + + + + + + + + + + + + Link + + preventDefault + inside a + + preventDefault + outside a + + mouseover + prvtDflt + + click + prvtDflt + + + + + + + + + + + + + + <rect> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <circle> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <ellipse> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <line> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <polyline> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <polygon> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <path> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <image> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <image> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <text> + + + Ho, la, la! + + + + Ho, la, la! + + + + + Ho, la, la! + + + + + + Ho, la, la! + + + + + + Ho, la, la! + + + + + + + + + + + + + + + <use> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <g> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Element with two 'a' elems + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/linking/anchorInsideText.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/linking/anchorInsideText.svg new file mode 100644 index 0000000..d91cbfc --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/linking/anchorInsideText.svg @@ -0,0 +1,139 @@ + + + + + + + + + + + + + + + test anchor inside text + Click in any of the links in the table. You should see a smilley. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Return to test + + + + + + Return to test + + + + + + Return to test + + + + + + Return to test + + + + + + + + + + + +This is simple text under the text element +and here is a simple tspan +and +some more with nested tspan and more... + + + + + + + + +This is text with transform +and here is a simple tspan +and +some more with nested tspan and more... + + + + + + + + + +This is simple +text on a path +with nested tspan + and dy attributes +all with different links. + + + + +Only the +crimson tspan has an anchor + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/linking/linkingTransform.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/linking/linkingTransform.svg new file mode 100644 index 0000000..a9b6c19 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/linking/linkingTransform.svg @@ -0,0 +1,83 @@ + + + + + + + + + + + + + + +Linking and transform test + + + + + + + +Linking and transform test + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/linking/linkingViewBox.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/linking/linkingViewBox.svg new file mode 100644 index 0000000..d6a826a --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/linking/linkingViewBox.svg @@ -0,0 +1,85 @@ + + + + + + + + + + + + + + +Linking and viewBox test + + + + + + + +Linking and viewBox test + + + + +Click here to start... + + + + + + + +Go to 'orange' + + + + + +Go to 'gold' + + + + + +Go to 'grey' + + + + + +Back to 'crimson' + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/linking/pointerEvents.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/linking/pointerEvents.svg new file mode 100644 index 0000000..93313a9 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/linking/pointerEvents.svg @@ -0,0 +1,325 @@ + + + + + + + + + + + + + +Pointer Events Test + + + + 'pointer-events' Test + Click in any of the links in the + table. You should see a smilley. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Return to test + + + + + + + + + + + visiblePainted + + + + + visibleFill + + + + + visibleStroke + + + + + visible + + + + + painted + + + + + fill + + + + + stroke + + + + + all + + + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/linking/pointerEvents2.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/linking/pointerEvents2.svg new file mode 100644 index 0000000..1b36d56 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/linking/pointerEvents2.svg @@ -0,0 +1,256 @@ + + + + + + + + + + + + + + +Pointer Events Test + + + + 'pointer-events' Test + Click in any of the links in the + table. You should see a smilley. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Return to test + + + + + + + + + + + visiblePainted + + + + + visibleFill + + + + + visibleStroke + + + + + visible + + + + + painted + + + + + fill + + + + + stroke + + + + + all + + + + + none + + + + + + + + + + + + + Batik + Batik + + + + + + + + + + + + Batik + Batik + + + + + + + + + + + + Batik + Batik + + + + + + + + + + + + Batik + Batik + + + + + + + + + + + + Batik + Batik + + + + + + + + + + + + Batik + Batik + + + + + + + + + + + + Batik + Batik + + + + + + + + + + + + Batik + Batik + + + + + + + + + + + + Batik + Batik + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/masking/clip.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/masking/clip.svg new file mode 100644 index 0000000..5d9733d --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/masking/clip.svg @@ -0,0 +1,223 @@ + + + + + + + + + + + + + + +Clip Test + + + + + + + + Clip Test + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + clip_1_1 + + + + + + + + clip_1_2 + + + + + + + + clip_1_2 + + + + + + + + + + + + clip_2_1 + + + + + + + + clip_2_2 + + + + + + + + clip_2_3 + + + + + + + + + + + + clip_3_1 + + + + + + + + clip_3_2 + + + + + + + + clip_3_2 + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/masking/clipQuality.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/masking/clipQuality.svg new file mode 100644 index 0000000..e401210 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/masking/clipQuality.svg @@ -0,0 +1,239 @@ + + + + + + + + + + + + + + + + + + Clip Test (geometricPrecision) + + + + + + + Clip Test (geometricPrecision) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + clip_1_1 + + + + + + + + clip_1_2 + + + + + + + + clip_1_2 + + + + + + + + + + + + clip_2_1 + + + + + + + + clip_2_2 + + + + + + + + clip_2_3 + + + + + + + + + + + + clip_3_1 + + + + + + + + clip_3_2 + + + + + + + + clip_3_2 + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/masking/clipTransform.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/masking/clipTransform.svg new file mode 100644 index 0000000..a874038 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/masking/clipTransform.svg @@ -0,0 +1,78 @@ + + + + + + + + + + + + + + +Clip Transform Test + + Clip Transform Test + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +transform on <clipPath> +transform on <clipPath>'s children + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/masking/maskRegions.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/masking/maskRegions.svg new file mode 100644 index 0000000..2d95739 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/masking/maskRegions.svg @@ -0,0 +1,139 @@ + + + + + + + + + + + + + + + +Mask + + + + + + Mask Regions + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Masked + + + + + Mask 1 + + + + + Mask 2 + + + + + Mask 3 + + + + + Mask 4 + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/painting/bboxOnText.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/painting/bboxOnText.svg new file mode 100644 index 0000000..d8896bf --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/painting/bboxOnText.svg @@ -0,0 +1,60 @@ + + + + + + + + + + + + + +ObjectBounding box on TextNode + + + + + + + + + + + + + + + + + ObjectBoundingBox + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/painting/display.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/painting/display.svg new file mode 100644 index 0000000..dbd91be --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/painting/display.svg @@ -0,0 +1,177 @@ + + + + + + + + + + + + + + + + Test 'display' property + + + + + + + Test 'display' property + + + + + + + + + + + + + + + + + display:inherit + display:inline + display:none + + + <rect> + + <g> + + <clipPath> + + <mask> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/painting/image-rendering.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/painting/image-rendering.svg new file mode 100644 index 0000000..0f0b13d --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/painting/image-rendering.svg @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + + +Test the 'text-rendering' property + + + + + + Test the 'image-rendering' property + + + + + + + + + + auto + optimizeSpeed + optimizeQuality + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/painting/markersExt.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/painting/markersExt.svg new file mode 100644 index 0000000..2f6f166 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/painting/markersExt.svg @@ -0,0 +1,284 @@ + + + + + + + + + + + + + + + Marker Test + + + + + + + Markers on paths with just moves + and elliptical arcs + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Simple test of multiple moves + + + + + + + + + + + + + Another test of multiple moves + + + + + + + + + + + + + Test of rotated arcs + + + + + + + + + + + + + + + Test of arcs 2 + + + + + + + + + + + + + + + Test of arcs 3 + + + + + + + + + + + + + + + Test of arcs 4 + + + + + + + + + + + + + + Test of arcs 5 + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/painting/markersMisc.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/painting/markersMisc.svg new file mode 100644 index 0000000..9c9cb04 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/painting/markersMisc.svg @@ -0,0 +1,264 @@ + + + + + + + + + + + + + + +Marker Test + + + + + + + Markers, Ref Point, Overflow + markerUnits & viewBox + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Various values for refX/refY + start, middle and end + + + + + + + + + + + + + + + + + overflow="hidden" + overflow="visible" + Various values for the + overflow property + + + + + + + + + + + + + + Various values for the + viewBox property + + + + + + + + + + + + + + + + + markerUnits="strokeWidth" + markerUnits="userSpaceOnUse" + Various values for the + markerUnits property + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/painting/markersOrientA.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/painting/markersOrientA.svg new file mode 100644 index 0000000..51fb49d --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/painting/markersOrientA.svg @@ -0,0 +1,286 @@ + + + + + + + + + + + + + + +Marker Test + + + + + + Markers, Orient 1/2 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + moveTo + + + + lineTo + + + + quadTo + + + + cubicTo + + + + close + + + + + + start/end + Middle w/ moveTo + Middle w/ lineTo + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/painting/markersOrientB.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/painting/markersOrientB.svg new file mode 100644 index 0000000..37f58e7 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/painting/markersOrientB.svg @@ -0,0 +1,190 @@ + + + + + + + + + + + + + + +Marker Test + + + + + + Markers, Orient 2/2 + + + + + + + Middle w/quadTo + Middle w/ cubicTo + Middle w/ close + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/painting/markersPreserveAspectRatio.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/painting/markersPreserveAspectRatio.svg new file mode 100644 index 0000000..c0156aa --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/painting/markersPreserveAspectRatio.svg @@ -0,0 +1,582 @@ + + + + + + + + + + + + + + +Marker Test + + + + + + + Markers, preserveAspectRatio + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + yMin + + + + yMid + + + + yMax + + + + + + + + + + + + + + + + + + + + + + + + xMin + + + + + xMid + + + + + xMax + + + + + + + + + + + + meet + + + + slice + + + + none + + + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/painting/markersShapes.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/painting/markersShapes.svg new file mode 100644 index 0000000..3f3e65b --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/painting/markersShapes.svg @@ -0,0 +1,151 @@ + + + + + + + + + + + + + +Marker Test + + + + Markers, Shape Test + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <path> + + + + + + + + + <line> + + + + + + + + <polyline> + + + + + + + + <polygon> + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/painting/shape-rendering.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/painting/shape-rendering.svg new file mode 100644 index 0000000..77549a9 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/painting/shape-rendering.svg @@ -0,0 +1,64 @@ + + + + + + + + + + + + + + + +Test the 'shape-rendering' property + + + + + + Test the 'shape-rendering' property + + + + + + + + + + + + auto + optimizeSpeed + crispEdges + geometricPrecision + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/painting/stroke-rendering.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/painting/stroke-rendering.svg new file mode 100644 index 0000000..6a952ed --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/painting/stroke-rendering.svg @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + + Test the 'shape-rendering' property + + + + + Test the 'stroke-dashoffset' + property + + + + + + + + + + + stroke-width='0' + stroke-dasharray="10,10" + stroke-dashoffset="-15" + stroke-dashoffset="-25" + stroke-dashoffset="25" + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/painting/text-rendering.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/painting/text-rendering.svg new file mode 100644 index 0000000..c07a3f3 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/painting/text-rendering.svg @@ -0,0 +1,71 @@ + + + + + + + + + + + + + + + +Test the 'text-rendering' property + + + + + + Test the 'text-rendering' property + + + + + Batik + Batik + Batik + Batik + + + + Batik + Batik + Batik + Batik + + + + auto + optimizeSpeed + optimizeLegibility + geometricPrecision + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/painting/text-rendering2.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/painting/text-rendering2.svg new file mode 100644 index 0000000..7c6e923 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/painting/text-rendering2.svg @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + +Test the 'text-rendering' property + + + + + + + + + + + + + + + + + + + + + + + Test the 'text-rendering' property + + + (Using SVG font) + + + + + BATIK + BATIK + + BATIK + BATIK + + + + auto + optimizeSpeed + optimizeLegibility + geometricPrecision + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/painting/visibility.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/painting/visibility.svg new file mode 100644 index 0000000..9a1d49e --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/painting/visibility.svg @@ -0,0 +1,139 @@ + + + + + + + + + + + + + + + + + Test 'visibility' property inheritance + + + + + + Test 'visibility' property inheritance + + + + + + + + + inherit | inherit | inherit + <g> inherit + + + + + + inherit | inherit | inherit + <g> hidden + + + + + + + + + + + + + + + + + + + + + + inherit | hidden | visible + <g> inherit + + + + + + inherit | hidden | visible + <g> visible + + + + + + + + + + + + + + + + + + + + + inherit | hidden | visible + <g> collapse + + + + + + inherit | hidden | visible + <g> hidden + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/paints/externalPaints.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/paints/externalPaints.svg new file mode 100644 index 0000000..31ef1d3 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/paints/externalPaints.svg @@ -0,0 +1,94 @@ + + + + + + + + + + + + + + +Test external paint servers + + + + + + External Paint Servers + This file is using the defs.svg file to get the external resources + + + + + + + + + + + + + + + + + + + + + Linear Gradient + Radial Gradient + Pattern + + Simple Reference + Inheritance + Ext. Inheritance + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/paints/gradientLimit.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/paints/gradientLimit.svg new file mode 100644 index 0000000..fd095f8 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/paints/gradientLimit.svg @@ -0,0 +1,126 @@ + + + + + + + + + + + + + Limit test on Gradients + + Gradient Limit Test + + + + Close Offsets on linearGradient + The last two offsets of this linearGradient are + very close (0.000001) to one-another + + + + + + + Two close offsets + <linearGradient> + + + + Close Offsets on linearGradient + The last two offsets of this linearGradient are + very close (0.00000001) to one-another, with a + difference below the single precision floating + point + + + + + + + Two very close offsets + <linearGradient> + + + + Close Offsets on radialGradient + The last two offsets of this radialGradient are + very close (0.000001) to one-another + + + + + + + Two close offsets + <radialGradient> + + + + Close Offsets on radialGradient + The last two offsets of this radialGradient are + very close (0.00000001) to one-another + + + + + + + Two very close offsets + <radialGradient> + + + + Close control points on linearGradient + The y coordinates on the gradient are close + (0.00000001) to one-another + + + + + + Close control points + <linearGradient> + + + + Small radius on radialGradient + The radialGradient has a very small + (0.00000001) radius + + + + + + Small Radius + <radialGradient> + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/paints/gradientPoint.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/paints/gradientPoint.svg new file mode 100644 index 0000000..da1bcfe --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/paints/gradientPoint.svg @@ -0,0 +1,127 @@ + + + + + + + + + + + + + + Gradients on Points + Gradients on Points + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + hLinGrad + vLinGrad + hvLinGrad + radGrad + + No Scale + Scale Up + Scale Down + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/paints/linearGradientLine.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/paints/linearGradientLine.svg new file mode 100644 index 0000000..3d0e83c --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/paints/linearGradientLine.svg @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + Linear gradient on lines + + Linear gradient on lines + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + hGradient + vGradient + hvGradient + + horizontal <line> + vertical <Line> + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/paints/linearGradientOrientation.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/paints/linearGradientOrientation.svg new file mode 100644 index 0000000..0a2bfc0 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/paints/linearGradientOrientation.svg @@ -0,0 +1,161 @@ + + + + + + + + + + + + + + +Linear Gradient Orientation + + + + + + Linear Gradient Orientation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + x1 < x2 / y1 = y2 + x1 > x2 / y1 = y2 + + + x1 = x2 / y1 < y2 + x1 = x2 / y1 > y2 + + + x1 < x2 / y1 < y2 + x1 < x2 / y1 > y2 + + + x1 > x2 / y1 < y2 + x1 > x2 / y1 > y2 + + + x1 = x2 = y1 = y2 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/paints/linearGradientRepeat.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/paints/linearGradientRepeat.svg new file mode 100644 index 0000000..e354007 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/paints/linearGradientRepeat.svg @@ -0,0 +1,161 @@ + + + + + + + + + + + + + + <linearGradient> Repeat Test + + <linearGradient> Repeat Test + + + + + + + + + + + + Q + + A + + S + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Right + + + + + Up Right + + + + + Up + + + + + Up Left + + + + + + + Left + + + + + Down Left + + + + + Down + + + + + Down Right + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/paints/patternPreserveAspectRatioA.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/paints/patternPreserveAspectRatioA.svg new file mode 100644 index 0000000..4ebcfbb --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/paints/patternPreserveAspectRatioA.svg @@ -0,0 +1,556 @@ + + + + + + + + + + + + + +Pattern Region Test, B + + + patterns, preserveAspectRatio + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + yMin + + + + yMid + + + + yMax + + + + + + + + + + + + + + + + + + + + + + + + xMin + + + + + xMid + + + + + xMax + + + + + + + + + + + + meet + + + + slice + + + + none + + + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/paints/patternRegionA.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/paints/patternRegionA.svg new file mode 100644 index 0000000..12abb77 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/paints/patternRegionA.svg @@ -0,0 +1,227 @@ + + + + + + + + + + + + + + + +Pattern Region Test, A + + + patternRegion, x, y, width, height + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Pattern (4 times actual size) + + + + + + + Exact Fit in patternRegion + + + + + + patternRegion offset to the left + + + + + + patternRegion offset to the top + + + + + + patternRegion offset to the top/left + + + + + + + + + + patternRegion wider than content + + + + + + patternRegion higher than content + + + + + + patternRegion higher than content + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/paints/patternRegionB.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/paints/patternRegionB.svg new file mode 100644 index 0000000..53eb961 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/paints/patternRegionB.svg @@ -0,0 +1,245 @@ + + + + + + + + + + + + + + + +Pattern Region Test, B + + + patternRegion, x, y, width, height, viewBox + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Pattern (4 times actual size) + + + + + + + Exact Fit in patternRegion + + + + + + pattern content offset to the right + + + + + + + pattern content offset to the bottom + + + + + + + pattern content offset to the bottom/right + + + + + + + + + + Exact Fit in patternRegion + + + + + + pattern content X stretch + + + + + + pattern content Y stretch + + + + + + pattern content X/Y stretch + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/paints/patternRegions.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/paints/patternRegions.svg new file mode 100644 index 0000000..c5279fe --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/paints/patternRegions.svg @@ -0,0 +1,263 @@ + + + + + + + + + + + + + + + +Pattern Tests + + + patternUnits / patternContentUnits + + + pattern viewBox + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #pattern1 + + patternUnits=default + contentUnits=default + no viewbox + + + + + + #pattern2 + + patternUnits=objectBoundingBox + contentUnits=default + + + + + + #pattern3 + + patternUnits=userSpaceOnUse + contentUnits=default + overflow=visible + + + + + + #pattern4 + + patternUnits=default + contentUnits=objectBoundingBox + overflow=visible + + + + + + #pattern5 + + patternUnits=objectBoundingBox + contentUnits=objectBoundingBox + + + + + + #pattern6 + + patternUnits=userSpaceOnUse + contentUnits=objectBoundingBox + + + + + + #pattern7 + + patternUnits=userSpaceOnUse + contentUnits=objectBoundingBox + viewBox preserveAspectRatio=none + + + + + + #pattern8 + + same as pattern#7 with + preserveAspectRatio=xMinYmin meet + + + + + + #pattern9 + + preserveAspectRatio=xMinYmin slice + overflow=visible + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/paints/radialGradient.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/paints/radialGradient.svg new file mode 100644 index 0000000..274ebbf --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/paints/radialGradient.svg @@ -0,0 +1,254 @@ + + + + + + + + + + + + + <radialGradient> Test 1 (Simple) + + <radialGradient> Test 1 (Simple) + + + + + + + + + + + + Q + + A + + S + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Defaults + + + + + Forced Defaults + + + + + userSpaceOnUse + + + + + (cx,cy) = (0%, 100%) + + + + + (cx,cy) = (75%, 25%) + + + + + + + + + (fx,fy)=(60%,40%) + + + + + (fx,fy)=(0%,50%) + + + + + (fx,fy)=(0%,0%) + + + + + r=.125, spread=default + + + + + r=.125, spread=reflect + + + + + r=.125, spread=repeat + + + + + + + + + + translate(.5,.5) + + + + + (cx,cy)=(0%,0%) translate(.5,.5) + + + + + scale(1.5,.25) + + + + + (fx,fy)=(0,0) scale(.5, .5) + + + + + (fx,fy)=(cx, cy)=(0%, 100%) + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/paints/radialGradient2.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/paints/radialGradient2.svg new file mode 100644 index 0000000..6568fe9 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/paints/radialGradient2.svg @@ -0,0 +1,262 @@ + + + + + + + + + + + + + + + <radialGradient> Test 2 (Discontinuity) + + <radialGradient> Test 2 (Discontinuity) + + + + + + + + + + + + + Q + + A + + S + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Defaults + + + + + Forced Defaults + + + + + userSpaceOnUse + + + + + (cx,cy) = (0%, 100%) + + + + + (cx,cy) = (75%, 25%) + + + + + + + + + (fx,fy)=(60%,40%) + + + + + (fx,fy)=(0%,50%) + + + + + (fx,fy)=(0%,0%) + + + + + r=.125, spread=default + + + + + r=.125, spread=reflect + + + + + r=.125, spread=repeat + + + + + + + + + + translate(.5,.5) + + + + + (cx,cy)=(0%,0%) translate(.5,.5) + + + + + scale(1.5,.25) + + + + + (fx,fy)=(0,0) scale(.5, .5) + + + + + (fx,fy)=(cx, cy)=(0%, 100%) + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/paints/radialGradient3.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/paints/radialGradient3.svg new file mode 100644 index 0000000..d003f1b --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/paints/radialGradient3.svg @@ -0,0 +1,257 @@ + + + + + + + + + + + + + + <radialGradient> Test 3 (Complex lookup) + + <radialGradient> Test 3 (Complex lookup) + + + + + + + + + + + + Q + + A + + S + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Defaults + + + + + Forced Defaults + + + + + userSpaceOnUse + + + + + (cx,cy) = (0%, 100%) + + + + + (cx,cy) = (75%, 25%) + + + + + + + + + (fx,fy)=(60%,40%) + + + + + (fx,fy)=(0%,50%) + + + + + (fx,fy)=(0%,0%) + + + + + r=.125, spread=default + + + + + r=.125, spread=reflect + + + + + r=.125, spread=repeat + + + + + + + + + + translate(.5,.5) + + + + + (cx,cy)=(0%,0%) translate(.5,.5) + + + + + scale(1.5,.25) + + + + + (fx,fy)=(0,0) scale(.5, .5) + + + + + (fx,fy)=(cx, cy)=(0%, 100%) + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/paints/radialGradientLine.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/paints/radialGradientLine.svg new file mode 100644 index 0000000..e9e0fea --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/paints/radialGradientLine.svg @@ -0,0 +1,72 @@ + + + + + + + + + + + + + + Radial gradient on lines + + Radial gradient on lines + + + + + + + + + + + + + + + + + + + + + Gradient + horizontal <line> + vertical <Line> + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/paints/radialGradientOrientation.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/paints/radialGradientOrientation.svg new file mode 100644 index 0000000..9b5e78b --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/paints/radialGradientOrientation.svg @@ -0,0 +1,150 @@ + + + + + + + + + + + + + + + +Radial Gradient Orientation + + + + + + Radial Gradient Orientation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + cx = cy / fx < fy + cx = cy / fx > fy + cx = cy / fx = fy + + cx < cy / fx < fy + cx < cy / fx > fy + cx < cy / fx = fy + + + cx > cy / fx < fy + cx > cy / fx > fy + cx > cy / fx = fy + + + r = 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/rendering/opacity.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/rendering/opacity.svg new file mode 100644 index 0000000..886d14f --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/rendering/opacity.svg @@ -0,0 +1,125 @@ + + + + + + + + + + + + + + +Opacity: stroke-opacity, fill-opacity, opacity + + + + + + + + Opacity : stroke-opacity, fill-opacity and opacity + + + + + + + + + + opacity:1 + stroke-opacity:1 + fill-opacity:1 + + + + + opacity:1 + stroke-opacity:1 + fill-opacity:0.5 + + + + + opacity:1 + stroke-opacity:0.5 + fill-opacity:1 + + + + + opacity:1 + stroke-opacity:0.5 + fill-opacity:0.5 + + + + + + opacity:0.5 + stroke-opacity:1 + fill-opacity:1 + + + + + opacity:0.5 + stroke-opacity:1 + fill-opacity:0.5 + + + + + opacity:0.5 + stroke-opacity:0.5 + fill-opacity:1 + + + + + opacity:0.5 + stroke-opacity:0.5 + fill-opacity:0.5 + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/rendering/opacity2.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/rendering/opacity2.svg new file mode 100644 index 0000000..1f14c74 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/rendering/opacity2.svg @@ -0,0 +1,125 @@ + + + + + + + + + + + + + + +Opacity: opacity on group + + + + + + + + Opacity2 : opacity on group + + + + + + + + + + + + + + opacity:1 + stroke-opacity:1 fill-opacity:1 + + + + + + + opacity:0.5 + stroke-opacity:1 fill-opacity:1 + + + + + + + + opacity:1 + stroke-opacity:0.5 fill-opacity:1 + + + + + + + opacity:0.5 + stroke-opacity:0.5 fill-opacity:1 + + + + + + + + opacity:1 + stroke-opacity:1 fill-opacity:0.5 + + + + + + + opacity:0.5 + stroke-opacity:1 fill-opacity:0.5 + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/rendering/paintOpacity.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/rendering/paintOpacity.svg new file mode 100644 index 0000000..b553701 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/rendering/paintOpacity.svg @@ -0,0 +1,232 @@ + + + + + + + + + + + + + + + +Paint Server Opacity Test + + + + + + Paint Server Opacity Test + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + rgb + radial grad + linear grad + pattern + + fill + stroke + + opaque + fill-opac. + combo + + + opaque + fill-opac. + combo + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/add.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/add.svg new file mode 100644 index 0000000..65cfe56 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/add.svg @@ -0,0 +1,84 @@ + + + + + + + + + + + + + + + + appendChild test 'onload' + + appendChild test 'onload' + + + + + + constructed using 'onload' + + + + + + + reference + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/addDescOnClick.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/addDescOnClick.svg new file mode 100644 index 0000000..c433128 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/addDescOnClick.svg @@ -0,0 +1,196 @@ + + + + + + + + + + + + + + + + Add Desc element "onClick" + + Add Desc element "onClick" + + + + + + + + + Pre Existing Title + + Pre Existing Desc + + + Pre Existing Title + + Pre-existing Desc + + Pre Existing Title + A constant Desc + + Pre-existing Desc + A constant title + + + Pre Existing TitleText 2 + + Title 1Pre-existing Desc + + Pre Existing TitleText 2 + + Title 1Pre-existing Desc + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/alert.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/alert.svg new file mode 100644 index 0000000..883c68b --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/alert.svg @@ -0,0 +1,105 @@ + + + + + + + + + + + + + + +Alert on mouse events + + + + + + + + + + Alert on mouse events + + + + + + + + + + + + + + + + + + + + + + mousedown + mouseup + + + mouseover + mouseout + + + mousemove + onclick + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/bbox.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/bbox.svg new file mode 100644 index 0000000..87e2fea --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/bbox.svg @@ -0,0 +1,403 @@ + + + + + + + + + + + + + + + + + Test getBBox interface + Test getBBox interface + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Normal + visiblilty="hidden" + display="none" + Update + + none + fill + stroke + fill+stroke + + none + fill + stroke + fill+stroke + + none + fill + stroke + fill+stroke + + none + fill+stroke + + + + + + + + getBBox + + + + + + + + + + getBBox + + + + + + + + + + getBBox + + + + + + + + + + getBBox + + + + + + + + + + + + + getBBox + + + + + + + + + + getBBox + + + + + + + + + + getBBox + + + + + + + + + + getBBox + + + + + + + + + + + + + getBBox + + + + + + + + + + getBBox + + + + + + + + + + getBBox + + + + + + + + + + getBBox + + + + + + + + + + + + + sm + + + + + + + + sm + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/boundsTransformChange.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/boundsTransformChange.svg new file mode 100644 index 0000000..ba1cfb5 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/boundsTransformChange.svg @@ -0,0 +1,67 @@ + + + + + + + + + + + + + + + Testing Update engine when bounds and transform change. + + This tests changing the bounds of an object then changing a + a parent's transform to ensure the dirty regions are properly + computed. + + + + + Squash the Bug + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/bug12933.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/bug12933.svg new file mode 100644 index 0000000..229ae70 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/bug12933.svg @@ -0,0 +1,113 @@ + + + + + + + + + + + + + + +UpdateTracker bug#12933 + + + + + + + UpdateTracker bug#12933 + + + + + + + + + + + + 1 + 2 + + Click 1 and 2, the bounding box of <rect> should appear in red + + + + + + + Done + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/circle.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/circle.svg new file mode 100644 index 0000000..76f566d --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/circle.svg @@ -0,0 +1,66 @@ + + + + + + + + + + + + + + + <circle> attributes 'onload' + + <circle> attributes in 'onload' + + + + + + + + + + + + + + + + cx, cy, r + cx, cy, r (units and %) + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/currentScaleTranslate.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/currentScaleTranslate.svg new file mode 100644 index 0000000..4367e49 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/currentScaleTranslate.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + svg current scale/translate modification + + + + + + test + test + test + test + test + test + test + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/display.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/display.svg new file mode 100644 index 0000000..d40e1ec --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/display.svg @@ -0,0 +1,104 @@ + + + + + + + + + + + + + + + 'display' property on 'onload' + + 'display' property on 'onload' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/domSVGColor.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/domSVGColor.svg new file mode 100644 index 0000000..d300442 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/domSVGColor.svg @@ -0,0 +1,183 @@ + + + + + + + + + + + + + + + Test DOM SVGColor Interface + + Test DOM SVGColor Interface + + + + + + + Before: + After: + + + + + Before: + After: + + + + + Before: + After: + + + + + Before: + After: + + + + + Before: + After: + + + + + Before: + After: + + + + + Before: + After: + + + + + Before: + After: + + + + + Before: + After: + + + + + Before: + After: + + + + + Before: + After: + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/ellipse.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/ellipse.svg new file mode 100644 index 0000000..d6c5c73 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/ellipse.svg @@ -0,0 +1,72 @@ + + + + + + + + + + + + + + + <ellipse> attributes 'onload' + + <ellipse> attributes in 'onload' + + + + + + + + + + + + + + + + + + + rx, ry, cx, cy + rx, ry, cx, cy + rx, ry, cx, cy (units and %) + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/enclosureList.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/enclosureList.svg new file mode 100644 index 0000000..811c327 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/enclosureList.svg @@ -0,0 +1,431 @@ + + + + + + + + + + + + + + + + Test of getEnclosureList interface + Test of getEnclosureList interface + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + This is a test of text encolsure!!! + + This is a test of text encolsure!!! + + This is a test of text encolsure!!!! + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/enclosureList2.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/enclosureList2.svg new file mode 100644 index 0000000..6f4bb5b --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/enclosureList2.svg @@ -0,0 +1,394 @@ + + + + + + + + + + + + + + + + + Test of getEnclosureList interface + Test of getEnclosureList interface + + + + + + + + + + + Painted + + + + simple + complex + + + + + + + + + + + + + + + + + + Fill + + + + simple + complex + + + + + + + + + + + + + + + + + + Stroke + + + + simple + complex + + + + + + + + + + + + + + + + + + All + + + + simple + complex + + + + + + + + + + + + + + + + + + None + + + + simple + complex + + + + + + + + + + + + + + + + + + Visible + + + + simple + complex + + + + + + + + + + + + + + + + + + VisiblePainted + + + + simple + complex + + + + + + + + + + + + + + + + + + VisibleFill + + + + simple + complex + + + + + + + + + + + + + + + + + + VisibleStroke + + + + simple + complex + + + + + + + + + + + + \ No newline at end of file diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/eventAttrAdd.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/eventAttrAdd.svg new file mode 100644 index 0000000..ffc9b79 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/eventAttrAdd.svg @@ -0,0 +1,108 @@ + + + + + + + + + + + + + + + + + + + Addtion/Modification/Removal of event attributes. + Addtion/Modification/Removal of event attributes. + Click Rect to start test + + + + + Event Attr Add + + + + Event Attr Modify + + + + Event Attr Remove + + + + \ No newline at end of file diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/fill.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/fill.svg new file mode 100644 index 0000000..2604caf --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/fill.svg @@ -0,0 +1,54 @@ + + + + + + + + + + + + + + + fill property on 'onload' + + 'fill property on 'onload' + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/filterPatternUpdate.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/filterPatternUpdate.svg new file mode 100644 index 0000000..1655dee --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/filterPatternUpdate.svg @@ -0,0 +1,132 @@ + + + + + + + + + + + + + + + + + Filter and pattern with geometry updates + + Filter and pattern with geometry updates +(click on all shapes and see +filterPatternUpdateRef.svg) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + objectBoundingBox + userSpaceOnUse + <filter> + <pattern> + + + + + + + + + + + + + + + + Done + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/filterPatternUpdateRef.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/filterPatternUpdateRef.svg new file mode 100644 index 0000000..b224d35 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/filterPatternUpdateRef.svg @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + Filter and pattern with geometry updates + + Filter and pattern with geometry updates + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + objectBoundingBox + userSpaceOnUse + <filter> + <pattern> + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/forceRedraw.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/forceRedraw.svg new file mode 100644 index 0000000..a58a63f --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/forceRedraw.svg @@ -0,0 +1,105 @@ + + + + + + + + + + + + + + + <rect> moving display updated with forceRedraw() + + + + <rect> fill modification with redraw suspended. + + + + + + + + + + + + suspendRedraw 2000 + immediate forceRepaint() + + suspendRedraw 2000 + forceRepaint() @1s + + suspendRedraw 2000 + fill='blue' + forceRepaint() + fill='crimson' + + Loop on x with forceRepaint + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/getElementById.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/getElementById.svg new file mode 100644 index 0000000..87dc21b --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/getElementById.svg @@ -0,0 +1,184 @@ + + + + + + + + + + + + + + + + Test of 'getElementById' method + + Test of 'getElementById' method + + + + + + Test 1: + Test 2: + Test 3: + Test 4: + Test 5: + + Test 6: + Test 7: + Test 8: + Test 9: + Test 10: + + Test 11: + + + Test 12: + Test 13: + Test 14: + Test 15: + Test 16: + Test 17: + Test 18: + Test 19: + Test 20: + Test 21: + Test 22: + Test 23: + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/gradientsUpdate.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/gradientsUpdate.svg new file mode 100644 index 0000000..d2fc0ef --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/gradientsUpdate.svg @@ -0,0 +1,130 @@ + + + + + + + + + + + + + + + + + Gradients with geometry updates + + Gradients with geometry updates +(click on all shapes and see +gradientsUpdateRef.svg) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + objectBoundingBox + userSpaceOnUse + <linearGradient> + <radialGradient> + + + + + + + + + + + + + + + + Done + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/gradientsUpdateRef.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/gradientsUpdateRef.svg new file mode 100644 index 0000000..d600cd5 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/gradientsUpdateRef.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + Gradients with geometry updates + + Gradients with geometry updates + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + objectBoundingBox + userSpaceOnUse + <linearGradient> + <radialGradient> + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/image.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/image.svg new file mode 100644 index 0000000..6d1edbf --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/image.svg @@ -0,0 +1,98 @@ + + + + + + + + + + + + + +update on <image> + + + + + + + <image> dynamic tests + + + + + + + + + + SVG image x,y,width,height update + + + + + + + SVG Image : aspectRatio none + + + + + + + PNG Image x,y,width,height update + + + + + + + PNG Image : aspectRatio none + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/imageRefUpdate.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/imageRefUpdate.svg new file mode 100644 index 0000000..c171d01 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/imageRefUpdate.svg @@ -0,0 +1,90 @@ + + + + + + + + + + + + + +update on <image> + + + + + + + <image> dynamic tests + + + + + + + + + + SVG image Reference + + + + + + + SVG Image changed + + + + + + + PNG Image Reference + + + + + + + PNG Image changed + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/imageRendering.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/imageRendering.svg new file mode 100644 index 0000000..d49da7c --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/imageRendering.svg @@ -0,0 +1,66 @@ + + + + + + + + + + + + + + + + 'image-rendering' property test + + 'image-rendering' property test + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/imageUpdate.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/imageUpdate.svg new file mode 100644 index 0000000..ea9b156 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/imageUpdate.svg @@ -0,0 +1,134 @@ + + + + + + + + + + + + + + +update on <image> + + + + + + + <image> dynamic tests + + + + + + + + + + + + + SVG image ref,x,y,width,height update + + + + + + + + + SVG Image changed + + + + + + + + + 1 + 2 + + + Click 1 and 2, the image should change + and its size and position + + + + + + + + + + Done + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/imageraster.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/imageraster.svg new file mode 100644 index 0000000..aebb3ac --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/imageraster.svg @@ -0,0 +1,153 @@ + + + + + + + + + + + + + +update on <image> + + + + + + + <image> tests (preserveAspectRatio) + + + + + + + + + + xMin* meet + + + + + + + xMid* meet + + + + + + xMax* meet + + + + + + + *YMin meet + + + + + + + *YMid meet + + + + + + *YMax meet + + + + + + + xMin* slice + + + + + + + xMid* slice + + + + + + xMax* slice + + + + + + + + *YMin slice + + + + + + + *YMid slice + + + + + + *YMax slice + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/imagesvg.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/imagesvg.svg new file mode 100644 index 0000000..caa6300 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/imagesvg.svg @@ -0,0 +1,153 @@ + + + + + + + + + + + + + +update on <image> + + + + + + + <image> tests (preserveAspectRatio) + + + + + + + + + + xMin* meet + + + + + + + xMid* meet + + + + + + xMax* meet + + + + + + + *YMin meet + + + + + + + *YMid meet + + + + + + *YMax meet + + + + + + + xMin* slice + + + + + + + xMid* slice + + + + + + xMax* slice + + + + + + + + *YMin slice + + + + + + + *YMid slice + + + + + + *YMax slice + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/intersectionList.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/intersectionList.svg new file mode 100644 index 0000000..c07d3b8 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/intersectionList.svg @@ -0,0 +1,412 @@ + + + + + + + + + + + + + + + + + Test of getIntersectionList interface + Test of getIntersectionList interface + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +This is a test +of text intersection + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/intersectionList2.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/intersectionList2.svg new file mode 100644 index 0000000..2c1517c --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/intersectionList2.svg @@ -0,0 +1,394 @@ + + + + + + + + + + + + + + + + + Test of getIntersectionList interface + Test of getIntersectionList interface + + + + + + + + + + + Painted + + + + simple + complex + + + + + + + + + + + + + + + + + + Fill + + + + simple + complex + + + + + + + + + + + + + + + + + + Stroke + + + + simple + complex + + + + + + + + + + + + + + + + + + All + + + + simple + complex + + + + + + + + + + + + + + + + + + None + + + + simple + complex + + + + + + + + + + + + + + + + + + Visible + + + + simple + complex + + + + + + + + + + + + + + + + + + VisiblePainted + + + + simple + complex + + + + + + + + + + + + + + + + + + VisibleFill + + + + simple + complex + + + + + + + + + + + + + + + + + + VisibleStroke + + + + simple + complex + + + + + + + + + + + + \ No newline at end of file diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/javaBinding.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/javaBinding.svg new file mode 100644 index 0000000..2877830 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/javaBinding.svg @@ -0,0 +1,64 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Done + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/line.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/line.svg new file mode 100644 index 0000000..fcac873 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/line.svg @@ -0,0 +1,82 @@ + + + + + + + + + + + + + + + <line> attributes 'onload' + + <line> attributes in 'onload' + + + + + + + + + + + + + + + + + + + + + + + + + x1, y1, x2, y2 + x1, y1, x2, y2 (units and %) + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/markerUpdate.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/markerUpdate.svg new file mode 100644 index 0000000..7d4ef82 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/markerUpdate.svg @@ -0,0 +1,184 @@ + + + + + + + + + + + + + + + + + Marker with geometry updates + + Marker with geometry and property updates. + (click on shapes or run button) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + strokeWidth + userspaceuserSpaceOnUse + start + mid + end + marker + + <marker> + + + + + + + + + + + + + + + + + + + + Run + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/markerUpdateRef.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/markerUpdateRef.svg new file mode 100644 index 0000000..600b4fb --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/markerUpdateRef.svg @@ -0,0 +1,96 @@ + + + + + + + + + + + + + + + + + Marker with geometry updates + + Marker with geometry updates + + + + + + + + + + + + + + + + + + + + + + + + + + + + + strokeWidth + userSpaceOnUse + <marker> + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/maskClipUpdate.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/maskClipUpdate.svg new file mode 100644 index 0000000..179aa38 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/maskClipUpdate.svg @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + Clip and mask with geometry updates + + Clip and mask with geometry updates +(click on all shapes and see +maskClipUpdateRef.svg) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + objectBoundingBox + userSpaceOnUse + <clipPath> + <mask> + + + + + + + + + + + + + + + + + Done + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/maskClipUpdateRef.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/maskClipUpdateRef.svg new file mode 100644 index 0000000..366337f --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/maskClipUpdateRef.svg @@ -0,0 +1,108 @@ + + + + + + + + + + + + + + + + + Clip and mask with geometry updates + + Clip and mask with geometry updates + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + objectBoundingBox + userSpaceOnUse + <clipPath> + <mask> + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/memoryLeak1.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/memoryLeak1.svg new file mode 100644 index 0000000..a5f54bf --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/memoryLeak1.svg @@ -0,0 +1,88 @@ + + + + + + + + + + + + + + + + + + + + + Simple Text + Simple Text + Simple Text + + + + + + + + + + + + + + + + Some + Complex Text + Some + Complex Text + Some + Complex Text + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/modalEventTest.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/modalEventTest.svg new file mode 100644 index 0000000..967d412 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/modalEventTest.svg @@ -0,0 +1,118 @@ + + + + + + + + + + + + + + + + + + + Modal Event Test + + Modal Event Test + + + Test 1: Press mousedown on circle, move out, release + Test 2: Press mousedown out of circle, move in, release + Test 3: Press mousedown out of circle, move through, release + Hit the clear button between tests + + + + + + + + + + + + + + + + + + + + + + mousedown + + + + + mouseup + + + + + + Clear + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/nestedsvg.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/nestedsvg.svg new file mode 100644 index 0000000..5671384 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/nestedsvg.svg @@ -0,0 +1,58 @@ + + + + + + + + + + + + + + nested svg element + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/normalizedPathTest.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/normalizedPathTest.svg new file mode 100644 index 0000000..fdff1df --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/normalizedPathTest.svg @@ -0,0 +1,63 @@ + + + + + + + + + + + + + + Normalized Path Test + + + + + Normalized Path Test + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/paintType.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/paintType.svg new file mode 100644 index 0000000..37ba485 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/paintType.svg @@ -0,0 +1,142 @@ + + + + + + + + + + + + + + + + Test of paintType DOM interface + + Test of paintType DOM interface + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/path.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/path.svg new file mode 100644 index 0000000..c3b44b5 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/path.svg @@ -0,0 +1,55 @@ + + + + + + + + + + + + + + + <path> attributes 'onload' + + <path> attributes in 'onload' + + + + + + + + + d + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/pathLength.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/pathLength.svg new file mode 100644 index 0000000..585253b --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/pathLength.svg @@ -0,0 +1,122 @@ + + + + + + + + + + + + + + + + Test getPathLength and getPointAtLength interfaces + + Test getPathLength and getPointAtLength interfaces + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/path_pathSegList1.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/path_pathSegList1.svg new file mode 100644 index 0000000..af37687 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/path_pathSegList1.svg @@ -0,0 +1,256 @@ + + + + + + + + + + + + + + + + <path> getPathSegList 'onload' + + <path> getPathSegList() in 'onload' + + + + + + + + + getNumberOfItems + + + + path with + + + + + clear + + + + path with + + + + + + getItem + + + + Item 1: + + + + + + + insertItemBefore + + + + inserted seg + + + + + + replaceItem + + + + replaced seg + + + + + + removeItem + + + + Item removed : + + + + + + + initialize/appendItem + + + + intialized seg + + + appended seg + + + + + + setAttribute + + + + + before + + + after + + + + + + setAttribute2 + + + + segment 1 before + + + segment 1 after + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/path_pathSegList2.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/path_pathSegList2.svg new file mode 100644 index 0000000..95e70cd --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/path_pathSegList2.svg @@ -0,0 +1,162 @@ + + + + + + + + + + + + + + <path> getPathSegList 'onload' + + <path> getPathSegList() in 'onload' + + + + + + segment provider + + + + path with + + + + + insertItemBefore + + + + inserted seg + + + + + + replaceItem + + + + replaced seg + + + + + + initialize/appendItem + + + + intialized seg + + + appended seg + + + + + + new Path + + + path with + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/path_pathSegList_create.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/path_pathSegList_create.svg new file mode 100644 index 0000000..4eabf9a --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/path_pathSegList_create.svg @@ -0,0 +1,235 @@ + + + + + + + + + + + + + <path> attributes 'onload' + + <path> getPathSegList() +in 'onload' + + + + + + + + + MoveTo/LineTo/close + + + + + + MoveTo/HV/close + + + + + + MoveTo/Cubic + + + + + + MoveTo/Quadratic + + + + + + Cubic/CubicSmooth + + + + + + Quadratic/QuadraticSmooth + + + + + + Moveto/Arcto + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/polygon.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/polygon.svg new file mode 100644 index 0000000..77f2d15 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/polygon.svg @@ -0,0 +1,55 @@ + + + + + + + + + + + + + + + <polygon> attributes 'onload' + + <polygon> attributes in 'onload' + + + + + + + + + points + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/polygon_points1.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/polygon_points1.svg new file mode 100644 index 0000000..4ec0a96 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/polygon_points1.svg @@ -0,0 +1,238 @@ + + + + + + + + + + + + + + + <polygon> points attribute 'onload' + + <polygon> getPoints() in 'onload' + + + + + + getNumberOfItems + + + polygon with + + + + clear + + + + getItem + + + first point + + + + + insertItemBefore + + + inserted point + + + + + + replaceItem + + + replaced point + + + + + + removeItem + + + removed point + + + + + + initialize/appendItem + + + intialized point + + + appended point + + + + + + setAttribute + + + before + + + after + + + + + + setAttribute2 + + + point 0 before + + + point 0 after + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/polygon_points2.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/polygon_points2.svg new file mode 100644 index 0000000..76ed5cc --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/polygon_points2.svg @@ -0,0 +1,178 @@ + + + + + + + + + + + + + + + <polygon> attributes 'onload' + + <polygon> getPoints() in 'onload' + + + + + + points provider + + + + polygon with + + + + + insertItemBefore + + + + inserted point + + + + + + replaceItem + + + + replaced point + + + + + + initialize/appendItem + + + + intialized point + + + appended point + + + + + + new Polygon + + + polygon with + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/polyline.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/polyline.svg new file mode 100644 index 0000000..c606574 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/polyline.svg @@ -0,0 +1,55 @@ + + + + + + + + + + + + + + + <polyline> attributes 'onload' + + <polyline> attributes in 'onload' + + + + + + + + + points + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/polyline_points1.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/polyline_points1.svg new file mode 100644 index 0000000..579c501 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/polyline_points1.svg @@ -0,0 +1,237 @@ + + + + + + + + + + + + + + + <polyline> attributes 'onload' + + <polyline> getPoints() in 'onload' + + + + + + getNumberOfItems + + + polyline with + + + + clear + + + + getItem + + + first point + + + + + insertItemBefore + + + inserted point + + + + + + replaceItem + + + replaced point + + + + + + removeItem + + + removed point + + + + + + initialize/appendItem + + + intialized point + + + appended point + + + + + + setAttribute + + + before + + + after + + + + + + setAttribute2 + + + point 0 before + + + point 0 after + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/polyline_points2.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/polyline_points2.svg new file mode 100644 index 0000000..ed6a46a --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/polyline_points2.svg @@ -0,0 +1,178 @@ + + + + + + + + + + + + + + + <polyline> attributes 'onload' + + <polyline> getPoints() in 'onload' + + + + + + points provider + + + + polyline with + + + + + insertItemBefore + + + + inserted point + + + + + + replaceItem + + + + replaced point + + + + + + initialize/appendItem + + + + intialized point + + + appended point + + + + + + new Polyline + + + polyline with + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/primaryDoc.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/primaryDoc.svg new file mode 100644 index 0000000..a28bc03 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/primaryDoc.svg @@ -0,0 +1,64 @@ + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/rect.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/rect.svg new file mode 100644 index 0000000..1e557d6 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/rect.svg @@ -0,0 +1,84 @@ + + + + + + + + + + + + + + + <rect> attributes 'onload' + + <rect> attributes in 'onload' + + + + + + + + + + + + + + + + + + + + + + + x, y, width, height + x, y, width, height, rx + x, y, width, height, rx, ry + x, y, width, height, rx, ry (units and %) + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/rectResizeOnClick.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/rectResizeOnClick.svg new file mode 100644 index 0000000..6296fa4 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/rectResizeOnClick.svg @@ -0,0 +1,80 @@ + + + + + + + + + + + + + + + <rect> width & hieght modification in 'onclick' + + + + <rect> width & height modification in 'onclick' + + + + + Position A + + + Click Target + + + + + + + + + + + Click on the Click Target (crimson circle) + to resize the rectangle to fill the viewport. + Hiding everything but this text. + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/relativeURI.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/relativeURI.svg new file mode 100644 index 0000000..25a0d40 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/relativeURI.svg @@ -0,0 +1,228 @@ + + + + + + + + + + + + + + + + Test of CSS with relative URIs + Test of CSS with relative URIs + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Style + Computed + + fill + + + + cursor + + + + clip-path + + + + color-profile + + + + filter + + + + marker + + + + mask + + + + + + + + + \ No newline at end of file diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/remove.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/remove.svg new file mode 100644 index 0000000..fe63602 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/remove.svg @@ -0,0 +1,87 @@ + + + + + + + + + + + + + + + + removeChild test 'onload' + + removeChild test 'onload' + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/removeLast.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/removeLast.svg new file mode 100644 index 0000000..1706241 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/removeLast.svg @@ -0,0 +1,56 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/removeOnclick.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/removeOnclick.svg new file mode 100644 index 0000000..97bf22c --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/removeOnclick.svg @@ -0,0 +1,87 @@ + + + + + + + + + + + + + + + + removeChild test 'onload' + + removeChild test 'onclick' + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/resourceDocDynamic11.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/resourceDocDynamic11.svg new file mode 100644 index 0000000..e569e34 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/resourceDocDynamic11.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/resourceDocDynamic12.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/resourceDocDynamic12.svg new file mode 100644 index 0000000..34a28e7 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/resourceDocDynamic12.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/resourceDocStatic11.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/resourceDocStatic11.svg new file mode 100644 index 0000000..8d9a4fd --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/resourceDocStatic11.svg @@ -0,0 +1,30 @@ + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/resourceDocStatic12.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/resourceDocStatic12.svg new file mode 100644 index 0000000..95667db --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/resourceDocStatic12.svg @@ -0,0 +1,30 @@ + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/rootSizeChange.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/rootSizeChange.svg new file mode 100644 index 0000000..5c76ec1 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/rootSizeChange.svg @@ -0,0 +1,86 @@ + + + + + + + + + + + + + + + Testing Update engine when root changes size/location. + + To ensure proper test results you may need to turn off + double buffering and pause the animation and force a repaint, if + you see lots of junk then the repaint engine is not working + properly. + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/security.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/security.svg new file mode 100644 index 0000000..6b30d7a --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/security.svg @@ -0,0 +1,197 @@ + + + + + + + + + + + + + + + + + + + + + + + + + +Check Security Settings on Load + + + + + + + + + + + + + ECMA Script Security Check + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Test Result + + + + + Security Check Type + + + + + + + + + + + + + + + + + + + + + Run Test + + + + + + + + + not run + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/security2.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/security2.svg new file mode 100644 index 0000000..1fa824f --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/security2.svg @@ -0,0 +1,203 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Check Security Settings on Load + + + + + + + + + + + + + + + + Java Jar-file Security Check + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Test Result + + + + + Security Check Type + + + + + + + + + + + + + + + + + + + + + Run Test + + + + + + + + + not run + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/security3.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/security3.svg new file mode 100644 index 0000000..45f13c0 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/security3.svg @@ -0,0 +1,328 @@ + + + + + + + + + + + + + + + + + ECMA Script Secure Access to the Window Object + + + + + + + + + + + + + + setInterval + + + + + + + clearInterval + + + + + + + setTimeout + + + + + + + clearTimeout + + + + + + + parseXML + + + + + + + getURL + + + + + + + alert + + + + + + + confirm + + + + + + + prompt + + + + + + + eval + + + + + + + + + + Done + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/security3Include.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/security3Include.svg new file mode 100644 index 0000000..2a28d8b --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/security3Include.svg @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + I was + included with success + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/setProperty.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/setProperty.svg new file mode 100644 index 0000000..a521fcb --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/setProperty.svg @@ -0,0 +1,77 @@ + + + + + + + + + + + + + + + Testing CSS DOM with setProperty. + + + + + + + + + + + + Setting CSS properties through CSS DOM + Setting CSS properties through CSS DOM + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/styling.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/styling.svg new file mode 100644 index 0000000..81f83d8 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/styling.svg @@ -0,0 +1,171 @@ + + + + + + + + + Dynamic test of CSS selectors + Dynamic test of CSS selectors + + + + + + + Click me + Do I change? + + + Click Me! + + + Click me + + Child Text + + + + + Click me + + + + Click me + + + + Click me + + + + Click me + + + + + + + + + + + + Click Me + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/suspendRedraw.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/suspendRedraw.svg new file mode 100644 index 0000000..edf4bf4 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/suspendRedraw.svg @@ -0,0 +1,199 @@ + + + + + + + + + + + + + + + <rect> fill modification with redraw suspended. + + + + <rect> fill modification with redraw suspended. + + + + + + + + + + suspendRedraw(2000) + + unsuspendRedraw(id) @2s + + unsuspendRedrawAll() @2s + + + + + + + + + + + + suspendRedraw 1000, 2000 + + suspendRedraw 3000, 4000 + unsuspendAll @2s + + suspendRedraw 2000, 4000 + unsuspend 1st @1s + unsuspend 2nd @2s + + suspendRedraw 4000, 2000 + unsuspend 1st @2s + unsuspend 2nd @1s + + + + + + + + suspendRedraw 1000, 2000 + unsuspend 1st @ .5s + + suspendRedraw 3000, 2000 + unsuspend 1st @ 1.5s + + suspendRedraw 4000, 1000 + unsuspend 1st @ 2s + + + + + + + + suspendRedraw 2000, 1000 + unsuspend 2nd @ .5s + + suspendRedraw 2000, 3000 + unsuspend 2nd @ 1.5s + + suspendRedraw 1000, 4000 + unsuspend 2nd @ 2s + + + Click on the Rectangles one at a time. + The rectangles should change color ~2sec after you click + +--> + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/svg.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/svg.svg new file mode 100644 index 0000000..336e490 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/svg.svg @@ -0,0 +1,78 @@ + + + + + + + + + + + + + + + + svg viewport modification 'onclick' + + svg viewport modification 'onclick' + + + + + + + + + + + + + + + + + Done + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/svg2.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/svg2.svg new file mode 100644 index 0000000..7936764 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/svg2.svg @@ -0,0 +1,70 @@ + + + + + + + + + + + + + + + + svg viewport modification 'onclick' + + svg viewport modification 'onclick' + + + + + + + + + + + + + Done + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/svgFontMove.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/svgFontMove.svg new file mode 100644 index 0000000..cbe0c1b --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/svgFontMove.svg @@ -0,0 +1,66 @@ + + + + + + + + + + + + + + + + Testing script updates of SVG Font text. + Testing script updates of SVG Font text. + + + + + + + + + + + SVG Font Text + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/text.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/text.svg new file mode 100644 index 0000000..b90d560 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/text.svg @@ -0,0 +1,103 @@ + + + + + + + + + + + + + + + <text> attributes 'onload' + + <text> attributes in 'onload' + + + + + + + EXAMPLE1 + EXAMPLE2 + EXAMPLE3 + EXAMPLE4 + EXAMPLE5 + EXAMPLE6 + + + + + + EXAMPLE1 + EXAMPLE2 + EXAMPLE3 + EXAMPLE4 + EXAMPLE5 + EXAMPLE6 + + + + + + + x, y + dx, dy + rotate + + x, y ( list ) + dx, dy ( list ) + rotate ( list ) + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/textAllProperties.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/textAllProperties.svg new file mode 100644 index 0000000..69a7295 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/textAllProperties.svg @@ -0,0 +1,299 @@ + + + + + + + + + + + + + + + <tspan> attributes 'onload' + + <group> attributes in 'onload' + <text> attributes in 'onload' + <tspan> attributes in 'onload' + <tref> attributes in 'onload' + <textPath> attributes in 'onload' + + + fox + + + + + + + + + + the + quick + brown + + + + + + + + + + + + <tref> tests + + + + + <tspan> tests + + + + + <textPath> tests + + + + + <text> tests + + + + + <group> tests + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/textProperties.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/textProperties.svg new file mode 100644 index 0000000..45654c7 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/textProperties.svg @@ -0,0 +1,58 @@ + + + + + + + + + + + + + + + text CSS properties on 'onload' + + text CSS properties on 'onload' + + + + + + font-family:Arial + font-size:32 + fill:crimson + stroke:orange; font-size:18 + + text-anchor:start + text-anchor:middle + text-anchor:end + font-weight:bold + font-style:italic + letter-spacing:10 + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/textProperties2.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/textProperties2.svg new file mode 100644 index 0000000..1ee7ef8 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/textProperties2.svg @@ -0,0 +1,201 @@ + + + + + + + + + + + + + + + + + + + + Change! + +Text Properties + + + + + + + Text display and visibility. + + Visibility on text & tspans + Display on text & tspans + + + + + + + + + + + + + + + + + + + + + ---, ---, --- + ---, hid, vis + ---, hid, hid + hid, vis, hid + ---, ---, --- + ---, ---, --- + + hid, hid, --- + ---, ---, hid + ---, ---, vis + vis, ---, vis + ---, ---, hid + hid, ---, --- + + ---, ---, --- + ---, inl, non + ---, non, inl + ---, non, non + non, inl, non + + ---, non, --- + ---, ---, inl + ---, inl, --- + non, inl, inl + inl, ---, --- + + + Text tspan 1 tspan 2 more span 1 finish text + + Text tspan 1 tspan 2 more span 1 finish text + + Text tspan 1 tspan 2 more span 1 finish text + + Text tspan 1 tspan 2 more span 1 finish text + + Text tspan 1 tspan 2 more span 1 finish text + + Text tspan 1 tspan 2 more span 1 finish text + + + Text tspan 1 tspan 2 more span 1 finish text + Text tspan 1 tspan 2 more span 1 finish text + Text tspan 1 tspan 2 more span 1 finish text + Text tspan 1 tspan 2 more span 1 finish text + Text tspan 1 tspan 2 more span 1 finish text + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/textSelection.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/textSelection.svg new file mode 100644 index 0000000..030a751 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/textSelection.svg @@ -0,0 +1,85 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Multi-line + Text Selection with + ups and downs + + + + + + + + Zoom + + + + + Done + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/text_children1.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/text_children1.svg new file mode 100644 index 0000000..2bf92c2 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/text_children1.svg @@ -0,0 +1,152 @@ + + + + + + + + + + + + + + + <text> children 'onload' + + <text> children in 'onload' + + + + + + + + + + + + + + + + the quick brown fox + + + the quick brown fox + + + + + + + the quick brown fox + + + the quick brown fox + + + the quick brown fox + + + the quick brown fox + + + + + insert nodes + ( TEXT_NODE and CDATA_SECTION_NODE ) + + remove nodes + ( TEXT_NODE and CDATA_SECTION_NODE ) + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/text_children2.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/text_children2.svg new file mode 100644 index 0000000..285fffb --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/text_children2.svg @@ -0,0 +1,98 @@ + + + + + + + + + + + + + + + <text> children updates 'onload' + + <text> children in 'onload' + + + + + + + append at + delete any words + insert words + replace a sentence + + + + + append at the end + delete words + insert between words + replace a string + + + + TEXT_NODE.append + TEXT_NODE.delete + TEXT_NODE.insert + TEXT_NODE.replace + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/text_children3.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/text_children3.svg new file mode 100644 index 0000000..714741c --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/text_children3.svg @@ -0,0 +1,177 @@ + + + + + + + + + + + + + + + + + brown + + + + + <text> children 'onload' + + <text> children in 'onload' + + + + + + + the quick fox + + the quick fox + + the quick fox + + + the quick + brown + fox + + + + the quick + + fox + + + + the quick + brownfox + + + + + + the quick brown fox + + + the quick fox + + + the quick brown fox + + + the quick fox + + + the quick fox + + + the quick fox + + + + + insert nodes + ( <tspan>,<tref>,<textPath> ) + + remove nodes + ( <tspan>,<tref>,<textPath> ) + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/text_content.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/text_content.svg new file mode 100644 index 0000000..a843d5a --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/text_content.svg @@ -0,0 +1,340 @@ + + + + + + + + + + + + + + + + + Text content interface test. + Text content interface test + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Simple Text + Using + Tspan + Tspan + Dx/Dy + Tspan + X/Y + + + + + Text on a Path + + + + + + + Text on a Path + + + + + + + Text on a Path + + + + + + + glyphRefs: "No Match" + + + + phRefs: "No Match + + 5 valid glyphRefs: "No Match" + + 2 altGlyphItems, both + invalid: "No Match" + + 2 altGlyphItems, 2nd valid: "No Match" + + 5 glyphRefs, dx/dy/rotate: "No Match" + + ligature ABCDE + + + + + ligature ABCDE + + + ligature ABC + + + + + ligature ABCDE + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/text_dxlist1.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/text_dxlist1.svg new file mode 100644 index 0000000..1972790 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/text_dxlist1.svg @@ -0,0 +1,267 @@ + + + + + + + + + + + + + + <text> dx attribute 'onload' + + <text> getDx() in 'onload' + + + + + + getNumberOfItems + SVGLengthList + SVGLengthList + + text with + + + + + clear + SVGLengthList + + SVGLengthList + + + + text with + + + + + + getItem + + SVGLengthList + SVGLengthList + + + first point + + + + + insertItemBefore + + SVGLengthList + SVGLengthList + + + inserted point + + + + + + replaceItem + + SVGLengthList + SVGLengthList + + + replaced point + + + + + + removeItem + + SVGLengthList + SVGLengthList + + + removed point + + + + + + initialize/appendItem + + SVGLengthList + SVGLengthList + + + intialized point + + + appended point + + + + + + setAttribute + + SVGLengthList + SVGLengthList + + + before + + + after + + + + + + setAttribute2 + + SVGLengthList + SVGLengthList + + + point 0 before + + + point 0 after + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/text_dxlist2.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/text_dxlist2.svg new file mode 100644 index 0000000..38c7bf3 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/text_dxlist2.svg @@ -0,0 +1,140 @@ + + + + + + + + + + + + + <text> dx attribute 'onload' + + <text> getDx() in 'onload' + + + + + + getNumberOfItems + SVGLengthList + SVGLengthList + + text with + + + + + + insertItemBefore + + SVGLengthList + SVGLengthList + + + inserted point + + + + + + replaceItem + + SVGLengthList + SVGLengthList + + + replaced point + + + + + + removeItem + + SVGLengthList + SVGLengthList + + + intialized point + + + appended point + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/text_dylist1.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/text_dylist1.svg new file mode 100644 index 0000000..f7c8bf2 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/text_dylist1.svg @@ -0,0 +1,287 @@ + + + + + + + + + + + + + <text> dy attribute 'onload' + + + SVGLengthList + + <text> getDy() in 'onload' + + + + + + getNumberOfItems + + SVGLengthList + + SVGLengthList + + text with + + + + + clear + + SVGLengthList + + + SVGLengthList + + + + text with + + + + + + getItem + + + SVGLengthList + + SVGLengthList + + + first point + + + + + insertItemBefore + + + SVGLengthList + + SVGLengthList + + + inserted point + + + + + + replaceItem + + + SVGLengthList + + SVGLengthList + + + replaced point + + + + + + removeItem + + + SVGLengthList + + SVGLengthList + + + removed point + + + + + + initialize/appendItem + + + SVGLengthList + + SVGLengthList + + + intialized point + + + appended point + + + + + + setAttribute + + + SVGLengthList + + SVGLengthList + + + before + + + after + + + + + + setAttribute2 + + + SVGLengthList + + SVGLengthList + + + point 0 before + + + point 0 after + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/text_dylist2.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/text_dylist2.svg new file mode 100644 index 0000000..47c1136 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/text_dylist2.svg @@ -0,0 +1,151 @@ + + + + + + + + + + + + + <text> dy attribute 'onload' + + + SVGLengthList + + <text> getDy() in 'onload' + + + + + + getNumberOfItems + + SVGLengthList + + SVGLengthList + + text with + + + + + + insertItemBefore + + + SVGLengthList + + SVGLengthList + + + inserted point + + + + + + replaceItem + + + SVGLengthList + + SVGLengthList + + + replaced point + + + + + + removeItem + + + SVGLengthList + + SVGLengthList + + + intialized point + + + appended point + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/text_xlist1.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/text_xlist1.svg new file mode 100644 index 0000000..5a23944 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/text_xlist1.svg @@ -0,0 +1,266 @@ + + + + + + + + + + + + + <text> x attribute 'onload' + + <text> getX() in 'onload' + + + + + + getNumberOfItems + SVGLengthList + SVGLengthList + + text with + + + + + clear + SVGLengthList + + SVGLengthList + + + + text with + + + + + + getItem + + SVGLengthList + SVGLengthList + + + first point + + + + + insertItemBefore + + SVGLengthList + SVGLengthList + + + inserted point + + + + + + replaceItem + + SVGLengthList + SVGLengthList + + + replaced point + + + + + + removeItem + + SVGLengthList + SVGLengthList + + + removed point + + + + + + initialize/appendItem + + SVGLengthList + SVGLengthList + + + intialized point + + + appended point + + + + + + setAttribute + + SVGLengthList + SVGLengthList + + + before + + + after + + + + + + setAttribute2 + + SVGLengthList + SVGLengthList + + + point 0 before + + + point 0 after + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/text_xlist2.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/text_xlist2.svg new file mode 100644 index 0000000..4696f75 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/text_xlist2.svg @@ -0,0 +1,140 @@ + + + + + + + + + + + + + <text> x attribute 'onload' + + <text> getX() in 'onload' + + + + + + getNumberOfItems + SVGLengthList + SVGLengthList + + text with + + + + + + insertItemBefore + + SVGLengthList + SVGLengthList + + + inserted point + + + + + + replaceItem + + SVGLengthList + SVGLengthList + + + replaced point + + + + + + removeItem + + SVGLengthList + SVGLengthList + + + intialized point + + + appended point + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/text_ylist1.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/text_ylist1.svg new file mode 100644 index 0000000..c915619 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/text_ylist1.svg @@ -0,0 +1,287 @@ + + + + + + + + + + + + + <text> y attribute 'onload' + + + SVGLengthList + + <text> getY() in 'onload' + + + + + + getNumberOfItems + + + + + + text with + + + + + clear + + + + + + + + + text with + + + + + + getItem + + + + + + + + first point + + + + + insertItemBefore + + + + + + + + inserted point + + + + + + replaceItem + + + + + + + + replaced point + + + + + + removeItem + + + + + + + + removed point + + + + + + initialize/appendItem + + + + + + + + intialized point + + + appended point + + + + + + setAttribute + + + + + + + + before + + + after + + + + + + setAttribute2 + + + + + + + + point 0 before + + + point 0 after + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/text_ylist2.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/text_ylist2.svg new file mode 100644 index 0000000..b2a5a52 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/text_ylist2.svg @@ -0,0 +1,151 @@ + + + + + + + + + + + + + <text> y attribute 'onload' + + + SVGLengthList + + <text> getY() in 'onload' + + + + + + getNumberOfItems + + + + + + text with + + + + + + insertItemBefore + + + + + + + + inserted point + + + + + + replaceItem + + + + + + + + replaced point + + + + + + removeItem + + + + + + + + intialized point + + + appended point + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/textcontent/missing-glpyh.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/textcontent/missing-glpyh.svg new file mode 100644 index 0000000..803efeb --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/textcontent/missing-glpyh.svg @@ -0,0 +1,242 @@ + + + + + + + + + + + + + + + + + +Missing Glyph + + + + Missing Glyphs + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + aᨊbᨊcᨊdᨊeᨊfᨊgᨊ + + aᨊbᨊcᨊdᨊeᨊfᨊgᨊ + + ᨊabcdefg + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/textcontent/numberOfChars.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/textcontent/numberOfChars.svg new file mode 100644 index 0000000..b955292 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/textcontent/numberOfChars.svg @@ -0,0 +1,354 @@ + + + + + + + + + + + + + + +number of chars + + + + + + + + + + + + + + + + + + + + + + + + + + + +no text selected + +no text selected +no text selected + +textOnPath +textStyles +verticalText +textLayout +textEffect3 + +fontAltGlyph +fontAltGlyph2 +fontAltGlyph3 +BatikFont +fontDecorations + +fontOnPath +fontGlyphsBoth + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/textpathProperties.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/textpathProperties.svg new file mode 100644 index 0000000..48e589f --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/textpathProperties.svg @@ -0,0 +1,85 @@ + + + + + + + + + + + + + + + + <textPath> CSS properties on 'onload' + + <textPath> CSS properties on 'onload' + + + + + + + + + + + + + + + + + + + font-family:Arial + font-size:32 + fill:crimson + stroke:orange; font-size:18 + text-anchor:start + text-anchor:middle + text-anchor:end + font-weight:bold + font-style:italic + letter-spacing:10 + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/transform.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/transform.svg new file mode 100644 index 0000000..44c521e --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/transform.svg @@ -0,0 +1,113 @@ + + + + + + + + + + + + + + + transform attribute in 'onload' + + transform attributes in 'onload' + + + + + + + + + + + + + + + + + + + + + + + Batik + + + + + + + + + + + + + + + + + + + + + + Batik + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/transform2.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/transform2.svg new file mode 100644 index 0000000..27bf75f --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/transform2.svg @@ -0,0 +1,81 @@ + + + + + + + + + + + + + + + transform attribute in 'onload' (2) + + transform attributes in 'onload' (2) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/transform_create.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/transform_create.svg new file mode 100644 index 0000000..64e2707 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/transform_create.svg @@ -0,0 +1,174 @@ + + + + + + + + + + + + + SVGTransformable.getTransform() 'onload' + + SVGTransformable.getTransform() in 'onload' + + + + + + translate + + + + transform + + + + + rotate + + + + transform + + + + + + skewX + + + + transform + + + + + + skewY + + + + + transform + + + + + + scale + + + + + transform + + + + + + matrix + + + + + transform + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/transform_create1.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/transform_create1.svg new file mode 100644 index 0000000..d9497da --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/transform_create1.svg @@ -0,0 +1,180 @@ + + + + + + + + + + + + + SVGTransformable.transform 'onload' + + SVGTransformable.transform in 'onload' + + + + + + translate + + + + transform + + + + + rotate + + + + transform + + + + + + skewX + + + + transform + + + + + + skewY + + + + + transform + + + + + + scale + + + + + transform + + + + + + matrix + + + + + transform + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/transform_getTransform1.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/transform_getTransform1.svg new file mode 100644 index 0000000..d4d8e49 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/transform_getTransform1.svg @@ -0,0 +1,258 @@ + + + + + + + + + + + + + SVGTransformable.getTransform() 'onload' + + SVGTransformable.getTransform() in 'onload' + + + + + + getNumberOfItems + + + + rect with + + + + + clear + + + + rect with + + + + + + getItem + + + + transform 0 + + + + + + insertItemBefore + + + + + inserted transform + + + + + + replaceItem + + + + + replaced transform + + + + + + removeItem + + + + + removed point + + + + + + initialize/appendItem + + + + intialized transform + + + appended transform + + + + + + setAttribute + + + + before + + + after + + + + + + setAttribute2 + + + + transform 0 before + + + transform 0 after + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/transform_getTransform2.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/transform_getTransform2.svg new file mode 100644 index 0000000..db5fdf7 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/transform_getTransform2.svg @@ -0,0 +1,131 @@ + + + + + + + + + + + + + SVGTransformable.getTransform() 'onload' + + SVGTransformable.getTransform() in 'onload' + + + + + + transform_provider + + + + rect with + + + + + insertItemBefore + + + + + inserted transform + + + + + + replaceItem + + + + + replaced transform + + + + + + initialize/appendItem + + + + intialized transform + + + appended transform + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/trefProperties.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/trefProperties.svg new file mode 100644 index 0000000..d726978 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/trefProperties.svg @@ -0,0 +1,72 @@ + + + + + + + + + + + + + + + + <tref> CSS properties on 'onload' + + <tref> CSS properties on 'onload' + + + + + font-family:Arial + font-size:32 + fill:crimson + stroke:orange; font-size:18 + text-anchor:start + text-anchor:middle + text-anchor:end + font-weight:bold + font-style:italic + letter-spacing:10 + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/tspan.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/tspan.svg new file mode 100644 index 0000000..3d598bc --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/tspan.svg @@ -0,0 +1,104 @@ + + + + + + + + + + + + + + + <tspan> attributes 'onload' + + <tspan> attributes in 'onload' + + + + + + + + EXAMPLE1 + EXAMPLE2 + EXAMPLE3 + EXAMPLE4 + EXAMPLE5 + EXAMPLE6 + + + + + + EXAMPLE1 + EXAMPLE2 + EXAMPLE3 + EXAMPLE4 + EXAMPLE5 + EXAMPLE6 + + + + + + + x, y + dx, dy + rotate + + x, y ( list ) + dx, dy ( list ) + rotate ( list ) + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/tspanProperties.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/tspanProperties.svg new file mode 100644 index 0000000..b4d9649 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/tspanProperties.svg @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + <tspan> CSS properties on 'onload' + + <tspan> CSS properties on 'onload' + + + + + + font-family:Arial + font-size:32 + fill:crimson + stroke:orange; font-size:18 + + text-anchor:start + text-anchor:middle + text-anchor:end + font-weight:bold + font-style:italic + letter-spacing:10 + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/tspan_children1.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/tspan_children1.svg new file mode 100644 index 0000000..0e9abbc --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/tspan_children1.svg @@ -0,0 +1,152 @@ + + + + + + + + + + + + + + + <tspan> children 'onload' + + <tspan> children in 'onload' + + + + + + + + + + + + + + + + the quick brown fox + + + the quick brown fox + + + + + + + the quick brown fox + + + the quick brown fox + + + the quick brown fox + + + the quick brown fox + + + + + insert nodes + ( TEXT_NODE and CDATA_SECTION_NODE ) + + remove nodes + ( TEXT_NODE and CDATA_SECTION_NODE ) + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/tspan_children2.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/tspan_children2.svg new file mode 100644 index 0000000..9abd5cd --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/tspan_children2.svg @@ -0,0 +1,98 @@ + + + + + + + + + + + + + + + <tspan> children updates 'onload' + + <tspan> children in 'onload' + + + + + + + append at + delete any words + insert words + replace a sentence + + + + + append at the end + delete words + insert between words + replace a string + + + + TEXT_NODE.append + TEXT_NODE.delete + TEXT_NODE.insert + TEXT_NODE.replace + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/tspan_children3.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/tspan_children3.svg new file mode 100644 index 0000000..054d4d9 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/tspan_children3.svg @@ -0,0 +1,142 @@ + + + + + + + + + + + + + + + + + brown + + + + + <tspan> children 'onload' + + <tspan> children in 'onload' + + + + + + + + the quick fox + + + the quick fox + + + + the quick + brown + fox + + + + + the quick + + fox + + + + + + + the quick brown fox + + + the quick fox + + + the quick fox + + + the quick fox + + + + + insert nodes + ( <tspan>,<tref> ) + + remove nodes + ( <tspan>,<tref> ) + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/use.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/use.svg new file mode 100644 index 0000000..e66b095 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/use.svg @@ -0,0 +1,253 @@ + + + + + + + + + + + + + +Update on <use> + + x/y/transform update on <use> + + + + + + + + + + + + Hi + + + + + + + + + + + + + + + + + + + Attribute + + + + + <use> and ref + + + + + + + + x + + + + + + + + + + + + + + y + + + + + + + + + + + + + + transform + + + + + + + + + + + + + + xlink:href + + + + + + + + + + + + + + mutation + + + + + + + + + + + + + Run Test + + + + + + + + + Done + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/viewBoxOnLoad.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/viewBoxOnLoad.svg new file mode 100644 index 0000000..c938c9d --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/viewBoxOnLoad.svg @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + 'viewBox' modification in 'onload' + + + + + + + + + + + + + + viewBox modification + in 'onload' + + No red should show + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/visibility.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/visibility.svg new file mode 100644 index 0000000..550a312 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/visibility.svg @@ -0,0 +1,104 @@ + + + + + + + + + + + + + + + 'visibility' property on 'onload' + + 'visibility' property on 'onload' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/visibilityOnClick.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/visibilityOnClick.svg new file mode 100644 index 0000000..eb06609 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/visibilityOnClick.svg @@ -0,0 +1,135 @@ + + + + + + + + + + + + + + + 'visibility' property on 'onclick + + 'visibility' property on 'onclick' + + + + + + + + + + + + + + + + + + Click on the Click Target (crimson circle) + to toggle visibility on elements. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/xAnimOnClick.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/xAnimOnClick.svg new file mode 100644 index 0000000..324937b --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/xAnimOnClick.svg @@ -0,0 +1,109 @@ + + + + + + + + + + + + + + + <rect> x Animation in 'onclick' + + <rect> x Animation in 'onclick' + + + + + + Position A + + + + + + + + + + + + Position B + + + + + + + + + + + + + + + + + + + + + + + + + Click on Play button (green triangle) to start animation + Click on Pause button (yellow rects) to stop animation + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/xyModifOnClick.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/xyModifOnClick.svg new file mode 100644 index 0000000..1e0852e --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/xyModifOnClick.svg @@ -0,0 +1,77 @@ + + + + + + + + + + + + + <rect> x modification in 'onclick' + + <rect> x modification in 'onclick' + + + + + + Position A + + + + + + + + + + + + Position B + + + + + + + + + + + + + Click on the Position A or Position B + target (crimson circle) to move the rectangle + to a new position + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/xyModifOnLoad.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/xyModifOnLoad.svg new file mode 100644 index 0000000..85fafb8 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/xyModifOnLoad.svg @@ -0,0 +1,67 @@ + + + + + + + + + + + + + <rect> x modification in 'onload' + + <rect> x modification in 'onload' + + + + + + + + + <rect> position + before onload + + + + + + + <rect> position + after onload + + + + + The modified rectangle is orange + and should show on the right + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/zeroSize.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/zeroSize.svg new file mode 100644 index 0000000..67d4012 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/scripting/zeroSize.svg @@ -0,0 +1,238 @@ + + + + + + + + + + + + + + + + Resizing zero w/h items 'onload' + Resizing zero w/h items 'onload' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/shapes/emptyShape.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/shapes/emptyShape.svg new file mode 100644 index 0000000..a28bc56 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/shapes/emptyShape.svg @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + +Empty 'd', 'points' on <path>, <polyline> and <polygon> + + + + + +Empty 'd', 'points' on <path>, <polyline> and <polygon> + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/shapes/zero.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/shapes/zero.svg new file mode 100644 index 0000000..54abb2c --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/shapes/zero.svg @@ -0,0 +1,93 @@ + + + + + + + + + + + + + + + +Test zero length on various shapes + + + + + Test zero length on various shapes + Value of zero disables rendering of the elements + + + + + + + + + + + + + <rect> + <circle> + <ellipse> + + + + + + + + + + + width="0" + height="0" + width & height="0" + + + + + + + + r="0" + + + + + + + + + + rx="0" + ry="0" + rx & ry="0" + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/dataProtocol.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/dataProtocol.svg new file mode 100644 index 0000000..c341067 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/dataProtocol.svg @@ -0,0 +1,607 @@ + + + + + + + + + + + + + + +Data Protocol + + + + + + dataProtocol test + + + + + + Initial JPEG, encoded as PNG, data protocol + + + + + + + Initial PNG, encoded with data protocol + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/externalUseCascading.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/externalUseCascading.svg new file mode 100644 index 0000000..43579e9 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/externalUseCascading.svg @@ -0,0 +1,62 @@ + + + + + + + + + + + + + + +External <use> cascading + + + + + + External <use> cascading + This file is using the defs.svg file to get the external resources + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/image.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/image.svg new file mode 100644 index 0000000..2d885e7 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/image.svg @@ -0,0 +1,58 @@ + + + + + + + + + + + + + + + +Image element references an SVG file + + + + + + Image element references an SVG file + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/rasterImageViewBox.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/rasterImageViewBox.svg new file mode 100644 index 0000000..28d24d7 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/rasterImageViewBox.svg @@ -0,0 +1,456 @@ + + + + + + + + + + + + + + +<image> and viewBox & preserveAspectRatio + + + + + + viewBox & preserveAspectRatio on + raster <image> + + + + meet + + slice + + unspecified + + + + yMin + + + + yMid + + + + + yMax + + + + + + + yMin + + + + yMid + + + + + yMax + + + + + + yMin + + + + yMid + + + + + yMax + + + + + xMin + + + + xMid + + + + + xMax + + + + + + + + + + + + + + + + + + + + + + + + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/rasterImageViewBoxClip.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/rasterImageViewBoxClip.svg new file mode 100644 index 0000000..0009346 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/rasterImageViewBoxClip.svg @@ -0,0 +1,508 @@ + + + + + + + + + + + + + + + +<image> and viewBox & preserveAspectRatio + + + + + + viewBox & preserveAspectRatio on + raster <image> clip set to rect(5,4,3,2) + + + + meet + + slice + + unspecified + + + + yMin + + + + yMid + + + + + yMax + + + + + + + yMin + + + + yMid + + + + + yMax + + + + + + yMin + + + + yMid + + + + + yMax + + + + + xMin + + + + xMid + + + + + xMax + + + + + + + + + + + + + + + + + + + + + + + + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/rasterImageViewBoxOverflow.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/rasterImageViewBoxOverflow.svg new file mode 100644 index 0000000..c5a2c20 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/rasterImageViewBoxOverflow.svg @@ -0,0 +1,440 @@ + + + + + + + + + + + + + + +<image> and viewBox & preserveAspectRatio + + + + + + viewBox & preserveAspectRatio on + raster <image> with overflow="visible" + + + + meet + + slice + + unspecified + + + + yMin + + + + yMid + + + + + yMax + + + + + + + yMin + + + + yMid + + + + + yMax + + + + + + yMin + + + + yMid + + + + + yMax + + + + + xMin + + + + xMid + + + + + xMax + + + + + + + + + + + + + + + + + + + + + + + + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/requiredFeatures.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/requiredFeatures.svg new file mode 100644 index 0000000..1b34f9f --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/requiredFeatures.svg @@ -0,0 +1,192 @@ + + + + + + + + + + + + + + + Test the 'requiredFeatures' attribute + + + + + + Test the 'requiredFeatures' attribute + + + + + + + + + + + + + + + + + + + + + + default + org.w3c.svg.static + invalid + + Graphic Obj. + <svg> + <g> + <use> + + + + + + + + + + + + + + + + + + + + + + + + + text + + + + + + + + + + + + + + + + + + + + + text + + + + + + + + + + + + + + + + + + + + + text + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/requiredFeaturesCombo.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/requiredFeaturesCombo.svg new file mode 100644 index 0000000..5d52b9e --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/requiredFeaturesCombo.svg @@ -0,0 +1,94 @@ + + + + + + + + + + + + + + + Test the 'requiredFeatures' attribute combo + + + + + + Test the 'requiredFeatures' attribute combo + + + + + + + + + + + + + + + + + + + + + + org.w3c.svg + org.w3c.svg.static + invalid + + org.w3c.svg + org.w3c.svg.static + invalid + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/svgImageViewBox.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/svgImageViewBox.svg new file mode 100644 index 0000000..187791a --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/svgImageViewBox.svg @@ -0,0 +1,456 @@ + + + + + + + + + + + + + + +<image> and viewBox & preserveAspectRatio + + + + + + viewBox & preserveAspectRatio + on svg <image> + + + + meet + + slice + + unspecified + + + + yMin + + + + yMid + + + + + yMax + + + + + + + yMin + + + + yMid + + + + + yMax + + + + + + yMin + + + + yMid + + + + + yMax + + + + + xMin + + + + xMid + + + + + xMax + + + + + + + + + + + + + + + + + + + + + + + + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/svgImageViewBoxClip.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/svgImageViewBoxClip.svg new file mode 100644 index 0000000..9d406ff --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/svgImageViewBoxClip.svg @@ -0,0 +1,508 @@ + + + + + + + + + + + + + + + +<image> and viewBox & preserveAspectRatio + + + + + + viewBox & preserveAspectRatio on + svg <image>clip set to rect(5,4,3,2) + + + + meet + + slice + + unspecified + + + + yMin + + + + yMid + + + + + yMax + + + + + + + yMin + + + + yMid + + + + + yMax + + + + + + yMin + + + + yMid + + + + + yMax + + + + + xMin + + + + xMid + + + + + xMax + + + + + + + + + + + + + + + + + + + + + + + + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/svgImageViewBoxOverflow.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/svgImageViewBoxOverflow.svg new file mode 100644 index 0000000..a3cea46 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/svgImageViewBoxOverflow.svg @@ -0,0 +1,445 @@ + + + + + + + + + + + + + + +<image> and viewBox & preserveAspectRatio + + + + + + viewBox & preserveAspectRatio + on svg <image>, overflow="visible" + + + + meet + + slice + + unspecified + + + + yMin + + + + yMid + + + + + yMax + + + + + + + yMin + + + + yMid + + + + + yMax + + + + + + yMin + + + + yMid + + + + + yMax + + + + + xMin + + + + xMid + + + + + xMax + + + + + + + + + + + + + + + + + + + + + + + + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/switch.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/switch.svg new file mode 100644 index 0000000..205aaf8 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/switch.svg @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + +Switch element with transform + + + + + + Switch element with transform + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/symbolViewBox.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/symbolViewBox.svg new file mode 100644 index 0000000..90b6b97 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/symbolViewBox.svg @@ -0,0 +1,545 @@ + + + + + + + + + + + + + + +<symbol> and viewBox & preserveAspectRatio + + + + + + viewBox & preserveAspectRatio on <symbol> + + + + meet + + slice + + unspecified + + + + yMin + + + + yMid + + + + + yMax + + + + + + + yMin + + + + yMid + + + + + yMax + + + + + + yMin + + + + yMid + + + + + yMax + + + + + xMin + + + + xMid + + + + + xMax + + + + + + + + + + + + + + + + + + + + + + + + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/symbolViewBoxClip.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/symbolViewBoxClip.svg new file mode 100644 index 0000000..b702227 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/symbolViewBoxClip.svg @@ -0,0 +1,645 @@ + + + + + + + + + + + + + + + + +<symbol> and viewBox & preserveAspectRatio + + + + + + viewBox & preserveAspectRatio on <symbol> + viewBox & preserveAspectRatio on <symbol> + This test validates the processing of viewBox and preserveAspectRatio + on <symbol> elements in conjunction with the overflow property. + In this test, there should be a clipping beyond the viewBox boundaries + and the smilley's ears and feet should show partially. + clip set to rect(5,4,3,2) + + + + meet + + slice + + unspecified + + + + yMin + + + + yMid + + + + + yMax + + + + + + + yMin + + + + yMid + + + + + yMax + + + + + + yMin + + + + yMid + + + + + yMax + + + + + xMin + + + + xMid + + + + + xMax + + + + + + + + + + + + + + + + + + + + + + + + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/symbolViewBoxOverflow.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/symbolViewBoxOverflow.svg new file mode 100644 index 0000000..05bbcf9 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/symbolViewBoxOverflow.svg @@ -0,0 +1,553 @@ + + + + + + + + + + + + + + + +<symbol> and viewBox & preserveAspectRatio + + + + + + viewBox & preserveAspectRatio + viewBox & preserveAspectRatio on <symbol> + This test validates the processing of viewBox and preserveAspectRatio + on <symbol> elements in conjunction with the overflow property. + In this test, there should be no clipping around the viewBox boundaries + and the smilley's ears and feet should show. + on <symbol>, overflow="visible" + + + + meet + + slice + + unspecified + + + + yMin + + + + yMid + + + + + yMax + + + + + + + yMin + + + + yMid + + + + + yMax + + + + + + yMin + + + + yMid + + + + + yMax + + + + + xMin + + + + xMid + + + + + xMax + + + + + + + + + + + + + + + + + + + + + + + + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/systemLanguage.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/systemLanguage.svg new file mode 100644 index 0000000..1f73146 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/systemLanguage.svg @@ -0,0 +1,201 @@ + + + + + + + + + + + + + + + + + + + Test the 'systemLanguage' attribute + + + + + + + + + + + + + + + + + + + + + + + + default + english (en) + french (fr) + + Graphic Obj. + <svg> + <g> + <use> + <tspan> + + + + + + + + + + + + + + + + + + + + + + + + + text + + + + + + + + + + + + + + + + + + + + + text + + + + + + + + + + + + + + + + + + + + + text + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + simple <tspan> + simple <tspan> + simple <tspan> + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/systemLanguageDialect.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/systemLanguageDialect.svg new file mode 100644 index 0000000..aa57662 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/systemLanguageDialect.svg @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + + Test the 'systemLanguage' attribute with dialect + + + english (en) + + english UK (en-UK) + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/tiff.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/tiff.svg new file mode 100644 index 0000000..8c059c6 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/tiff.svg @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + + Tiff Reading Test + + + + + + + Tiff Reading Test + + + + RGB TIFF Uncompressed + + + Tiled RGB TIFF Uncompressed + + + + RGB TIFF PackBits + + + Tiled RGB TIFF PackBits + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/toolTips.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/toolTips.svg new file mode 100644 index 0000000..a02f409 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/toolTips.svg @@ -0,0 +1,491 @@ + + + + + + + + + + + + + + + + + + +Marker Test + + + + + + <title>and <desc> + tool tips on Graphical Elements + + + + + + + + + + + + + + + No info + <title> + <desc> + both + + + + + + + + + + + + + <rect> + + + + + + + + <rect> with title only + + + + + <rect> with <desc> only + + + + + Title: <rect> with title and <desc> + Description: <rect> with title and <desc> + + + + + + + + + + + + + + <circle> + + + + + + + + <circle> with <title> only + + + + + <circle> with <desc> only + + + + + Title: <circle> with <title> and <desc> + Description: <circle> with <desc> and <desc> + + + + + + + + + + + + + + + <ellipse> + + + + + + + + <ellipse> with <title> only + + + + + <ellipse> with <desc> only + + + + + Title: <ellipse> with <title> and <desc> + Description: <ellipse> with <desc> and <desc> + + + + + + + + + + + + + + <line> + + + + + + + + <line> with <title> only + + + + + <line> with <desc> only + + + + + Title: <line> with <title> and <desc> + Description: <line> with <desc> and <desc> + + + + + + + + + + + + + + <polyline> + + + + + + + + <polyline> with <title> only + + + + + <polyline> with <desc> only + + + + + Title: <polyline> with <title> and <desc> + Description: <polyline> with <desc> and <desc> + + + + + + + + + + + + + + <polygon> + + + + + + + + <polygon> with <title> only + + + + + <polygon> with <desc> only + + + + + Title: <polygon> with <title> and <desc> + Description: <polygon> with <desc> and <desc> + + + + + + + + + + + + + + + <path> + + + + + + + + <path> with <title> only + + + + + <path> with <desc> only + + + + + Title: <path> with <title> and <desc> + Description: <path> with <desc> and <desc> + + + + + + + + + + + + + + <image> + + + + + + + + <image> with <title> only + + + + + <image> with <desc> only + + + + + Title: <image> with <title> and <desc> + Description: <image> with <desc> and <desc> + + + + + + + + + + + + + + <text> + + + + Ho, la, la! + + + Ho, la, la! + <text> with <title> only + + + + Ho, la, la! + <text> with <desc> only + + + + Ho, la, la! + Title: <text> with <title> and <desc> + Description: <text> with <desc> and <desc> + + + + + + + + + + + + + + <use> + + + + + + + + <use> with <title> only + + + + + <use> with <desc> only + + + + + Title: <use> with <title> and <desc> + Description: <use> with <desc> and <desc> + + + + + + + + + + + + + + + + + + + + Orange w/ Tip + Orange wo/ Tip + Red w/Tip + Red wo/Tip + + + + + + + + + + + + Red <rect> with tip + + + Orange <rect> with tip + + + + + + + + + + + + + Red <rect> with tip + + + + + + + + + + + + + + + Orange <rect> with tip + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/useMultiple.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/useMultiple.svg new file mode 100644 index 0000000..576ce7e --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/useMultiple.svg @@ -0,0 +1,98 @@ + + + + + + + + + + + + + + + Multiple <use> + + + + + + Multiple <use> + This file is using the defs.svg file to get the external resources + + + + + + + + + + + + + + + + + <use> + External <use> + + <use> + External <use> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/useMultipleURI.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/useMultipleURI.svg new file mode 100644 index 0000000..83b106f --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/useMultipleURI.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + Multiple <use> with CSS property values: URIs + + + + + + Multiple <use> with CSS property values: URIs + This file is using the defs.svg file to get the external resources + + + + + + + + + + + + + + + + + <use> + External <use> + + <use> + External <use> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/useStylesheet.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/useStylesheet.svg new file mode 100644 index 0000000..cc681c5 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/useStylesheet.svg @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + Test use and styling using <style> + + + + + + <use> and styling using <style> + This file is using the defs.svg file to get the external resources + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/useStyling.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/useStyling.svg new file mode 100644 index 0000000..d166604 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/useStyling.svg @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + Test use and styling using <style> + + + + + + <use> and styling using <style> + This file is using the defs.svg file to get the external resources + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/useStylingURI.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/useStylingURI.svg new file mode 100644 index 0000000..9adc135 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/useStylingURI.svg @@ -0,0 +1,189 @@ + + + + + + + + + + + + + + +Test use and styling using URIs + + + + + +<use> and styling using URIs +This file is using the defs.svg file to get the external resources + + +- linearGradient defined in this file (local) +- radialGradient defined in defs.svg (external) +- gold/crimson: gradient on <rect>, white/black: gradient on <use> +yellow/green: inherited from <g> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +Local <use> +External <use> + +internal style on +external style on +inherited style + +<rect> +<use> +<rect> +<use> +internal +external + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/useTargets.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/useTargets.svg new file mode 100644 index 0000000..9163105 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/useTargets.svg @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + <use> targets + + + + + + <use> targets + This file is using the defs.svg file to get the external resources + + + + + + + + + + + + + + + + + + + <use> + External <use> + + Symbol + SVG + Other + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/useTargets2.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/useTargets2.svg new file mode 100644 index 0000000..7150eb1 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/useTargets2.svg @@ -0,0 +1,196 @@ + + + + + + + + + + + + + + + + <use> Targets2 + + + + + <use> Targets 2 + + + + + + + + + + + + + + + + + + <use> references a <symbol> + + + + + <use> references a <svg> + + + + + <use> references with percentages + + + + + + + + + + + x, y, w, h,transform + + + + + + w, h, transform + + + + + + + + + + + + equivalent svg + + + + + + + + + + + x, y, w, h,transform + + + + + + + w, h, transform + + + + + + + + + + + + equivalent svg + + + + + + + + + + + referencing svgx, y, w, h% + + + + + + + referencing svgw, h% + + + + + + + referencing symbolw, h% + + + + + + + referencing symbolw, h% + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/xmlBase.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/xmlBase.svg new file mode 100644 index 0000000..a539098 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/xmlBase.svg @@ -0,0 +1,67 @@ + + + + + + + + + + + + + + + XML Base Test + + + + + + + + + Test of xml:base, use and SVG fonts + + + + + + + + + + + + Batik + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/xmlBaseStyling.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/xmlBaseStyling.svg new file mode 100644 index 0000000..d1153e2 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/structure/xmlBaseStyling.svg @@ -0,0 +1,112 @@ + + + + + + + + + + + + + + + + + Test xml:base and styling + + + + + + Test xml:base and styling + This file is using the defs.svg file to get the external resources + + + + + + + + + + + + + + + + + + + + + + + xml:base on <style> + the base URI is: ../../resources/svg/ + + + + + xml:base on <g> enclosing the <use> + the base URI is: ../../resources/svg/ + + + + + xml:base on <g> enclosing the <use> + the base URI is: ../../resources/svg/defs.svg + + + + + + + xml:base on <g> enclosing a <g> + the base URI is: ../../resources/svg/ + + + xml:base on enclosed <g> enclosing the <use> + the base URI is: defs.svg + + + + + xml:base on <g> enclosing the <use> + the base URI is: ../../resources/svg/ + + xml:base on the <use> + the base URI is: defs.svg + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/styling/alternateStylesheet.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/styling/alternateStylesheet.svg new file mode 100644 index 0000000..331dac8 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/styling/alternateStylesheet.svg @@ -0,0 +1,132 @@ + + + + + + + + + + + + + + + + + + Alternate stylesheets + + + + + + + + Alternate Stylesheets 2 + + + Choose your alternate stylesheet using the 'View->Use Stylesheet' + submenu items. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Batik + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/styling/cssMedia.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/styling/cssMedia.svg new file mode 100644 index 0000000..7148c64 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/styling/cssMedia.svg @@ -0,0 +1,129 @@ + + + + + + + + + + + + + + + + + + CSS Media + + + + + + CSS Media + + + Demonstrate how a slide can be different depending on the CSS media. + Choose your media using the 'Edit=>Preference' menu item. + You can switch between 'screen', 'print' or 'projection' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + What is SVG? + + + * Stands for Scalable Vector Graphics + * An XML grammar for defining vector-based 2D graphics + * W3C Recommendation - 4 Sept. 2001 + + + + + + + + + + The specification defines the features and syntax for Scalable Vector Graphics (SVG), + a language for describing two-dimensional vector and mixed vector/raster graphics + in XML. + + + + SVG is a language for describing two-dimensional graphics in XML [XML10]. + SVG allows for three types of graphic objects: vector graphic shapes, images + and text. + + + + + This document has been reviewed by W3C Members and other interested parties and + has been endorsed by the Director as a W3C Recommendation. It is a stable + document and may be used as reference material or cited as a normative reference + from another document. + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/styling/cssMediaList.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/styling/cssMediaList.svg new file mode 100644 index 0000000..4a0b459 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/styling/cssMediaList.svg @@ -0,0 +1,103 @@ + + + + + + + + + + + + + + + + CSS Media + + + + + + CSS Media 2 + + + Show which CSS media is taken into account + Choose your media using the 'Edit=>Preference' menu item. + + + + + + + + + + + + + + + + + + + + + + + + all + aural + braille + embossed + handheld + print + projection + screen + tty + tv + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/styling/defaultFontFamily.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/styling/defaultFontFamily.svg new file mode 100644 index 0000000..e2341b7 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/styling/defaultFontFamily.svg @@ -0,0 +1,29 @@ + + + + + + + Default font-family + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/styling/emptyStyle.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/styling/emptyStyle.svg new file mode 100644 index 0000000..724f68a --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/styling/emptyStyle.svg @@ -0,0 +1,27 @@ + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/styling/fontShorthand.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/styling/fontShorthand.svg new file mode 100644 index 0000000..8c6934c --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/styling/fontShorthand.svg @@ -0,0 +1,98 @@ + + + + + + + + + + + + + + + + + Test the CSS 'font' shorthand property + Test the CSS 'font' shorthand property + + + + + default + font: 20px Serif + font: 20 SanSerif + font: 20 times + font: bold 20 times + font: italic 20 times + font: bold italic 20 times + font: italic bold 20 times + font: 200 20 times + font: 700 small-caps 20 times + font: small-caps 700 20 times + font: small-caps 700 italic 20 times + font: 700 small-caps italic 20 times + font: small-caps italic 700 20 times + + font: 200 "bolder" + font: 200 bolder + font: 200px bolder + font: bolder 200 bolder + + + font: italic 20 times + + group font-weight="bold" + + + font: bold 20 times + + group font-style="italic" + + File: menu + File: small-caption + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/styling/important.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/styling/important.svg new file mode 100644 index 0000000..aacd255 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/styling/important.svg @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + Test of CSS !important properties. + Test of CSS !important properties. + + + + + fill: green !important; fill: red + + fill: red !important; fill: green !important + + fill="blue" style="fill:green" + + + fill: green !important; fill: red + + + .t3 { fill: yellow; }g > rect { fill: green !important; } + + + .t4 { fill: green !important; }g > g > rect { fill: red !important; } + + + + \ No newline at end of file diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/styling/smiley.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/styling/smiley.svg new file mode 100644 index 0000000..d10e0e1 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/styling/smiley.svg @@ -0,0 +1,86 @@ + + + + + + + + + + + + + + + + + + + + +Alternate stylesheets + + + + + + + + Alternate Stylesheets + + +Choose your alternate stylesheet using the 'View->Use Stylesheet' + submenu items. + + + + + :-) + :-( + :-o + :-| + :-* + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/styling/styleElement.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/styling/styleElement.svg new file mode 100644 index 0000000..2ad312e --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/styling/styleElement.svg @@ -0,0 +1,80 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + Test of XML comments in <style> elements + Test of XML comments in <style> elements + + + class="blue" + + + class="green" + + + class="purple" + + + class="yellow" + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/longTextOnPath.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/longTextOnPath.svg new file mode 100644 index 0000000..57e04e2 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/longTextOnPath.svg @@ -0,0 +1,56 @@ + + + + + + + + + + + + + + Long text on a path test for selection + + + + Long text on a path test for selection + + + + + + + + + + This is an example of a very long string that is split across multiple lines via the textPath tag. The purpose of this test is to ensure that text-selection can keep up even when relatively large numbers of characters are part of the selection. Since I haven't reached the end yet, let me keep going with more really quite useless text just to see if we hit a limit where it really starts to slow things down. However if it hasn't slowed down by now I'm guessing that it won't slow down at all. But you never know for sure until you try it, so I am, and here is the result. Selection does bog down a little near the end but it's redraw related. + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/smallFonts.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/smallFonts.svg new file mode 100644 index 0000000..ede908c --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/smallFonts.svg @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Small font size test (viewBox="0 0 9 10") + + + + Text can change + size, + typeface, + color, + or + style + + + + within a single text element. + + + Styling features include + weight, + posture, and + typeface. + + + + + Graphics attributes such as + opacity can be applied. + + + "text decoration" can include + underline, + overline, and + + + + strikethrough. + Super and + sub scripts are available. + + + + Various + outline + styles, + fill colors + and + thicknesses + can be + + + used, and the outline stroke can be + rounded + or + mitered. + + + Text elements also can be filtered, transformed + and placed on a path. + + + + Shadow + + + Shadow + + + + + + + Small text on a Path + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textAnchor.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textAnchor.svg new file mode 100644 index 0000000..503de2e --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textAnchor.svg @@ -0,0 +1,195 @@ + + + + + + + + + + + + + + + text-anchor on <tspan> + + + + + + + + + + + + + + + + + + + + + + I am the + same text chunk + another text chunk + + + + + + + + + + + + + I am the + same text chunk + another text chunk + + + + + + + + + + + + I am the + same text chunk + another text chunk + + + + + + + + + + + + + + + + + I am the + same text chunk + another text chunk + + + + + + + + + + + + + I am the + same text chunk + another text chunk + + + + + + + + + + + + I am the + same text chunk + another text chunk + + + + + + + + + + + + + + + + + I am the + same text chunk + another text chunk + + + + + + + + + + + + + I am the + same text chunk + another text chunk + + + + + + + + + + + + I am the + same text chunk + another text chunk + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textAnchor2.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textAnchor2.svg new file mode 100644 index 0000000..167d8c9 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textAnchor2.svg @@ -0,0 +1,108 @@ + + + + + + + + + + + + + + + text-anchor on a single <tspan> + + + + + + + + + + + + x attribute define new text chunks + + + + + + + + + + + + + + + y attribute does not define new text chunk + + + + + + + + + + + x & y attributes define new text chunks + + + + + + + + + + + + + + Batik + Batik + Batik + + + + + Batik + Batik + Batik + + + + + Batik + Batik + Batik + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textAnchor3.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textAnchor3.svg new file mode 100644 index 0000000..f7bd1e5 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textAnchor3.svg @@ -0,0 +1,108 @@ + + + + + + + + + + + + + + + text-anchor on a single <tspan> + + + + + + + + + + + + x attributed tspan with extra text + + + + + + + + + + + + + + + x attribute for some chars + + + + + + + + + + + + + x & y attributes with inheritance + + + + + + + + + + + + + Batik rules! + Batik rules! + Batik rules! + + + + + Batik + Batik + Batik + + + + + Batik rules! + Batik rules! + Batik rules! + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textBiDi.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textBiDi.svg new file mode 100644 index 0000000..b969bc2 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textBiDi.svg @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + BiDi Text / International Text + Some text goes (right to left), other text goes (left to right). + + Some (embedded bidi) text. + + + Text selection allows visually discontiguous + selections across bi-directional text. + + + latin: + ABCDEFG + abcdefghijklmnopqrstuvwxyz + latin-extended: + æçèéêëìíîïðñòóô + cyrillic: + БВГДЕЖЗИЙКЛМНОПРСТУФХЦЧ + greek: + ΑΒΓΔ αβγδεζηθικλμνξοπρςστυφχψω + hebrew: + אבגדהוזחטיךכלםמןנסעףפץצקרשת + אבגדהוזחטיךכלםמןנסעףפץצקרשת + arabic: + ءأؤإئابةتثجحخدذرزسشصضطظعـفقكلمنهوىِٶ + ءأؤإئابةتثجحخدذرزسشصضطظعـفقكلمنهوىِٶ + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textBiDi2.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textBiDi2.svg new file mode 100644 index 0000000..f988949 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textBiDi2.svg @@ -0,0 +1,58 @@ + + + + + + + + + + + + + + + + + + + + BiDi Text / International Text 2 + + + אבג ABC + ABC אבג + ABC אבג ABC + אבגד ABCD אבגד + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textDecoration.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textDecoration.svg new file mode 100644 index 0000000..d5bf0b3 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textDecoration.svg @@ -0,0 +1,94 @@ + + + + + + + + + + + + + + + Text decoration test + + + + + + + + + + + + + + + + + + + Text decoration test + + + + + Underline + Overline + Line-through + + + + Underline + Overline + Line-through + + + + Underline + Overline + Line-through + + + + Underline and overline + Underline, overline and line-through + Decorations with tspan + Transparent text with tspan + Tspan with own decoration + Tspan with no decoration + Nested tspan decorations + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textDecoration2.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textDecoration2.svg new file mode 100644 index 0000000..dd4297f --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textDecoration2.svg @@ -0,0 +1,129 @@ + + + + + + + + + + + + + + + Text Decoration with dx,dy Tests + Text Decoration with dx, dy tests + + + + This is a textthat covers multiplelines + + This is a textthat covers multiplelines + + Text that shifts + + Text that shifts + + Text that shifts + + Text that shifts + + Text that shifts + + Text that shifts + + Text that shifts + + Text that shifts + + Text that shifts + + Text that shifts + + Text that shifts + + Text that shifts + + + Text that shifts + + Text that shifts + + Text that + shifts + + Text that shifts + + Text that + shifts + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textEffect.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textEffect.svg new file mode 100644 index 0000000..e7179fc --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textEffect.svg @@ -0,0 +1,118 @@ + + + + + + + + + + + + + + + Mix text transformation + + + + + + Gradient and filter on text + (Using System font and SVG font) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + BATIK + + + + BATIK + + + + BATIK + + + + BATIK + + + + BATIK + + + + BATIK + + + (System font) + (SVG font) + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textEffect2.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textEffect2.svg new file mode 100644 index 0000000..d584038 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textEffect2.svg @@ -0,0 +1,94 @@ + + + + + + + + + + + + + + + + Mix text transformation + + + + + + clip-path using text + (Using System font and SVG font) + + + + + + + + + + + + + + + + + + + + + + + + BATIK + + + + BATIK + + + + + + (System font) + + + (SVG font) + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textEffect3.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textEffect3.svg new file mode 100644 index 0000000..1bbd53a --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textEffect3.svg @@ -0,0 +1,118 @@ + + + + + + + + + + + + + + + Mix text transformation + + + + + + Gradient and filter on text and tspan + (Using System font and SVG font) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + BATIK + + + + BATIK + + + + BATIK + + + + BATIK + + + + BATIK + + + + BATIK + + + (System font) + (SVG font) + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textFeatures.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textFeatures.svg new file mode 100644 index 0000000..efc1c96 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textFeatures.svg @@ -0,0 +1,115 @@ + + + + + + + + + + + + + + + + + + + + + + + + + Text Element Features + + + Text can change + size, + typeface, + color, + or + style + + + within a single text element. + + Styling features include + weight, + posture, and + typeface. + + + + Graphics attributes such as + opacity can be applied. + + "text decoration" can include + underline, + overline, and + + + strikethrough. + super-and- + sub-scripts + are available. + Baseline can also be shifted + up and + down + by percentage. + + Various + outline + styles, + fill colors + and + thicknesses + can be + + used, and the outline stroke can be + rounded + or + mitered. + + Text elements also can be + filtered and transformed. + + + Shadow + + + Shadow + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textGlyphOrientationHorizontal.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textGlyphOrientationHorizontal.svg new file mode 100644 index 0000000..627e9ac --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textGlyphOrientationHorizontal.svg @@ -0,0 +1,104 @@ + + + + + + + + + + + + + + + Text Orientation Horizontal + + + + + + + + + + + + Text Orientation Horizontal + + + + + Batik is Good + + + + + Batik is Good + + + + + Batik is Good + + + + + Batik is Good + + + + + + Batik is Good + + + + + Batik is Good + + + + + + Batik is Good + + + + + Batik is Good + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textLayout.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textLayout.svg new file mode 100644 index 0000000..29d0c08 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textLayout.svg @@ -0,0 +1,147 @@ + + + + + + + + + + + + +Text Layout Properties + + + + + + + + + + + sample + + + + + + Text Layout Properties + + Explicit Glyph Positioning + + + sample + tspan x="40,60,80,105,125,140" + + + + sample + Serif, default spacing + + + + sample + x="175" dx="0,10,10,10,10,10" + + + + Letter Spacing Adjustment and Explicit Length Specification + + + sample + textLength="120" + + + + sample + textLength="70" + + + + sample + kerning="10" + + + + sample + textLength="120", + lengthAdjust="spacingAndGlyphs" + + + + sample + textLength="70" lengthAdjust="spacingAndGlyphs" + + + + sample + textLength="120",kerning="10" + + + + sample + letter-spacing="0.3em" + + + + sample + letter-spacing="-3" + + + + sample + letter-spacing="10" + + + Word Spacing Adjustment + + + Wide separation between words + textLength="350" word-spacing="3em" + + + + Narrow separation between words + textLength="350" word-spacing="-5" + + + + Narrow separation between words + textLength="350" lengthAdjust="spacingAndGlyphs" word-spacing="-5" + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textLayout2.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textLayout2.svg new file mode 100644 index 0000000..7fade17 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textLayout2.svg @@ -0,0 +1,99 @@ + + + + + + + + + + + + + Text Layout Properties + + + + + + + + + + + sample + + + + + + Text Layout Properties (2) + + Baseline Properties + + + super and subscripts + baseline-shift="super"/baseline-shift="sub" + + + + positive and negative baseline-shift + baseline-shift="+/-20%" + + Multi-line Text Selection + + (Try selecting the following text regions) + + + Text selections can span multiple + lines via <tspan> elements. + + + + Text-circle. + + + + Text-in-a-square + + + Text with rotated glyphs + More rotated glyphs + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textLength.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textLength.svg new file mode 100644 index 0000000..71d98f2 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textLength.svg @@ -0,0 +1,140 @@ + + + + + + + + + + + + + + + textLength with Anchor + + + + + + + + + + + + + + + + + + + + + + + + xml-batik + No textLength + + + + + + B + textLength="50" lengthAdjust="spacingAndGlyphs" + + + + + + B + textLength="50" lengthAdjust="spacing" + + + + + + Batik + textLength="50" lengthAdjust="spacingAndGlyphs" + + + + + + Batik + textLength="50" lengthAdjust="spacing" + + + + + + Apache Batik + textLength="50" lengthAdjust="spacingAndGlyphs" (shrinking) + + + + + + Apache Batik + textLength="50" lengthAdjust="spacingAndGlyphs" (no anchor) + + + + + + Apache Batik!! + textLength="50" lengthAdjust="spacingAndGlyphs" (tspan) + + + + + + + + B a t i k + lengthAdjust="spacingAndGlyphs" + textLength="25" + font-size="100" + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textOnPath.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textOnPath.svg new file mode 100644 index 0000000..a6f0fb2 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textOnPath.svg @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + Text on a path test + + + + Text on a path test + + + + + + + + + + + Text on a Path + + startOffset="0%" + text-anchor="start" + + + + + + + Text on a Path + + startOffset="0%" + text-anchor="middle" + + + + + + Text on a Path + + startOffset="50%" + text-anchor="end" + + + + + + + Text on a Path + + startOffset="50%" + text-anchor="start" + + + + + + + Text on a Path + + startOffset="50%" + text-anchor="middle" + + + + + + Text on a Path + + startOffset="100%" + text-anchor="end" + + + + + + + Text on a Path + + startOffset="35" + text-anchor="start" + + + + + + + Text on a Path + + startOffset="35" + text-anchor="middle" + + + + + + Text on a Path + + startOffset="35" + text-anchor="end" + + + + + + + + super and subscripts + + baseline-shift="super" + and baseline-shift="sub" + + + + + + + positive and negative + + baseline-shift="+/-20%" + + + + + + before path + on path after path + + + text before/after textPath + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textOnPath2.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textOnPath2.svg new file mode 100644 index 0000000..c613531 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textOnPath2.svg @@ -0,0 +1,87 @@ + + + + + + + + + Text on Path with trailing <tspan> + + Text on Path with trailing <tspan> + + + + Text with embedded textPath and multiple trailing tspan + + + + textPath has startOffset="10%" + + + + textPath with startOffset and text-anchor + + + + + + + This is simpletext on a pathwith nested tspan xxx all with different links. + + + + + + This is simpletext on a pathwith nested tspan xxx all with different links. + + + + + This is simpletext on a pathwith nested tspan xxx all with different links. + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textOnPath3.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textOnPath3.svg new file mode 100644 index 0000000..643b61f --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textOnPath3.svg @@ -0,0 +1,83 @@ + + + + + + + + + Text on Path with for text with an 'x' + Text on Path with for text with an 'x' + + + + + + + + + Text with one textPath child and x="10" + + + Text on a path for text w/ 'x'. + + + + + + Text with one textPath child and x="100" + + + Text on a path for text w/ 'x'. + + + + + + Text with one textPath child and x="-100" y="10" + + + Text on a path for text w/ 'x'. + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textOnPathSpaces.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textOnPathSpaces.svg new file mode 100644 index 0000000..ee96e71 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textOnPathSpaces.svg @@ -0,0 +1,169 @@ + + + + + + + + + + + + + + Text on a path with spaces test + + + + Text on a path with adjusted spacing + + + + + + + + + + + + sample + + default spacing + + + + + + sample + + tspan x="10,30,50,75,95,110" + y="110" + + + + + + sample + + tspan dx="0,10,10,10,10,10" + + + + + + + sample + + textLength="140" + + + + + + + sample + + textLength="70" + + + + + + sample + + kerning="10" + + + + + + + sample + + textLength="140" + lengthAdjust= + "spacingAndGlyphs" + + + + + + sample + + textLength="50" + lengthAdjust= + "spacingAndGlyphs" + + + + + + sample + + textLength="140", kerning="10" + lengthAdjust= + "spacingAndGlyphs" + + + + + + sample + + letter-spacing="-3" + + + + + + sample sample + + textLength="140" + word-spacing="2em" + + + + + + sample sample + + textLength="140" + word-spacing="-5" + lengthAdjust= + "spacingAndGlyphs" + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textPCDATA.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textPCDATA.svg new file mode 100644 index 0000000..4b75063 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textPCDATA.svg @@ -0,0 +1,56 @@ + + + + + + + + + + + + + + + + + Character Data on <text> + + + + CDATA only + <text> with a CDATA section + + + + + text, CDATA, text + Text first, then CDATA section in <text>, text again + + + + + text, CDATA, tspan, CDATA, text + text, CDATA section in <text>, tspan w/CDATA section in <tspan>, text again + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textPosition.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textPosition.svg new file mode 100644 index 0000000..0b71fb3 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textPosition.svg @@ -0,0 +1,108 @@ + + + + + + + + + + + + + +Text Position + + + + + + + +Text Position + + + + + +Batik +<text x="100" y="80"> + +Batik +<text x="240" y="80" letter-spacing="20"> + + +Batik +<text x="50 70 90 110 130" y="140"> + +Batik +<text dx="240 20 20 20 20" y="140"> + + + +Batik +<tspan x="50" y="200"> + +Batik +<tspan x="240" y="200" letter-spacing="20"> + + +Batik +<tspan x="50 70 90 110 130" y="260"> + +Batik +<tspan dx="240 20 20 20 20" y="260"> + + + +Batik +<tspan x="50 60 70 80 90" dx="0 10 20 30 40" y="320"> + + +Batik +<tspan x="240" dx="0 10 10 10 10" y="320" style="letter-spacing:10"> + + + + +Batik +Empty Trailing tspan + + +Batik +Empty Preceeding tspan + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textPosition2.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textPosition2.svg new file mode 100644 index 0000000..7f751ef --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textPosition2.svg @@ -0,0 +1,121 @@ + + + + + + + + + + + + + +Text Position 2 + + + + + + + + + + + + + + + + + + + + +Text Position 2 + + + + + +Batik +<text x="100" y="80"> + +Batik +<text x="240" y="80" letter-spacing="20"> + + +Batik +<text x="50 70 90 110 130" y="140"> + +Batik +<text dx="240 20 20 20 20" y="140"> + + + +Batik +<tspan x="50" y="200"> + +Batik +<tspan x="240" y="200" letter-spacing="20"> + + +Batik +<tspan x="50 70 90 110 130" y="260"> + +Batik +<tspan dx="240 20 20 20 20" y="260"> + + + +Batik +<tspan x="50 60 70 80 90" dx="0 10 20 30 40" y="320"> + + +Batik +<tspan x="240" dx="0 10 10 10 10" y="320" style="letter-spacing:10"> + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textProperties.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textProperties.svg new file mode 100644 index 0000000..f3a56a0 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textProperties.svg @@ -0,0 +1,181 @@ + + + + + + + + + + + + + +Text Properties + + + + + + + + + + + + + + sample + + + + + + Text Alignment, Geometry, References, and Spans + + + + + text-anchor="start" + + text-anchor="middle" + + text-anchor="end" + + + + + sample + font-size="1cm" + + + + sample + font-size="200%" + + + + sample + font-size="28" + + + + + referenced text via <tref> + + + + + sample + + use of <tspan> + + + + + + + predefined text via <use> + + + + Text Rendering Properties + + + + + + transform="rotate(180)" + + + + + + + opacity="0.5" + + + + + + + fill="DarkRed" + + + + + + + filter="url(#gaussianBlur)" + + + + + + + fill="yellow"; + stroke="MidnightBlue" + + + + + sample + + + + + + + + + text as clip-path + + + + a + stroke-linejoin="miter" + stroke-linecap="square" + + + a + stroke-linejoin="round" + stroke-linecap="round" + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textProperties2.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textProperties2.svg new file mode 100644 index 0000000..77a52c1 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textProperties2.svg @@ -0,0 +1,110 @@ + + + + + + + + + + + + + + +Text Properties + + + + + + + + + + + + + Text display and visibility. + + Visibility on text & tspans + Display on text & tspans + + + + + + + + + + + + + + + + + vis, vis, vis + vis, hid, vis + vis, hid, hid + hid, vis, hid + + inline, inline, inline + inline, inline, none + inline, none, inline + inline, none, none + none, inline, none + + + Text tspan 1 tspan 2 more span 1 finish text + + Text tspan 1 tspan 2 more span 1 finish text + + Text tspan 1 tspan 2 more span 1 finish text + + Text tspan 1 tspan 2 more span 1 finish text + + + Text tspan 1 tspan 2 more span 1 finish text + Text tspan 1 tspan 2 more span 1 finish text + Text tspan 1 tspan 2 more span 1 finish text + Text tspan 1 tspan 2 more span 1 finish text + Text tspan 1 tspan 2 more span 1 finish text + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textStyles.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textStyles.svg new file mode 100644 index 0000000..b4cf407 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/textStyles.svg @@ -0,0 +1,228 @@ + + + + + + + + + + + + +Text Font Faces and Styles + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sample + + + + + + Text Font Faces and Styles + + Standard Font Faces + + + + SansSerif, normal weight + + + + + SansSerif, bold + + + + + SansSerif, oblique + + + + + Serif, normal weight + + + + + Serif, bold + + + + + Serif, oblique + + + + + Monospaced, normal weight + + + + + Monospaced, bold + + + + + Monospaced, oblique + + + + + (default) + + + + + default, bold, oblique + + + + + stroke-width=1, fill=none + + + Named Font Families + + (Not all typefaces are available on all systems.) + + + + + Times + + + + + Verdana + + + + + Helvetica + + + + + Arial (underlined) + + + + + Impact + + + + + AvantGarde (line-through) + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/verticalText.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/verticalText.svg new file mode 100644 index 0000000..cf25fad --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/verticalText.svg @@ -0,0 +1,99 @@ + + + + + + + + + + + + + + + Vertical Text Test + + + + + + + + Vertical Text Test + + + + + + + + + + + + + + + + + + + + + + + + + Writing top to bottom画像 + Glyph Orientation:auto画像 + Glyph Orientation:0画像 + Glyph Orientation:90画像 + Glyph Orientation:180画像 + Glyph Orientation:270画像 + Embedded <tspan> element + Embedded orientated element + + + + + + + + Vertical text on a Path画像 + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/verticalTextOnPath.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/verticalTextOnPath.svg new file mode 100644 index 0000000..ac8b8f3 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/verticalTextOnPath.svg @@ -0,0 +1,183 @@ + + + + + + + + + + + + + + + Vertical text on a path test + + + + Vertical text on a path test + + + + + + + + + + + Text on a Path + + startOffset="0%" + text-anchor="start" + glyph-orientation="auto" + + + + + + + Text on a Path + + startOffset="0%" + text-anchor="middle" + glyph-orientation="0deg" + + + + + + Text on a Path + + startOffset="50%" + text-anchor="end" + glyph-orientation="180deg" + + + + + + + Text on a Path + + startOffset="50%" + text-anchor="start" + glyph-orientation="270deg" + + + + + + + Text on a Path + + startOffset="50%" + text-anchor="middle" + glyph-orientation="0deg" + + + + + + Text on a Path + + startOffset="100%" + text-anchor="end" + glyph-orientation="90deg" + + + + + + + Text on a Path + + startOffset="35" + text-anchor="start" + glyph-orientation="180deg" + + + + + + + Text on a Path + + startOffset="35" + text-anchor="middle" + + + + + + Text on a Path + + startOffset="35" + text-anchor="end" + glyph-orientation="90deg" + + + + + + + + super and subscripts + + baseline-shift="super" + and baseline-shift="sub" + glyph-orientation="auto" + + + + + + + positive and negative + + baseline-shift="+/-20%" + glyph-orientation="auto" + + + + + + before path + on pathafter path + + + text before/after textPath + glyph-orientation="auto" + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/xmlSpace.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/xmlSpace.svg new file mode 100644 index 0000000..052faa2 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec/text/xmlSpace.svg @@ -0,0 +1,153 @@ + + + + + + + + + + + + + + + + Test of xml:space handling + + + + + + + + + + + + X X + no xml:space attr + + X X + xml:space="default" + + X X + Empty tspan at end + xml:space="default" + + X X + tspan end 2spc + xml:space="default" + + X X + tspan end + xml:space="default" + + X X + tspan start + xml:space="default" + + X X + tspan near start + xml:space="default" + + X X + tspan middle front + xml:space="default" + + X X + tspan middle end + xml:space="default" + + X X + unknown element + start + + X X + unknown element + middle + + X X + unknown element + end + + + + + X X + xml:space="preserve" + + X X + Empty tspan at end + xml:space="preserve" + + X X + tspan end 2spc + xml:space="preserve" + + X X + tspan end + xml:space="preserve" + + X X + tspan start + xml:space="preserve" + + X X + tspan near start + xml:space="preserve" + + X X + tspan middle front + xml:space="preserve" + + X X + tspan middle end + xml:space="preserve" + + X X + unknown element + start + + X X + unknown element + middle + + X X + unknown element + end + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/filters/filterRegion.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/filters/filterRegion.svg new file mode 100644 index 0000000..1965873 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/filters/filterRegion.svg @@ -0,0 +1,89 @@ + + + + + + + + + + + + + + + + Filter Extension Attributes + + + + + + + + + + + + + + + + + + + + + + + Filter Extension Attributes + + + + + + + + + Without + + + + + + + + + With + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/filters/filterRegionDetailed.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/filters/filterRegionDetailed.svg new file mode 100644 index 0000000..8436fff --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/filters/filterRegionDetailed.svg @@ -0,0 +1,320 @@ + + + + + + + + + + + + + +FilterRegions test + + + Filter Regions with padding + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No padding + + + + + + + + + + Chain Padding A + + + + + + + + + + Chain Padding B + + + + + + + + + + Chain Padding C + + + + + + + + + + Chain Padding D + + + + + + + + + + Chain Padding E + + + + + + + + + + Chain Padding F + + + + + + + + + + Primitive Padding A + + + + + + + + + + Primitive Padding B + + + + + + + + + + Primitive Padding C + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/paints/colorFunctions.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/paints/colorFunctions.svg new file mode 100644 index 0000000..5286856 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/paints/colorFunctions.svg @@ -0,0 +1,129 @@ + + + + + + + + + + + + + + SVG Color 1.2 Test + + + + + + + + + + + + SVG Color 1.2 Functions (Calibrated Colors) + + + + + + + + + + + + + + + + + + + fill="#FF0000 icc-named-color(MyNamedColors, Postgelb)" + Box should be yellow. + + + fill="#00FF00 icc-named-color(MissingProfile, SomeName)" + Box should be green. + + + fill="#FF0000 cielab(83.25, 16.45, 96.89)" + Box should be yellow. + + + fill="#FF0000 cielch(83.25, 98.28, 80.36)" + Box should be yellow. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Opacity test with fill, gradient and filter. + Elements should be yellow, the gradient yellow to red. + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/paints/colorFunctionsDevice.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/paints/colorFunctionsDevice.svg new file mode 100644 index 0000000..dc08062 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/paints/colorFunctionsDevice.svg @@ -0,0 +1,88 @@ + + + + + + + + + + + + + + SVG Color 1.2 Test + + + + + + + + + SVG Color 1.2 Functions (Device-specific Colors) + + + + + + + + + + + + + + + + + + + #FF0000 device-gray(0.4) + Gray where device-specific colors are supported, red otherwise. + + + #FF0000 device-rgb(153, 153, 122) + Khaki where device-specific colors are supported, red otherwise. + + + #FF0000 device-cmyk(0.0,0.0,0.2,0.4) + Khaki where device-specific colors are supported, red otherwise. + + + #FF0000 device-nchannel(0.5,1.0) + Some device-dependent color where device-specific colors are + supported, red otherwise. + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/paints/ncp-example.icc b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/paints/ncp-example.icc new file mode 100644 index 0000000..7afb2d8 Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/paints/ncp-example.icc differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/paints/solidColor.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/paints/solidColor.svg new file mode 100644 index 0000000..a78fa17 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/paints/solidColor.svg @@ -0,0 +1,89 @@ + + + + + + + + + + + + + + + + Solid Color Test + + + + + + + + + + + Solid Color Paint Server + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/paints/solidColor2.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/paints/solidColor2.svg new file mode 100644 index 0000000..ae18aee --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/paints/solidColor2.svg @@ -0,0 +1,89 @@ + + + + + + + + + + + + + + + + Solid Color Test (Xlink> + + + + + + + + + + + Solid Color Paint Server (Xlink) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/multi-2.jpg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/multi-2.jpg new file mode 100644 index 0000000..23e9e34 Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/multi-2.jpg differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/multi-3.jpg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/multi-3.jpg new file mode 100644 index 0000000..0b48fb8 Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/multi-3.jpg differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/multi-4.jpg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/multi-4.jpg new file mode 100644 index 0000000..105d994 Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/multi-4.jpg differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/multi-5.jpg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/multi-5.jpg new file mode 100644 index 0000000..d9df6ff Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/multi-5.jpg differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/multi.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/multi.svg new file mode 100644 index 0000000..b5c19c8 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/multi.svg @@ -0,0 +1,87 @@ + + + + + + + + + + + + + + + + + MultiImage Extension Tag + + + + + + + + + + + + + + + + + + MultiImage Extension Tag + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/multi2.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/multi2.svg new file mode 100644 index 0000000..afe99f8 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/multi2.svg @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + MultiImage Extension Tag + + + + + MultiImage Extension Tag + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-0-0.jpg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-0-0.jpg new file mode 100644 index 0000000..f4ef637 Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-0-0.jpg differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-0-1.jpg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-0-1.jpg new file mode 100644 index 0000000..d49aa7c Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-0-1.jpg differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-0-2.jpg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-0-2.jpg new file mode 100644 index 0000000..44ae5ae Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-0-2.jpg differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-0-3.jpg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-0-3.jpg new file mode 100644 index 0000000..f9c3958 Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-0-3.jpg differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-0-4.jpg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-0-4.jpg new file mode 100644 index 0000000..3339430 Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-0-4.jpg differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-0-5.jpg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-0-5.jpg new file mode 100644 index 0000000..b89c5f4 Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-0-5.jpg differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-1-0.jpg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-1-0.jpg new file mode 100644 index 0000000..488028f Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-1-0.jpg differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-1-1.jpg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-1-1.jpg new file mode 100644 index 0000000..2927735 Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-1-1.jpg differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-1-2.jpg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-1-2.jpg new file mode 100644 index 0000000..023b3b8 Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-1-2.jpg differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-1-3.jpg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-1-3.jpg new file mode 100644 index 0000000..322e2bc Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-1-3.jpg differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-1-4.jpg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-1-4.jpg new file mode 100644 index 0000000..1f233a8 Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-1-4.jpg differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-1-5.jpg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-1-5.jpg new file mode 100644 index 0000000..794c8aa Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-1-5.jpg differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-2-0.jpg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-2-0.jpg new file mode 100644 index 0000000..a418ee2 Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-2-0.jpg differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-2-1.jpg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-2-1.jpg new file mode 100644 index 0000000..e3db05d Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-2-1.jpg differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-2-2.jpg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-2-2.jpg new file mode 100644 index 0000000..c7ce16e Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-2-2.jpg differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-2-3.jpg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-2-3.jpg new file mode 100644 index 0000000..f148c18 Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-2-3.jpg differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-2-4.jpg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-2-4.jpg new file mode 100644 index 0000000..b65966d Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-2-4.jpg differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-2-5.jpg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-2-5.jpg new file mode 100644 index 0000000..7cfd52c Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-2-5.jpg differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-3-0.jpg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-3-0.jpg new file mode 100644 index 0000000..d1ec5ae Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-3-0.jpg differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-3-1.jpg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-3-1.jpg new file mode 100644 index 0000000..b4f13d2 Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-3-1.jpg differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-3-2.jpg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-3-2.jpg new file mode 100644 index 0000000..3abd6ac Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-3-2.jpg differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-3-3.jpg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-3-3.jpg new file mode 100644 index 0000000..dbdcbcc Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-3-3.jpg differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-3-4.jpg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-3-4.jpg new file mode 100644 index 0000000..79b7988 Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-3-4.jpg differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-3-5.jpg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-3-5.jpg new file mode 100644 index 0000000..f54158f Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-0-3-5.jpg differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-1-0-0.jpg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-1-0-0.jpg new file mode 100644 index 0000000..379abcc Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-1-0-0.jpg differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-1-0-1.jpg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-1-0-1.jpg new file mode 100644 index 0000000..972b55e Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-1-0-1.jpg differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-1-0-2.jpg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-1-0-2.jpg new file mode 100644 index 0000000..383dc33 Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-1-0-2.jpg differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-1-1-0.jpg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-1-1-0.jpg new file mode 100644 index 0000000..2350fb9 Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-1-1-0.jpg differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-1-1-1.jpg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-1-1-1.jpg new file mode 100644 index 0000000..2c1c09a Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-1-1-1.jpg differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-1-1-2.jpg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-1-1-2.jpg new file mode 100644 index 0000000..cd61c96 Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-1-1-2.jpg differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-2-0-0.jpg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-2-0-0.jpg new file mode 100644 index 0000000..bb8a442 Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-2-0-0.jpg differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-2-0-1.jpg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-2-0-1.jpg new file mode 100644 index 0000000..1e3f76e Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-2-0-1.jpg differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-3-0-0.jpg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-3-0-0.jpg new file mode 100644 index 0000000..7a738ee Binary files /dev/null and b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/multires/opera-3-0-0.jpg differ diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/opera-0-0-0.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/opera-0-0-0.svg new file mode 100644 index 0000000..825ee91 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/opera-0-0-0.svg @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/opera-0-0-2.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/opera-0-0-2.svg new file mode 100644 index 0000000..a475a34 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/opera-0-0-2.svg @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/opera-0-0-4.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/opera-0-0-4.svg new file mode 100644 index 0000000..143e8ae --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/opera-0-0-4.svg @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/opera-0-2-0.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/opera-0-2-0.svg new file mode 100644 index 0000000..874cec0 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/opera-0-2-0.svg @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/opera-0-2-2.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/opera-0-2-2.svg new file mode 100644 index 0000000..15af648 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/opera-0-2-2.svg @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/opera-0-2-4.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/opera-0-2-4.svg new file mode 100644 index 0000000..ce01733 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/opera-0-2-4.svg @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/opera-1-0-0.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/opera-1-0-0.svg new file mode 100644 index 0000000..ea4b7e2 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/opera-1-0-0.svg @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/opera-1-0-2.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/opera-1-0-2.svg new file mode 100644 index 0000000..2f229d6 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/opera-1-0-2.svg @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/opera-2-0-0.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/opera-2-0-0.svg new file mode 100644 index 0000000..0eda975 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/opera-2-0-0.svg @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/opera-3-0-0.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/opera-3-0-0.svg new file mode 100644 index 0000000..0131bdd --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/opera-3-0-0.svg @@ -0,0 +1,34 @@ + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/opera-subImage.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/opera-subImage.svg new file mode 100644 index 0000000..9bcbdb4 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/opera-subImage.svg @@ -0,0 +1,263 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/opera-subImageRef.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/opera-subImageRef.svg new file mode 100644 index 0000000..8749b93 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/structure/opera/opera-subImageRef.svg @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/text/flowBidi.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/text/flowBidi.svg new file mode 100644 index 0000000..75d02da --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/text/flowBidi.svg @@ -0,0 +1,82 @@ + + + + + + + + + + + + + +Test of Text wrapping stuff. + + + + Test of Text wrapping stuff + + + + + + + + + + + + + + + + + + Some (embedded bidi) of text. + Some text goes (right to left), other text goes (left to right). + arabic: ء​​أ​ؤ​إ​ئ​ا​ب​ة​ت​ث​ج​ح​خ​د​ذ​ر​ز​س​ش​ص​ض​ط​ظ​ع​ـ​ف​ق​ك​ل​م​ن​ه​و​ى​ِ​ٶ + + + + + + + + + + Some (embedded bidi) of text. + Some text goes (right to left), other text goes (left to right). + arabic: ء​​أ​ؤ​إ​ئ​ا​ب​ة​ت​ث​ج​ح​خ​د​ذ​ر​ز​س​ش​ص​ض​ط​ظ​ع​ـ​ف​ق​ك​ل​م​ن​ه​و​ى​ِ​ٶ + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/text/flowRegionBreak.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/text/flowRegionBreak.svg new file mode 100644 index 0000000..7d07b12 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/text/flowRegionBreak.svg @@ -0,0 +1,376 @@ + + + + + + + + + + + + + + + + Test of Text wrapping stuff. + + + + 'flowRoot' Region flowing + + + Region break flow + + + + + + + + + + + + + + + + A region break 1 + A region break 2 + A region break 3 + A region break 4 + + + + + + Paragraph flowing + + + + + + + + + + + + + + + + The para 1, + The para 2, + The para 3, + The para 4. + + + + + + Text flowing + + + + + + + + + + + + + + + The text 1, The text 2, the text 3, The text 4. + + + + + + + Text/line flowing + + + + + + + + + + + + + + + The text 1, + The text 2, + The text 3, + The text 4. + + + + + + + Line flowing + + + + + + + + + + + + + + + The line 1, + The line 2, + The line 3, + The line 4. + + + + + + 2xLine flowing + + + + + + + + + + + + + + + The line 1, + The line 2, + The line 3, + The line 4. + + + + + + Span flowing + + + + + + + + + + + + + + + + The span 1, + The span 2, + The span 3, + The span 4. + + + + + + Span/line flowing + + + + + + + + + + + + + + + The span 1, + The span 2, + The span 3, + The span 4. + + + + + + + Region breaks + + + + + + + + + + + A region break 1 + A region break 2 + A region break 3 + A region break 4 + + + + + + Para elems + + + + + + + + + + + The para 1, + The para 2, + The para 3, + The para 4. + + + + + + Just text + + + + + + + + + + + The text 1, The text 2, The text 3, The text 4. + + + + + + Text/line elems + + + + + + + + + + + The text 1, + The text 2, + The text 3, + The text 4. + + + + + + Line elems + + + + + + + + + + + The line 1, + The line 2, + The line 3, + The line 4. + + + + + + Span elems + + + + + + + + + + + The span 1, + The span 2, + The span 3, + The span 4. + + + + + + Span/line elems + + + + + + + + + + + The span 1, + The span 2, + The span 3, + The span 4. + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/text/flowText.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/text/flowText.svg new file mode 100644 index 0000000..750fbf1 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/text/flowText.svg @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + +Test of Text wrapping stuff. + + + + Test of Text wrapping stuff + + + + + + + + + + + + + + + + + This is an ex­ample of a very long string that is split ‍across multi­ple lines via text wrap­ping. + Now check if text wrapping handles some tricky stuff: a­very­long­runon­word­that­spans­multiple­lines­with­embed­span­elements & super or sub scripts. + We are just about to go to the next flow rect (NOTE: if the 'about' were included on the last line of the previous flow the line would not have fit in the region, so it is moved to this flowRegion). + I want to make sure that it stops when it hits the end of all of the flowRegions defined. Also the last line includes text in a larger font size so it will not fit. The end of this sentence will be cut off because the line size gets taller + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/text/flowText2.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/text/flowText2.svg new file mode 100644 index 0000000..35b9709 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/text/flowText2.svg @@ -0,0 +1,77 @@ + + + + + + + + + + + + + + + +Test of Text wrapping stuff. + + + + Test of Text wrapping stuff + + + + + + + + + + + + + + + + + + + + This is an ex­ample of a very long string that is split ‍across multi­ple lines via text wrap­ping. + Now check if text wrapping handles a number of tricky situations: a­very­long­runon­word­that­spans­multiple­lines­with­embedded­span­elements & super or sub scripts. + Now we are just about to go to the next flow rect (note if the 'about' were included on the last line of the previous flow rect the line would not have fit and the whole line would have moved here). + I'll keep going because I want to make sure that it properly stops when it hits the end of all of the the flow regions defined. Also the last line includes text in a larger font size so it will not fit. Thus the end of this sentence will be cut off because the line size gets taller + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/text/flowText3.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/text/flowText3.svg new file mode 100644 index 0000000..d50afd3 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/text/flowText3.svg @@ -0,0 +1,72 @@ + + + + + + + + + + + + + + + +Test of Text wrapping stuff. + + + + Test of Text wrapping stuff + + + + + + + + + + + + + + + + + + This is an ex­ample of a very long string that is split ‍across multi­ple lines via text wrap­ping. + Now check if text wrapping handles a number of tricky situations: a­very­long­runon­word­that­spans­multiple­lines­with­embedded­span­elements & super or sub scripts. + Now we are just about to go to the next flow rect (note if the 'about' were included on the last line of the previous flow rect the line would not have fit and the whole line would have moved here). + I'll keep going because I want to make sure that it properly stops when it hits the end of all of the the flow regions defined. Also the last line includes text in a larger font size so it will not fit. Thus the end of this sentence will be cut off because the line size gets taller + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/text/flowText4.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/text/flowText4.svg new file mode 100644 index 0000000..c4ba51a --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/text/flowText4.svg @@ -0,0 +1,67 @@ + + + + + + + + + + + + + + + +Test of Text wrapping stuff. + + + + Test of Text wrapping stuff + + + B + + + B + + + + + This is an ex­ample of a very long string that is split ‍across multi­ple lines via text wrap­ping. + Now check if text wrapping handles a number of tricky situations: a­very­long­runon­word­that­spans­multiple­lines­with­embedded­span­elements & super or sub scripts. + Now we are just about to go to the next flow rect (note if the 'about' were included on the last line of the previous flow rect the line would not have fit and the whole line would have moved here). + I'll keep going because I want to make sure that it properly stops when it hits the end of all of the the flow regions defined. Also the last line includes text in a larger font size so it will not fit. Thus the end of this sentence will be cut off because the line size gets taller + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/text/flowText5.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/text/flowText5.svg new file mode 100644 index 0000000..67056e7 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/text/flowText5.svg @@ -0,0 +1,108 @@ + + + + + + + + + + + + + + + + Test of Text wrapping stuff. + + Test of Text wrapping stuff + + + One complex flow Region + + + + + + + + + + + Tomorrow, and tomorrow, and tomorrow, + Creeps in this petty pace from day to day, + To the last syllable of recorded time; + And all our yesterdays have lighted fools + The way to dusty death. Out, out, brief candle! + Life's but a walking shadow; a poor player, + That struts and frets his hour upon the stage, + And then is heard no more: it is a tale + Told by an idiot, full of sound and fury, + Signifying nothing. + + + + + + + Three flow Regions + + + + + + + + + + + + + + + + Tomorrow, and tomorrow, and tomorrow, + Creeps in this petty pace from day to day, + To the last syllable of recorded time; + And all our yesterdays have lighted fools + The way to dusty death. Out, out, brief candle! + Life's but a walking shadow; a poor player, + That struts and frets his hour upon the stage, + And then is heard no more: it is a tale + Told by an idiot, full of sound and fury, + Signifying nothing. + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/text/flowTextAlign.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/text/flowTextAlign.svg new file mode 100644 index 0000000..76f5f05 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/text/flowTextAlign.svg @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + Test of Text vertical-align. + + + Test of Text vertical-align + + + + + + + + + + + + + + + + + + + + Try top + Try middle + Try bottom + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Try top two lines + Middle two lines + Bottom two lines + + + + + + + + + + + + + + + + + + + + + + + Try top two lines + Middle two lines + Bottom two lines + + + + + + + + + + + + + + + + + + + + + + + Try top + two lines + Middle + two lines + Bottom + two lines + + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/text/lineHeightFontShorthand.svg b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/text/lineHeightFontShorthand.svg new file mode 100644 index 0000000..6f74dbd --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/tests/spec12/text/lineHeightFontShorthand.svg @@ -0,0 +1,129 @@ + + + + + + + + + + + + + + + + + Test CSS 'font' shorthand 'line-height' + Test CSS 'font' shorthand 'line-height' + + + + + + font:20px Serif + + + font:20/2 SanSerif + + + font:20/1 times + + + font:bold 20/.5 times + + + font:bold 20/.5 times + + + font:italic 20/30px times + + + font:bold italic 20/15px times + + + font:italic bold 20/15px times + + + font:700 20/1em times + + + font:700 20/75% times + + + para: 1.5,line:.75 + + + + para: .75,line:1.5 + + + blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah + + + + blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/textRotate.svg b/Prototypes/Source/Java/Apache-Batik/samples/textRotate.svg new file mode 100644 index 0000000..dbcc5f8 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/textRotate.svg @@ -0,0 +1,107 @@ + + + + + + + + + + + + + +Text Rotation + + + + + + + batik + + + + Text Transformation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + batik + + + + + + + + + diff --git a/Prototypes/Source/Java/Apache-Batik/samples/textRotateShadows.svg b/Prototypes/Source/Java/Apache-Batik/samples/textRotateShadows.svg new file mode 100644 index 0000000..1ec8732 --- /dev/null +++ b/Prototypes/Source/Java/Apache-Batik/samples/textRotateShadows.svg @@ -0,0 +1,101 @@ + + + + + + + + + + + + + + +Text Rotation and Shadows + + + + + + + + batik + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Text Transformation + + + + + + + + + + + + + + + + + + + diff --git a/Prototypes/Source/Java/Import.wl b/Prototypes/Source/Java/Import.wl index 3fd2fa4..8a0ae65 100644 --- a/Prototypes/Source/Java/Import.wl +++ b/Prototypes/Source/Java/Import.wl @@ -1,3 +1,5 @@ + +(* JavaInstall["Batik"] := Module[{source, zip, dir, jar}, source = "http://www.apache.org/dyn/closer.cgi?filename=/xmlgraphics/batik/binaries/batik-bin-1.12.zip&action=download"; zip = FileNameJoin[{$HomeDirectory, "Downloads", "batik-bin-1.12.zip"}]; @@ -9,11 +11,14 @@ JavaInstall["Batik"] := Module[{source, zip, dir, jar}, jar = FileNameJoin[{dir, "batik-1.12"}]; AddToClassPath[jar]; jar ]; +*) + +$JavaSourceDirectory = DirectoryName[$InputFileName]; +AddToClassPath[ FileNameJoin[{$JavaSourceDirectory,"Apache-Batik"}] ]; -JavaImport[in_String, "SVG", Method -> "ApacheBatik"] := Module[{file, input, stream, output, tmp, transcoder, res}, +JavaImport[filename_String, options___] := Module[{batikDirectory, file, input, stream, output, tmp, transcoder, res}, JavaBlock[ - If[Length[Select[JavaClassPath[], StringContainsQ["batik-1.12"]]] == 0, AddToClassPath[ FileNameJoin[{$UserBaseDirectory, "ApplicationData", "Java", "batik-1.12"}]]]; - file = JavaNew["java.io.File", in]@toURL[]@toString[]; + file = JavaNew["java.io.File", filename]@toURL[]@toString[]; input = JavaNew["org.apache.batik.transcoder.TranscoderInput", file]; tmp = CreateFile[]; stream = JavaNew["java.io.FileOutputStream", tmp]; @@ -25,6 +30,6 @@ JavaImport[in_String, "SVG", Method -> "ApacheBatik"] := Module[{file, input, st stream@close[]; res = Import[tmp]; DeleteFile[tmp]; - res + {"Image" -> res} ] ]; diff --git a/Prototypes/Source/Random.wl b/Prototypes/Source/Random.wl index c1627f8..48ce298 100644 --- a/Prototypes/Source/Random.wl +++ b/Prototypes/Source/Random.wl @@ -18,7 +18,9 @@ RandomDelete[expr_, pattern_, opts___] := Delete[expr, RandomChoice[Position[exp RandomPosition[expr_, pattern_, opts___] := RandomChoice[Position[expr, pattern, opts]] +(* RandomGeoPosition[] := GeoPosition[{RandomReal[{-90, 90}], RandomReal[{-180, 180}]}]; +*) RandomDate[] := FromAbsoluteTime[ RandomInteger[{0, Round[AbsoluteTime[Now]]}] ] ; diff --git a/Prototypes/Source/Words.wl b/Prototypes/Source/Words.wl index 42adc73..35d46a6 100644 --- a/Prototypes/Source/Words.wl +++ b/Prototypes/Source/Words.wl @@ -1,8 +1,10 @@ +(* Attributes[Antonyms] = {Listable}; Antonyms[word_String] := Flatten[WordData[word, "Antonyms"][[All, 2]]]; Attributes[Synonyms] = {Listable}; Synonyms[word_String] := Flatten[WordData[word, "Synonyms"][[All, 2]]]; +*) NounQ[word_String] := MemberQ[Union[WordData[word][[All, 2]]], "Noun"]; VerbQ[word_String] := MemberQ[Union[WordData[word][[All, 2]]], "Verb"]; diff --git a/Prototypes/Usage.wl b/Prototypes/Usage.wl index 539ba64..ee299b4 100644 --- a/Prototypes/Usage.wl +++ b/Prototypes/Usage.wl @@ -42,7 +42,9 @@ CapitalizeSentences::usage = "CapitalizeSentences[string] capitalizes sentences StringSwap::usage = "StringSwap[string, a \[TwoWayRule] b] swaps 'a' and 'b' in 'string'"; $UUIDStringPattern::usage = "$UUIDStringPattern will StringMatchQ a valid UUID"; (* geographics *) +(* RandomGeoPosition::usage = "RandomGeoPosition[] picks a random geo position"; +*) (* color *) RGBColor255::usage = "RGBColor[r,g,b] specifies color using RGB values from the range 0-255"; (* image processing *) @@ -119,8 +121,10 @@ Prototype::usage = "Prototype[\"symbol\"] modifies System 'symbol' in a custom w FilePartition::usage = "FilePartition[file,size] partitions 'file' into chunks with the given 'size' and places them in a new directory"; FileJoin::usage = "FileJoin[dir,file] combines binary part files in 'dir' into a single 'file'"; FilePattern::usage = "FilePattern is an option to FileJoin which specifies which files to include"; +(* Antonyms::usage = "Antonyms[word] gives the list of antonyms for 'word'"; Synonyms::usage = "Synonyms[word] gives the list of synonyms for 'word'"; +*) NounQ::usage = "NounQ[word] gives True if 'word' is a noun and False otherwise"; VerbQ::usage = "VerbQ[word] gives True if 'word' is a verb and False otherwise"; AdjectiveQ::usage = "AdjectiveQ[word] gives True if 'word' is an adjective and False otherwise"; @@ -192,4 +196,4 @@ IPStack::usage = "IPStack[ip,key] gives geographical information for IP address $PrototypesLibraryDirectory::usage = "$PrototypesLibraryDirectory gives the directory for the compiled libraries of the Prototypes package"; JavaInstall::usage = "JavaInstall[package] installs a java package, such as \"Batik\""; -JavaImport::usage = "JavaImport[file,format] uses Java to import file"; \ No newline at end of file +JavaImport::usage = "JavaImport[file,format] import SVG file"; \ No newline at end of file