Re: [Lynx-dev] xhtml file extensions
Adding: application/xhtml+xml xhtml xhtm xht to $HOME/.mime.types worked for me. You could also add it to /etc/mime.types, or wherever you lynx looks for mime types, as specified in lynx.cfg. ___ Lynx-dev mailing list Lynx-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/lynx-dev
Re: [Lynx-dev] xhtml file extensions
I was noticing (and wondering) the same thing. Renaming the files to .html works just fine, but as mentioned, unless we want to change all the links in the files, it's kind of a nonstarter. I tried to scan the source code to see where it handles xhtml files, but I couldn't find the actual behavior for the difference between xhtml and html, I was hoping I could just replace one function call with another one, but no luck on that front. :) On Mon, 16 Jul 2018, Dan-Simon Myrland wrote: Hi, I have noticed that lynx (at least as of 2.8.9dev.16 - 11 Jul 2017), does not recognize .xhtml or .xht files as html (it does recognise .htmlx -- is that supposed to be xhtml..?). This causes a fair bit of problems in my use case (I am using it in a script to read epubs). You can of course force lynx to treat a page as html, but that only works for the first page. All subsequent links are only treated as text. Even hitting \ does not force lynx to treat these pages as html. Is this a design decision, or a bug..? PS: Keep up the good work :) ___ Lynx-dev mailing list Lynx-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/lynx-dev ___ Lynx-dev mailing list Lynx-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/lynx-dev
Re: [Lynx-dev] xhtml file extensions
Je 2018-07-16 je 12:33:06 (+0200) Dan-Simon Myrland skribis: > Hi, I have noticed that lynx (at least as of 2.8.9dev.16 - 11 Jul 2017), > does not recognize .xhtml or .xht files as html (it does recognise .htmlx -- > is that supposed to be xhtml..?). This causes a fair bit of problems in my > use case (I am using it in a script to read epubs). You can of course force > lynx to treat a page as html, but that only works for the first page. All > subsequent links are only treated as text. Even hitting \ does not force > lynx to treat these pages as html. > What do you mean "not recognize"? Does `lynx file.xhtml` not work? (It works for me, even in my distro's supplied 2.8.8rel.2) Maybe your /etc/mime.types file (or whatever GLOBAL_EXTENSION_MAP is set to) isn't set up right. Mine has the line: application/xhtml+xml xhtml xhtm xht I sent a patch a while back to let you view the source code of XHTML documents by \, but AFAIK, it was never applied (though, my fork of Thomas Dickey's lynx-snapshots repository has it). ___ Lynx-dev mailing list Lynx-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/lynx-dev
Re: [Lynx-dev] xhtml file extensions
On Mon, Jul 16, 2018 at 12:33:06PM +0200, Dan-Simon Myrland wrote: > Hi, I have noticed that lynx (at least as of 2.8.9dev.16 - 11 Jul 2017), > does not recognize .xhtml or .xht files as html (it does recognise .htmlx -- htmlx's been there quite a while (before anyone used xhtml, probably). > is that supposed to be xhtml..?). This causes a fair bit of problems in my > use case (I am using it in a script to read epubs). You can of course force > lynx to treat a page as html, but that only works for the first page. All > subsequent links are only treated as text. Even hitting \ does not force > lynx to treat these pages as html. > > Is this a design decision, or a bug..? just overlooked - there's a section in src/HTInit.c which associates common suffixes with mime-types (for local files, of course). -- Thomas E. Dickey https://invisible-island.net ftp://ftp.invisible-island.net signature.asc Description: Digital signature ___ Lynx-dev mailing list Lynx-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/lynx-dev