Re: newboat bidi
On Mon, Apr 08, 2019 at 01:19:29PM -0400, Boruch Baum wrote: > Does anyone on-list have advice for how to configure a command-line rss > reader (ie. newsboat/newsbeuter) for Hebrew feeds so the bidi displays > properly? > from man newsboat: pager (parameters: [/internal]; default value: internal) If set to internal, then the internal pager will be used. Otherwise, the article to be displayed will be rendered to be a temporary file and then displayed with the configured pager. If the command is set to an empty string, the content of the "PAGER" environment variable will be used. If the command contains a placeholder %f, it will be replaced with the temporary filename. (example: pager "less %f") so you could set 'bidiv' as the pager for newsboat. Alternatively you could bind a key to pipe those articles to bidiv. -- Efraim Flashner אפרים פלשנר GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted signature.asc Description: PGP signature ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: newboat bidi
On 2019-04-09 15:27, Efraim Flashner wrote: > On Mon, Apr 08, 2019 at 01:19:29PM -0400, Boruch Baum wrote: > > Does anyone on-list have advice for how to configure a command-line rss > > reader (ie. newsboat/newsbeuter) for Hebrew feeds so the bidi displays > > properly? > > > > from man newsboat: > > pager (parameters: [/internal]; default value: internal) If >set to internal, then the internal pager will be used. >Otherwise, the article to be displayed will be rendered to >be a temporary file and then displayed with the configured >pager. If the command is set to an empty string, the >content of the "PAGER" environment variable will be used. >If the command contains a placeholder %f, it will be >replaced with the temporary filename. (example: pager "less >%f") > > so you could set 'bidiv' as the pager for newsboat. Alternatively you > could bind a key to pipe those articles to bidiv. Yes, I did read the man page before posting. I had thought about both those options before posting, and did try the pipe idea. Both ideas only address RTL in actual article text, not for the article headline screen (ie. the listing of articles lists each headline in reverse). The pipe idea would actually need to be something like "bidiv |less"; 'less' isn't a great choice though, because it doesn't deal nicely with embedded links, so what turns out to be better is just to pipe the output to emacsclient, without the bidiv. Still doesn't address the reversed text of the article listing screen, though. -- hkp://keys.gnupg.net CA45 09B5 5351 7C11 A9D1 7286 0036 9E45 1595 8BC0 ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: newboat bidi
not tested, but maybe you can use a terminal with bidi support like mlterm ? -- Rabin On Tue, 9 Apr 2019 at 15:49, Boruch Baum wrote: > On 2019-04-09 15:27, Efraim Flashner wrote: > > On Mon, Apr 08, 2019 at 01:19:29PM -0400, Boruch Baum wrote: > > > Does anyone on-list have advice for how to configure a command-line rss > > > reader (ie. newsboat/newsbeuter) for Hebrew feeds so the bidi displays > > > properly? > > > > > > > from man newsboat: > > > > pager (parameters: [/internal]; default value: internal) If > >set to internal, then the internal pager will be used. > >Otherwise, the article to be displayed will be rendered to > >be a temporary file and then displayed with the configured > >pager. If the command is set to an empty string, the > >content of the "PAGER" environment variable will be used. > >If the command contains a placeholder %f, it will be > >replaced with the temporary filename. (example: pager "less > >%f") > > > > so you could set 'bidiv' as the pager for newsboat. Alternatively you > > could bind a key to pipe those articles to bidiv. > > Yes, I did read the man page before posting. I had thought about both > those options before posting, and did try the pipe idea. Both ideas only > address RTL in actual article text, not for the article headline screen > (ie. the listing of articles lists each headline in reverse). The pipe > idea would actually need to be something like "bidiv |less"; 'less' > isn't a great choice though, because it doesn't deal nicely with > embedded links, so what turns out to be better is just to pipe the > output to emacsclient, without the bidiv. Still doesn't address the > reversed text of the article listing screen, though. > > > -- > hkp://keys.gnupg.net > CA45 09B5 5351 7C11 A9D1 7286 0036 9E45 1595 8BC0 > > ___ > Linux-il mailing list > Linux-il@cs.huji.ac.il > http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il > ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: newboat bidi
On 2019-04-09 20:17, Rabin Yasharzadehe wrote: > not tested, but maybe you can use a terminal with bidi support like > mlterm ? I've submitted a github 'issue' for this[1], and the developer has expressed his interest in fixing the matter internally, as it really should be. If you or anyone on-list is interested, you can follow any progress there[1]. references: [1] https://github.com/newsboat/newsboat/issues/481 -- hkp://keys.gnupg.net CA45 09B5 5351 7C11 A9D1 7286 0036 9E45 1595 8BC0 ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il