Skip to content

Commit f012c3f

Browse files
authored
Merge pull request FriendsOfEpub#39 from FriendsOfEpub/i18n
Init I18n
2 parents d9433f9 + e373399 commit f012c3f

File tree

11 files changed

+519
-33
lines changed

11 files changed

+519
-33
lines changed

Blitz_framework/CSS/blitz.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@charset "UTF-8";
2-
/* blitz — CSS framework for reflowable eBooks
3-
Version 1.3.0 by Jiminy Panoz
4-
Codename: The Street Parade
2+
/* blitz — CSS framework for reflowable eBooks
3+
Version 1.4.0 by Jiminy Panoz
4+
Codename: Stop the World
55
License: MIT (https://opensource.org/licenses/MIT) */
66
/* NAMESPACES */
77
@namespace h "http://www.w3.org/1999/xhtml/";

Blitz_framework/LESS/blitz-lite.less

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
@charset "UTF-8";
22

3-
/* blitz — CSS framework for reflowable eBooks
4-
Version 1.3.0 by Jiminy Panoz
5-
Codename: The Street Parade
3+
/* blitz — CSS framework for reflowable eBooks
4+
Version 1.4.0 by Jiminy Panoz
5+
Codename: Stop the World
66
License: MIT (https://opensource.org/licenses/MIT) */
77

88

