CMPP ³£¼ûÎÊÌâ£¨FAQ£©
µ±Ç°Î¬»¤ÈËÔ±£ºÐìÃ÷<xuming@users.sourceforge.net>
×îºó¸üÐÂ£º2003 Äê 12 ÔÂ 05 ÈÕ 01:53:11 CST
±¾ÎÄµµµÄ×îÐÂ°æ±¾¿ÉÒÔÔÚ http://cmpp.linuxforum.net ÕÒµ½¡£

Ä¿Â¼


1£¬Ê²Ã´ÊÇ CMPP£¿
2£¬ÎªÊ²Ã´Òª·¢Æð CMPP ÊÖ²áÒ³¼Æ»®£¿
3£¬Õâ¸ö¼Æ»®Ïà¹ØÕ¾µãÔÚÄÄÀï£¿
4£¬ÈçºÎ²ÎÓë¸Ã¼Æ»®£¿
5£¬ÈçºÎÖ§³Ö¸Ã¼Æ»®£¿
6£¬ÈçºÎÈÏÁìÊÖ²áÒ³·­Òë£¿
7£¬CMPP ·­ÒëµÄÊÖ²áÒ³µÄÒªÇóÊÇÊ²Ã´£¿
8£¬troff ¸ñÊ½ÊÇÊ²Ã´ÑùµÄ£¿
9£¬ÈçºÎÌá½»ÄúµÄ·­Òë»òÕß²¹¶¡£¿
10£¬±¾¼Æ»®µÄÐ­µ÷ÈËÊÇË­£¿
11£¬ÈçºÎÊ¹ÓÃ CVS£¿
12, ÊÖ²áÒ³¶ÏÐÐ´íÎóºÍÂÒÂë£¿ 
13£¬ÈçºÎÊ¹ÓÃÖÐÎÄÊÖ²áÒ³£¿



1£¬Ê²Ã´ÊÇ CMPP£¿

CMPP ÊÇ¡°ÖÐÎÄÊÖ²áÒ³¼Æ»®¡±£¨ Chinese Man Pages Project £©µÄËõÐ´¡£
Õâ¸ö¼Æ»®µÄÄ¿µÄÊÇ°ÑÓ¢ÎÄµÄ manual pages £¨ÊÖ²áÒ³£©·­Òë³ÉÖÐÎÄµÄÊÖ²áÒ³£¬
ÈÃ¸ü¶àµÄÈËÄÜ¹»ÊÜÒæÓÚÊÖ²áÒ³ÏêÊµ·á¸»µÄÄÚÈÝ¡£½µµÍÑ§Ï° Linux ÏµÍ³µÄÄÑ¶È¡£



2£¬ÎªÊ²Ã´Òª·¢Æð CMPP ÊÖ²áÒ³¼Æ»®£¿

ÊÖ²áÒ³ÊÇ Unix ÌåÏµÀï×îÎªÈ¨ÍþºÍ·á¸»µÄ¼¼Êõ×ÊÁÏ£¬ Linux ×÷Îª×ÔÓÉÈí¼þ
µÄ Unix °æ±¾ºÍÆäËûËùÓÐÏà¹Ø¹¤¾ßºÍÈí¼þÒ»Æð£¬ÆäÊÖ²áÒ³µÄÖÊÁ¿ºÍÊýÁ¿¶¼
·Ç³£¸ß£¬ÎªÁË°ïÖú¹ã´óÍøÓÑÑ§Ï°ºÍÊ¹ÓÃÕâÐ©×ÔÓÉÈí¼þ£¬linuxforum.net ·¢Æð
ÁËÕâ¸ö±¾ÉíÒ²ÊÇ×ÔÓÉÈí¼þÏîÄ¿Ö®Ò»µÄ·­Òë¹¤³Ì¡£



3£¬Õâ¸ö¼Æ»®Ïà¹ØÕ¾µãÔÚÄÄÀï£¿

