<?xml version="1.0" encoding="windows-1252"?>
<node id="720039" title="Suggestion for new shortcut-tags: [man://] and [mskb://]" created="2008-10-28 12:35:50" updated="2008-10-28 12:35:50">
<type id="1036">
monkdiscuss</type>
<author id="636534">
Perlbotics</author>
<data>
<field name="doctext">
&lt;p&gt;
While trying to look-up a shortcut for man-pages in &lt;em&gt;[id://43037]&lt;/em&gt;, 
I noticed that there is no such thing as a &lt;c&gt;[man://]&lt;/c&gt; tag.
Although, I know that there are various flavours of Unix, it would be 
convenient to point to a site such as [http://www.freebsd.org/cgi/man.cgi] for 
further reading. E.g. &lt;c&gt;[man://env]&lt;/c&gt;  &amp;rArr; [http://www.freebsd.org/cgi/man.cgi?query=env|env] could be linked to 
[http://www.freebsd.org/cgi/man.cgi?query=env], which will present a default man-page for FreeBSD.   There, the reader can select the same man-page for another Unix flavour if desired.
&lt;p&gt;

Potential variations could include (with &lt;c&gt;env&lt;/c&gt; as an example): 

&lt;dl&gt;
  &lt;dt&gt;&lt;c&gt;[man://env]&lt;/c&gt; &amp;rArr; [http://www.freebsd.org/cgi/man.cgi?query=env|env]&lt;/dt&gt;
  &lt;dd&gt;look-up 'env' for any Unix (FreeBSD by default) 
&lt;br&gt;&lt;small&gt;(&amp;rarr; http://www.freebsd.org/cgi/man.cgi?&lt;strong&gt;query=env&lt;/strong&gt;)&lt;/small&gt;
&lt;/dd&gt;


  &lt;dt&gt;&lt;c&gt;[man://env(1)]&lt;/c&gt; &amp;rArr; [http://www.freebsd.org/cgi/man.cgi?query=env&amp;sektion=1|env(1)]&lt;/dt&gt;
  &lt;dd&gt;look-up 'env' in section (1) / note the 
[http://en.wikipedia.org/wiki/Common_Gateway_Interface|CGI]
[http://en.wikipedia.org/wiki/Attribute-value_pair|NVP]:  
&lt;c&gt;sektion=1&lt;/c&gt; (not(!) section)
&lt;br&gt;&lt;small&gt;(&amp;rarr; http://www.freebsd.org/cgi/man.cgi?query=env&amp;&lt;strong&gt;sektion=1&lt;/strong&gt;)&lt;/small&gt;
&lt;/dd&gt;

  &lt;dt&gt;&lt;c&gt;[man1://env]&lt;/c&gt; &amp;rArr; [http://www.freebsd.org/cgi/man.cgi?query=env&amp;sektion=1|env(1)]&lt;/dt&gt;
  &lt;dd&gt;same: look-up 'env' in section (1) / analogue: man2, man3, etc.
&lt;/dd&gt;


  &lt;dt&gt;&lt;c&gt;[man1://env|env (1) manpage]&lt;/c&gt; &amp;rArr; [http://www.freebsd.org/cgi/man.cgi?query=env&amp;sektion=1|env (1) manpage]&lt;/dt&gt;
  &lt;dd&gt;same but user defined text&lt;/dd&gt;

  &lt;dt&gt;&lt;c&gt;[man://env(SunOS 5.10)]&lt;/c&gt; &amp;rArr; [http://www.freebsd.org/cgi/man.cgi?query=env&amp;manpath=SunOS+5.10|env (SunOS 5.10)]&lt;/dt&gt;
  &lt;dd&gt;specification of a distinct OS - could be challenging to implement reliably / note the 
[http://en.wikipedia.org/wiki/Common_Gateway_Interface|CGI] 
[http://en.wikipedia.org/wiki/Attribute-value_pair|NVP]: 
&lt;c&gt;manpath=SunOS+5.10&lt;/c&gt;
&lt;br&gt;&lt;small&gt;(&amp;rarr; http://www.freebsd.org/cgi/man.cgi?query=env&amp;&lt;strong&gt;manpath=SunOS+5.10&lt;/strong&gt;)&lt;/small&gt;

&lt;/dd&gt;

  &lt;dt&gt;&lt;c&gt;[apropos://env]&lt;/c&gt; &amp;rArr; [http://www.freebsd.org/cgi/man.cgi?query=env&amp;apropos=1|(apropos) env]&lt;/dt&gt;
  &lt;dd&gt;don't know if that makes sense, but if &lt;c&gt;[man://]&lt;/c&gt; is possible, &lt;c&gt;[apropos://]&lt;/c&gt; is easy / note the 
[http://en.wikipedia.org/wiki/Common_Gateway_Interface|CGI]
[http://en.wikipedia.org/wiki/Attribute-value_pair|NVP]: 
&lt;c&gt;apropos=1&lt;/c&gt;
&lt;br&gt;&lt;small&gt;(&amp;rarr; http://www.freebsd.org/cgi/man.cgi?query=env&amp;&lt;strong&gt;apropos=1&lt;/strong&gt;)&lt;/small&gt;
&lt;/dd&gt;

&lt;/dl&gt;
At least the &lt;c&gt;[man://]&lt;/c&gt; and &lt;c&gt;[man1://] [man2://] ...&lt;/c&gt;
variants should be straightforward to implement.&lt;br&gt; 
The [http://www.freebsd.org/cgi/man.cgi|freebsd service] seems to exist for several years, so there is a little bit of confidence that it will be available in the future.  
&lt;/p&gt;

&lt;p&gt;
For Windows related references to the &lt;strike&gt;KB&lt;/strike&gt; 
[http://support.microsoft.com/search/?adv=1| MS Knowledge Base], 
the
 &lt;c&gt;[mskb://]&lt;/c&gt; tag could 
be useful. E.g. &lt;c&gt;[mskb://245225]&lt;/c&gt; &amp;rArr; 
[http://support.microsoft.com/kb/245225|MSKB 245225] being a link to
[http://support.microsoft.com/kb/245225]. 
Analogue: &lt;c&gt;[mskb://245225|HOW TO: Configure and Test a PERL Script with IIS 4.0, 5.0, 5.1, and 6.0]&lt;/c&gt; 
&amp;rArr; 
[http://support.microsoft.com/kb/245225|HOW TO: Configure and Test a PERL Script with IIS 4.0, 5.0, 5.1, and 6.0].
&lt;/p&gt;
&lt;p&gt;I am not sure if linking to those sites might have some legal implications... &lt;/p&gt;
&lt;p&gt;
Update: NVP = [http://en.wikipedia.org/wiki/Attribute-value_pair|Name/Value Pair], nowadays &lt;em&gt;Attribute/Value Pair&lt;/em&gt; &lt;br&gt;
Update2: samples highlighting the differences added; links for 
[http://en.wikipedia.org/wiki/Common_Gateway_Interface|CGI],  
[http://en.wikipedia.org/wiki/Attribute-value_pair|NVP],
and
[http://support.microsoft.com/search/?adv=1|KB] 
added. &lt;br&gt;
Update3: Summary and update [id://720539|here].&lt;br&gt;
&lt;ins&gt;
Update4: Today, 16-mar-2009, the &lt;c&gt;[man://]&lt;/c&gt; shortcut has become reality! 
         Thanks to [pmdev] - especially [jdporter] - for implementing this suggestion.
&lt;/ins&gt; 
  
           

&lt;/p&gt;

</field>
</data>
</node>
