You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-13Lines changed: 12 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -157,18 +157,6 @@ This script checks out all SVG images from `upstream` and replaces the strings a
157
157
> ```
158
158
159
159
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
-
172
160
## Positioning
173
161
174
162
By default, the translated string replaces the original one, starting in exactly the same place of the image.
@@ -193,7 +181,7 @@ hello world
193
181
|
194
182
```
195
183
196
-
(The "hello world" is in the middle between two `|`).
184
+
(The "hello world" is centered between two `|`).
197
185
198
186
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:
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
+
223
222
# Dev mode
224
223
225
224
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