http://cmpp.linuxforum.net
CMPP Ö÷Ò³
ÎÒÃÇÔÚÕâ¸öÕ¾µãÉÏ·¢²¼Óë CMPP Ïà¹ØµÄËùÓÐÐÅÏ¢¡£
http://sf.linuxforum.net/projects/cmpp
Ä¿Ç° CMPP ¼Æ»®ÔÚsf.linuxforum ÉÏµÄÏîÄ¿µØÖ·
Çëµ½ÕâÀïÀ´»ñµÃcmpp ·¢ÐÐµÄÎÄ¼þ´ò°ü
http://cmpp.linuxforum.net/cvs?
´ÓÕâÀï¿ÉÒÔÖ±½Ó²é¿´cvs ÖÐµÄÎÄµµ¡£



4£¬ÈçºÎ²ÎÓë¸Ã¼Æ»®£¿

Äú¿ÉÒÔÍ¨¹ý¹²Í¬²ÎÓë·­Òë¡¢Ð£¶ÔÊÖ²áÒ³£¬Ò²¿ÉÒÔÍ¨¹ýÄúºÏÊÊµÄÍ¾¾¶´«²¥
CMPP ¼Æ»®£¬ÈÃ¸ü¶àµÄÈËÈÏÊ¶¡¢²ÎÓë²¢×îÖÕ´Ó CMPP ¼Æ»®ÖÐÊÜÒæ¡£



5£¬ÈçºÎÖ§³Ö¸Ã¼Æ»®£¿

µÚÒ»£¬Äú¿ÉÒÔÇ×Éí²ÎÓë¸Ã¼Æ»®£¬¼û¡°ÈçºÎ²ÎÓë¸Ã¼Æ»®¡±£»
µÚ¶þ£¬Äú¿ÉÒÔÔÞÖú¸Ã¼Æ»®£¬Äú¿ÉÒÔÌá¹©¸÷ÖÖ·­ÒëÏà¹Ø×ÊÁÏ¡¢×ÊÔ´¡¢ÉõÖÁÊÇÊé¼®¡¢
½ðÇ®µÈÔÞÖú£¬ÔÞÖúÊÂÒË¿ÉÒÔºÍ±¾¼Æ»®Ð­µ÷ÈË»ò linuxforum.net µÄ¹ÜÀíÈËÁªÏµ
£¨¼û¡°±¾¼Æ»®Ð­µ÷ÈË¡±£©£»
µÚÈý£¬Ê¹ÓÃÎÒÃÇµÄÖÐÎÄÊÖ²áÒ³£¡Ö»ÓÐ¸ü¶àµÄÈËÊ¹ÓÃ£¬²ÅÄÜÕæÕýÍÆ¶¯ CMPP µÄ
·¢Õ¹ºÍ½ø²½¡£



6£¬ÈçºÎÈÏÁìÊÖ²áÒ³·­Òë£¿

ÇëÏÈÈ·ÈÏÎÄµµÃ»ÓÐ±»·­Òë£¬»òÕßÃ»ÓÐÈËÕýÔÚ·­Òë¡£
Èç¹û·­ÒëÕýÔÚ½øÐÐ£¬µ«ÊÇÒëÕß±È½ÏÃ¦ÒÔÖÁÓÚÎÞ·¨Ìá½»½á¹û£¬Ò²¿ÉÒÔ×Ô¼º¶¯ÊÖ¡£