@@ -20,6 +20,7 @@ html {
2020
@import (reference) 'reference/overrides';
2121
@import (reference) 'reference/mixins';
2222
@import (reference) 'reference/enhancements';
23+
@import (reference) 'reference/i18n';
2324
@import (reference) 'utils/utilities';
2425
@import (reference) 'utils/break';
2526

Blitz_framework/LESS/blitz-reset.less

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
/* blitz — CSS framework for reflowable eBooks
2-
Version 1.3.0 by Jiminy Panoz
3-
Codename: The Street Parade
1+
/* blitz — CSS framework for reflowable eBooks
2+
Version 1.4.0 by Jiminy Panoz
3+
Codename: Stop the World
44
License: MIT (https://opensource.org/licenses/MIT) */
55

66
@import 'base/reset';

Blitz_framework/LESS/blitz.less

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
@charset "UTF-8";
22

3-
/* blitz — CSS framework for reflowable eBooks
4-
Version 1.3.0 by Jiminy Panoz
5-
Codename: The Street Parade
3+
/* blitz — CSS framework for reflowable eBooks
4+
Version 1.4.0 by Jiminy Panoz
5+
Codename: Stop the World
66
License: MIT (https://opensource.org/licenses/MIT) */
77

88

@@ -24,6 +24,7 @@ html {
2424
@import (reference) 'reference/overrides';
2525
@import (reference) 'reference/mixins';
2626
@import (reference) 'reference/enhancements';
27+
@import (reference) 'reference/i18n';
2728

2829
// That's the stuff running Blitz
2930
@import 'core/variables';
Lines changed: 247 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,247 @@
1+
/* INTERNATIONALIZATION */
2+
3+
/* Layout */
4+
5+
.horizontal-tb {
6+
-ms-writing-mode: lr-tb;
7+
-webkit-writing-mode: horizontal-tb;
8+
-epub-writing-mode: horizontal-tb;
9+
writing-mode: horizontal-tb;
10+
}
11+
12+
.vertical-lr {
13+
-ms-writing-mode: tb;
14+
-webkit-writing-mode: vertical-lr;
15+
-epub-writing-mode: vertical-lr;
16+
writing-mode: vertical-lr;
17+
}
18+
19+
.vertical-rl {
20+
-ms-writing-mode: tb-rl;
21+
-webkit-writing-mode: vertical-rl;
22+
-epub-writing-mode: vertical-rl;
23+
writing-mode: vertical-rl;
24+
}
25+
26+
.text-orientation-mixed {
27+
-webkit-text-orientation: mixed;
28+
-epub-text-orientation: mixed;
29+
text-orientation: mixed;
30+
}
31+
32+
.text-orientation-upright {
33+
-webkit-text-orientation: upright;
34+
-epub-text-orientation: upright;
35+
text-orientation: upright;
36+
}
37+
38+
.text-orientation-sideways {
39+
-webkit-text-orientation: sideways;
40+
-epub-text-orientation: sideways;
41+
text-orientation: sideways;
42+
}
43+
44+
/* Typography */
45+
46+
.line-break-auto {
47+
-ms-line-break: auto;
48+
-webkit-line-break: auto;
49+
-epub-line-break: auto;
50+
line-break: auto;
51+
}
52+
53+
.line-break-loose {
54+
-ms-line-break: loose;
55+
-webkit-line-break: loose;
56+
-epub-line-break: loose;
57+
line-break: loose;
58+
}
59+
60+
.line-break-normal {
61+
-ms-line-break: normal;
62+
-webkit-line-break: normal;
63+
-epub-line-break: normal;
64+
line-break: normal;
65+
}
66+
67+
.line-break-strict {
68+
word-wrap: break-word;
69+
-ms-line-break: strict;
70+
-webkit-line-break: strict;
71+
-epub-line-break: strict;
72+
line-break: strict;
73+
}
74+
75+
.word-break-normal {
76+
-ms-word-break: normal;
77+
-epub-word-break: normal;
78+
word-break: normal;
79+
}
80+
81+
.word-break-all {
82+
-ms-word-break: break-all;
83+
-epub-word-break: break-all;
84+
word-break: break-all;
85+
}
86+
87+
.word-keep-all {
88+
-ms-word-break: keep-all;
89+
-epub-word-break: keep-all;
90+
word-break: keep-all;
91+
}
92+
93+
.hanging-punc {
94+
hanging-punctuation: last allow-end;
95+
}
96+
97+
.emphasis-sesame {
98+
-webkit-text-emphasis-style: sesame;
99+
-epub-text-emphasis-style: sesame;
100+
text-emphasis-style: sesame;
101+
}
102+
103+
.emphasis-dots {
104+
-webkit-text-emphasis-style: dot;
105+
-epub-text-emphasis-style: dot;
106+
text-emphasis-style: dot;
107+
}
108+
109+
.tate-chu-yoko {
110+
-ms-text-combine-horizontal: all;
111+
-webkit-text-combine: horizontal;
112+
-epub-text-combine: horizontal;
113+
-epub-text-combine-horizontal: all;
114+
text-combine-upright: all;
115+
}
116+
117+
.full-width-transform {
118+
text-transform: -epub-fullwidth;
119+
text-transform: full-width;
120+
}
121+
122+
.full-size-kana-transform {
123+
text-transform: full-size-kana;
124+
}
125+
126+
/* Font Families (class = language code) */
127+
128+
.am {
129+
font-family: Kefa, Nyala, Roboto, Noto, "Noto Sans Ethiopic", serif;
130+
}
131+
132+
.ar {
133+
font-family: "Geeza Pro", "Arabic Typesetting", Roboto, Noto, "Noto Naskh Arabic", "Times New Roman", serif;
134+
}
135+
136+
.bn {
137+
font-family: "Kohinoor Bangla", "Bangla Sangam MN", Vrinda, Roboto, Noto, "Noto Sans Bengali", sans-serif;
138+
}
139+
140+
.bo {
141+
font-family: Kailasa, "Microsoft Himalaya", Roboto, Noto, "Noto Sans Tibetan", sans-serif;
142+
}
143+
144+
.chr {
145+
font-family: "Plantagenet Cherokee", Roboto, Noto, "Noto Sans Cherokee";
146+
}
147+
148+
.fa {
149+
font-family: "Geeza Pro", "Arabic Typesetting", Roboto, Noto, "Noto Naskh Arabic", "Times New Roman", serif;
150+
}
151+
152+
.gu {
153+
font-family: "Gujarati Sangam MN", "Nirmala UI", Shruti, Roboto, Noto, "Noto Sans Gujarati", sans-serif;
154+
}
155+
156+
.he {
157+
font-family: "New Peninim MT", "Arial Hebrew", Gisha, "Times New Roman", Roboto, Noto, "Noto Sans Hebrew" sans-serif;
158+
}
159+
160+
.hi {
161+
font-family: "Kohinoor Devanagari", "Devanagari Sangam MN", Kokila, "Nirmala UI", Roboto, Noto, "Noto Sans Devanagari", sans-serif;
162+
}
163+
164+
.hy {
165+
font-family: Mshtakan, Sylfaen, Roboto, Noto, "Noto Serif Armenian", serif;
166+
}
167+
168+
.iu {
169+
font-family: "Euphemia UCAS", Euphemia, Roboto, Noto, "Noto Sans Canadian Aboriginal", sans-serif;
170+
}
171+
172+
.ja {
173+
font-family: "游ゴシック体", YuGothic, "ヒラギノ丸ゴ", "Hiragino Sans", "Yu Gothic UI", "Meiryo UI", "MS Gothic", Roboto, Noto, "Noto Sans CJK JP", sans-serif;
174+
}
175+
176+
.ja-serif-horizontal {
177+
font-family: "MS P明朝", "MS PMincho", "Hiragino Mincho Pro", "ヒラギノ明朝 Pro W3", "游明朝", "YuMincho", "MS 明朝", "MS Mincho", "Hiragino Mincho ProN", serif;
178+
}
179+
180+
.ja-sans-serif-horizontal {
181+
font-family: "MS Pゴシック", "MS PGothic", "Hiragino Kaku Gothic Pro W3", "ヒラギノ角ゴ Pro W3", "Hiragino Sans GB", "ヒラギノ角ゴシック W3", "游ゴシック", "YuGothic", "MS ゴシック", "MS Gothic", "Hiragino Sans", sans-serif;
182+
}
183+
184+
.ja-serif-vertical {
185+
font-family: "MS 明朝", "MS Mincho", "Hiragino Mincho Pro", "ヒラギノ明朝 Pro W3", "游明朝", "YuMincho", "MS P明朝", "MS PMincho", "Hiragino Mincho ProN", serif;
186+
}
187+
188+
.ja-sans-serif-vertical {
189+
font-family: "MS ゴシック", "MS Gothic", "Hiragino Kaku Gothic Pro W3", "ヒラギノ角ゴ Pro W3", "Hiragino Sans GB", "ヒラギノ角ゴシック W3", "游ゴシック", "YuGothic", "MS Pゴシック", "MS PGothic", "Hiragino Sans", sans-serif;
190+
}
191+
192+
.km {
193+
font-family: "Khmer Sangam MN", "Leelawadee UI", "Khmer UI", Roboto, Noto, "Noto Sans Khmer", sans-serif;
194+
}
195+
196+
.kn {
197+
font-family: "Kannada Sangam MN", "Nirmala UI", Tunga, Roboto, Noto, "Noto Sans Kannada", sans-serif;
198+
}
199+
200+
.ko {
201+
font-family: "Nanum Gothic", "Apple SD Gothic Neo", "Malgun Gothic", Roboto, Noto, "Noto Sans CJK KR", sans-serif;
202+
}
203+
204+
.lo {
205+
font-family: "Lao Sangam MN", "Leelawadee UI", "Lao UI", Roboto, Noto, "Noto Sans Lao", sans-serif;
206+
}
207+
208+
.ml {
209+
font-family: "Malayalam Sangam MN", "Nirmala UI", Kartika, Roboto, Noto, "Noto Sans Malayalam", sans-serif;
210+
}
211+
212+
.or {
213+
font-family: "Oriya Sangam MN", "Nirmala UI", Kalinga, Roboto, Noto, "Noto Sans Oriya", sans-serif;
214+
}
215+
216+
.pa {
217+
font-family: "Gurmukhi MN", "Nirmala UI", Kartika, Roboto, Noto, "Noto Sans Gurmukhi", sans-serif;
218+
}
219+
220+
.si {
221+
font-family: "Sinhala Sangam MN", "Nirmala UI", "Iskoola Pota", Roboto, Noto, "Noto Sans Sinhala", sans-serif;
222+
}
223+
224+
.ta {
225+
font-family: "Tamil Sangam MN", "Nirmala UI", Latha, Roboto, Noto, "Noto Sans Tamil", sans-serif;
226+
}
227+
228+
.te {
229+
font-family: "Kohinoor Telugu", "Telugu Sangam MN", "Nirmala UI", Gautami, Roboto, Noto, "Noto Sans Telugu", sans-serif;
230+
}
231+
232+
.th {
233+
font-family: "Thonburi", "Leelawadee UI", "Cordia New", Roboto, Noto, "Noto Sans Thai", sans-serif;
234+
}
235+
236+
.zh {
237+
font-family: "方体", "PingFang SC", "黑体", "Heiti SC", "Microsoft JhengHei UI", "Microsoft JhengHei", Roboto, Noto, "Noto Sans CJK SC", sans-serif;
238+
}
239+
240+
.zh-Hant,
241+
.zh-TW {
242+
font-family: "方體", "PingFang TC", "黑體", "Heiti TC", "Microsoft JhengHei UI", "Microsoft JhengHei", Roboto, Noto, "Noto Sans CJK TC", sans-serif;
243+
}
244+
245+
.zh-HK {
246+
font-family: "方體", "PingFang HK", "方體", "PingFang TC", "黑體", "Heiti TC", "Microsoft JhengHei UI", "Microsoft JhengHei", Roboto, Noto, "Noto Sans CJK TC", sans-serif;
247+
}

Blitz_framework/blitz-API.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,37 @@
9797
- `.monospace`
9898
- `.humanist`
9999
- `.oldstyle`
100+
- `.am`
101+
- `.ar`
102+
- `.bn`
103+
- `.bo`
104+
- `.chr`
105+
- `.fa`
106+
- `.gu`
107+
- `.he`
108+
- `.hi`
109+
- `.hy`
110+
- `.iu`
111+
- `.ja`
112+
- `.ja-serif-horizontal`
113+
- `.ja-sans-serif-horizontal`
114+
- `.ja-serif-vertical`
115+
- `.ja-sans-serif-vertical`
116+
- `.km`
117+
- `.kn`
118+
- `.ko`
119+
- `.lo`
120+
- `.ml`
121+
- `.or`
122+
- `.pa`
123+
- `.si`
124+
- `.ta`
125+
- `.te`
126+
- `.th`
127+
- `.zh`
128+
- `.zh-Hant`
129+
- `.zh-TW`
130+
- `.zh-HK`
100131
- `.justified`
101132
- `.align-left`
102133
- `.align-center`
@@ -124,6 +155,19 @@
124155
- `.no-break-before`
125156
- `.no-break-after`
126157
- `.no-break-inside`
158+
- `.line-break-auto`
159+
- `.line-break-loose`
160+
- `.line-break-normal`
161+
- `.line-break-strict`
162+
- `.word-break-normal`
163+
- `.word-break-all`
164+
- `.word-keep-all`
165+
- `.hanging-punc`
166+
- `.emphasis-sesame`
167+
- `.emphasis-dot`
168+
- `.tate-chu-yoko`
169+
- `.full-width-transform`
170+
- `.full-size-kana-transform`
127171

128172
### Layout
129173

@@ -135,6 +179,12 @@
135179

136180
#### Static
137181

182+
- `.horizontal-tb`
183+
- `.vertical-lr`
184+
- `.vertical-rl`
185+
- `.text-orientation-mixed`
186+
- `.text-orientation-upright`
187+
- `.text-orientation-sideways`
138188
- `.wrap-100`
139189
- `.wrap-90`
140190
- `.wrap-80`

0 commit comments

Comments
 (0)