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
@@ -184,6 +185,16 @@ <h2 id="search-function">Search function <span style="padding-left: 10px;"><sup
184
185
<p>One can always get help by pressing the “<strong>?</strong>” key.</p>
185
186
<p>After a search term has been successfully found (search is case insensitive), next occurrence can be obtained using the “<strong>n</strong>” key and previous occurrence can be obtained using the “<strong>N</strong>” key.</p>
186
187
<pstyle="margin: 1.5em 4em 0 4em; text-indent: -2.5em;"><strong>Note:</strong><strong>Python 2</strong> users are confined in typing ASCII characters only.</p>
188
+
<h2id="line-editor">Line editor <spanstyle="padding-left: 10px;"><supstyle="font-size: 50%"><ahref="#" title="Go to top of the page">Top</a></sup></style></h2>
189
+
<p><strong>PyRadio</strong> “<em>Search function</em>” and “<em>Station edior</em>” use a <em>line editor</em> to permit typing and editing stations’ data.</p>
190
+
<p>The <em>line editor</em> works both on <strong>Python 2</strong> and <strong>Python 3</strong>, but does not provide the same functionality for both versions:</p>
191
+
<ul>
192
+
<li>In <strong>Python 2</strong>, only ASCII characters can be inserted.</li>
193
+
<li>In <strong>Python 3</strong>, no such restriction exists. Furthermore, using CJK characters is also supported.</li>
<p>The <em>line editor</em> supports the insertion of <atarget="_blank" href="https://en.wikipedia.org/wiki/CJK_Unified_Ideographs">CJK Unified Ideographs</a>, as described on <atarget="_blank" href="https://en.wikipedia.org/wiki/CJK_Unified_Ideographs_(Unicode_block)">CJK Unified Ideographs (Unicode block)</a> also known as URO, abbreviation of Unified Repertoire and Ordering. These characters, although encoded as a single code-point (character), actually take up a 2-character space, when rendered on the terminal.</p>
197
+
<p>A depiction of the editor’s behavior can be seen at this image: <atarget="_blank" href="https://members.hellug.gr/sng/pyradio/pyradio-editor.jpg">pyradio-editor.jpg</a>.</p>
187
198
<h2id="moving-stations-around">Moving stations around <spanstyle="padding-left: 10px;"><supstyle="font-size: 50%"><ahref="#" title="Go to top of the page">Top</a></sup></style></h2>
188
199
<p>Rearranging the order of the stations in the playlist is another feature <strong>PyRadio</strong> offers.</p>
189
200
<p>All you have to do is specify the <em>source</em> station (the station to be moved) and the position it will be moved to (<em>target</em>).</p>
@@ -223,6 +224,22 @@ After a search term has been successfully found (search is case insensitive), ne
223
224
224
225
**Note:****Python 2** users are confined in typing ASCII characters only.
225
226
227
+
## Line editor
228
+
229
+
**PyRadio** "*Search function*" and "*Station edior*" use a *line editor* to permit typing and editing stations' data.
230
+
231
+
The *line editor* works both on **Python 2** and **Python 3**, but does not provide the same functionality for both versions:
232
+
233
+
234
+
* In **Python 2**, only ASCII characters can be inserted.
235
+
* In **Python 3**, no such restriction exists. Furthermore, using CJK characters is also supported.
236
+
237
+
### CJK characters support
238
+
239
+
The *line editor* supports the insertion of [CJK Unified Ideographs](https://en.wikipedia.org/wiki/CJK_Unified_Ideographs), as described on [CJK Unified Ideographs (Unicode block)](https://en.wikipedia.org/wiki/CJK_Unified_Ideographs_(Unicode_block)) also known as URO, abbreviation of Unified Repertoire and Ordering. These characters, although encoded as a single code-point (character), actually take up a 2-character space, when rendered on the terminal.
240
+
241
+
A depiction of the editor's behavior can be seen at this image: [pyradio-editor.jpg](https://members.hellug.gr/sng/pyradio/pyradio-editor.jpg).
242
+
226
243
## Moving stations around
227
244
228
245
Rearranging the order of the stations in the playlist is another feature **PyRadio** offers.
Copy file name to clipboardExpand all lines: pyradio.1
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -243,7 +243,17 @@ After a search term has been successfully found (search is case insensitive), ne
243
243
\fBPython2\fR users are confined in typing ASCII characters only.
244
244
245
245
246
+
.SH CJK CHARACTERS SUPPORT
246
247
248
+
The \fIlineeditor\fR supports the insertion of \fICJKUnifiedIdeographs[1]\fR, as described on \fICJKUnifiedIdeographs(Unicodeblock)[2]\fR, also known as URO, abbreviation of Unified Repertoire and Ordering. These characters, although encoded as a single code-point (character), actually take up a 2-character space, when rendered on the terminal.
249
+
250
+
A depiction of the editor's behavior can be seen at this image:
#logger.error('DE x pos = {0}, first = {1}, curs = {2}, len = {3}, max = {4}'.format(pos, self._first, self._curs_pos, str_len, self._max_chars_to_display))
0 commit comments