Èç¹ûÄú¶ÔÄ³Ð©¶«Î÷¸ÐÐËÈ¤£¬ÄÇÃ´Äú¿ÉÒÔä¯ÀÀCVSWeb£¬ÔÚÀïÃæµÄÄÇÐ©·ÇÖÐÎÄµÄ
ÊÖ²áÒ³¶¼ÊÇ¿ÉÒÔ/Ó¦µ±·­ÒëµÄÏîÄ¿¡£¾ßÌå·½·¨ÊÇ£º
µÚÒ»£¬µÇÂ¼ CVSWeb£ºhttp://cmpp.linuxforum.net
µÚ¶þ£¬µã»÷ cman ä¯ÀÀ CVSWeb ÀïµÄ cman ÄÚÈÝ£¬Ñ°ÕÒÄú¸ÐÐËÈ¤µÄÊÖ²áÒ³£¬
Èç¹ûÕÒµ½£¬ÄÇÃ´£º
µÚÈý£¬µã»÷¸ÃÎÄ¼þµÄÁ´½Ó£¬½øÈëÏÂÒ»¸öÒ³Ãæ£¬ÀïÃæÓÐÒ»¸ö download Á´½Ó¡£
ÓÃÊó±êÓÒ¼üµã»÷£¬ÔÚµ¯³ö²Ëµ¥ÖÐÑ¡Ôñ¡°Ä¿±êÁí´æÎª¡±£¬ÔÚÐÂµ¯³öµÄ
²Ëµ¥ÖÐÑ¡Ôñ±£´æÂ·¾¶ºÍÎÄ¼þÃû£¨×îºÃ²»Òª¸ü¸ÄÎÄ¼þÃû£©£¬È»ºóµã¡°È·ÈÏ¡±¼´¿É£¬
È»ºóÄú¾Í¿ÉÒÔÔÚËüÉÏÃæ½øÐÐ·­ÒëÁË¡£

Ò²¿ÉÒÔÓÃcvs À´¼ì²éÊÇ·ñÒÑ¾­·­ÒëÁË¡£ÒÑ·­ÒëµÄÎÄµµÒ»°ã¶¼»á¼ÓÈë
man-pages-zh_CN Ä¿Â¼µ±ÖÐ¡£¿ÉÒÔÊ¹ÓÃcvs export -r HEAD ÃüÁîÀ´µ¼³öÕâ¸ö
ÎÄ¼þ¡£Ð¡ÐÄ£¬ÕâÒªÇóÄã±È½Ï¾«Í¨cvs¹¤¾ß



7£¬CMPP ·­ÒëµÄÊÖ²áÒ³µÄÒªÇóÊÇÊ²Ã´£¿

ÒòÎªÊÖ²áÒ³µÄ¸ñÊ½ÊÇ troff ¸ñÊ½£¬ËùÒÔÎÒÃÇ½¨ÒéÔÚ×ö·­ÒëµÄÊ±ºò×îºÃÒ²Ê¹ÓÃ 
troff ¸ñÊ½£¬¼òµ¥Ëµ¾ÍÊÇ±£ÁôÔ´ÎÄ¼þµÄ¸ñÊ½£¬¸²¸Ç·­Òë¡£ÍÆ¼öÊ¹ÓÃemacs À´×ö
·­ÒëÊ±µÄ±à¼­Æ÷£¬Ê¹ÓÃËüµÄÓï·¨¸ßÁÁ¹¦ÄÜÀ´±ÜÃâ´íÎó¡£ÎÄ¼þ±àÂë½¨ÒéÊ¹ÓÃ
utf8. Çë²ÎÔÄÌÖÂÛ°æÉÏ¹ØÓÚ·­ÒëÒªÇóµÄËµÃ÷£¬ÓÐºÜ¶àÓÃ´Ê¹æÔòºÍÊðÃû¹æÔò¡£



8£¬troff ¸ñÊ½ÊÇÊ²Ã´ÑùµÄ£¿

troff ¸ñÊ½ÊÇÊÖ²áÒ³µÄ»ù±¾¸ñÊ½£¬ËüÊÇÓÉÒ»Ð©±ê¼Ç¶ÔÎÄ±¾½øÐÐ±ê¼Ç£¬È»ºóÍ¨¹ý
×¨ÃÅµÄÈí¼þ½øÐÐ·ÖÎöÊµÏÖµÄ¡£Æä·ûºÅºÍ±ê¼ÇµÄÏêÏ¸ÐÅÏ¢¿ÉÒÔ²ÎÔÄ man7 Ä¿Â¼ÖÐ
µÄroff.7, mdoc.samples.7, man.7£»man9 Ä¿Â¼ÖÐµÄcmanexample.9, cmanformat.9



9£¬ÈçºÎÌá½»ÄúµÄ·­Òë»òÕß²¹¶¡£¿

