Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add special character - horizontal ellipsis #88

Merged
merged 5 commits into from
Nov 11, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Example/BonMot.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@
CDFDF5501B51880D00A1AD42 /* NSDictionary+BONEquality.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSDictionary+BONEquality.m"; sourceTree = "<group>"; };
CDFDF5531B518F3900A1AD42 /* BONDictionaryEqualityTestCase.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BONDictionaryEqualityTestCase.m; sourceTree = "<group>"; };
DC26879CFC50F3E9302E163B /* Pods-Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Tests/Pods-Tests.debug.xcconfig"; sourceTree = "<group>"; };
E19B7EA11BF3C517002CD3D8 /* BONSpecialGenerator.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = BONSpecialGenerator.swift; path = ../scripts/BONSpecialGenerator.swift; sourceTree = SOURCE_ROOT; };
EA798F8B87019E9A6673F5A3 /* Pods-BonMot.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-BonMot.release.xcconfig"; path = "Pods/Target Support Files/Pods-BonMot/Pods-BonMot.release.xcconfig"; sourceTree = "<group>"; };
F79B786068DF6EE81053EF09 /* Pods-BonMot.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-BonMot.release.xcconfig"; path = "Pods/Target Support Files/Pods-BonMot/Pods-BonMot.release.xcconfig"; sourceTree = "<group>"; };
/* End PBXFileReference section */
Expand Down Expand Up @@ -240,6 +241,7 @@
6003F594195388D20070C39A /* Supporting Files */ = {
isa = PBXGroup;
children = (
E19B7EA11BF3C517002CD3D8 /* BONSpecialGenerator.swift */,
CDFC93B61AE59FCA00C2B7C9 /* Fonts */,
6003F595195388D20070C39A /* BonMot-Info.plist */,
6003F596195388D20070C39A /* InfoPlist.strings */,
Expand Down
2 changes: 2 additions & 0 deletions Pod/Classes/BONSpecial.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ typedef NS_ENUM(unichar, BONCharacter) {
BONCharacterFigureDash = 0x2012,
BONCharacterEnDash = 0x2013,
BONCharacterEmDash = 0x2014,
BONCharacterHorizontalEllipsis = 0x2026,
BONCharacterLineSeparator = 0x2028,
BONCharacterParagraphSeparator = 0x2029,
BONCharacterNarrowNoBreakSpace = 0x202F,
Expand All @@ -48,6 +49,7 @@ typedef NS_ENUM(unichar, BONCharacter) {
+ (NSString *)figureDash;
+ (NSString *)enDash;
+ (NSString *)emDash;
+ (NSString *)horizontalEllipsis;
+ (NSString *)lineSeparator;
+ (NSString *)paragraphSeparator;
+ (NSString *)narrowNoBreakSpace;
Expand Down
1 change: 1 addition & 0 deletions Pod/Classes/BONSpecial.m
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ + (NSString *)nonBreakingHyphen { return @"\u2011"; }
+ (NSString *)figureDash { return @"\u2012"; }
+ (NSString *)enDash { return @"\u2013"; }
+ (NSString *)emDash { return @"\u2014"; }
+ (NSString *)horizontalEllipsis { return @"\u2026"; }
+ (NSString *)lineSeparator { return @"\u2028"; }
+ (NSString *)paragraphSeparator { return @"\u2029"; }
+ (NSString *)narrowNoBreakSpace { return @"\u202F"; }
Expand Down
1 change: 1 addition & 0 deletions scripts/BONSpecialGenerator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ let specialCharacters: [unichar] = [
0x2012,
0x2013,
0x2014,
0x2026,
0x2028,
0x2029,
0x202F,
Expand Down