From kde-core-devel Sat Sep 30 10:23:04 2000 From: aleXXX Date: Sat, 30 Sep 2000 10:23:04 +0000 To: kde-core-devel Subject: Re: no mimetypes for manpages and info-files X-MARC-Message: https://marc.info/?l=kde-core-devel&m=97032602204694 Am Don, 28 Sep 2000 schrieb David Faure: > If a man page isn't recognised as such automatically, it means it's missing from > kdelibs/kio/magic. > Indeed. All I can see there is > > # troff stuff > # > 0 string .\\" application/x-troff > 0 string '\\" application/x-troff > 0 string '.\\" application/x-troff > 0 string \\" application/x-troff > > Do you know of any way to recognise a man page using its first N characters ? Do the lines above mean that the first lines in the file start with ./" ? This would have been my idea too. Maybe one could also check for .TH. Bye Alex BTW what do I have to do that my man-page-viewing part supports links, i.e. I click on a link and konqy (or whatever) changes to the new url ?