Re: [Lynx-dev] ANN: lynx2.9.0dev.5
On Fri, Feb 28, 2020 at 09:59:44PM +0100, Martijn Dekker wrote: > Op 28-02-20 om 02:59 schreef Thomas Dickey: > > 2020-02-27 (2.9.0dev.5) > > Gopher URLs for HTML pages geneated from menus are still broken, with a > missing slash after '/h'. > > E.g. when visiting gopher://gopher.metafilter.com/1/MetaFilter > > the menu produces links like: > gopher://gopher.metafilter.com/hMetaFilter/The-Loneliness-of-the-Long-Distance-Writer.html > > which should be: > gopher://gopher.metafilter.com/h/MetaFilter/The-Loneliness-of-the-Long-Distance-Writer.html hmm - we discussed this in August, https://lists.nongnu.org/archive/html/lynx-dev/2019-08/msg00075.html and though it looks odd, seems to work. As I recall it, that's because the gopher selector looks at that first character "h", and doesn't rely on a separator. Is there some link that's not working in dev.5/dev.6 ? -- Thomas E. Dickey https://invisible-island.net ftp://ftp.invisible-island.net signature.asc Description: PGP signature ___ Lynx-dev mailing list Lynx-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/lynx-dev
Re: [Lynx-dev] ANN: lynx2.9.0dev.5
On Tue, Mar 03, 2020 at 05:07:00AM -0500, Thomas Dickey wrote: > On Fri, Feb 28, 2020 at 09:59:44PM +0100, Martijn Dekker wrote: > > Op 28-02-20 om 02:59 schreef Thomas Dickey: > > > 2020-02-27 (2.9.0dev.5) > > > > Gopher URLs for HTML pages geneated from menus are still broken, with a > > missing slash after '/h'. > > > > E.g. when visiting gopher://gopher.metafilter.com/1/MetaFilter > > > > the menu produces links like: > > gopher://gopher.metafilter.com/hMetaFilter/The-Loneliness-of-the-Long-Distance-Writer.html > > > > which should be: > > gopher://gopher.metafilter.com/h/MetaFilter/The-Loneliness-of-the-Long-Distance-Writer.html > > hmm - we discussed this in August, > > https://lists.nongnu.org/archive/html/lynx-dev/2019-08/msg00075.html > > and though it looks odd, seems to work. > > As I recall it, that's because the gopher selector looks > at that first character "h", and doesn't rely on a separator. > > Is there some link that's not working in dev.5/dev.6 ? (dev.6 is in-development, of course) -- Thomas E. Dickey https://invisible-island.net ftp://ftp.invisible-island.net signature.asc Description: PGP signature ___ Lynx-dev mailing list Lynx-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/lynx-dev
Re: [Lynx-dev] ANN: lynx2.9.0dev.5
Thomas Dickey wrote: I've no idea why; GnuTls works fine in e.g. Wget2 and libcurl. Some issue with tidy_tls.c on Windows? I don't know - how is GnuTls built for your configuration? With this patch, it works: --- a/src/tidy_tls.c 2020-01-21 22:26:43 +++ b/src/tidy_tls.c 2020-03-03 11:46:07 @@ -499,12 +499,32 @@ return rc; } +#ifdef _WINDOWS +static int Lynx_gtls_push(void *s, const void *buf, size_t len) +{ + return NETWRITE ((SOCKET)s, buf, len); +} + +/* This calls 'recv()' in a thread for every GnuTls pull. Maybe too much overhead? + */ +static int Lynx_gtls_pull(void *s, void *buf, size_t len) +{ + return NETREAD ((SOCKET)s, buf, len); +} +#endif + /* * Connect the SSL object with a file descriptor. * This always returns 1 (success) since GNU TLS does not check for errors. */ int SSL_set_fd(SSL * ssl, int fd) { +#ifdef _WINDOWS + /* register callback functions to send and receive data. */ + gnutls_transport_set_push_function(ssl->gnutls_state, Lynx_gtls_push); + gnutls_transport_set_pull_function(ssl->gnutls_state, Lynx_gtls_pull); +#endif + gnutls_transport_set_ptr(ssl->gnutls_state, (gnutls_transport_ptr_t) (intptr_t) (fd)); return 1; -- Tested with: lynx https://clienttest.ssllabs.com:8443/ssltest/viewMyClient.html etc. -- --gv ___ Lynx-dev mailing list Lynx-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/lynx-dev
[Lynx-dev] Browsing the list of the form
Hi, I am using Lynx with a braille display. When I browse a list, for instance, in the options menu, or a website, my braille shows only "Use arrow keys and return..." If I go up or down, the text at braille remains same. How could I change options that braille shows the text in the list? I found an option that all texts in the list is visible, but it shows whole list. I would like to see only the current text of the list, not whole list. Riku ___ Lynx-dev mailing list Lynx-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/lynx-dev
[Lynx-dev] which parts of lynx actually handle the html?
I'm seriously thinking about porting my epub reader from windows to linux. Under windows it's a gui application, but in porting it to linux, I'd actually not mind making it a terminal based app. The parsing of the content files is relatively easy to do, especially since I already have that mostly written under windows, and porting that part to linux wouldn't be a difficult task. The big trouble comes when actually displaying the files that make up the epub books. most of them are just plain html files with xhtml extensions. On windows, I call an explorer embedded task to display the html files, which gives me control over the explorer window since it's a child window of my app, and I can easily move from file to file, but I'm not sure how to do this same kind of thing on linux. I could of course simply call lynx and pas it the url to the local file to display, but this would require the user to quit lynx after each section was done. I'd like instead to be able to incorporate the relevant pieces of lynx directly into the epub reader, so that I have full control over when things get displayed, and when to change what's being shown. Again, this could probably be done with scripting/moderate modifying of the lynx source, but a full blown web browser isn't strictly necessary, since on average, the epub standard doesn't generally go in for most of the existing xhtml extensions, so just having it handle moderately current html tags should be sufficient. I'm just curious if anyone has any ideas/suggestions on what specific parts of lynx would be necessary for this task, since all files will be local, nothing needs to be pulled from remote servers, simple html parsing should suffice, and I only need to be able to control the browser so far as closing and reopeningnew files goes, I'd think I could strip away quite a lot of lynx's current infrastructure, and just use the html engine, with some window controls, but I don't know how problematic a task like this would be, so any help/advice would be appreciated. ___ Lynx-dev mailing list Lynx-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/lynx-dev
Re: [Lynx-dev] Browsing the list of the form
While, unlike Riku, I am not running Braille, I have noticed for a long time that drop-down menus are not reading well with a screen-reader. Sounds like an x is combined with the listed options. Many time its quite a challenge knowing whats there. Thanks in advance Chime ___ Lynx-dev mailing list Lynx-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/lynx-dev
Re: [Lynx-dev] which parts of lynx actually handle the html?
Travis Siegel dixit: > I could of course simply call lynx and pas it the url to the local file > to display, but this would require the user to quit lynx after each > section was done. I'd like instead to be able to incorporate the I’ve written myself a script to convert toc.ncx into index.htm and then call lynx with that. http://www.mirbsd.org/cvs.cgi/contrib/hosted/tg/unepub?rev=HEAD if you’re interested. bye, //mirabilos -- „Cool, /usr/share/doc/mksh/examples/uhr.gz ist ja ein Grund, mksh auf jedem System zu installieren.“ -- XTaran auf der OpenRheinRuhr, ganz begeistert (EN: “[…]uhr.gz is a reason to install mksh on every system.”) ___ Lynx-dev mailing list Lynx-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/lynx-dev