Hi,

> The files in spelling.framework.ui seem to be new versions of the same files
> in spelling.ui?

That's SpellingFramework/com/adobe/com/linguistics/spelling/framework/ui  and 
SpellingUi/com/adobe/com/linguistics/spelling/framework/ui right? 

Seems to be a few differences.

files=`ls SpellingUI/src/com/adobe/linguistics/spelling/ui/*.as`; for file in 
$files; do diff 
SpellingFramework/src/com/adobe/linguistics/spelling/framework/ui/${file##*/} 
SpellingUI/src/com/adobe/linguistics/spelling/ui/${file##*/} ; done

20c20
< package com.adobe.linguistics.spelling.framework.ui
---
> package com.adobe.linguistics.spelling.ui
29a30,31
>       import com.adobe.linguistics.spelling.ui.IHighlighter;
>       import com.adobe.linguistics.spelling.ui.SpellingHighlighter;
35c37
<        * @playerversion Flash 9.x
---
>        * @playerversion Flash 10
20c20
< package com.adobe.linguistics.spelling.framework.ui
---
> package com.adobe.linguistics.spelling.ui
30a31
>       import com.adobe.linguistics.spelling.ui.IWordProcessor;
20c20
< package com.adobe.linguistics.spelling.framework.ui
---
> package com.adobe.linguistics.spelling.ui
25a26,33
>       /**
>        * The <code>IHighlighter</code> Interface.
>        * This interface defines default methods which will be used for 
> highlighting text in UI components.
>        *
>        * @playerversion Flash 10
>        * @langversion 3.0
>        */
>       
27a36,41
>               /**
>                * Draw squiggly lines below a given token.
>                * @param token <code>Token</code> information of the word to 
> be highlighted.    
>                * @playerversion Flash 10
>                * @langversion 3.0
>                */
28a43,47
>               /**
>                * Clear all squiggly lines in the UI.          
>                * @playerversion Flash 10
>                * @langversion 3.0
>                */
29a49,55
>               /**
>                * Set offset point information for scrollable controls. This 
> is used by the highlighter to move 
>                * the squiggly lines as the text scrolls inside the control.   
>                * @param op offset information as a <code>Point</code> 
> instance.                
>                * @playerversion Flash 10
>                * @langversion 3.0
>                */             
30a57,63
>               /**
>                * Get offset point information for scrollable controls. This 
> is used by the highlighter to move 
>                * the squiggly lines as the text scrolls inside the control.   
>                * @param op offset information as a <code>Point</code> 
> instance.                
>                * @playerversion Flash 10
>                * @langversion 3.0
>                */             
20c20
< package com.adobe.linguistics.spelling.framework.ui
---
> package com.adobe.linguistics.spelling.ui
20c20
< package com.adobe.linguistics.spelling.framework.ui
---
> package com.adobe.linguistics.spelling.ui
35a36,37
>       import com.adobe.linguistics.spelling.ui.IHighlighter;
> 
129c131
<                                       
---
>                               
180c182,184
<                               
---
>                               if(tl==null) return;
>                               var atomStartIndex:int= 
> tl.getAtomIndexAtCharIndex(startIndex+ tl.textBlockBeginIndex);//fix for 
> diacritic characters bug#2854971(adding textBlockBeginIndex since 
> getAtomIndexAtCharIndex is relative to beginning of block)
>                               var atomEndIndex:int= 
> tl.getAtomIndexAtCharIndex(endIndex+tl.textBlockBeginIndex);//fix for 
> diacritic characters bug#2854971
183,184c187,188
<                                       var rectFirst:Rectangle = 
tl.getAtomBounds(startIndex);
<                                       var rectLast:Rectangle = 
tl.getAtomBounds(endIndex);
---
>                                       var rectFirst:Rectangle = 
> tl.getAtomBounds(atomStartIndex);
>                                       var rectLast:Rectangle = 
> tl.getAtomBounds(atomEndIndex);
188c192
<                                       //TODO: report error
---
>                                       trace(err);
20c20
< package com.adobe.linguistics.spelling.framework.ui
---
> package com.adobe.linguistics.spelling.ui
29a30
>       import com.adobe.linguistics.spelling.ui.IWordProcessor;
20c20
< package com.adobe.linguistics.spelling.framework.ui
---
> package com.adobe.linguistics.spelling.ui
85a86,101
>                               var line:int;
>                               while(rect1==null){ 
>                                       
> line=_textField.getLineIndexOfChar(firstCharIndex);
>                                       if( 
> (firstCharIndex+1)>(_textField.getLineOffset(line)+_textField.getLineLength(line)-1)||(firstCharIndex+1)>lastCharIndex)
>  return;// go till the last character
>                                       firstCharIndex++;
>                                       rect1= 
> _textField.getCharBoundaries(firstCharIndex);            
>                               }
>                               
>                               while(rect2==null){//this case appears for 
> diacritic characters made using Decomposed chars
>                                       
> line=_textField.getLineIndexOfChar(lastCharIndex);
>                                       if( lastCharIndex-1 < 
> (_textField.getLineOffset(line))||firstCharIndex>(lastCharIndex-1) ) return; 
> //go till the first character
>                                       lastCharIndex--;// check for the 
> previos character
>                                       rect2= 
> _textField.getCharBoundaries(lastCharIndex);             
>                               }
>                               
>                               
114a131
>                               //myShape.graphics.moveTo(0,0);
20c20
< package com.adobe.linguistics.spelling.framework.ui
---
> package com.adobe.linguistics.spelling.ui
37a38
>       import com.adobe.linguistics.spelling.ui.IHighlighter;
101a103
>                               if (!cctmp) return;     
143c145
<                       
---
>                       if (!cc) return;        
204c206,208
<                               
---
>                               if(tl==null)return;
>                               var atomStartIndex:int= 
> tl.getAtomIndexAtCharIndex(startIndex+ tl.textBlockBeginIndex);//fix for 
> diacritic characters bug#2854971
>                               var atomEndIndex:int= 
> tl.getAtomIndexAtCharIndex(endIndex+ tl.textBlockBeginIndex);//fix for 
> diacritic characters bug#2854971
207,208c211,212
<                                       var rectFirst:Rectangle = 
tl.getAtomBounds(startIndex);
<                                       var rectLast:Rectangle = 
tl.getAtomBounds(endIndex);
---
>                                       var rectFirst:Rectangle = 
> tl.getAtomBounds(atomStartIndex);
>                                       var rectLast:Rectangle = 
> tl.getAtomBounds(atomEndIndex);
212c216
<                                       //TODO: report error
---
>                                       trace(err);
20c20
< package com.adobe.linguistics.spelling.framework.ui
---
> package com.adobe.linguistics.spelling.ui
33a34
>       import com.adobe.linguistics.spelling.ui.IWordProcessor;
91,94c92,96
<                       tem.selectRange(_misspellStart+1, _misspellEnd);
<                       tem.insertText(replacement);
<                       tem.selectRange(_misspellStart, _misspellStart+1);
<                       tem.insertText("");
---
>                       tem.selectRange(_misspellStart, _misspellEnd-1);
>                       //tem.insertText(replacement);
>                       //tem.selectRange(_misspellStart, _misspellStart+1);
>                       //tem.insertText("");
>                       tem.overwriteText(replacement);
121a124
>                       if (currentParagraph == null) return null;


However looks like none of the other sub packages currently use it:

 find . -name "*.as" -exec grep "com.adobe.linguistics.spelling.framework.ui" 
{} \; -print
package com.adobe.linguistics.spelling.framework.ui
./SpellingFramework/src/com/adobe/linguistics/spelling/framework/ui/HaloHighlighter.as
package com.adobe.linguistics.spelling.framework.ui
./SpellingFramework/src/com/adobe/linguistics/spelling/framework/ui/HaloWordProcessor.as
package com.adobe.linguistics.spelling.framework.ui
./SpellingFramework/src/com/adobe/linguistics/spelling/framework/ui/IHighlighter.as
package com.adobe.linguistics.spelling.framework.ui
./SpellingFramework/src/com/adobe/linguistics/spelling/framework/ui/IWordProcessor.as
package com.adobe.linguistics.spelling.framework.ui
./SpellingFramework/src/com/adobe/linguistics/spelling/framework/ui/SparkHighlighter.as
package com.adobe.linguistics.spelling.framework.ui
./SpellingFramework/src/com/adobe/linguistics/spelling/framework/ui/SparkWordProcessor.as
package com.adobe.linguistics.spelling.framework.ui
./SpellingFramework/src/com/adobe/linguistics/spelling/framework/ui/SpellingHighlighter.as
package com.adobe.linguistics.spelling.framework.ui
./SpellingFramework/src/com/adobe/linguistics/spelling/framework/ui/TLFHighlighter.as
package com.adobe.linguistics.spelling.framework.ui
./SpellingFramework/src/com/adobe/linguistics/spelling/framework/ui/TLFWordProcessor.as

But use the other one:
find . -name "*.as" -exec grep "com.adobe.linguistics.spelling.ui" {} \; -print
        import com.adobe.linguistics.spelling.ui.IHighlighter;
        import com.adobe.linguistics.spelling.ui.IWordProcessor;
./SpellingUI/src/com/adobe/linguistics/spelling/SpellingContextMenu.as
    import com.adobe.linguistics.spelling.ui.HaloHighlighter;
    import com.adobe.linguistics.spelling.ui.HaloWordProcessor;
    import com.adobe.linguistics.spelling.ui.IHighlighter;
    import com.adobe.linguistics.spelling.ui.IWordProcessor;
./SpellingUI/src/com/adobe/linguistics/spelling/SpellUI.as
package com.adobe.linguistics.spelling.ui
        import com.adobe.linguistics.spelling.ui.IHighlighter;
        import com.adobe.linguistics.spelling.ui.SpellingHighlighter;
./SpellingUI/src/com/adobe/linguistics/spelling/ui/HaloHighlighter.as
package com.adobe.linguistics.spelling.ui
        import com.adobe.linguistics.spelling.ui.IWordProcessor;
./SpellingUI/src/com/adobe/linguistics/spelling/ui/HaloWordProcessor.as
package com.adobe.linguistics.spelling.ui
./SpellingUI/src/com/adobe/linguistics/spelling/ui/IHighlighter.as
package com.adobe.linguistics.spelling.ui
./SpellingUI/src/com/adobe/linguistics/spelling/ui/IWordProcessor.as
package com.adobe.linguistics.spelling.ui
        import com.adobe.linguistics.spelling.ui.IHighlighter;
./SpellingUI/src/com/adobe/linguistics/spelling/ui/SparkHighlighter.as
package com.adobe.linguistics.spelling.ui
        import com.adobe.linguistics.spelling.ui.IWordProcessor;
./SpellingUI/src/com/adobe/linguistics/spelling/ui/SparkWordProcessor.as
package com.adobe.linguistics.spelling.ui
./SpellingUI/src/com/adobe/linguistics/spelling/ui/SpellingHighlighter.as
package com.adobe.linguistics.spelling.ui
        import com.adobe.linguistics.spelling.ui.IHighlighter;
./SpellingUI/src/com/adobe/linguistics/spelling/ui/TLFHighlighter.as
package com.adobe.linguistics.spelling.ui
        import com.adobe.linguistics.spelling.ui.IWordProcessor;
./SpellingUI/src/com/adobe/linguistics/spelling/ui/TLFWordProcessor.as
package com.adobe.linguistics.spelling.ui
./SpellingUIAPI/src/com/adobe/linguistics/spelling/ui/HaloHighlighter.as
package com.adobe.linguistics.spelling.ui
./SpellingUIAPI/src/com/adobe/linguistics/spelling/ui/HaloWordProcessor.as
package com.adobe.linguistics.spelling.ui
./SpellingUIAPI/src/com/adobe/linguistics/spelling/ui/IHighlighter.as
package com.adobe.linguistics.spelling.ui
./SpellingUIAPI/src/com/adobe/linguistics/spelling/ui/IWordProcessor.as
package com.adobe.linguistics.spelling.ui
./SpellingUIAPI/src/com/adobe/linguistics/spelling/ui/SparkHighlighter.as
package com.adobe.linguistics.spelling.ui
./SpellingUIAPI/src/com/adobe/linguistics/spelling/ui/SparkWordProcessor.as
package com.adobe.linguistics.spelling.ui
./SpellingUIAPI/src/com/adobe/linguistics/spelling/ui/SpellingHighlighter.as
        import com.adobe.linguistics.spelling.ui.*;
./SpellingUIEx/src/com/adobe/linguistics/spelling/SpellingContextMenu.as
    import com.adobe.linguistics.spelling.ui.HaloHighlighter;
    import com.adobe.linguistics.spelling.ui.IHighlighter;
    import com.adobe.linguistics.spelling.ui.SparkHighlighter;
    import com.adobe.linguistics.spelling.ui.HaloWordProcessor;
    import com.adobe.linguistics.spelling.ui.IWordProcessor;
    import com.adobe.linguistics.spelling.ui.SparkWordProcessor;
./SpellingUIEx/src/com/adobe/linguistics/spelling/SpellUI.as
        import com.adobe.linguistics.spelling.ui.IHighlighter;
        import com.adobe.linguistics.spelling.ui.IWordProcessor;
        import com.adobe.linguistics.spelling.ui.TLFHighlighter;
        import com.adobe.linguistics.spelling.ui.TLFWordProcessor;
./SpellingUITLF/src/com/adobe/linguistics/spelling/SpellingContextMenuForTLF.as
        import com.adobe.linguistics.spelling.ui.IHighlighter;
        import com.adobe.linguistics.spelling.ui.IWordProcessor;
        import com.adobe.linguistics.spelling.ui.TLFHighlighter;
        import com.adobe.linguistics.spelling.ui.TLFWordProcessor;
./SpellingUITLF/src/com/adobe/linguistics/spelling/SpellUIForTLF.as
        import com.adobe.linguistics.spelling.ui.IHighlighter;
        import com.adobe.linguistics.spelling.ui.IWordProcessor;
        import com.adobe.linguistics.spelling.ui.TLFHighlighter;
        import com.adobe.linguistics.spelling.ui.TLFWordProcessor;
./SpellingUITLF/src/com/adobe/linguistics/spelling/SquigglyCustomContainerController.as

So my guess it that common code was in the process of being moved into 
SpellingFramework swc and then the UI and UIEx swfs would only contain the 
SpellUI and SellingContextMenu classes?

Thanks,
Justin


Reply via email to