ÇëÔÚÌÖÂÛ°æÉÏÕÅÌù£¬±êÌâÊÇÄú·­ÒëµÄÎÄµµÃû£¬ÄÚÈÝÊÇÔ­Ê¼µÄroff ÎÄ¼þ¡£
×¢ÒâÓ¦µ±Ê¹ÓÃ[pre] [/pre]±ê¼Ç£¬Ê¹Ô­Ê¼ÎÄ¼þÄÚÈÝÒÔÔ­ÑùÏÔÊ¾³öÀ´¡£
È»ºó£¬Çë»Ø¸´Á½´ÎÄú×Ô¼ºµÄÌû×Ó£¬ÄÚÈÝ·Ö±ðÊÇÊ¹ÓÃman2html¹¤¾ßµÃµ½µÄ
ÖÐÎÄºÍÓ¢ÎÄµÄhtml ÎÄ¼þÔÚä¯ÀÀÆ÷ÖÐµÄÏÔÊ¾Ð§¹û¡£ÕâÑùÓÐÖúÓÚ¼´Ê±µÄÌÖÂÛ.
man2html ¹¤¾ß°üº¬ÔÚ cman/contrib/man2html Ä¿Â¼ÖÐ
Èç¹ûÓÐÌõ¼þÏÞÖÆ£¬Ò²¿ÉÒÔÖ»Ìá½»Ô­Ê¼ roff ÎÄ¼þ£¬Çë°æÖ÷Íê³Éhtml ÎÄ¼þ¡£
ÕâÖÖÇé¿öÏÂ£¬Çë½«·­Òë½á¹ûÓÃµç×ÓÓÊ¼þ¼Ä¸ø°æÖ÷/Ð­µ÷ÈË



10£¬±¾¼Æ»®µÄÐ­µ÷ÈËÊÇË­£¿

ÐìÃ÷ <xuming@users.sourceforge.net>
ºÎÎ°Æ½ <laser@zhengmai.com.cn>
Ùþ¾°±ò <rawk@chinese.com>
Èç¹ûÄúÓÐÓë CMPP Ïà¹ØµÄÊÂÏîÐ­ÉÌ»òÕßÏ£Íû²ÎÓëµ½¾­³£ÐÔÌá½»ÕßµÄÐÐÁÐÖÐ£¬
ÇëÓëËûÃÇÁªÏµ¡£



11£¬ÈçºÎÊ¹ÓÃ CVS£¿

Ê×ÏÈ£¬Èç¹ûÄúÊ¹ÓÃµÄÊÇ Linux£¬ÄÇÃ´Äú¿ÉÒÔÏÈ°Ñ CVS Èí¼þ°²×°ÉÏ£¬
´ó²¿·Ö linux °æ±¾Àï¶¼ÓÐ cvs °ü£¬ÔÄ¶ÁÄúµÄÏµÍ³µÄÎÄµµ£¬°²×°ÉÏÕâ¸öÈí¼þ¡£
Èç¹ûÄúµÄÏµÍ³ÀïÃ»ÓÐÕâ¸öÈí¼þ£¬Äú¿ÉÒÔµ½ÏÂÃæµÄÕ¾µãÏÂÔØ°²×°£¬¾ßÌåµÄ°²×°
·½·¨ºÍ²½ÖèÇë²ÎÔÄËü×Ô¼ºµÄÎÄµµ¡£

