iftoc 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +14 -0
- data/iconfont/Iconfont.h +1 -1
- data/iconfont/Iconfont.m +3 -3
- data/lib/iftoc/version.rb +1 -1
- data/lib/iftoc.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 72f6986d73c2b35f5c378c7701be68b32d8d31dd
|
|
4
|
+
data.tar.gz: 3ae566d33d60c1fd71d1c3b7061697af95d39461
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 782dd0daa0fe2a6ff4dd4cb2644708b889394f721655b500e06838538200caa40d50d5cf40a50592cebae20ab454a87e62efb865446abce424515d3875bb9944
|
|
7
|
+
data.tar.gz: 558afeda187ecb38e46f3501edf2e4d20224157ea67d4f25dd198a57bbe457bdf5f2d9aabacd97b3465845b44b05481418cf0c3750e91db796826834b799a9fa
|
data/README.md
CHANGED
|
@@ -27,6 +27,20 @@ Usage: iftoc \<cssfile> [--out \<outpath>]
|
|
|
27
27
|
or
|
|
28
28
|
|
|
29
29
|
$ iftoc iconfont.css --out /iconfont
|
|
30
|
+
|
|
31
|
+
## iconfont.css
|
|
32
|
+
|
|
33
|
+
Iconfont.css can be created automatically from web [http://www.iconfont.cn](http://www.iconfont.cn/)
|
|
34
|
+
|
|
35
|
+
.
|
|
36
|
+
|
|
37
|
+
├── **iconfont.css**
|
|
38
|
+
|
|
39
|
+
├── iconfont.svg
|
|
40
|
+
|
|
41
|
+
├── iconfont.ttf
|
|
42
|
+
|
|
43
|
+
└── iconfont.woff
|
|
30
44
|
|
|
31
45
|
## Development
|
|
32
46
|
|
data/iconfont/Iconfont.h
CHANGED
data/iconfont/Iconfont.m
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// IconFont.m
|
|
3
3
|
// AutoCoding
|
|
4
4
|
//
|
|
5
|
-
// Created by AutoCoding on 2017/01/
|
|
5
|
+
// Created by AutoCoding on 2017/01/05.
|
|
6
6
|
// Copyright © 2017年 olinone. All rights reserved.
|
|
7
7
|
//
|
|
8
8
|
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
- (NSString *)icongouwuche {
|
|
27
|
-
return @"U0000e604";
|
|
27
|
+
return @"\U0000e604";
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
- (NSString *)iconqiqiu {
|
|
31
|
-
return @"U0000e605";
|
|
31
|
+
return @"\U0000e605";
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
@end
|
data/lib/iftoc/version.rb
CHANGED
data/lib/iftoc.rb
CHANGED
|
@@ -98,7 +98,7 @@ module Iftoc
|
|
|
98
98
|
|
|
99
99
|
iconfontMap.each { |key, value|
|
|
100
100
|
mString = mString + "- (NSString *)icon" + key + " {\n";
|
|
101
|
-
mString = mString + " return @\"
|
|
101
|
+
mString = mString + " return @\"\\U0000" + value + "\";" + "\n}\n\n"
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
mString = mString + "@end"
|