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. --- .../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 + 5 files changed, 49 insertions(+) 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/UniversalDetector.framework/Versions') 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