FLEX-34506 remove Adobe from file names and directories
Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/fd2bc5a5 Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/fd2bc5a5 Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/fd2bc5a5 Branch: refs/heads/master Commit: fd2bc5a547146c6034a3da71efd3f1e294b74255 Parents: 6e0d435 Author: Justin Mclean <jmcl...@apache.org> Authored: Thu Aug 28 14:32:27 2014 +1000 Committer: Justin Mclean <jmcl...@apache.org> Committed: Thu Aug 28 14:32:27 2014 +1000 ---------------------------------------------------------------------- .../SimpleEditor/src/AdobeSpellingConfig.xml | 22 -- .../Demo/SimpleEditor/src/SpellingConfig.xml | 22 ++ .../src/AdobeSpellingFrameworkExample.mxml | 80 ------- .../src/SpellingFrameworkExample.mxml | 80 +++++++ .../src/AdobeSpellingAirDemo-app.xml | 153 -------------- .../src/AdobeSpellingAirDemo.mxml | 39 ---- .../src/AdobeSpellingAirDemoEx-app.xml | 153 -------------- .../src/AdobeSpellingAirDemoEx.mxml | 71 ------- .../src/AdobeSpellingConfig.xml | 26 --- .../src/AdobeSpellingDemo.mxml | 72 ------- .../src/AdobeSpellingConfig.xml | 27 --- .../src/AdobeSpellingDemoEx.mxml | 70 ------- .../SpellingAirDemo/src/SpellingAirDemo-app.xml | 153 ++++++++++++++ .../SpellingAirDemo/src/SpellingAirDemo.mxml | 39 ++++ .../src/SpellingAirDemoEx-app.xml | 153 ++++++++++++++ .../src/SpellingAirDemoEx.mxml | 71 +++++++ .../Demo/SpellingDemo/src/SpellingConfig.xml | 26 +++ .../Demo/SpellingDemo/src/SpellingDemo.mxml | 72 +++++++ .../Demo/SpellingDemoEx/src/SpellingConfig.xml | 27 +++ .../main/Tools/AdobeSpellingDictGen/README.txt | 16 -- .../sample/sampleWordList.txt | 13 -- .../src/AdobeSpellingDictGen-app.xml | 153 -------------- .../src/AdobeSpellingDictGen.mxml | 210 ------------------- .../Tools/AdobeSpellingDictGen/src/UIWord.as | 37 ---- Squiggly/main/Tools/SpellingDictGen/README.txt | 16 ++ .../SpellingDictGen/sample/sampleWordList.txt | 13 ++ .../SpellingDictGen/src/SpellingDictGen-app.xml | 153 ++++++++++++++ .../SpellingDictGen/src/SpellingDictGen.mxml | 210 +++++++++++++++++++ .../main/Tools/SpellingDictGen/src/UIWord.as | 37 ++++ 29 files changed, 1072 insertions(+), 1142 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/fd2bc5a5/Squiggly/ane/Squiggly/Demo/SimpleEditor/src/AdobeSpellingConfig.xml ---------------------------------------------------------------------- diff --git a/Squiggly/ane/Squiggly/Demo/SimpleEditor/src/AdobeSpellingConfig.xml b/Squiggly/ane/Squiggly/Demo/SimpleEditor/src/AdobeSpellingConfig.xml deleted file mode 100644 index 19c97ba..0000000 --- a/Squiggly/ane/Squiggly/Demo/SimpleEditor/src/AdobeSpellingConfig.xml +++ /dev/null @@ -1,22 +0,0 @@ -<?xml version="1.0" encoding='UTF-8'?> -<!-- - - 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. - ---> -<SpellingConfig> - <ThirdPartyResourceLocation URL="D:\\Program Files\\Common Files\\adobe\\linguistics\\ThirdPartyResources" /> -</SpellingConfig> http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/fd2bc5a5/Squiggly/ane/Squiggly/Demo/SimpleEditor/src/SpellingConfig.xml ---------------------------------------------------------------------- diff --git a/Squiggly/ane/Squiggly/Demo/SimpleEditor/src/SpellingConfig.xml b/Squiggly/ane/Squiggly/Demo/SimpleEditor/src/SpellingConfig.xml new file mode 100644 index 0000000..d115126 --- /dev/null +++ b/Squiggly/ane/Squiggly/Demo/SimpleEditor/src/SpellingConfig.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding='UTF-8'?> +<!-- + + 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. + +--> +<SpellingConfig> + <ThirdPartyResourceLocation URL="D:\\Program Files\\Common Files\\adobe\\linguistics\\ThirdPartyResources" /> +</SpellingConfig> http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/fd2bc5a5/Squiggly/main/ASDocExamples/com/adobe/linguistics/spelling/Examples/Flex/SpellingServiceExample/src/AdobeSpellingFrameworkExample.mxml ---------------------------------------------------------------------- diff --git a/Squiggly/main/ASDocExamples/com/adobe/linguistics/spelling/Examples/Flex/SpellingServiceExample/src/AdobeSpellingFrameworkExample.mxml b/Squiggly/main/ASDocExamples/com/adobe/linguistics/spelling/Examples/Flex/SpellingServiceExample/src/AdobeSpellingFrameworkExample.mxml deleted file mode 100644 index 0fc24f3..0000000 --- a/Squiggly/main/ASDocExamples/com/adobe/linguistics/spelling/Examples/Flex/SpellingServiceExample/src/AdobeSpellingFrameworkExample.mxml +++ /dev/null @@ -1,80 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - - 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. - ---> -<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" - xmlns:s="library://ns.adobe.com/flex/spark" - xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" initialize="init();"> - <fx:Declarations> - <!-- Place non-visual elements (e.g., services, value objects) here --> - </fx:Declarations> - <fx:Script> - <![CDATA[ - import com.adobe.linguistics.spelling.framework.*; - import com.adobe.linguistics.spelling.*; - - private var spellingService:SpellingService = null; - - private function init():void { - result.text += "AdobeSpellingServiceFramework tests\n===================\n"; - result.text += "Setting SpellingConfiguration and initializing SpellingService ...\n"; - - var resourceTable:ResourceTable = new ResourceTable(); - resourceTable.setResource("en_US", {rule:"data/en_US.aff", dict:"data/en_US.dic"}); - SpellingConfiguration.resourceTable = resourceTable; - - spellingService = new SpellingService("en_US"); - spellingService.addEventListener(Event.COMPLETE, spellingServiceReady); - spellingService.init(); - } - - private function spellingServiceReady(e:Event):void { - result.text += "SpellingService ready for use\n"; - - result.text += "Checking \"hello\" ... " + spellingService.checkWord("hello") + "\n"; - result.text += "Checking \"heello\" ... " + spellingService.checkWord("heello") + "\n"; - result.text += "Getting suggestions for \"heello\" ... " + spellingService.getSuggestions("heello") + "\n"; - - - var ud:UserDictionary = new UserDictionary(); - result.text += "Adding \"heello\" to UserDictionary ..." + ud.addWord("heello") + "\n"; - result.text += "Adding UserDicitonary to SpellingService ..." + spellingService.addUserDictionary(ud) +"\n"; - result.text += "Checking \"heello\" again, expect true ..." + spellingService.checkWord("heello") + "\n"; - - result.text += "Removing \"heello\" from UserDictionary ..." + ud.removeWord("heello") + "\n" - result.text += "Checking \"heello\" again, expect false ..." + spellingService.checkWord("heello") + "\n"; - - result.text += "Number of UserDictionary, expect 1 ..." + spellingService.userDictionaries.length + "\n"; - - var ud2:UserDictionary = new UserDictionary(); - result.text += "Adding UserDicitonary 2 to SpellingService ..." + spellingService.addUserDictionary(ud2) +"\n"; - result.text += "Adding \"heello\" to UserDictionary 2 ..." + ud2.addWord("heello") + "\n"; - result.text += "Checking \"heello\" again, expect true ..." + spellingService.checkWord("heello") + "\n"; - result.text += "Number of UserDictionary, expect 2 ..." + spellingService.userDictionaries.length + "\n"; - - spellingService.removeUserDictionary(ud); - spellingService.removeUserDictionary(ud2); - result.text += "Checking \"heello\" again after removing all UserDictionaries, expect false ..." + spellingService.checkWord("heello") + "\n"; - result.text += "Number of UserDictionary, expect 0 ..." + spellingService.userDictionaries.length + "\n"; - - } - - ]]> - </fx:Script> - <mx:Text id="result"/> -</s:Application> http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/fd2bc5a5/Squiggly/main/ASDocExamples/com/adobe/linguistics/spelling/Examples/Flex/SpellingServiceExample/src/SpellingFrameworkExample.mxml ---------------------------------------------------------------------- diff --git a/Squiggly/main/ASDocExamples/com/adobe/linguistics/spelling/Examples/Flex/SpellingServiceExample/src/SpellingFrameworkExample.mxml b/Squiggly/main/ASDocExamples/com/adobe/linguistics/spelling/Examples/Flex/SpellingServiceExample/src/SpellingFrameworkExample.mxml new file mode 100644 index 0000000..0fc24f3 --- /dev/null +++ b/Squiggly/main/ASDocExamples/com/adobe/linguistics/spelling/Examples/Flex/SpellingServiceExample/src/SpellingFrameworkExample.mxml @@ -0,0 +1,80 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + + 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. + +--> +<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" + xmlns:s="library://ns.adobe.com/flex/spark" + xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" initialize="init();"> + <fx:Declarations> + <!-- Place non-visual elements (e.g., services, value objects) here --> + </fx:Declarations> + <fx:Script> + <![CDATA[ + import com.adobe.linguistics.spelling.framework.*; + import com.adobe.linguistics.spelling.*; + + private var spellingService:SpellingService = null; + + private function init():void { + result.text += "AdobeSpellingServiceFramework tests\n===================\n"; + result.text += "Setting SpellingConfiguration and initializing SpellingService ...\n"; + + var resourceTable:ResourceTable = new ResourceTable(); + resourceTable.setResource("en_US", {rule:"data/en_US.aff", dict:"data/en_US.dic"}); + SpellingConfiguration.resourceTable = resourceTable; + + spellingService = new SpellingService("en_US"); + spellingService.addEventListener(Event.COMPLETE, spellingServiceReady); + spellingService.init(); + } + + private function spellingServiceReady(e:Event):void { + result.text += "SpellingService ready for use\n"; + + result.text += "Checking \"hello\" ... " + spellingService.checkWord("hello") + "\n"; + result.text += "Checking \"heello\" ... " + spellingService.checkWord("heello") + "\n"; + result.text += "Getting suggestions for \"heello\" ... " + spellingService.getSuggestions("heello") + "\n"; + + + var ud:UserDictionary = new UserDictionary(); + result.text += "Adding \"heello\" to UserDictionary ..." + ud.addWord("heello") + "\n"; + result.text += "Adding UserDicitonary to SpellingService ..." + spellingService.addUserDictionary(ud) +"\n"; + result.text += "Checking \"heello\" again, expect true ..." + spellingService.checkWord("heello") + "\n"; + + result.text += "Removing \"heello\" from UserDictionary ..." + ud.removeWord("heello") + "\n" + result.text += "Checking \"heello\" again, expect false ..." + spellingService.checkWord("heello") + "\n"; + + result.text += "Number of UserDictionary, expect 1 ..." + spellingService.userDictionaries.length + "\n"; + + var ud2:UserDictionary = new UserDictionary(); + result.text += "Adding UserDicitonary 2 to SpellingService ..." + spellingService.addUserDictionary(ud2) +"\n"; + result.text += "Adding \"heello\" to UserDictionary 2 ..." + ud2.addWord("heello") + "\n"; + result.text += "Checking \"heello\" again, expect true ..." + spellingService.checkWord("heello") + "\n"; + result.text += "Number of UserDictionary, expect 2 ..." + spellingService.userDictionaries.length + "\n"; + + spellingService.removeUserDictionary(ud); + spellingService.removeUserDictionary(ud2); + result.text += "Checking \"heello\" again after removing all UserDictionaries, expect false ..." + spellingService.checkWord("heello") + "\n"; + result.text += "Number of UserDictionary, expect 0 ..." + spellingService.userDictionaries.length + "\n"; + + } + + ]]> + </fx:Script> + <mx:Text id="result"/> +</s:Application> http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/fd2bc5a5/Squiggly/main/Demo/AdobeSpellingAirDemo/src/AdobeSpellingAirDemo-app.xml ---------------------------------------------------------------------- diff --git a/Squiggly/main/Demo/AdobeSpellingAirDemo/src/AdobeSpellingAirDemo-app.xml b/Squiggly/main/Demo/AdobeSpellingAirDemo/src/AdobeSpellingAirDemo-app.xml deleted file mode 100644 index 36fb899..0000000 --- a/Squiggly/main/Demo/AdobeSpellingAirDemo/src/AdobeSpellingAirDemo-app.xml +++ /dev/null @@ -1,153 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - - 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. - - --> -<application xmlns="http://ns.adobe.com/air/application/1.5"> - -<!-- Adobe AIR Application Descriptor File Template. - - Specifies parameters for identifying, installing, and launching AIR applications. - - xmlns - The Adobe AIR namespace: http://ns.adobe.com/air/application/1.5 - The last segment of the namespace specifies the version - of the AIR runtime required for this application to run. - - minimumPatchLevel - The minimum patch level of the AIR runtime required to run - the application. Optional. ---> - - <!-- The application identifier string, unique to this application. Required. --> - <id>AdobeSpellingAirDemo</id> - - <!-- Used as the filename for the application. Required. --> - <filename>AdobeSpellingAirDemo</filename> - - <!-- The name that is displayed in the AIR application installer. - May have multiple values for each language. See samples or xsd schema file. Optional. --> - <name>AdobeSpellingAirDemo</name> - - <!-- An application version designator (such as "v1", "2.5", or "Alpha 1"). Required. --> - <version>v1</version> - - <!-- Description, displayed in the AIR application installer. - May have multiple values for each language. See samples or xsd schema file. Optional. --> - <!-- <description></description> --> - - <!-- Copyright information. Optional --> - <!-- <copyright></copyright> --> - - <!-- Settings for the application's initial window. Required. --> - <initialWindow> - <!-- The main SWF or HTML file of the application. Required. --> - <!-- Note: In Flex Builder, the SWF reference is set automatically. --> - <content>[This value will be overwritten by Flex Builder in the output app.xml]</content> - - <!-- The title of the main window. Optional. --> - <!-- <title></title> --> - - <!-- The type of system chrome to use (either "standard" or "none"). Optional. Default standard. --> - <!-- <systemChrome></systemChrome> --> - - <!-- Whether the window is transparent. Only applicable when systemChrome is none. Optional. Default false. --> - <!-- <transparent></transparent> --> - - <!-- Whether the window is initially visible. Optional. Default false. --> - <!-- <visible></visible> --> - - <!-- Whether the user can minimize the window. Optional. Default true. --> - <!-- <minimizable></minimizable> --> - - <!-- Whether the user can maximize the window. Optional. Default true. --> - <!-- <maximizable></maximizable> --> - - <!-- Whether the user can resize the window. Optional. Default true. --> - <!-- <resizable></resizable> --> - - <!-- The window's initial width. Optional. --> - <!-- <width></width> --> - - <!-- The window's initial height. Optional. --> - <!-- <height></height> --> - - <!-- The window's initial x position. Optional. --> - <!-- <x></x> --> - - <!-- The window's initial y position. Optional. --> - <!-- <y></y> --> - - <!-- The window's minimum size, specified as a width/height pair, such as "400 200". Optional. --> - <!-- <minSize></minSize> --> - - <!-- The window's initial maximum size, specified as a width/height pair, such as "1600 1200". Optional. --> - <!-- <maxSize></maxSize> --> - </initialWindow> - - <!-- The subpath of the standard default installation location to use. Optional. --> - <!-- <installFolder></installFolder> --> - - <!-- The subpath of the Programs menu to use. (Ignored on operating systems without a Programs menu.) Optional. --> - <!-- <programMenuFolder></programMenuFolder> --> - - <!-- The icon the system uses for the application. For at least one resolution, - specify the path to a PNG file included in the AIR package. Optional. --> - <!-- <icon> - <image16x16></image16x16> - <image32x32></image32x32> - <image48x48></image48x48> - <image128x128></image128x128> - </icon> --> - - <!-- Whether the application handles the update when a user double-clicks an update version - of the AIR file (true), or the default AIR application installer handles the update (false). - Optional. Default false. --> - <!-- <customUpdateUI></customUpdateUI> --> - - <!-- Whether the application can be launched when the user clicks a link in a web browser. - Optional. Default false. --> - <!-- <allowBrowserInvocation></allowBrowserInvocation> --> - - <!-- Listing of file types for which the application can register. Optional. --> - <!-- <fileTypes> --> - - <!-- Defines one file type. Optional. --> - <!-- <fileType> --> - - <!-- The name that the system displays for the registered file type. Required. --> - <!-- <name></name> --> - - <!-- The extension to register. Required. --> - <!-- <extension></extension> --> - - <!-- The description of the file type. Optional. --> - <!-- <description></description> --> - - <!-- The MIME content type. --> - <!-- <contentType></contentType> --> - - <!-- The icon to display for the file type. Optional. --> - <!-- <icon> - <image16x16></image16x16> - <image32x32></image32x32> - <image48x48></image48x48> - <image128x128></image128x128> - </icon> --> - - <!-- </fileType> --> - <!-- </fileTypes> --> - -</application> http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/fd2bc5a5/Squiggly/main/Demo/AdobeSpellingAirDemo/src/AdobeSpellingAirDemo.mxml ---------------------------------------------------------------------- diff --git a/Squiggly/main/Demo/AdobeSpellingAirDemo/src/AdobeSpellingAirDemo.mxml b/Squiggly/main/Demo/AdobeSpellingAirDemo/src/AdobeSpellingAirDemo.mxml deleted file mode 100644 index 4c68739..0000000 --- a/Squiggly/main/Demo/AdobeSpellingAirDemo/src/AdobeSpellingAirDemo.mxml +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - - 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. - ---> -<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" width="1024" height="768" initialize="init()"> - <mx:Script> - <![CDATA[ - - import com.adobe.linguistics.spelling.SpellUI; - - public function init():void - { - SpellUI.enableSpelling(ti, "usa.zwl"); - SpellUI.enableSpelling(ta, "usa.zwl"); - SpellUI.enableSpelling(rte, "usa.zwl"); - } - ]]> - </mx:Script> - - <mx:Label text="Squiggly Spell Checker Air Demo v0.1" fontSize="30"/> - <mx:TextInput id="ti" width="50%" fontSize="30"/> - <mx:TextArea id="ta" width="50%" height="50%" fontSize="30"/> - <mx:RichTextEditor id="rte" width="50%" height="50%" fontSize="30"/> -</mx:WindowedApplication> http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/fd2bc5a5/Squiggly/main/Demo/AdobeSpellingAirDemoEx/src/AdobeSpellingAirDemoEx-app.xml ---------------------------------------------------------------------- diff --git a/Squiggly/main/Demo/AdobeSpellingAirDemoEx/src/AdobeSpellingAirDemoEx-app.xml b/Squiggly/main/Demo/AdobeSpellingAirDemoEx/src/AdobeSpellingAirDemoEx-app.xml deleted file mode 100644 index 95c29b4..0000000 --- a/Squiggly/main/Demo/AdobeSpellingAirDemoEx/src/AdobeSpellingAirDemoEx-app.xml +++ /dev/null @@ -1,153 +0,0 @@ -<?xml version="1.0" encoding="utf-8" standalone="no"?> -<!-- - - 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. - - --> -<application xmlns="http://ns.adobe.com/air/application/1.5.2"> - -<!-- Adobe AIR Application Descriptor File Template. - - Specifies parameters for identifying, installing, and launching AIR applications. - - xmlns - The Adobe AIR namespace: http://ns.adobe.com/air/application/1.5.2 - The last segment of the namespace specifies the version - of the AIR runtime required for this application to run. - - minimumPatchLevel - The minimum patch level of the AIR runtime required to run - the application. Optional. ---> - - <!-- The application identifier string, unique to this application. Required. --> - <id>AdobeSpellingAirDemoEx</id> - - <!-- Used as the filename for the application. Required. --> - <filename>AdobeSpellingAirDemoEx</filename> - - <!-- The name that is displayed in the AIR application installer. - May have multiple values for each language. See samples or xsd schema file. Optional. --> - <name>AdobeSpellingAirDemoEx</name> - - <!-- An application version designator (such as "v1", "2.5", or "Alpha 1"). Required. --> - <version>v1</version> - - <!-- Description, displayed in the AIR application installer. - May have multiple values for each language. See samples or xsd schema file. Optional. --> - <!-- <description></description> --> - - <!-- Copyright information. Optional --> - <!-- <copyright></copyright> --> - - <!-- Settings for the application's initial window. Required. --> - <initialWindow> - <!-- The main SWF or HTML file of the application. Required. --> - <!-- Note: In Flash Builder, the SWF reference is set automatically. --> - <content>[This value will be overwritten by Flash Builder in the output app.xml]</content> - - <!-- The title of the main window. Optional. --> - <!-- <title></title> --> - - <!-- The type of system chrome to use (either "standard" or "none"). Optional. Default standard. --> - <!-- <systemChrome></systemChrome> --> - - <!-- Whether the window is transparent. Only applicable when systemChrome is none. Optional. Default false. --> - <!-- <transparent></transparent> --> - - <!-- Whether the window is initially visible. Optional. Default false. --> - <!-- <visible></visible> --> - - <!-- Whether the user can minimize the window. Optional. Default true. --> - <!-- <minimizable></minimizable> --> - - <!-- Whether the user can maximize the window. Optional. Default true. --> - <!-- <maximizable></maximizable> --> - - <!-- Whether the user can resize the window. Optional. Default true. --> - <!-- <resizable></resizable> --> - - <!-- The window's initial width. Optional. --> - <!-- <width></width> --> - - <!-- The window's initial height. Optional. --> - <!-- <height></height> --> - - <!-- The window's initial x position. Optional. --> - <!-- <x></x> --> - - <!-- The window's initial y position. Optional. --> - <!-- <y></y> --> - - <!-- The window's minimum size, specified as a width/height pair, such as "400 200". Optional. --> - <!-- <minSize></minSize> --> - - <!-- The window's initial maximum size, specified as a width/height pair, such as "1600 1200". Optional. --> - <!-- <maxSize></maxSize> --> - </initialWindow> - - <!-- The subpath of the standard default installation location to use. Optional. --> - <!-- <installFolder></installFolder> --> - - <!-- The subpath of the Programs menu to use. (Ignored on operating systems without a Programs menu.) Optional. --> - <!-- <programMenuFolder></programMenuFolder> --> - - <!-- The icon the system uses for the application. For at least one resolution, - specify the path to a PNG file included in the AIR package. Optional. --> - <!-- <icon> - <image16x16></image16x16> - <image32x32></image32x32> - <image48x48></image48x48> - <image128x128></image128x128> - </icon> --> - - <!-- Whether the application handles the update when a user double-clicks an update version - of the AIR file (true), or the default AIR application installer handles the update (false). - Optional. Default false. --> - <!-- <customUpdateUI></customUpdateUI> --> - - <!-- Whether the application can be launched when the user clicks a link in a web browser. - Optional. Default false. --> - <!-- <allowBrowserInvocation></allowBrowserInvocation> --> - - <!-- Listing of file types for which the application can register. Optional. --> - <!-- <fileTypes> --> - - <!-- Defines one file type. Optional. --> - <!-- <fileType> --> - - <!-- The name that the system displays for the registered file type. Required. --> - <!-- <name></name> --> - - <!-- The extension to register. Required. --> - <!-- <extension></extension> --> - - <!-- The description of the file type. Optional. --> - <!-- <description></description> --> - - <!-- The MIME content type. --> - <!-- <contentType></contentType> --> - - <!-- The icon to display for the file type. Optional. --> - <!-- <icon> - <image16x16></image16x16> - <image32x32></image32x32> - <image48x48></image48x48> - <image128x128></image128x128> - </icon> --> - - <!-- </fileType> --> - <!-- </fileTypes> --> - -</application> http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/fd2bc5a5/Squiggly/main/Demo/AdobeSpellingAirDemoEx/src/AdobeSpellingAirDemoEx.mxml ---------------------------------------------------------------------- diff --git a/Squiggly/main/Demo/AdobeSpellingAirDemoEx/src/AdobeSpellingAirDemoEx.mxml b/Squiggly/main/Demo/AdobeSpellingAirDemoEx/src/AdobeSpellingAirDemoEx.mxml deleted file mode 100644 index e8912c9..0000000 --- a/Squiggly/main/Demo/AdobeSpellingAirDemoEx/src/AdobeSpellingAirDemoEx.mxml +++ /dev/null @@ -1,71 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - - 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. - ---> -<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" - xmlns:s="library://ns.adobe.com/flex/spark" - xmlns:mx="library://ns.adobe.com/flex/mx"> - <s:layout> - <s:VerticalLayout/> - </s:layout> - - <fx:Script> - <![CDATA[ - - import com.adobe.linguistics.spelling.SpellUI; - - private function EnableAll(evt:MouseEvent):void { - SpellUI.enableSpelling(halo1, "usa.zwl"); - SpellUI.enableSpelling(halo2, "usa.zwl"); - SpellUI.enableSpelling(halo3, "usa.zwl"); - SpellUI.enableSpelling(spark1, "usa.zwl"); - SpellUI.enableSpelling(spark2, "usa.zwl"); - - } - - private function DisableAll(evt:MouseEvent):void { - SpellUI.disableSpelling(halo1); - SpellUI.disableSpelling(halo2); - SpellUI.disableSpelling(halo3); - SpellUI.disableSpelling(spark1); - SpellUI.disableSpelling(spark2); - } - - ]]> - </fx:Script> - - <mx:Label text="Squiggly Spell Checker Flex Demo v0.2" fontSize="30"/> - <s:HGroup> - <s:Button label="EnableSpelling" click="EnableAll(event)"/> - <s:Button label="DisableSpelling" click="DisableAll(event)"/> - </s:HGroup> - - <s:HGroup width="100%" height="100%"> - <s:VGroup width="50%" height="100%"> - <mx:Label fontSize="30" text="Halo Components"/> - <mx:TextInput id="halo1" width="80%" fontSize="30" text="Spell cheecking in halo TextInput"/> - <mx:TextArea id="halo2" width="80%" height="50%" fontSize="30" text="Spell cheecking in halo TextArea"/> - <mx:RichTextEditor id="halo3" width="80%" height="50%" fontSize="30" text="Spell cheecking in halo RichTextEditor"/> - </s:VGroup> - <s:VGroup width="50%" height="100%"> - <mx:Label fontSize="30" text="Spark Components"/> - <s:TextInput id="spark1" width="80%" fontSize="30" text="Spell cheecking in spark TextInput"/> - <s:TextArea id="spark2" width="80%" height="50%" fontSize="30" text="Spell cheecking in spark TextArea"/> - </s:VGroup> - </s:HGroup> -</s:WindowedApplication> http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/fd2bc5a5/Squiggly/main/Demo/AdobeSpellingDemo/src/AdobeSpellingConfig.xml ---------------------------------------------------------------------- diff --git a/Squiggly/main/Demo/AdobeSpellingDemo/src/AdobeSpellingConfig.xml b/Squiggly/main/Demo/AdobeSpellingDemo/src/AdobeSpellingConfig.xml deleted file mode 100644 index 4b2a819..0000000 --- a/Squiggly/main/Demo/AdobeSpellingDemo/src/AdobeSpellingConfig.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0" encoding='UTF-8'?> -<!-- - - 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. - ---> -<SpellingConfig> - <LanguageResource language="English" languageCode="en_US" ruleFile="data/en_US.aff" dictionaryFile="data/en_US.dic"/> - <LanguageResource language="Spanish" languageCode="es_ES" ruleFile="data/es_ES.aff" dictionaryFile="data/es_ES.dic"/> - <LanguageResource language="Portuguese" languageCode="pt_PT" ruleFile="data/pt_PT.aff" dictionaryFile="data/pt_PT.dic"/> - <LanguageResource language="Italian" languageCode="it_IT" ruleFile="data/it_IT.aff" dictionaryFile="data/it_IT.dic"/> - <LanguageResource language="French" languageCode="fr_FR" ruleFile="data/fr_FR.aff" dictionaryFile="data/fr_FR.dic"/> -</SpellingConfig> http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/fd2bc5a5/Squiggly/main/Demo/AdobeSpellingDemo/src/AdobeSpellingDemo.mxml ---------------------------------------------------------------------- diff --git a/Squiggly/main/Demo/AdobeSpellingDemo/src/AdobeSpellingDemo.mxml b/Squiggly/main/Demo/AdobeSpellingDemo/src/AdobeSpellingDemo.mxml deleted file mode 100644 index 462c8e9..0000000 --- a/Squiggly/main/Demo/AdobeSpellingDemo/src/AdobeSpellingDemo.mxml +++ /dev/null @@ -1,72 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - -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. - ---> -<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" viewSourceURL="srcview/index.html" applicationComplete="init()"> - <mx:Script> - <![CDATA[ - import com.adobe.linguistics.spelling.SpellUI; - import com.adobe.linguistics.spelling.framework.SpellingConfiguration; - import com.adobe.linguistics.spelling.framework.ResourceTable; - - - public function init():void - { - var resourceTable:ResourceTable = new ResourceTable(); - resourceTable.setResource("en_US", {rule:"data/en_US.aff", dict:"data/en_US.dic"}); - resourceTable.setResource("es_ES", {rule:"data/es_ES.aff", dict:"data/es_ES.dic"}); - resourceTable.setResource("it_IT", {rule:"data/it_IT.aff", dict:"data/it_IT.dic"}); - resourceTable.setResource("pt_PT", {rule:"data/pt_PT.aff", dict:"data/pt_PT.dic"}); - resourceTable.setResource("fr_FR", {rule:"data/fr_FR.aff", dict:"data/fr_FR.dic"}); - SpellingConfiguration.resourceTable = resourceTable; - } - ]]> - </mx:Script> - - <mx:Label text="Squiggly Spell Checker Flex Demo v0.6" fontSize="30"/> - - <mx:TabNavigator width="60%" height="100%" fontSize="20"> - <mx:Canvas label="English" width="100%" height="100%"> - <mx:TextArea id="ta_en" width="100%" height="100%" - text="I know Enlish. Use the context menu to see the suggestions of the missbelled word. " - creationComplete="SpellUI.enableSpelling(ta_en, 'en_US');"/> - </mx:Canvas> - <mx:Canvas label="Spanish" width="100%" height="100%"> - <mx:TextArea id="ta_es" width="100%" height="100%" - text="Sé esbañol. Utilice el menú contextual para ver las sugerencias de la palabra mal eskrita. " - creationComplete="SpellUI.enableSpelling(ta_es, 'es_ES');" /> - </mx:Canvas> - <mx:Canvas label="Portuguese" width="100%" height="100%"> - <mx:TextArea id="ta_pt" width="100%" height="100%" - text="Eu sei Portoguês. Use o menu de contexto para ver as sugestões da palavra grafada incorectamente." - creationComplete="SpellUI.enableSpelling(ta_pt, 'pt_PT');"/> - </mx:Canvas> - <mx:Canvas label="Italian" width="100%" height="100%"> - <mx:TextArea id="ta_it" width="100%" height="100%" - text="So italianou. Utilizzare il menu di scelta rapida per visualizzare le suggestioni della parola erreta. " - creationComplete="SpellUI.enableSpelling(ta_it, 'it_IT');" /> - </mx:Canvas> - <mx:Canvas label="French" width="100%" height="100%"> - <mx:TextArea id="ta_fr" width="100%" height="100%" - text="Je sais que le frnçais. Utilisez le menu contextuel pour voir les suggestions du mot mal orthogrrraphié. " - creationComplete="SpellUI.enableSpelling(ta_fr, 'fr_FR');" /> - </mx:Canvas> - </mx:TabNavigator> -</mx:Application> - - http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/fd2bc5a5/Squiggly/main/Demo/AdobeSpellingDemoEx/src/AdobeSpellingConfig.xml ---------------------------------------------------------------------- diff --git a/Squiggly/main/Demo/AdobeSpellingDemoEx/src/AdobeSpellingConfig.xml b/Squiggly/main/Demo/AdobeSpellingDemoEx/src/AdobeSpellingConfig.xml deleted file mode 100644 index 7386b63..0000000 --- a/Squiggly/main/Demo/AdobeSpellingDemoEx/src/AdobeSpellingConfig.xml +++ /dev/null @@ -1,27 +0,0 @@ -<?xml version="1.0" encoding='UTF-8'?> -<!-- - - 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. - ---> -<SpellingConfig> - <LanguageResource language="English" languageCode="en_US" ruleFile="data/en_US.aff" dictionaryFile="data/en_US.dic"/> - <LanguageResource language="Spanish" languageCode="es_ES" ruleFile="data/es_ES.aff" dictionaryFile="data/es_ES.dic"/> - <LanguageResource language="Portuguese" languageCode="pt_PT" ruleFile="data/pt_PT.aff" dictionaryFile="data/pt_PT.dic"/> - <LanguageResource language="Portuguese(Brazil)" languageCode="pt_BR" ruleFile="data/pt_BR.aff" dictionaryFile="data/pt_BR.dic"/> - <LanguageResource language="Italian" languageCode="it_IT" ruleFile="data/it_IT.aff" dictionaryFile="data/it_IT.dic"/> - <LanguageResource language="Romanian" languageCode="ro_RO" ruleFile="data/ro_RO.aff" dictionaryFile="data/ro_RO.dic"/> -</SpellingConfig> http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/fd2bc5a5/Squiggly/main/Demo/AdobeSpellingDemoEx/src/AdobeSpellingDemoEx.mxml ---------------------------------------------------------------------- diff --git a/Squiggly/main/Demo/AdobeSpellingDemoEx/src/AdobeSpellingDemoEx.mxml b/Squiggly/main/Demo/AdobeSpellingDemoEx/src/AdobeSpellingDemoEx.mxml deleted file mode 100644 index 9badc49..0000000 --- a/Squiggly/main/Demo/AdobeSpellingDemoEx/src/AdobeSpellingDemoEx.mxml +++ /dev/null @@ -1,70 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - - 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. - ---> -<!-- Simple example to demonstrate the Spark TextArea control. --> -<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" - xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" viewSourceURL="srcview/index.html" applicationComplete="init()"> - <s:layout> - <s:VerticalLayout/> - </s:layout> - - <fx:Script> - <![CDATA[ - import com.adobe.linguistics.spelling.SpellUI; - import com.adobe.linguistics.spelling.framework.SpellingConfiguration; - import com.adobe.linguistics.spelling.framework.ResourceTable; - - - public function init():void - { - var resourceTable:ResourceTable = new ResourceTable(); - resourceTable.setResource("en_US", {rule:"data/en_US.aff", dict:"data/en_US.dic"}); - resourceTable.setResource("es_ES", {rule:"data/es_ES.aff", dict:"data/es_ES.dic"}); - resourceTable.setResource("it_IT", {rule:"data/it_IT.aff", dict:"data/it_IT.dic"}); - resourceTable.setResource("pt_PT", {rule:"data/pt_PT.aff", dict:"data/pt_PT.dic"}); - SpellingConfiguration.resourceTable = resourceTable; - } - ]]> - </fx:Script> - - <mx:Label text="Squiggly Spell Checker Flex Demo v0.3" fontSize="30"/> - - <mx:TabNavigator width="70%" height="100%" fontSize="25"> - <s:NavigatorContent label="English" width="100%" height="100%"> - <s:TextArea id="ta_en" width="100%" height="100%" - text="I know Enlish. Use the context menu to see the suggestions of the missbelled word. " - creationComplete="SpellUI.enableSpelling(ta_en, 'en_US');"/> - </s:NavigatorContent> - <s:NavigatorContent label="Spanish" width="100%" height="100%"> - <s:TextArea id="ta_es" width="100%" height="100%" - text="Sé esbañol. Utilice el menú contextual para ver las sugerencias de la palabra mal eskrita. " - creationComplete="SpellUI.enableSpelling(ta_es, 'es_ES');" /> - </s:NavigatorContent> - <s:NavigatorContent label="Portuguese" width="100%" height="100%"> - <s:TextArea id="ta_pt" width="100%" height="100%" - text="Eu sei Portoguês. Use o menu de contexto para ver as sugestões da palavra grafada incorectamente." - creationComplete="SpellUI.enableSpelling(ta_pt, 'pt_PT');"/> - </s:NavigatorContent> - <s:NavigatorContent label="Italian" width="100%" height="100%"> - <s:TextArea id="ta_it" width="100%" height="100%" - text="So italianou. Utilizzare il menu di scelta rapida per visualizzare le suggestioni della parola erreta. " - creationComplete="SpellUI.enableSpelling(ta_it, 'it_IT');"/> - </s:NavigatorContent> - </mx:TabNavigator> -</s:Application> http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/fd2bc5a5/Squiggly/main/Demo/SpellingAirDemo/src/SpellingAirDemo-app.xml ---------------------------------------------------------------------- diff --git a/Squiggly/main/Demo/SpellingAirDemo/src/SpellingAirDemo-app.xml b/Squiggly/main/Demo/SpellingAirDemo/src/SpellingAirDemo-app.xml new file mode 100644 index 0000000..36fb899 --- /dev/null +++ b/Squiggly/main/Demo/SpellingAirDemo/src/SpellingAirDemo-app.xml @@ -0,0 +1,153 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + 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. + + --> +<application xmlns="http://ns.adobe.com/air/application/1.5"> + +<!-- Adobe AIR Application Descriptor File Template. + + Specifies parameters for identifying, installing, and launching AIR applications. + + xmlns - The Adobe AIR namespace: http://ns.adobe.com/air/application/1.5 + The last segment of the namespace specifies the version + of the AIR runtime required for this application to run. + + minimumPatchLevel - The minimum patch level of the AIR runtime required to run + the application. Optional. +--> + + <!-- The application identifier string, unique to this application. Required. --> + <id>AdobeSpellingAirDemo</id> + + <!-- Used as the filename for the application. Required. --> + <filename>AdobeSpellingAirDemo</filename> + + <!-- The name that is displayed in the AIR application installer. + May have multiple values for each language. See samples or xsd schema file. Optional. --> + <name>AdobeSpellingAirDemo</name> + + <!-- An application version designator (such as "v1", "2.5", or "Alpha 1"). Required. --> + <version>v1</version> + + <!-- Description, displayed in the AIR application installer. + May have multiple values for each language. See samples or xsd schema file. Optional. --> + <!-- <description></description> --> + + <!-- Copyright information. Optional --> + <!-- <copyright></copyright> --> + + <!-- Settings for the application's initial window. Required. --> + <initialWindow> + <!-- The main SWF or HTML file of the application. Required. --> + <!-- Note: In Flex Builder, the SWF reference is set automatically. --> + <content>[This value will be overwritten by Flex Builder in the output app.xml]</content> + + <!-- The title of the main window. Optional. --> + <!-- <title></title> --> + + <!-- The type of system chrome to use (either "standard" or "none"). Optional. Default standard. --> + <!-- <systemChrome></systemChrome> --> + + <!-- Whether the window is transparent. Only applicable when systemChrome is none. Optional. Default false. --> + <!-- <transparent></transparent> --> + + <!-- Whether the window is initially visible. Optional. Default false. --> + <!-- <visible></visible> --> + + <!-- Whether the user can minimize the window. Optional. Default true. --> + <!-- <minimizable></minimizable> --> + + <!-- Whether the user can maximize the window. Optional. Default true. --> + <!-- <maximizable></maximizable> --> + + <!-- Whether the user can resize the window. Optional. Default true. --> + <!-- <resizable></resizable> --> + + <!-- The window's initial width. Optional. --> + <!-- <width></width> --> + + <!-- The window's initial height. Optional. --> + <!-- <height></height> --> + + <!-- The window's initial x position. Optional. --> + <!-- <x></x> --> + + <!-- The window's initial y position. Optional. --> + <!-- <y></y> --> + + <!-- The window's minimum size, specified as a width/height pair, such as "400 200". Optional. --> + <!-- <minSize></minSize> --> + + <!-- The window's initial maximum size, specified as a width/height pair, such as "1600 1200". Optional. --> + <!-- <maxSize></maxSize> --> + </initialWindow> + + <!-- The subpath of the standard default installation location to use. Optional. --> + <!-- <installFolder></installFolder> --> + + <!-- The subpath of the Programs menu to use. (Ignored on operating systems without a Programs menu.) Optional. --> + <!-- <programMenuFolder></programMenuFolder> --> + + <!-- The icon the system uses for the application. For at least one resolution, + specify the path to a PNG file included in the AIR package. Optional. --> + <!-- <icon> + <image16x16></image16x16> + <image32x32></image32x32> + <image48x48></image48x48> + <image128x128></image128x128> + </icon> --> + + <!-- Whether the application handles the update when a user double-clicks an update version + of the AIR file (true), or the default AIR application installer handles the update (false). + Optional. Default false. --> + <!-- <customUpdateUI></customUpdateUI> --> + + <!-- Whether the application can be launched when the user clicks a link in a web browser. + Optional. Default false. --> + <!-- <allowBrowserInvocation></allowBrowserInvocation> --> + + <!-- Listing of file types for which the application can register. Optional. --> + <!-- <fileTypes> --> + + <!-- Defines one file type. Optional. --> + <!-- <fileType> --> + + <!-- The name that the system displays for the registered file type. Required. --> + <!-- <name></name> --> + + <!-- The extension to register. Required. --> + <!-- <extension></extension> --> + + <!-- The description of the file type. Optional. --> + <!-- <description></description> --> + + <!-- The MIME content type. --> + <!-- <contentType></contentType> --> + + <!-- The icon to display for the file type. Optional. --> + <!-- <icon> + <image16x16></image16x16> + <image32x32></image32x32> + <image48x48></image48x48> + <image128x128></image128x128> + </icon> --> + + <!-- </fileType> --> + <!-- </fileTypes> --> + +</application> http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/fd2bc5a5/Squiggly/main/Demo/SpellingAirDemo/src/SpellingAirDemo.mxml ---------------------------------------------------------------------- diff --git a/Squiggly/main/Demo/SpellingAirDemo/src/SpellingAirDemo.mxml b/Squiggly/main/Demo/SpellingAirDemo/src/SpellingAirDemo.mxml new file mode 100644 index 0000000..4c68739 --- /dev/null +++ b/Squiggly/main/Demo/SpellingAirDemo/src/SpellingAirDemo.mxml @@ -0,0 +1,39 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + + 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. + +--> +<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" width="1024" height="768" initialize="init()"> + <mx:Script> + <![CDATA[ + + import com.adobe.linguistics.spelling.SpellUI; + + public function init():void + { + SpellUI.enableSpelling(ti, "usa.zwl"); + SpellUI.enableSpelling(ta, "usa.zwl"); + SpellUI.enableSpelling(rte, "usa.zwl"); + } + ]]> + </mx:Script> + + <mx:Label text="Squiggly Spell Checker Air Demo v0.1" fontSize="30"/> + <mx:TextInput id="ti" width="50%" fontSize="30"/> + <mx:TextArea id="ta" width="50%" height="50%" fontSize="30"/> + <mx:RichTextEditor id="rte" width="50%" height="50%" fontSize="30"/> +</mx:WindowedApplication> http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/fd2bc5a5/Squiggly/main/Demo/SpellingAirDemoEx/src/SpellingAirDemoEx-app.xml ---------------------------------------------------------------------- diff --git a/Squiggly/main/Demo/SpellingAirDemoEx/src/SpellingAirDemoEx-app.xml b/Squiggly/main/Demo/SpellingAirDemoEx/src/SpellingAirDemoEx-app.xml new file mode 100644 index 0000000..95c29b4 --- /dev/null +++ b/Squiggly/main/Demo/SpellingAirDemoEx/src/SpellingAirDemoEx-app.xml @@ -0,0 +1,153 @@ +<?xml version="1.0" encoding="utf-8" standalone="no"?> +<!-- + + 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. + + --> +<application xmlns="http://ns.adobe.com/air/application/1.5.2"> + +<!-- Adobe AIR Application Descriptor File Template. + + Specifies parameters for identifying, installing, and launching AIR applications. + + xmlns - The Adobe AIR namespace: http://ns.adobe.com/air/application/1.5.2 + The last segment of the namespace specifies the version + of the AIR runtime required for this application to run. + + minimumPatchLevel - The minimum patch level of the AIR runtime required to run + the application. Optional. +--> + + <!-- The application identifier string, unique to this application. Required. --> + <id>AdobeSpellingAirDemoEx</id> + + <!-- Used as the filename for the application. Required. --> + <filename>AdobeSpellingAirDemoEx</filename> + + <!-- The name that is displayed in the AIR application installer. + May have multiple values for each language. See samples or xsd schema file. Optional. --> + <name>AdobeSpellingAirDemoEx</name> + + <!-- An application version designator (such as "v1", "2.5", or "Alpha 1"). Required. --> + <version>v1</version> + + <!-- Description, displayed in the AIR application installer. + May have multiple values for each language. See samples or xsd schema file. Optional. --> + <!-- <description></description> --> + + <!-- Copyright information. Optional --> + <!-- <copyright></copyright> --> + + <!-- Settings for the application's initial window. Required. --> + <initialWindow> + <!-- The main SWF or HTML file of the application. Required. --> + <!-- Note: In Flash Builder, the SWF reference is set automatically. --> + <content>[This value will be overwritten by Flash Builder in the output app.xml]</content> + + <!-- The title of the main window. Optional. --> + <!-- <title></title> --> + + <!-- The type of system chrome to use (either "standard" or "none"). Optional. Default standard. --> + <!-- <systemChrome></systemChrome> --> + + <!-- Whether the window is transparent. Only applicable when systemChrome is none. Optional. Default false. --> + <!-- <transparent></transparent> --> + + <!-- Whether the window is initially visible. Optional. Default false. --> + <!-- <visible></visible> --> + + <!-- Whether the user can minimize the window. Optional. Default true. --> + <!-- <minimizable></minimizable> --> + + <!-- Whether the user can maximize the window. Optional. Default true. --> + <!-- <maximizable></maximizable> --> + + <!-- Whether the user can resize the window. Optional. Default true. --> + <!-- <resizable></resizable> --> + + <!-- The window's initial width. Optional. --> + <!-- <width></width> --> + + <!-- The window's initial height. Optional. --> + <!-- <height></height> --> + + <!-- The window's initial x position. Optional. --> + <!-- <x></x> --> + + <!-- The window's initial y position. Optional. --> + <!-- <y></y> --> + + <!-- The window's minimum size, specified as a width/height pair, such as "400 200". Optional. --> + <!-- <minSize></minSize> --> + + <!-- The window's initial maximum size, specified as a width/height pair, such as "1600 1200". Optional. --> + <!-- <maxSize></maxSize> --> + </initialWindow> + + <!-- The subpath of the standard default installation location to use. Optional. --> + <!-- <installFolder></installFolder> --> + + <!-- The subpath of the Programs menu to use. (Ignored on operating systems without a Programs menu.) Optional. --> + <!-- <programMenuFolder></programMenuFolder> --> + + <!-- The icon the system uses for the application. For at least one resolution, + specify the path to a PNG file included in the AIR package. Optional. --> + <!-- <icon> + <image16x16></image16x16> + <image32x32></image32x32> + <image48x48></image48x48> + <image128x128></image128x128> + </icon> --> + + <!-- Whether the application handles the update when a user double-clicks an update version + of the AIR file (true), or the default AIR application installer handles the update (false). + Optional. Default false. --> + <!-- <customUpdateUI></customUpdateUI> --> + + <!-- Whether the application can be launched when the user clicks a link in a web browser. + Optional. Default false. --> + <!-- <allowBrowserInvocation></allowBrowserInvocation> --> + + <!-- Listing of file types for which the application can register. Optional. --> + <!-- <fileTypes> --> + + <!-- Defines one file type. Optional. --> + <!-- <fileType> --> + + <!-- The name that the system displays for the registered file type. Required. --> + <!-- <name></name> --> + + <!-- The extension to register. Required. --> + <!-- <extension></extension> --> + + <!-- The description of the file type. Optional. --> + <!-- <description></description> --> + + <!-- The MIME content type. --> + <!-- <contentType></contentType> --> + + <!-- The icon to display for the file type. Optional. --> + <!-- <icon> + <image16x16></image16x16> + <image32x32></image32x32> + <image48x48></image48x48> + <image128x128></image128x128> + </icon> --> + + <!-- </fileType> --> + <!-- </fileTypes> --> + +</application> http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/fd2bc5a5/Squiggly/main/Demo/SpellingAirDemoEx/src/SpellingAirDemoEx.mxml ---------------------------------------------------------------------- diff --git a/Squiggly/main/Demo/SpellingAirDemoEx/src/SpellingAirDemoEx.mxml b/Squiggly/main/Demo/SpellingAirDemoEx/src/SpellingAirDemoEx.mxml new file mode 100644 index 0000000..e8912c9 --- /dev/null +++ b/Squiggly/main/Demo/SpellingAirDemoEx/src/SpellingAirDemoEx.mxml @@ -0,0 +1,71 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + + 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. + +--> +<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" + xmlns:s="library://ns.adobe.com/flex/spark" + xmlns:mx="library://ns.adobe.com/flex/mx"> + <s:layout> + <s:VerticalLayout/> + </s:layout> + + <fx:Script> + <![CDATA[ + + import com.adobe.linguistics.spelling.SpellUI; + + private function EnableAll(evt:MouseEvent):void { + SpellUI.enableSpelling(halo1, "usa.zwl"); + SpellUI.enableSpelling(halo2, "usa.zwl"); + SpellUI.enableSpelling(halo3, "usa.zwl"); + SpellUI.enableSpelling(spark1, "usa.zwl"); + SpellUI.enableSpelling(spark2, "usa.zwl"); + + } + + private function DisableAll(evt:MouseEvent):void { + SpellUI.disableSpelling(halo1); + SpellUI.disableSpelling(halo2); + SpellUI.disableSpelling(halo3); + SpellUI.disableSpelling(spark1); + SpellUI.disableSpelling(spark2); + } + + ]]> + </fx:Script> + + <mx:Label text="Squiggly Spell Checker Flex Demo v0.2" fontSize="30"/> + <s:HGroup> + <s:Button label="EnableSpelling" click="EnableAll(event)"/> + <s:Button label="DisableSpelling" click="DisableAll(event)"/> + </s:HGroup> + + <s:HGroup width="100%" height="100%"> + <s:VGroup width="50%" height="100%"> + <mx:Label fontSize="30" text="Halo Components"/> + <mx:TextInput id="halo1" width="80%" fontSize="30" text="Spell cheecking in halo TextInput"/> + <mx:TextArea id="halo2" width="80%" height="50%" fontSize="30" text="Spell cheecking in halo TextArea"/> + <mx:RichTextEditor id="halo3" width="80%" height="50%" fontSize="30" text="Spell cheecking in halo RichTextEditor"/> + </s:VGroup> + <s:VGroup width="50%" height="100%"> + <mx:Label fontSize="30" text="Spark Components"/> + <s:TextInput id="spark1" width="80%" fontSize="30" text="Spell cheecking in spark TextInput"/> + <s:TextArea id="spark2" width="80%" height="50%" fontSize="30" text="Spell cheecking in spark TextArea"/> + </s:VGroup> + </s:HGroup> +</s:WindowedApplication> http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/fd2bc5a5/Squiggly/main/Demo/SpellingDemo/src/SpellingConfig.xml ---------------------------------------------------------------------- diff --git a/Squiggly/main/Demo/SpellingDemo/src/SpellingConfig.xml b/Squiggly/main/Demo/SpellingDemo/src/SpellingConfig.xml new file mode 100644 index 0000000..4b2a819 --- /dev/null +++ b/Squiggly/main/Demo/SpellingDemo/src/SpellingConfig.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding='UTF-8'?> +<!-- + + 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. + +--> +<SpellingConfig> + <LanguageResource language="English" languageCode="en_US" ruleFile="data/en_US.aff" dictionaryFile="data/en_US.dic"/> + <LanguageResource language="Spanish" languageCode="es_ES" ruleFile="data/es_ES.aff" dictionaryFile="data/es_ES.dic"/> + <LanguageResource language="Portuguese" languageCode="pt_PT" ruleFile="data/pt_PT.aff" dictionaryFile="data/pt_PT.dic"/> + <LanguageResource language="Italian" languageCode="it_IT" ruleFile="data/it_IT.aff" dictionaryFile="data/it_IT.dic"/> + <LanguageResource language="French" languageCode="fr_FR" ruleFile="data/fr_FR.aff" dictionaryFile="data/fr_FR.dic"/> +</SpellingConfig> http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/fd2bc5a5/Squiggly/main/Demo/SpellingDemo/src/SpellingDemo.mxml ---------------------------------------------------------------------- diff --git a/Squiggly/main/Demo/SpellingDemo/src/SpellingDemo.mxml b/Squiggly/main/Demo/SpellingDemo/src/SpellingDemo.mxml new file mode 100644 index 0000000..462c8e9 --- /dev/null +++ b/Squiggly/main/Demo/SpellingDemo/src/SpellingDemo.mxml @@ -0,0 +1,72 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + +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. + +--> +<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" viewSourceURL="srcview/index.html" applicationComplete="init()"> + <mx:Script> + <![CDATA[ + import com.adobe.linguistics.spelling.SpellUI; + import com.adobe.linguistics.spelling.framework.SpellingConfiguration; + import com.adobe.linguistics.spelling.framework.ResourceTable; + + + public function init():void + { + var resourceTable:ResourceTable = new ResourceTable(); + resourceTable.setResource("en_US", {rule:"data/en_US.aff", dict:"data/en_US.dic"}); + resourceTable.setResource("es_ES", {rule:"data/es_ES.aff", dict:"data/es_ES.dic"}); + resourceTable.setResource("it_IT", {rule:"data/it_IT.aff", dict:"data/it_IT.dic"}); + resourceTable.setResource("pt_PT", {rule:"data/pt_PT.aff", dict:"data/pt_PT.dic"}); + resourceTable.setResource("fr_FR", {rule:"data/fr_FR.aff", dict:"data/fr_FR.dic"}); + SpellingConfiguration.resourceTable = resourceTable; + } + ]]> + </mx:Script> + + <mx:Label text="Squiggly Spell Checker Flex Demo v0.6" fontSize="30"/> + + <mx:TabNavigator width="60%" height="100%" fontSize="20"> + <mx:Canvas label="English" width="100%" height="100%"> + <mx:TextArea id="ta_en" width="100%" height="100%" + text="I know Enlish. Use the context menu to see the suggestions of the missbelled word. " + creationComplete="SpellUI.enableSpelling(ta_en, 'en_US');"/> + </mx:Canvas> + <mx:Canvas label="Spanish" width="100%" height="100%"> + <mx:TextArea id="ta_es" width="100%" height="100%" + text="Sé esbañol. Utilice el menú contextual para ver las sugerencias de la palabra mal eskrita. " + creationComplete="SpellUI.enableSpelling(ta_es, 'es_ES');" /> + </mx:Canvas> + <mx:Canvas label="Portuguese" width="100%" height="100%"> + <mx:TextArea id="ta_pt" width="100%" height="100%" + text="Eu sei Portoguês. Use o menu de contexto para ver as sugestões da palavra grafada incorectamente." + creationComplete="SpellUI.enableSpelling(ta_pt, 'pt_PT');"/> + </mx:Canvas> + <mx:Canvas label="Italian" width="100%" height="100%"> + <mx:TextArea id="ta_it" width="100%" height="100%" + text="So italianou. Utilizzare il menu di scelta rapida per visualizzare le suggestioni della parola erreta. " + creationComplete="SpellUI.enableSpelling(ta_it, 'it_IT');" /> + </mx:Canvas> + <mx:Canvas label="French" width="100%" height="100%"> + <mx:TextArea id="ta_fr" width="100%" height="100%" + text="Je sais que le frnçais. Utilisez le menu contextuel pour voir les suggestions du mot mal orthogrrraphié. " + creationComplete="SpellUI.enableSpelling(ta_fr, 'fr_FR');" /> + </mx:Canvas> + </mx:TabNavigator> +</mx:Application> + + http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/fd2bc5a5/Squiggly/main/Demo/SpellingDemoEx/src/SpellingConfig.xml ---------------------------------------------------------------------- diff --git a/Squiggly/main/Demo/SpellingDemoEx/src/SpellingConfig.xml b/Squiggly/main/Demo/SpellingDemoEx/src/SpellingConfig.xml new file mode 100644 index 0000000..7386b63 --- /dev/null +++ b/Squiggly/main/Demo/SpellingDemoEx/src/SpellingConfig.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding='UTF-8'?> +<!-- + + 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. + +--> +<SpellingConfig> + <LanguageResource language="English" languageCode="en_US" ruleFile="data/en_US.aff" dictionaryFile="data/en_US.dic"/> + <LanguageResource language="Spanish" languageCode="es_ES" ruleFile="data/es_ES.aff" dictionaryFile="data/es_ES.dic"/> + <LanguageResource language="Portuguese" languageCode="pt_PT" ruleFile="data/pt_PT.aff" dictionaryFile="data/pt_PT.dic"/> + <LanguageResource language="Portuguese(Brazil)" languageCode="pt_BR" ruleFile="data/pt_BR.aff" dictionaryFile="data/pt_BR.dic"/> + <LanguageResource language="Italian" languageCode="it_IT" ruleFile="data/it_IT.aff" dictionaryFile="data/it_IT.dic"/> + <LanguageResource language="Romanian" languageCode="ro_RO" ruleFile="data/ro_RO.aff" dictionaryFile="data/ro_RO.dic"/> +</SpellingConfig> http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/fd2bc5a5/Squiggly/main/Tools/AdobeSpellingDictGen/README.txt ---------------------------------------------------------------------- diff --git a/Squiggly/main/Tools/AdobeSpellingDictGen/README.txt b/Squiggly/main/Tools/AdobeSpellingDictGen/README.txt deleted file mode 100644 index 5326ed6..0000000 --- a/Squiggly/main/Tools/AdobeSpellingDictGen/README.txt +++ /dev/null @@ -1,16 +0,0 @@ -Squiggly Dictionary Generator v0.1 - -README -=================================== - -This is a simple AIR application that converts a plain text word list file to an Adobe Spelling Dictionary file. - -Here's what each step is doing: -1. Load a plain text file, each line in the file contains one word, a sampleWOrdList.txt is provided -2. Calculate the metaphone, which will improve spell checker performance and result -3. Generate a Squiggly Dictionary object -4. Export the the Squiggly Dictionary object to a compressed binary file (recommend using *.zwl extension) - -Once you have the zwl file, you can use it in your Flex/AIR project. - - http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/fd2bc5a5/Squiggly/main/Tools/AdobeSpellingDictGen/sample/sampleWordList.txt ---------------------------------------------------------------------- diff --git a/Squiggly/main/Tools/AdobeSpellingDictGen/sample/sampleWordList.txt b/Squiggly/main/Tools/AdobeSpellingDictGen/sample/sampleWordList.txt deleted file mode 100644 index 3c6e8ce..0000000 --- a/Squiggly/main/Tools/AdobeSpellingDictGen/sample/sampleWordList.txt +++ /dev/null @@ -1,13 +0,0 @@ -adobe -apple -amazon -microsoft -intel -ibm -google -yahoo -ebay -vmware -sun -orcale -facebook \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/fd2bc5a5/Squiggly/main/Tools/AdobeSpellingDictGen/src/AdobeSpellingDictGen-app.xml ---------------------------------------------------------------------- diff --git a/Squiggly/main/Tools/AdobeSpellingDictGen/src/AdobeSpellingDictGen-app.xml b/Squiggly/main/Tools/AdobeSpellingDictGen/src/AdobeSpellingDictGen-app.xml deleted file mode 100644 index ecff5e3..0000000 --- a/Squiggly/main/Tools/AdobeSpellingDictGen/src/AdobeSpellingDictGen-app.xml +++ /dev/null @@ -1,153 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - - 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. - - --> -<application xmlns="http://ns.adobe.com/air/application/1.5"> - -<!-- Adobe AIR Application Descriptor File Template. - - Specifies parameters for identifying, installing, and launching AIR applications. - - xmlns - The Adobe AIR namespace: http://ns.adobe.com/air/application/1.5 - The last segment of the namespace specifies the version - of the AIR runtime required for this application to run. - - minimumPatchLevel - The minimum patch level of the AIR runtime required to run - the application. Optional. ---> - - <!-- The application identifier string, unique to this application. Required. --> - <id>AdobeSpellingDictGen</id> - - <!-- Used as the filename for the application. Required. --> - <filename>AdobeSpellingDictGen</filename> - - <!-- The name that is displayed in the AIR application installer. - May have multiple values for each language. See samples or xsd schema file. Optional. --> - <name>AdobeSpellingDictGen</name> - - <!-- An application version designator (such as "v1", "2.5", or "Alpha 1"). Required. --> - <version>v1</version> - - <!-- Description, displayed in the AIR application installer. - May have multiple values for each language. See samples or xsd schema file. Optional. --> - <!-- <description></description> --> - - <!-- Copyright information. Optional --> - <!-- <copyright></copyright> --> - - <!-- Settings for the application's initial window. Required. --> - <initialWindow> - <!-- The main SWF or HTML file of the application. Required. --> - <!-- Note: In Flex Builder, the SWF reference is set automatically. --> - <content>[This value will be overwritten by Flex Builder in the output app.xml]</content> - - <!-- The title of the main window. Optional. --> - <!-- <title></title> --> - - <!-- The type of system chrome to use (either "standard" or "none"). Optional. Default standard. --> - <!-- <systemChrome></systemChrome> --> - - <!-- Whether the window is transparent. Only applicable when systemChrome is none. Optional. Default false. --> - <!-- <transparent></transparent> --> - - <!-- Whether the window is initially visible. Optional. Default false. --> - <!-- <visible></visible> --> - - <!-- Whether the user can minimize the window. Optional. Default true. --> - <!-- <minimizable></minimizable> --> - - <!-- Whether the user can maximize the window. Optional. Default true. --> - <!-- <maximizable></maximizable> --> - - <!-- Whether the user can resize the window. Optional. Default true. --> - <!-- <resizable></resizable> --> - - <!-- The window's initial width. Optional. --> - <!-- <width></width> --> - - <!-- The window's initial height. Optional. --> - <!-- <height></height> --> - - <!-- The window's initial x position. Optional. --> - <!-- <x></x> --> - - <!-- The window's initial y position. Optional. --> - <!-- <y></y> --> - - <!-- The window's minimum size, specified as a width/height pair, such as "400 200". Optional. --> - <!-- <minSize></minSize> --> - - <!-- The window's initial maximum size, specified as a width/height pair, such as "1600 1200". Optional. --> - <!-- <maxSize></maxSize> --> - </initialWindow> - - <!-- The subpath of the standard default installation location to use. Optional. --> - <!-- <installFolder></installFolder> --> - - <!-- The subpath of the Programs menu to use. (Ignored on operating systems without a Programs menu.) Optional. --> - <!-- <programMenuFolder></programMenuFolder> --> - - <!-- The icon the system uses for the application. For at least one resolution, - specify the path to a PNG file included in the AIR package. Optional. --> - <!-- <icon> - <image16x16></image16x16> - <image32x32></image32x32> - <image48x48></image48x48> - <image128x128></image128x128> - </icon> --> - - <!-- Whether the application handles the update when a user double-clicks an update version - of the AIR file (true), or the default AIR application installer handles the update (false). - Optional. Default false. --> - <!-- <customUpdateUI></customUpdateUI> --> - - <!-- Whether the application can be launched when the user clicks a link in a web browser. - Optional. Default false. --> - <!-- <allowBrowserInvocation></allowBrowserInvocation> --> - - <!-- Listing of file types for which the application can register. Optional. --> - <!-- <fileTypes> --> - - <!-- Defines one file type. Optional. --> - <!-- <fileType> --> - - <!-- The name that the system displays for the registered file type. Required. --> - <!-- <name></name> --> - - <!-- The extension to register. Required. --> - <!-- <extension></extension> --> - - <!-- The description of the file type. Optional. --> - <!-- <description></description> --> - - <!-- The MIME content type. --> - <!-- <contentType></contentType> --> - - <!-- The icon to display for the file type. Optional. --> - <!-- <icon> - <image16x16></image16x16> - <image32x32></image32x32> - <image48x48></image48x48> - <image128x128></image128x128> - </icon> --> - - <!-- </fileType> --> - <!-- </fileTypes> --> - -</application> http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/fd2bc5a5/Squiggly/main/Tools/AdobeSpellingDictGen/src/AdobeSpellingDictGen.mxml ---------------------------------------------------------------------- diff --git a/Squiggly/main/Tools/AdobeSpellingDictGen/src/AdobeSpellingDictGen.mxml b/Squiggly/main/Tools/AdobeSpellingDictGen/src/AdobeSpellingDictGen.mxml deleted file mode 100644 index 2399910..0000000 --- a/Squiggly/main/Tools/AdobeSpellingDictGen/src/AdobeSpellingDictGen.mxml +++ /dev/null @@ -1,210 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - - 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. - ---> -<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" width="800" height="600" fontSize="12"> - - - <mx:Script> - <![CDATA[ - - import com.adobe.linguistics.spelling.utils.WordList; - import com.adobe.linguistics.spelling.engine.dictionary.SuseDictionary; - import com.adobe.linguistics.spelling.codec.language.MetaPhone; - - // For debug only - private var tsStart:int - private var tsEnd:int; - - // An array with words only - private var basicWordList:Array; - - // A suse dictionary object (hash) as defined in suse engine - private var suse:SuseDictionary; - - // An array with index, word, metaphone - [Bindable] - private var advWordList:Array; - - private var src:File = File.applicationDirectory; - private var dest:File = File.applicationDirectory; - - - private function browseInFile():void - { - try { - src.browseForOpen("Select a TXT file"); - src.addEventListener(Event.SELECT, inFileSelected); - } catch (error:Error) - { - trace("Failed:", error.message); - } - } - - private function inFileSelected(event:Event):void - { - tsStart = getTimer(); - var file:File = event.target as File; - var stream:FileStream = new FileStream(); - stream.open(file, FileMode.READ); - var fileData:String = stream.readUTFBytes(stream.bytesAvailable); - - if (fileData.charAt(fileData.indexOf("\n")-2) == "\r") //Strange, but happened when generating the text file from mac - { - basicWordList = fileData.split("\r\r\n"); - } - else if (fileData.charAt(fileData.indexOf("\n")-1) == "\r") - { - basicWordList = fileData.split("\r\n"); //Windows - } - else - { - basicWordList = fileData.split("\n"); //Mac and linux - } - - loadTxtInfo.text = file.nativePath + " (" + basicWordList.length.toString() + " words, " + file.size.toString() + " bytes)"; - loadTxtInfo.setStyle("color", "green"); - - // Debug log - tsEnd = getTimer(); - debugInfo.text += "DebugInfo\n================\n" + "TxtLoaded: "+ file.nativePath + " " + (tsEnd - tsStart).toString() + "ms" + "\n"; - prepareToShow(); - } - - - private function browseOutFile():void - { - try { - dest.browseForSave("Output ZWL file"); - dest.addEventListener(Event.SELECT, outFileSelected); - } catch (error:Error) - { - trace("Failed:", error.message); - } - } - - private function outFileSelected(event:Event):void - { - tsStart = getTimer(); - var bytes:ByteArray = new ByteArray(); - bytes.writeObject(suse); - bytes.position = 0; - bytes.compress(); - bytes.position = 0; - var outFile:File = new File((event.target as File).nativePath); - var outStream:FileStream = new FileStream(); - outStream.open(outFile, FileMode.WRITE); - outStream.writeBytes(bytes, 0, bytes.length); - outStream.close(); - - exportInfo.text = outFile.nativePath + " (" + outFile.size.toString() + " bytes)"; - exportInfo.setStyle("color", "green"); - - // Debug log - tsEnd = getTimer(); - debugInfo.text += "\nZwlExported: " + outFile.nativePath + " " + (tsEnd - tsStart).toString() + "ms\n"; - - } - - - - private function prepareToShow():void - { - - advWordList = new Array(); - for (var i:uint=0; i<basicWordList.length; i++) { - // In case some empty string are there - if (basicWordList[i] != "") - advWordList.push(new UIWord(i, basicWordList[i])); - } - } - - private function genMeta():void - { - - var _metaphone:MetaPhone= new MetaPhone(); - tsStart = getTimer(); - for (var i:uint=0; i<advWordList.length; i++) { - advWordList[i].meta = _metaphone.meta(advWordList[i].word, 4); - } - genMetaInfo.text = "Metaphone index generated"; - genMetaInfo.setStyle("color", "green"); - myDataGrid.dataProvider= advWordList; - // Debug log - tsEnd = getTimer(); - debugInfo.text += "\nMetaGenerated: " + (tsEnd - tsStart).toString() + "ms\n"; - } - - private function genSuseDict():void - { - suse = new SuseDictionary(); - tsStart = getTimer(); - for (var i:uint=0; i<advWordList.length; i++) { - if (suse.MetaPhoneHash[advWordList[i].meta]) { - suse.MetaPhoneHash[advWordList[i].meta].insert(advWordList[i].word); - } - else { - if ((advWordList[i].meta == "") || (advWordList[i].meta == "-nde")) continue; - suse.MetaPhoneHash[advWordList[i].meta] = new WordList(); - suse.MetaPhoneHash[advWordList[i].meta].insert(advWordList[i].word); - } - } - genDictInfo.text = "SquigglyDict object generated"; - genDictInfo.setStyle("color", "green"); - - // Debug log - tsEnd = getTimer(); - debugInfo.text += "\nSquigglyDictGenerated: " + (tsEnd - tsStart).toString() + "ms\n"; - } - - ]]> - </mx:Script> - <mx:HBox width="100%"> - <mx:Label text="Squiggly Dictionary Generator v0.1 (txt2zwl)" fontSize="25"/> - </mx:HBox> - <mx:HBox width="100%"> - <mx:Button label="1. Load TXT File" click="browseInFile()"/> - <mx:HRule visible="false" width="100%"/> - <mx:Label id="loadTxtInfo" text="Not loaded" color="red"/> - </mx:HBox> - <mx:HBox width="100%"> - <mx:Button label="2. Calculate Metaphone" click="genMeta()"/> - <mx:HRule visible="false" width="100%"/> - <mx:Label id="genMetaInfo" text="Not calculated" color="red"/> - </mx:HBox> - <mx:HBox width="100%"> - <mx:Button label="3. Generate SquigglyDict" click="genSuseDict()"/> - <mx:HRule visible="false" width="100%"/> - <mx:Label id="genDictInfo" text="Not generated" color="red"/> - </mx:HBox> - <mx:HBox width="100%"> - <mx:Button label="4. Export ZWL File" click = "browseOutFile()"/> - <mx:HRule visible="false" width="100%"/> - <mx:Label id="exportInfo" text="Not exported" color="red"/> - </mx:HBox> - <mx:HBox width="100%" height="100%"> - <mx:DataGrid height="100%" id="myDataGrid" dataProvider = "{ advWordList }" width="70%"> - <mx:columns> - <mx:DataGridColumn headerText="Index" dataField="index"/> - <mx:DataGridColumn headerText="Word" dataField="word"/> - <mx:DataGridColumn headerText="Metaphone" dataField="meta"/> - </mx:columns> - </mx:DataGrid> - <mx:TextArea id="debugInfo" height="100%" width="30%" /> - </mx:HBox> -</mx:WindowedApplication>