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
<pid="status">Updated Sun 26 Jun 2016 • tags<ahref="http://rishida.net/blog/index.php?tag=converter"title="Show all blog posts tagged with 'converter'">converter</a>,<ahref="http://rishida.net/blog/?tag=scriptnotes"title="Show all blog posts tagged with 'scriptnotes'">scriptnotes</a></p>
252
252
253
+
<p>See<ahref="http://rishida.net/blog/?p=1733">release notes for version 8</a>.</p>
254
+
253
255
<p><bclass="leadin">Standard use.</b> Most of the time you will probably want to drop the text to be converted into the<code>Mixed input</code> field, and hit the associated<code>Convert</code> button. This will convert all escapes to characters, then convert that into each of the forms listed against the boxes below.</p>
254
256
<p>If your text contains bare numbers that you also want to convert, use one of the convert buttons to the right. (Be aware, however, that in this case something like 'ab' could be interpreted as a hex number.)</p>
255
257
<p>Note, also, that escapes of the form \x, where x is one of a-zA-Z0-9 are not recognised by default. If you check the box next to<code>Convert \x</code> only the special JavaScript escapes are recognised (eg. \b, \n, \t, \", etc.) For full CSS behaviour here, use the CSS input field.</p>
@@ -274,22 +276,40 @@ <h3>HTML/XML</h3>
274
276
<pclass="warning">Note that if your text contains RLO or LRO plus PDF, the PDF will incorrectly be converted to<code></span></code> at the moment. I may fix this (and thereby allow RLO/LRO conversion too) at a later date.</p>
275
277
276
278
277
-
<h3>Percent-encoding for URIs</h3>
278
-
<p><strong>If you start a conversion from here:</strong> It can be a mix of text and escapes. Only percent escapes are converted.</p>
279
-
<p><strong> When conversion puts something here:</strong> Characters allowed in URI syntax are not converted.</p>
280
-
281
-
282
279
<h3>Hexadecimal NCRs</h3>
283
280
<p><strong>If you start a conversion from here:</strong> It can be a mix of text and escapes. Only hexadecimal NCRs are converted.</p>
284
281
<p><strong> When conversion puts something here:</strong> By default, everything except ASCII characters is converted.</p>
285
282
<p>You can use the checkboxes to specify whether ANSI (Latin1) characters remain unchanged, or whether all characters are converted.</p>
286
283
284
+
285
+
287
286
<h3>Decimal NCRs</h3>
288
287
<p><strong>If you start a conversion from here:</strong> It can be a mix of text and escapes. Only decimal NCRs are converted.</p>
289
288
<p><strong> When conversion puts something here:</strong> By default, everything except ASCII characters is converted.</p>
290
289
<p>You can use the checkboxes to specify whether ANSI (Latin1) characters remain unchanged, or whether all characters are converted.</p>
291
290
291
+
292
292
293
+
<h3>JavaScript escapes</h3>
294
+
<p><strong>If you start a conversion from here:</strong> It can be a mix of text and escapes. Only JavaScript escapes are converted. Accepts escapes as used in JavaScript (old style and ES6), Java and C.</p>
295
+
<p><strong> When conversion puts something here:</strong> By default, everything except ASCII characters is converted to numeric escapes, and the following escapes are substituted for ASCII characters: \0, \b, \t, \v, \f, \\.</p>
296
+
<p>The default output to this field is specifically JavaScript compliant, though this is valid Java code too (a small number of Java-only named escapes such as<codeclass="kw"translate="no">\e</code> are rendered as numeric escapes).</p>
297
+
<p>If<code>C-style</code> is checked, supplementary characters are rendered by a single number, eight digits long, rather than two adjacent surrogate code point numbers.</p>
298
+
<p>If<code>ES6-style</code> is checked, supplementary characters are also rendered as a single number but using the new format described by EcmaScript 6.</p>
299
+
<p>If<code>\n etc</code> is checked, line feeds and quotation marks are also escaped.</p>
300
+
301
+
302
+
<h3>CSS escapes</h3>
303
+
<p><strong>If you start a conversion from here:</strong> It can be a mix of text and escapes.</p>
304
+
<p><strong> When conversion puts something here:</strong> It does not escape non-control ASCII characters. Output content uses 6-digit escape forms<em>followed by a space</em> for supplementary characters, and 4-digit escapes followed by a space for all other escaped characters.</p>
305
+
306
+
307
+
<h3>Percent-encoding for URIs</h3>
308
+
<p><strong>If you start a conversion from here:</strong> It can be a mix of text and escapes. Only percent escapes are converted.</p>
309
+
<p><strong> When conversion puts something here:</strong> Characters allowed in URI syntax are not converted.</p>
310
+
311
+
312
+
293
313
<h3>Unicode U+hex notation</h3>
294
314
<p><strong>If you start a conversion from here:</strong> It can be a mix of text and escapes. Only U+hex escapes are converted.</p>
295
315
<p><strong> When conversion puts something here:</strong> By default, everything except ASCII characters is converted.</p>
@@ -330,27 +350,13 @@ <h3>UTF-8 code units</h3>
330
350
<h3>UTF-16 code units</h3>
331
351
<p><strong>If you start a conversion from here:</strong> It must be hexadecimal code units only, separated by spaces.</p>
332
352
<p><strong> When conversion puts something here:</strong> You'll see hexadecimal numbers of 1 to 4 digits representing the UTF-16 code units for the text converted. Supplementary characters are represented by two code units.</p>
333
-
334
-
335
-
<h3>JavaScript escapes</h3>
336
-
<p><strong>If you start a conversion from here:</strong> It can be a mix of text and escapes. Only JavaScript escapes are converted. Accepts escapes as used in JavaScript (old style and ES6), Java and C.</p>
337
-
<p><strong> When conversion puts something here:</strong> By default, everything except ASCII characters is converted to numeric escapes, and the following escapes are substituted for ASCII characters: \0, \b, \t, \v, \f, \\.</p>
338
-
<p>The default output to this field is specifically JavaScript compliant, though this is valid Java code too (a small number of Java-only named escapes such as<codeclass="kw"translate="no">\e</code> are rendered as numeric escapes).</p>
339
-
<p>If<code>C-style</code> is checked, supplementary characters are rendered by a single number, eight digits long, rather than two adjacent surrogate code point numbers.</p>
340
-
<p>If<code>ES6-style</code> is checked, supplementary characters are also rendered as a single number but using the new format described by EcmaScript 6.</p>
341
-
<p>If<code>\n\'\"</code> is checked, line feeds and quotation marks are also escaped.</p>
342
-
343
-
344
-
<h3>CSS escapes</h3>
345
-
<p><strong>If you start a conversion from here:</strong> It can be a mix of text and escapes.</p>
346
-
<p><strong> When conversion puts something here:</strong> It does not escape non-control ASCII characters. Output content uses 6-digit escape forms<em>followed by a space</em> for supplementary characters, and 4-digit escapes followed by a space for all other escaped characters.</p>