Skip to content

Commit d186920

Browse files
committed
minor fixes
1 parent 9a3cf7f commit d186920

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

README.md

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -157,18 +157,6 @@ This script checks out all SVG images from `upstream` and replaces the strings a
157157
> ```
158158

159159

160-
## The "overflowing text" problem
161-
162-
The translated string may become longer than the original.
163-
164-
The replacement script only operates on strings, not other graphics, so a long translated string may not fit the picture.
165-
166-
Most pictures have some extra space for longer text, so a slight increase doesn't harm, but sometimes that happens.
167-
168-
Usually, you should adjust the translated text, make it shorter to fit.
169-
170-
If your translated string absolutely must be longer and doesn't fit, let me know, I can adjust the picture.
171-
172160
## Positioning
173161

174162
By default, the translated string replaces the original one, starting in exactly the same place of the image.
@@ -193,7 +181,7 @@ hello world
193181
|
194182
```
195183
196-
(The "hello world" is in the middle between two `|`).
184+
(The "hello world" is centered between two `|`).
197185
198186
The `position: "center"` in `images.yml` centers the translated string, so that it will replace the original one and stay "in the middle" of the surrounding context:
199187
```
@@ -220,6 +208,17 @@ NODE_LANG=zh npm run gulp engine:koa:tutorial:imageYaml --image hello.svg
220208
```
221209
222210
211+
## The "overflowing text" problem
212+
213+
The translated string may become longer than the original.
214+
215+
The replacement script only operates on strings, not other graphics, so a long translated string may not fit the picture. Most pictures have some extra space for longer text, so a slight increase doesn't harm, but sometimes that happens.
216+
217+
Usually, you should adjust the translated text, make it shorter to fit.
218+
219+
If your translated string absolutely must be longer and doesn't fit, let me know, I can adjust the picture.
220+
221+
223222
# Dev mode
224223
225224
If you'd like to edit the server code (assuming you're familiar with Node.js), *not* the tutorial text, then there are two steps to do.

0 commit comments

Comments
 (0)