È»ºó£¬Äú¿ÉÒÔÖ´ÐÐÏÂÃæµÄÃüÁî£º
$ cvs -d:pserver:anonymous@sf.linuxforum.net:/cvsroot/cmpp login
ÕâÊ±ºò CVS ÏµÍ³»áÏòÄúÌáÊ¾ÊäÈë¿ÚÁî£¬ÄúÖ»ÐèÒª°´»Ø³µ¾Í¿ÉÒÔÁË¡£ÕâÊ±ºò
cvs »á°Ñ¿ÚÁî±£´æÔÚ .cvspass£¬ÕâÑùÄúÒÔºó¾Í²»ÔÙÓÃÊäÈëÁË¡£
Äú¿ÉÒÔ°ÑËùÓÐ CMPP Ô´ÎÄ¼þ¶¼ÏÂÔØÏÂÀ´£¬ÃüÁîÊÇ£º
$cvs -z3 -PAd co cman
µ«ÊÇ£¬ÓÉÓÚman ÎÄµµÊýÁ¿¾Þ´ó(>120M)£¬ËùÒÔ×îºÃ²»ÒªÕâÑù×ö¡£Èç¹ûÄã¸ÐÐËÈ¤µÄ
ÊÇÖÐÎÄÊÖ²áÒ³£¬¿ÉÒÔÓÃ
$cvs -z3 -PAd export -r HEAD man-pages-zh_CN
À´ÏÂÔØÓÃÓÚÖÆ×÷rpm »ò deb µÄËùÓÐÎÄ¼þ¡£
µÚÒ»´ÎÏÂÔØÐèÒª±È½Ï³¤µÄÊ±¼ä£¬µ«ÒÔºóÈç¹ûÄúÔÙÐèÒª¸üÐÂ£¬¾Í²»ÐèÒªÏÂÔØÄÇÃ´
¶àµÄ¶«Î÷ÁË£¬Ö»ÐèÒª½øÈë cman µÄÄ¿Â¼Àï£¬Ö´ÐÐ£º
$cvs -z3 -PAd update

Èç¹ûÄúµÄÆ½Ì¨ÊÇ windows£¬ÄÇÃ´Äú¿ÉÒÔÓÐÁ½ÖÖÊ¹ÓÃ CVS µÄ·½·¨£¬µÚÒ»ÖÖÊÇµ½
www.cygwin.com ÏÂÔØ cygwin °ü£¬°²×°µ½ÏµÍ³ÖÐ£¬ÔËÐÐ cygwin Ö®ºóµÄËùÓÐ
·½·¨¶¼ÊÇºÍÔÚ linux »òÕß unix ÀïÒ»ÑùµÄ£¬ÕâÀï¾Í²»¶àËµÁË¡£Èç¹ûÄúÊ¹ÓÃµÄ
ÊÇ cvs µÄ windows ¿Í»§¶ËÈí¼þ WinCVS µÄ»°£¬ÄÇÃ´Äú¿ÉÒÔ°´ÕÕÏÂÃæ²½Öè£º
£¨ÃüÁîÖÐµÄ ¡°->¡±±íÊ¾²Ëµ¥¼¶Áª£©£º
µÚÒ»£¬Admin->preferenes->General->Enter the CVSROOT£¬ÊäÈë
:pserver:anonymous@202.204.24.8:/home/cvsroot
µÚ¶þ£¬µÇÂ½ CVS ·þÎñÆ÷
Admin->login...
µÚÈý£¬×¥È¡ËùÓÐ cman ÎÄ¼þ£º
Create->Chechout module->checkout settings->enter the..
ÊäÈëcman£¨»òÕßÄ³¸öÊÖ²áÒ³µÄÄÚÈÝ£©
Local folder checkout to´¦ÊäÈë£ºÄãµÄ¹¤×÷Ä¿Â¼£¨±¾µØÄ¿Â¼£©
Ê¹ÓÃÑ¹ËõÑ¡Ïî Golbals->Use tcp/ip compression
µÚËÄ£¬ÒÔºó¸üÐÂÊÖ²áÒ³µÄÊ±ºò¿ÉÒÔ£º
Modify->Update selection...

×ÜÖ®£¬²»ÍÆ¼öÊ¹ÓÃwindows À´²Ù×÷¡£



12, ÎªÊ²Ã´ÎÒµÄÊÖ²áÒ³Ò»ÐÐÖÐÓÐÊ±¿Õ°×ºÜ´ó£»ÓÐÊ±Ã»ÓÐ¿Õ°×£¬·´¶ø³öÏÖ¶ÏÐÐ´í
ÎóºÍÂÒÂë£¿

