From c073e11612e36a7f9b8d7033faf08d663dd40c1f Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Sun, 25 Jul 2010 00:02:01 +0000 Subject: - Fix positioning bug when using Import From Clipboard - Add controllable encoding support when importing CSV and SQL files, including a new default "Autodetect" option. Add UniversalDetector framework to support encoding autodetection. This should address Issue #720. --- Frameworks/UniversalDetector.framework/Headers | 1 + Frameworks/UniversalDetector.framework/Resources | 1 + .../UniversalDetector.framework/UniversalDetector | 1 + .../Versions/A/Headers/UniversalDetector.h | 26 +++++++++++++++++++++ .../A/Resources/English.lproj/InfoPlist.strings | Bin 0 -> 204 bytes .../Versions/A/Resources/Info.plist | 22 +++++++++++++++++ .../Versions/A/UniversalDetector | Bin 0 -> 553844 bytes .../UniversalDetector.framework/Versions/Current | 1 + 8 files changed, 52 insertions(+) create mode 120000 Frameworks/UniversalDetector.framework/Headers create mode 120000 Frameworks/UniversalDetector.framework/Resources create mode 120000 Frameworks/UniversalDetector.framework/UniversalDetector create mode 100755 Frameworks/UniversalDetector.framework/Versions/A/Headers/UniversalDetector.h create mode 100644 Frameworks/UniversalDetector.framework/Versions/A/Resources/English.lproj/InfoPlist.strings create mode 100644 Frameworks/UniversalDetector.framework/Versions/A/Resources/Info.plist create mode 100755 Frameworks/UniversalDetector.framework/Versions/A/UniversalDetector create mode 120000 Frameworks/UniversalDetector.framework/Versions/Current (limited to 'Frameworks') diff --git a/Frameworks/UniversalDetector.framework/Headers b/Frameworks/UniversalDetector.framework/Headers new file mode 120000 index 00000000..a177d2a6 --- /dev/null +++ b/Frameworks/UniversalDetector.framework/Headers @@ -0,0 +1 @@ +Versions/Current/Headers \ No newline at end of file diff --git a/Frameworks/UniversalDetector.framework/Resources b/Frameworks/UniversalDetector.framework/Resources new file mode 120000 index 00000000..953ee36f --- /dev/null +++ b/Frameworks/UniversalDetector.framework/Resources @@ -0,0 +1 @@ +Versions/Current/Resources \ No newline at end of file diff --git a/Frameworks/UniversalDetector.framework/UniversalDetector b/Frameworks/UniversalDetector.framework/UniversalDetector new file mode 120000 index 00000000..8a32fbcc --- /dev/null +++ b/Frameworks/UniversalDetector.framework/UniversalDetector @@ -0,0 +1 @@ +Versions/Current/UniversalDetector \ No newline at end of file diff --git a/Frameworks/UniversalDetector.framework/Versions/A/Headers/UniversalDetector.h b/Frameworks/UniversalDetector.framework/Versions/A/Headers/UniversalDetector.h new file mode 100755 index 00000000..5d8d023b --- /dev/null +++ b/Frameworks/UniversalDetector.framework/Versions/A/Headers/UniversalDetector.h @@ -0,0 +1,26 @@ +#import + +@interface UniversalDetector:NSObject +{ + void *detectorPtr; + NSString *charsetName; + float confidence; +} + +-(id)init; +-(void)dealloc; + +-(void)analyzeData:(NSData *)data; +-(void)analyzeBytes:(const char *)data length:(int)len; +-(void)reset; + +-(BOOL)done; +-(NSString *)MIMECharset; +-(NSStringEncoding)encoding; +-(float)confidence; + +//-(void)debugDump; + ++(UniversalDetector *)detector; + +@end diff --git a/Frameworks/UniversalDetector.framework/Versions/A/Resources/English.lproj/InfoPlist.strings b/Frameworks/UniversalDetector.framework/Versions/A/Resources/English.lproj/InfoPlist.strings new file mode 100644 index 00000000..7080cf94 Binary files /dev/null and b/Frameworks/UniversalDetector.framework/Versions/A/Resources/English.lproj/InfoPlist.strings differ diff --git a/Frameworks/UniversalDetector.framework/Versions/A/Resources/Info.plist b/Frameworks/UniversalDetector.framework/Versions/A/Resources/Info.plist new file mode 100644 index 00000000..2e89cad2 --- /dev/null +++ b/Frameworks/UniversalDetector.framework/Versions/A/Resources/Info.plist @@ -0,0 +1,22 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleExecutable + UniversalDetector + CFBundleIdentifier + org.mozilla.universalchardet + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + UniversalDetector + CFBundlePackageType + FMWK + CFBundleSignature + ???? + CFBundleVersion + 1.0 + + diff --git a/Frameworks/UniversalDetector.framework/Versions/A/UniversalDetector b/Frameworks/UniversalDetector.framework/Versions/A/UniversalDetector new file mode 100755 index 00000000..7a63ef2a Binary files /dev/null and b/Frameworks/UniversalDetector.framework/Versions/A/UniversalDetector differ diff --git a/Frameworks/UniversalDetector.framework/Versions/Current b/Frameworks/UniversalDetector.framework/Versions/Current new file mode 120000 index 00000000..8c7e5a66 --- /dev/null +++ b/Frameworks/UniversalDetector.framework/Versions/Current @@ -0,0 +1 @@ +A \ No newline at end of file -- cgit v1.2.3