troff ¸ñÊ½ÊÇÍ¨¹ý groff/troff ³ÌÐò¹ýÂË²úÉúÊä³öµÄ¡£¶øÄ³Ð©°æ±¾µÄ groff 
ÊÇ°´Ó¢ÎÄÏ°¹ß¶ÏÐÐ¡£ËüÊ¹ÓÃÓ¢ÎÄ¿Õ°×·û (ASCII Öµ 0x20) ºÍÓ¢ÎÄ¶Ï´Ê·¨¾ö¶¨
¶ÏÐÐµÄÎ»ÖÃ£¬È»ºó°ÑÃ¿ÐÐÓ¢ÎÄÖØÐÂÅÅ°æ£¬Ê¹Ö®Á½±ß¶ÔÆë¡£
¿ÉÊÇÖÐÎÄ´ÊÓë´ÊÖ®¼äÊÇÃ»ÓÐ¿Õ¸ñµÄ£¬¶ÏÐÐÒªÇóÓëÓ¢ÎÄÒ²´ó²»ÏàÍ¬¡£ÒòÎªÍ¨³£ÔÚ
ÖÐÓ¢ÎÄ½»ÌæÊ±¼Ó¸ö¿Õ¸ñ£¬ groff/troff Ö»ÄÜÒÀ¿¿ÕâÐ©ÓÐÏÞµÄ¿Õ¸ñ¶ÏÐÐÁË¡£Ò»
¾äÖÐ¼äÎÞ¿Õ¸ñµÄÖÐÎÄ¾ä»á±»¿´×÷Ò»¸öÓ¢ÎÄ´Ê£¨¶øÇÒÊÇÎÞ·¨ÓÃ¶Ï´Ê·¨¶Ï´ÊµÄ£©¡£
Èç¹ûÖÐÎÄ¾äºÜ¶Ì£¬ groff/troff »áÈÏÎªÒ»ÐÐÖ»ÓÐºÜÉÙ¼¸¸ö´Ê£¬À­ÉìÊ¹Ö®Á½±ß
¶ÔÆë£¬¾Í³öÏÖÁË½Ï´óµÄ¿Õ°×£»Èç¹ûÖÐÎÄ¾äºÜ³¤£¬ groff/troff »á±¨¸æ 
"warning: can't break line" £¬ÎÞ·¨¶ÏÐÐ£¬¶øÒ»Ö±ÅÅÏÂÈ¥£¬µ½ÐÐÎ²Ê±Èô´¦ÓÚ
Ò»¸öºº×ÖÖÐ¼ä£¨Ò»¸öºº×Ö±»ÊÓÎªÁ½¸öÓ¢ÎÄ×Ö·û£©£¬Ç¿ÐÐ¶Ï¿ª£¬ÏÂÒ»ÐÐ¾Í»á³öÏÖ
ÂÒÂë¡£

×îÐÂ°æ±¾groff ÖÐÃ»ÓÐÕâÐ©ÎÊÌâ¡£


13£¬ÈçºÎÊ¹ÓÃÖÐÎÄÊÖ²áÒ³£¿

Çë²é¿´README ÎÄ¼þÀ´»ñµÃ°²×°°ïÖú
Çëµ½ÌÖÂÛ°æ²é¿´²»Í¬µÄÏµÍ³µÄÄ¬ÈÏÓïÑÔ»·¾³£¬ÏàÓ¦µÄ²é¿´ÖÐÎÄÊÖ²áÒ³µÄ°ì·¨¡£
Ò»°ãËµÀ´£¬yelp (°æ±¾2.4 ÒÔºó)×ÜÊÇ¿ÉÒÔÓÃµÄ£¬man ¿ÉÄÜÓÐÎÊÌâ£¬konqueror
Ò²¿ÉÄÜÓÐÎÊÌâ¡£Èç¹ûÓïÑÔ»·¾³ÊÇzh_CN.GB* ÄÇÃ´Ó¦µ±Ê¹ÓÃcman ÃüÁî.
ÖÕ¶ËÏÂÊ¹ÓÃzhcon + cman Ã»ÓÐÎÊÌâ

