1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
3

T'íc<Žã@sÀdZdZddlZddlZejdkr&eZddlZddlmZm	Z	m
Z
yddlZWn ek
rnddl
jjZYnXdZdZdZdZdZdZGd	d
„d
e	jƒZGdd„deƒZGd
d„dejƒZdS)a×
Simple man page writer for reStructuredText.

Man pages (short for "manual pages") contain system documentation on unix-like
systems. The pages are grouped in numbered sections:

 1 executable programs and shell commands
 2 system calls
 3 library functions
 4 special files
 5 file formats
 6 games
 7 miscellaneous
 8 system administration

Man pages are written *troff*, a text file formatting system.

See http://www.tldp.org/HOWTO/Man-Page for a start.

Man pages have no subsection only parts.
Standard parts

  NAME ,
  SYNOPSIS ,
  DESCRIPTION ,
  OPTIONS ,
  FILES ,
  SEE ALSO ,
  BUGS ,

and

  AUTHOR .

A unix-like system keeps an index of the DESCRIPTIONs, which is accessible
by the command whatis or apropos.

ZreStructuredTextéNé)ÚnodesÚwritersÚ	languageség@aw.
.nr rst2man-indent-level 0
.
.de1 rstReportMargin
\\$1 \\n[an-margin]
level \\n[rst2man-indent-level]
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
-
\\n[rst2man-indent0]
\\n[rst2man-indent1]
\\n[rst2man-indent2]
..
.de1 INDENT
.\" .rstReportMargin pre:
. RS \\$1
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
. nr rst2man-indent-level +1
.\" .rstReportMargin post:
..
.de UNINDENT
. RE
.\" indent \\n[an-margin]
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
.nr rst2man-indent-level -1
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
..
c@s$eZdZdZdZdd„Zdd„ZdS)ÚWriterÚmanpageNcCstjj|ƒt|_dS)N)rrÚ__init__Ú
TranslatorÚtranslator_class)Úself©r
ú</tmp/pip-build-gk9425m9/docutils/docutils/writers/manpage.pyr	iszWriter.__init__cCs&|j|jƒ}|jj|ƒ|jƒ|_dS)N)rÚdocumentZ	walkaboutÚastextÚoutput)rÚvisitorr
r
rÚ	translatemszWriter.translate)r)Ú__name__Ú
__module__Ú__qualname__Ú	supportedrr	rr
r
r
rrasrc@s<eZdZdd„Zdd„Zdd„Zdd„Zd	d
„Zdd„Zd
S)ÚTablecCsg|_dg|_d|_g|_dS)NÚcenterú	)Ú_rowsÚ_optionsÚ	_tab_charÚ_coldefs)rr
r
rr	tszTable.__init__cCs|jjgƒdS)N)rÚappend)rr
r
rÚnew_rowysz
Table.new_rowcCs|jj|gƒdS)z$Append the separator for table head.N)rr)rÚ	separatorr
r
rÚappend_separator{szTable.append_separatorcCs`d}t|ƒdkr |ddkr d}|jdj||d…ƒt|jƒt|jdƒkr\|jjdƒdS)zcell_lines is an array of linesrz.sp
éNÚléÿÿÿÿr%)Úlenrrr)rÚ
cell_linesÚstartr
r
rÚappend_cell~szTable.append_cellcCs<x|r|ddkr|d=qWx|r6|ddkr6|d	=qWdS)
z3Remove leading and trailing blank and ``.sp`` linesrÚ
ú.sp
r#N)r*r+r%)r*r+r%r
)rr'r
r
rÚ_minimize_cell†s
zTable._minimize_cellcCsîdg}|jdj|jƒdƒ|jddj|jƒƒx¢|jD]˜}|jdƒ|jdƒx~tt|ƒƒD]n}||}|j|ƒ|j|ƒ|d
j	d	ƒsž|dd	7<|t|ƒdkrÄ|jd
|j
dƒq`|jdƒq`Wq:W|jdƒ|jdƒ|S)Nz.TS
ú z;
z|%s|.
ú|z_
zT{
r#r*zT}zT}
z.TE
r%r%)rÚjoinrrrÚranger&r,ÚextendÚendswithr)rÚtextÚrowÚiÚcellr
r
rÚas_listŒs$





z
Table.as_listN)	rrrr	r r"r)r,r7r
r
r
rrssrc@s,eZdZdZejdƒZejdƒZdZdd„Z	dd„Z
d	d
„Zdd„Zd
d„Z
dd„Zdd„Zdd„Zdd„Zdd„Zdd„Zdd„Zdd„Zdd „Zdzd"d#„Zd$d%„Zd&d'„ZeZd(d)„Zd*d+„Zd,d-„ZeZd.d/„Zd0d1„Z d2d3„Z!d4d5„Z"d6d7„Z#d8d9„Z$d:d;„Z%d<d=„Z&d>d?„Z'eZ(d@dA„Z)dBdC„Z*dDdE„Z+dFdG„Z,dHdI„Z-dJdK„Z.dLdM„Z/dNdO„Z0ejdPƒj1fdQdR„Z2dSdT„Z3eZ4dUdV„Z5dWdX„Z6dYdZ„Z7d[d\„Z8d]d^„Z9d_d`„Z:eZ;dadb„Z<dcdd„Z=dedf„Z>dgdh„Z?didj„Z@dkdl„ZAdmdn„ZBdodp„ZCdqdr„ZDdsdt„ZEdudv„ZFdwdx„ZGdydz„ZHd{d|„ZId}d~„ZJdd€„ZKdd‚„ZLdƒd„„ZMd…d†„ZNd‡dˆ„ZOd‰dŠ„ZPd‹dŒ„ZQddŽ„ZRdd„ZSeZTd‘d’„ZUd“d”„ZVd•d–„ZWd—d˜„ZXd™dš„ZYd›dœ„ZZddž„Z[dŸd „Z\d¡d¢„Z]d£d¤„Z^d¥d¦„Z_d§d¨„Z`d©dª„Zad«d¬„Zbd­d®„Zcd¯d°„Zdd±d²„Zed³d´„Zfdµd¶„Zgd·d¸„Zhd¹dº„Zid»d¼„ZjeZkd½d¾„Zld¿dÀ„ZmdÁd„ZndÃdĄZodÅdƄZpdÇdȄZqdÉdʄZrdËd̄ZseZtdÍd΄ZudÏdЄZvdÑd҄ZwdÓdԄZxdÕdքZyd×d؄ZzdÙdڄZ{dÛd܄Z|dÝdބZ}dßdà„Z~dádâ„Zdãdä„Z€dådæ„Zdçdè„Z‚dédê„Zƒdëdì„Z„dídî„Z…dïdð„Z†dñdò„Z‡dódô„Zˆdõdö„Z‰eZŠd{dødù„Z‹dúdû„ZŒdüdý„Zdþdÿ„ZŽdd„Zdd„Zdd„Z‘dd„Z’dd	„Z“d
d„Z”dd
„Z•dd„Z–dd„Z—dd„Z˜dd„Z™dd„Zšdd„Z›dd„Zœdd„Zdd„Zžd d!„ZŸd"d#„Z d$d%„Z¡d&d'„Z¢d(d)„Z£eZ¤d*d+„Z¥d,d-„Z¦d.d/„Z§d0d1„Z¨d2d3„Z©eZªd4d5„Z«d6d7„Z¬d8d9„Z­d:d;„Z®d<d=„Z¯d>d?„Z°d@dA„Z±dBdC„Z²dDdE„Z³dFdG„Z´dHdI„ZµdJdK„Z¶dLdM„Z·dNdO„Z¸dPdQ„Z¹dRdS„ZºdTdU„Z»dVdW„Z¼dXdY„Z½dZd[„Z¾eZ¿d\d]„ZÀd^d_„ZÁd`da„Zdbdc„ZÐddde„ZĐdfdg„ZŐdhdi„ZƐdjdk„Zǐdldm„ZȐdndo„Zɐdpdq„Zʐdrds„Zːdtdu„Z̐dvdw„ZÍeZΐdxdy„ZÏd!S(|r
Úz	\S+| +|\nz\.\wz)Man page generated from reStructuredText.cCsòtjj||ƒ|j|_}|j}tj||jƒ|_g|_	g|_
g|_d|_g|_
d|_g|_d|_d|_g|_dddddgddddœ	|_g|_i|_d|_d|_d|_d|_d|_d|_g|_d|_dg|_dddddddddd d!d"d#d$dœ|_dS)%Nrr8r#)	ÚtitleÚtitle_upperÚsubtitleÚmanual_sectionÚmanual_groupÚauthorÚdateÚ	copyrightÚversionFú
.INDENT %.1f
ú
.UNINDENT
ú.TPú.TP
.B r*ú\fBú\fPú.sp
.nf
.ft C
ú
.ft P
.fi
ú.TP
ú\fI\%ú\fIú
.B ú.SS ú
.nf
ú
.fi
)ÚindentÚdefinition_list_itemÚ
field_nameÚliteralÚ
literal_blockÚoption_list_itemÚ	referenceÚemphasisÚstrongÚtermÚtitle_referenceztopic-titlez
sidebar-titleÚproblematic)rBrC)rDr8)rEr*)rFrG)rHrI)rJr8)rKrG)rLrG)rFrG)rMr*)rLrG)rN)rN)rOrP)rÚNodeVisitorr	ÚsettingsZ
language_coderZget_languageÚreporterÚlanguageÚheadÚbodyÚfootÚ
section_levelÚcontextZtopic_classÚcolspecsZ	compact_pZcompact_simpleÚ
_list_charÚ_docinfoÚ
_docinfo_keysÚ_docinfo_namesÚ_in_docinfoÚ_field_nameÚ
_active_tableÚ_in_literalÚheader_writtenÚ_line_blockZauthorsÚ_indentÚdefs)rrr^Zlcoder
r
rr	©s\
zTranslator.__init__cs&d‰dj‡fdd„|jdƒDƒƒ}|S)zPReturn commented version of the passed text WITHOUT end of
        line/comment.z.\" r8csg|]}ˆ|d‘qS)r*r
)Ú.0Zin_line)Úprefixr
rú
<listcomp>õsz,Translator.comment_begin.<locals>.<listcomp>r*)r/Úsplit)rr3Zout_textr
)rtrÚ
comment_beginðs

zTranslator.comment_begincCs|j|ƒdS)z,Return commented version of the passed text.z.
)rw)rr3r
r
rÚcommentùszTranslator.commentcCs0t|jƒdkr,|jdddkr,|jjdƒdS)z7Ensure the last line in body is terminated by new line.rr#r*Nr%r%)r&rbr)rr
r
rÚ
ensure_eolýs zTranslator.ensure_eolcCs&|js|jƒxütt|jƒdddƒD]â}|j|dkr(|j|ddd…dkr`d|j|<q(|j|ddd	…d
kr |j|ddd…dkr d|j|<q(|j|dd
kr(|jj|j|dƒr(|j|d	dd…dks|j|d	dd…dkr(d|j|<q(Wdj|j|j|j	ƒS)z0Return the final formatted document as a string.r#rz.sp
Néú.BI ú.IP z.
rz.B éz.TP
r*rz.TP
.B z
.B r8r%)r{r|)
roÚ
append_headerr0r&rbÚpossibly_a_roff_commandÚmatchr/rarc)rr5r
r
rrszTranslator.astextcCs|jddƒ}|jddƒ}|S)Nõ z\ u†z\(dg)Úreplace)rr3r
r
rÚ	deunicodeszTranslator.deunicodecCs||jƒ}|jddƒ}ddddg}x|D]\}}|j||ƒ}q&W|j|ƒ}|jdƒrZd|}|jrl|jd
dƒ}|jj|ƒdS)Nú\z\eú-ú\-ú'ú\(aqõ´ú\'ú`ú\(gaÚ.z\&z
.z
\&.)r…r†)r‡rˆ)r‰rŠ)r‹rŒ)rr‚rƒÚ
startswithrnrbr)rÚnoder3Z
replace_pairsZin_charZ
out_markupr
r
rÚ
visit_Texts

zTranslator.visit_TextcCsdS)Nr
)rrr
r
rÚdepart_Text1szTranslator.depart_Textcs~G‡fdd„dtƒ}dˆkr2|jj|ˆdƒƒn|jj|dƒƒt|jƒdkrf|j|jdjƒƒn|j|jdjƒƒdS)	NcsHeZdZdddœZ‡fdd„Zdd„Zejdkr4eZd
d„Z	dd
„Z
dS)z'Translator.list_start.<locals>.EnumCharz\(buz\(em)ÚbulletÚemdashcsÄ||_dˆkrˆdd|_nd|_d|_|dkrdtttˆjƒƒƒ|_|jtt|jƒƒd7_n\|dkrŠ|jtdƒd7_d|_n6|d	kr°|jtd
ƒd7_d|_n|jdƒrÀd|_dS)
Nr(r#rr}ÚarabicÚ
loweralphaÚarÚ
upperalphaÚAÚromané)Ú_styleÚ_cntrqr&ÚstrÚchildrenÚordr2)rÚstyle)rr
rr	;s 
z0Translator.list_start.<locals>.EnumChar.__init__cSs¨|jdkr|j|jS|jdkr,|j|jS|jd7_|jdkrNd|jS|jdkrbd|jS|jjd	ƒrštj|jƒd
}|jjdƒr’|jƒS|jƒSd|jSdS)
Nr’r“r#r”z%d.r•r—z%c.r™rÚupper)r•r—)	r›Ú
enum_stylerœr2r™ZtoRomanrŽr¡Úlower)rÚresr
r
rÚ__next__Ps





z0Translator.list_start.<locals>.EnumChar.__next__rrcSs|jS)N)rq)rr
r
rÚ	get_widthfsz1Translator.list_start.<locals>.EnumChar.get_widthcSsdt|jƒS)Nz
enum_style-%s)Úlistr›)rr
r
rÚ__repr__hsz0Translator.list_start.<locals>.EnumChar.__repr__N)rr)rrrr¢r	r¥ÚsysÚversion_infoÚnextr¦r¨r
)rr
rÚEnumChar5s
r¬Zenumtyper’r#r}éþÿÿÿr%)Úobjectrgrr&rQr¦)rrr¬r
)rrÚ
list_start4s6zTranslator.list_startcCs|jƒ|jjƒdS)N)ÚdedentrgÚpop)rr
r
rÚlist_enduszTranslator.list_endcCsd}||jS)Nzx.TH "%(title_upper)s" %(manual_section)s "%(date)s" "%(version)s" "%(manual_group)s"
.SH NAME
%(title)s \- %(subtitle)s
)rh)rÚtmplr
r
rÚheaderyszTranslator.headercCs0|jr
dS|jjtƒ|jj|jƒƒd|_dS)z#append header with .TH and .SH NAMENr#)rorarÚ	MACRO_DEFr´)rr
r
rr~€s
zTranslator.append_headercCs|j|dƒdS)NÚaddress)Úvisit_docinfo_item)rrr
r
rÚ
visit_address‹szTranslator.visit_addresscCsdS)Nr
)rrr
r
rÚdepart_addressŽszTranslator.depart_addressNcCs\|rN|jjdƒd|jdd|jjj||ƒjƒ|jddf}|jj|ƒ|j|ƒdS)Nz.sp
z%s%s:%s
rYrr#)rbrrrr`ÚlabelsÚgetr¡Úvisit_block_quote)rrÚnamer
r
rÚvisit_admonition‘s	zTranslator.visit_admonitioncCs|j|ƒdS)N)Údepart_block_quote)rrr
r
rÚdepart_admonition¥szTranslator.depart_admonitioncCs|j|dƒdS)NZ	attention)r¾)rrr
r
rÚvisit_attention¨szTranslator.visit_attentioncCsB|dkr|j|j|jƒƒn|jƒ|j|<|jj|ƒtj‚dS)Nr>)rhrrrirÚSkipNode)rrr½r
r
rr·­s
zTranslator.visit_docinfo_itemcCsdS)Nr
)rrr
r
rÚdepart_docinfo_itemµszTranslator.depart_docinfo_itemcCs|j|dƒdS)Nr>)r·)rrr
r
rÚvisit_author¸szTranslator.visit_authorcCsdS)Nr
)rrr
r
rÚ
visit_authors½szTranslator.visit_authorscCsdS)Nr
)rrr
r
rÚdepart_authorsÁszTranslator.depart_authorscCs|jtƒ|jdƒdS)Nr)rQÚBLOCKQOUTE_INDENT)rrr
r
rr¼Äs
zTranslator.visit_block_quotecCs|jƒ|jƒdS)N)r°)rrr
r
rr¿ÊszTranslator.depart_block_quotecCs|j|ƒdS)N)r¯)rrr
r
rÚvisit_bullet_listÎszTranslator.visit_bullet_listcCs|jƒdS)N)r²)rrr
r
rÚdepart_bullet_listÑszTranslator.depart_bullet_listcCsdS)Nr
)rrr
r
rÚ
visit_captionÔszTranslator.visit_captioncCsdS)Nr
)rrr
r
rÚdepart_caption×szTranslator.depart_captioncCs|j|dƒdS)NZcaution)r¾)rrr
r
rÚ
visit_cautionÚszTranslator.visit_cautioncCs0|jƒjddƒd}|jƒ}|jjd|ƒdS)Nr#rz.IP [%s] 5
)rrvÚstriprbr)rrÚnumr
r
rÚvisit_citationßszTranslator.visit_citationcCsdS)Nr
)rrr
r
rÚdepart_citationäszTranslator.depart_citationcCs"|jjd|jƒdƒtj‚dS)Nú[ú])rbrrrrÂ)rrr
r
rÚvisit_citation_referenceçsz#Translator.visit_citation_referencecCsdS)Nr
)rrr
r
rÚvisit_classifierëszTranslator.visit_classifiercCsdS)Nr
)rrr
r
rÚdepart_classifierîszTranslator.depart_classifiercCs|jj|ƒdS)N)rfr)rrr
r
rÚ
visit_colspecñszTranslator.visit_colspeccCsdS)Nr
)rrr
r
rÚdepart_colspecôszTranslator.depart_colspeccCs|jjddt|jƒƒdS)Nz%s.
zL )rbrr&rf)rr
r
rÚwrite_colspecs÷szTranslator.write_colspecsz-(?=-)cCs |jj|j|jƒƒƒtj‚dS)N)rbrrxrrrÂ)rrÚsubr
r
rÚ
visit_commentúszTranslator.visit_commentcCs|j|dƒdS)NÚcontact)r·)rrr
r
rÚ
visit_contactÿszTranslator.visit_contactcCsdS)Nr
)rrr
r
rÚvisit_containerszTranslator.visit_containercCsdS)Nr
)rrr
r
rÚdepart_containerszTranslator.depart_containercCsdS)Nr
)rrr
r
rÚvisit_compound
szTranslator.visit_compoundcCsdS)Nr
)rrr
r
rÚdepart_compound
szTranslator.depart_compoundcCs|j|dƒdS)Nr@)r·)rrr
r
rÚvisit_copyrightszTranslator.visit_copyrightcCs|j|dƒdS)NZdanger)r¾)rrr
r
rÚvisit_dangerszTranslator.visit_dangercCs|j|dƒdS)Nr?)r·)rrr
r
rÚ
visit_dateszTranslator.visit_datecCsdS)Nr
)rrr
r
rÚvisit_decorationszTranslator.visit_decorationcCsdS)Nr
)rrr
r
rÚdepart_decorationszTranslator.depart_decorationcCsdS)Nr
)rrr
r
rÚvisit_definition!szTranslator.visit_definitioncCsdS)Nr
)rrr
r
rÚdepart_definition$szTranslator.depart_definitioncCs|jtƒdS)N)rQÚDEFINITION_LIST_INDENT)rrr
r
rÚvisit_definition_list'sz Translator.visit_definition_listcCs|jƒdS)N)r°)rrr
r
rÚdepart_definition_list*sz!Translator.depart_definition_listcCs|jj|jddƒdS)NrRr)rbrrr)rrr
r
rÚvisit_definition_list_item-sz%Translator.visit_definition_list_itemcCs|jj|jddƒdS)NrRr#)rbrrr)rrr
r
rÚdepart_definition_list_item0sz&Translator.depart_definition_list_itemcCsdS)Nr
)rrr
r
rÚvisit_description3szTranslator.visit_descriptioncCsdS)Nr
)rrr
r
rÚdepart_description6szTranslator.depart_descriptioncCs
d|_dS)Nr#)rk)rrr
r
rÚ
visit_docinfo9szTranslator.visit_docinfocCsd|_|jƒdS)N)rkr~)rrr
r
rÚdepart_docinfo<szTranslator.depart_docinfocCs |jj|jddƒd|_dS)NrUrT)rbrrrrn)rrr
r
rÚvisit_doctest_blockAszTranslator.visit_doctest_blockcCs d|_|jj|jddƒdS)NFrUr#)rnrbrrr)rrr
r
rÚdepart_doctest_blockEszTranslator.depart_doctest_blockcCs&|jj|j|jƒjƒdƒd|_dS)Nr*r)rarrxÚdocument_startÚrstripro)rrr
r
rÚvisit_documentIszTranslator.visit_documentc
Cs"|jdr&|jjddj|jdƒƒd}x¾|jD]´}|dkrž|jjd
|jjj||ƒ|jddd|jddt	|j||jdd|jddfƒq2||kr2||j
kr¼|j
|}n|jjj||ƒ}|jjd||j|fƒq2W|jdr|jjd|jdƒ|jj|jdƒƒdS)Nr>z.SH AUTHOR
%s
z, r@r?r=r<r;r9r:rAr¶z
%s:
%s%s.nf
%s
.fi
%s%srQrr#z
%s: %s
z.SH COPYRIGHT
%s
z%Generated by docutils manpage writer.)	r>r@r?r=r<r;r9r:rA)rhrbrr/rir`rºr»rrrÇrjrx)rrÚskipr½Úlabelr
r
rÚdepart_documentOs4


zTranslator.depart_documentcCs|jj|jddƒdS)NrXr)rbrrr)rrr
r
rÚvisit_emphasislszTranslator.visit_emphasiscCs|jj|jddƒdS)NrXr#)rbrrr)rrr
r
rÚdepart_emphasisoszTranslator.depart_emphasiscCsJd|kr|jjjd|dd|kr4|jjjd|d|jjt|jƒƒdS)NZmorerowsz""table row spanning" not supported)Ú	base_nodeZmorecolsz#"table cell spanning" not supported)rr_Úwarningrerr&rb)rrr
r
rÚvisit_entryrs

zTranslator.visit_entrycCs0|jjƒ}|jj|j|d…ƒ|j|d…=dS)N)rer±rmr)rb)rrr(r
r
rÚdepart_entry|s
zTranslator.depart_entrycCs|j|ƒdS)N)r¯)rrr
r
rÚvisit_enumerated_listsz Translator.visit_enumerated_listcCs|jƒdS)N)r²)rrr
r
rÚdepart_enumerated_list„sz!Translator.depart_enumerated_listcCs|j|dƒdS)NÚerror)r¾)rrr
r
rÚvisit_error‡szTranslator.visit_errorcCsdS)Nr
)rrr
r
rÚvisit_fieldŒszTranslator.visit_fieldcCsdS)Nr
)rrr
r
rÚdepart_fieldszTranslator.depart_fieldcCs:|jr6|jjƒjddƒ}|j|j|<|j||ƒtj‚dS)Nr-Ú_)rkrlr£r‚rjr·rrÂ)rrZname_normalizedr
r
rÚvisit_field_body’s
zTranslator.visit_field_bodycCsdS)Nr
)rrr
r
rÚdepart_field_body™szTranslator.depart_field_bodycCs|jtƒdS)N)rQÚFIELD_LIST_INDENT)rrr
r
rÚvisit_field_listœszTranslator.visit_field_listcCs|jƒdS)N)r°)rrr
r
rÚdepart_field_listŸszTranslator.depart_field_listcCs2|jr|jƒ|_tj‚n|jj|jddƒdS)NrSr)rkrrlrrÂrbrrr)rrr
r
rÚvisit_field_name¢s
zTranslator.visit_field_namecCs|jj|jddƒdS)NrSr#)rbrrr)rrr
r
rÚdepart_field_name©szTranslator.depart_field_namecCs|jdƒ|jdƒdS)Ng@r)rQ)rrr
r
rÚvisit_figure¬s
zTranslator.visit_figurecCs|jƒ|jƒdS)N)r°)rrr
r
rÚ
depart_figure°szTranslator.depart_figurecCs|jjjd|ddS)Nz"footer" not supported)rû)rr_rü)rrr
r
rÚvisit_footer´s
zTranslator.visit_footercCsdS)Nr
)rrr
r
rÚ
depart_footer¸szTranslator.depart_footercCs6|jƒjddƒ\}}|jƒ}|jjd|j|ƒƒdS)Nr#z.IP [%s] 5
)rrvrÍrbrrƒ)rrrÎr3r
r
rÚvisit_footnote»szTranslator.visit_footnotecCsdS)Nr
)rrr
r
rÚdepart_footnoteÀszTranslator.depart_footnotecCs|jjjd|ddS)Nz!"footnote_backrefs" not supported)rû)rr_rü)rrr
r
rÚfootnote_backrefsÃs
zTranslator.footnote_backrefscCs(|jjd|j|jƒƒdƒtj‚dS)NrÑrÒ)rbrrƒrrrÂ)rrr
r
rÚvisit_footnote_referenceÇsz#Translator.visit_footnote_referencecCsdS)Nr
)rrr
r
rÚdepart_footnote_referenceËsz$Translator.depart_footnote_referencecCsdS)Nr
)rrr
r
rÚvisit_generatedÎszTranslator.visit_generatedcCsdS)Nr
)rrr
r
rÚdepart_generatedÑszTranslator.depart_generatedcCst|jƒƒ‚dS)N)ÚNotImplementedErrorr)rrr
r
rÚvisit_headerÔszTranslator.visit_headercCsdS)Nr
)rrr
r
rÚ
depart_header×szTranslator.depart_headercCs|j|dƒdS)NZhint)r¾)rrr
r
rÚ
visit_hintÚszTranslator.visit_hintcCs|jjdƒdS)Nz\s-2\d)rbr)rrr
r
rÚvisit_subscriptßszTranslator.visit_subscriptcCs|jjdƒdS)Nz\u\s0)rbr)rrr
r
rÚdepart_subscriptâszTranslator.depart_subscriptcCs|jjdƒdS)Nz\s-2\u)rbr)rrr
r
rÚvisit_superscriptåszTranslator.visit_superscriptcCs|jjdƒdS)Nz\d\s0)rbr)rrr
r
rÚdepart_superscriptèszTranslator.depart_superscriptcCs|jjdƒdS)Nz\(em )rbr)rrr
r
rÚvisit_attributionëszTranslator.visit_attributioncCs|jjdƒdS)Nr*)rbr)rrr
r
rÚdepart_attributionîszTranslator.depart_attributioncCsj|jjjd|dg}d|jkr0|j|jdƒd|jkrJ|j|jdƒ|jjddj|ƒƒtj‚dS)Nz"image" not supported)rûZaltÚuriz[image: %s]
ú/)	rr_rüÚ
attributesrrbr/rrÂ)rrr3r
r
rÚvisit_imageñs


zTranslator.visit_imagecCs|j|dƒdS)NZ	important)r¾)rrr
r
rÚvisit_importantüszTranslator.visit_importantcCsdS)Nr
)rrr
r
rÚvisit_inlineszTranslator.visit_inlinecCsdS)Nr
)rrr
r
rÚ
depart_inlineszTranslator.depart_inlinecCsDt|jtjƒst|jtjƒr"tj‚|jjjd|d|j	j
dƒdS)Nz"unsupported "label")rûrÑ)Ú
isinstanceÚparentrZfootnoteZcitationrÂrr_rürbr)rrr
r
rÚvisit_labels
zTranslator.visit_labelcCs|jjdƒdS)Nz]
)rbr)rrr
r
rÚdepart_labelszTranslator.depart_labelcCsdS)Nr
)rrr
r
rÚvisit_legendszTranslator.visit_legendcCsdS)Nr
)rrr
r
rÚ
depart_legendszTranslator.depart_legendcCs6|jd7_|jdkr&|jjdƒn|jjdƒdS)Nr#z.nf
z.in +2
)rprbr)rrr
r
rÚvisit_line_blocks
zTranslator.visit_line_blockcCsB|jd8_|jdkr2|jjdƒ|jjdƒn|jjdƒdS)Nr#rz.fi
z.sp
z.in -2
)rprbr)rrr
r
rÚdepart_line_block%s

zTranslator.depart_line_blockcCsdS)Nr
)rrr
r
rÚ
visit_line-szTranslator.visit_linecCs|jjdƒdS)Nr*)rbr)rrr
r
rÚdepart_line0szTranslator.depart_linecCs,|jjdt|jdƒ|jdjƒfƒdS)Nz
.IP %s %d
r#r%r%)rbrr«rgr¦)rrr
r
rÚvisit_list_item3szTranslator.visit_list_itemcCsdS)Nr
)rrr
r
rÚdepart_list_item9szTranslator.depart_list_itemcCs|jj|jddƒdS)NrTr)rbrrr)rrr
r
rÚ
visit_literal<szTranslator.visit_literalcCs|jj|jddƒdS)NrTr#)rbrrr)rrr
r
rÚdepart_literal?szTranslator.depart_literalcCs4|jtƒ|jdƒ|jj|jddƒd|_dS)NrrUT)rQÚLITERAL_BLOCK_INDENTrbrrrrn)rrr
r
rÚvisit_literal_blockBs

zTranslator.visit_literal_blockcCs0d|_|jj|jddƒ|jƒ|jƒdS)NFrUr#)rnrbrrrr°)rrr
r
rÚdepart_literal_blockJszTranslator.depart_literal_blockcCs |jjjd|d|j|ƒdS)Nz"math" role not supported)rû)rr_rür5)rrr
r
rÚ
visit_mathPs
zTranslator.visit_mathcCs|j|ƒdS)N)r6)rrr
r
rÚdepart_mathUszTranslator.depart_mathcCs |jjjd|d|j|ƒdS)Nz"math" directive not supported)rû)rr_rür8)rrr
r
rÚvisit_math_blockXs
zTranslator.visit_math_blockcCs|j|ƒdS)N)r9)rrr
r
rÚdepart_math_block]szTranslator.depart_math_blockcCs|j|dƒdS)NZnote)r¾)rrr
r
rÚ
visit_notegszTranslator.visit_noteçà?cCs4|jd}|jj|ƒ|jj|jdd|ƒdS)Nr#rQrr%)rqrrbrr)rZbyÚstepr
r
rrQls
zTranslator.indentcCs$|jjƒ|jj|jddƒdS)NrQr#)rqr±rbrrr)rr
r
rr°rs
zTranslator.dedentcCs|jtƒdS)N)rQÚOPTION_LIST_INDENT)rrr
r
rÚvisit_option_listvszTranslator.visit_option_listcCs|jƒdS)N)r°)rrr
r
rÚdepart_option_listyszTranslator.depart_option_listcCs|jj|jddƒdS)NrVr)rbrrr)rrr
r
rÚvisit_option_list_item|sz!Translator.visit_option_list_itemcCs|jj|jddƒdS)NrVr#)rbrrr)rrr
r
rÚdepart_option_list_item€sz"Translator.depart_option_list_itemcCs.|jjdƒ|jjt|jƒƒ|jjdƒdS)Nz.B r)rerr&rb)rrr
r
rÚvisit_option_groupƒszTranslator.visit_option_groupcCsR|jjƒ|jjƒ}|j|d…}|j|d…=|jjd|jjƒdj|ƒfƒdS)Nz%s%s
r8)rer±rbrr/)rrZstart_positionr3r
r
rÚdepart_option_groups


zTranslator.depart_option_groupcCs`|jd	dkr6|jd
dkr*|jjdƒn|jjdƒ|jddkrP|jjdƒ|jjdƒdS)Nr#rrz.BIz\fR,\fB z\fP,\fB r„r-r%éýÿÿÿrH)rerbr)rrr
r
rÚvisit_option”szTranslator.visit_optioncCs|jdd7<dS)Nr#r%)re)rrr
r
rÚ
depart_optionŸszTranslator.depart_optioncCsdS)Nr
)rrr
r
rÚvisit_option_string¢szTranslator.visit_option_stringcCsdS)Nr
)rrr
r
rÚdepart_option_string¦szTranslator.depart_option_stringcCsdd|jd	<|ddkr,|jjd|dƒn4|jt|jƒdjdƒrT|jjdƒn|jjdƒdS)
Nz.BIrÚ	delimiterr-z\fB%s r#ú=z \ rH)rerbrr&r2)rrr
r
rÚvisit_option_argument©s
z Translator.visit_option_argumentcCsdS)Nr
)rrr
r
rÚdepart_option_argument´sz!Translator.depart_option_argumentcCs|j|dƒdS)NZorganization)r·)rrr
r
rÚvisit_organization·szTranslator.visit_organizationcCsdS)Nr
)rrr
r
rÚdepart_organizationºszTranslator.depart_organizationcCsLt|jdtjƒ}x4|jj|d…D] }t|tjƒr6q$||krBdSPq$WdS)Nrr#)r)r*rr÷ržZ	Invisible)rrÚfirstÚchildr
r
rÚfirst_child½szTranslator.first_childcCs(|jƒ|j|ƒs|jjdƒd|_dS)Nz.sp
T)ryrUrbrrn)rrr
r
rÚvisit_paragraphÇs
zTranslator.visit_paragraphcCsd|_|jjdƒdS)NFr*)rnrbr)rrr
r
rÚdepart_paragraphÓszTranslator.depart_paragraphcCs|jj|jddƒdS)Nr\r)rbrrr)rrr
r
rÚvisit_problematic×szTranslator.visit_problematiccCs|jj|jddƒdS)Nr\r#)rbrrr)rrr
r
rÚdepart_problematicÚszTranslator.depart_problematiccCs,|jdƒdkr"|jj|jƒdƒtj‚dS)NÚformatrr*)r»rbrrrrÂ)rrr
r
rÚ	visit_rawÝszTranslator.visit_rawcCs|jj|jddƒdS)zE.g. link or email address.rWrN)rbrrr)rrr
r
rÚvisit_referenceãszTranslator.visit_referencecCs|jj|jddƒdS)NrWr#)rbrrr)rrr
r
rÚdepart_referenceçszTranslator.depart_referencecCs|j|dƒdS)NÚrevision)r·)rrr
r
rÚvisit_revisionêszTranslator.visit_revisioncCs|jjƒdS)N)rmr )rrr
r
rÚ	visit_rowïszTranslator.visit_rowcCsdS)Nr
)rrr
r
rÚ
depart_rowòszTranslator.depart_rowcCs|jd7_dS)Nr#)rd)rrr
r
rÚ
visit_sectionõszTranslator.visit_sectioncCs|jd8_dS)Nr#)rd)rrr
r
rÚdepart_sectionøszTranslator.depart_sectioncCs|j|dƒdS)NÚstatus)r·)rrr
r
rÚvisit_statusûszTranslator.visit_statuscCs|jj|jddƒdS)NrYr)rbrrr)rrr
r
rÚvisit_strongszTranslator.visit_strongcCs|jj|jddƒdS)NrYr#)rbrrr)rrr
r
rÚ
depart_strongszTranslator.depart_strongcCs
tj‚dS)zInternal only.N)rrÂ)rrr
r
rÚvisit_substitution_definitionsz(Translator.visit_substitution_definitioncCs|jjjd|ddS)Nz&"substitution_reference" not supported)rû)rr_rü)rrr
r
rÚvisit_substitution_reference
s
z'Translator.visit_substitution_referencecCsjt|jtjƒr&|jj|jddƒn@t|jtjƒrB|j|dƒn$t|jtj	ƒrf|jj|jddƒdS)NrYrr;)
r)r*rÚsidebarrbrrrrr·Úsection)rrr
r
rÚvisit_subtitleszTranslator.visit_subtitlecCs|jj|jdddƒdS)NrYr#z
.PP
)rbrrr)rrr
r
rÚdepart_subtitleszTranslator.depart_subtitlecCsbi}d}|jdƒr|d|d<|jdƒr6d|d}nd}|jjd|d|d|d	|fƒdS)
Nr8Úidr½Úlinez	, line %sz$.IP "System Message: %s/%s (%s:%s)"
ÚtypeÚlevelÚsource)Úhasattrrbr)rrÚattrZbackref_textror
r
rÚvisit_system_messages

zTranslator.visit_system_messagecCsdS)Nr
)rrr
r
rÚdepart_system_message*sz Translator.depart_system_messagecCstƒ|_dS)N)rrm)rrr
r
rÚvisit_table-szTranslator.visit_tablecCs$|jƒ|jj|jjƒƒd|_dS)N)ryrbr1rmr7)rrr
r
rÚdepart_table0szTranslator.depart_tablecCs
tj‚dS)N)rrÂ)rrr
r
rÚvisit_target5szTranslator.visit_targetcCsdS)Nr
)rrr
r
rÚvisit_tbody9szTranslator.visit_tbodycCsdS)Nr
)rrr
r
rÚdepart_tbody<szTranslator.depart_tbodycCs|jj|jddƒdS)NrZr)rbrrr)rrr
r
rÚ
visit_term?szTranslator.visit_termcCs|jj|jddƒdS)NrZr#)rbrrr)rrr
r
rÚdepart_termBszTranslator.depart_termcCsdS)Nr
)rrr
r
rÚvisit_tgroupEszTranslator.visit_tgroupcCsdS)Nr
)rrr
r
rÚ
depart_tgroupHszTranslator.depart_tgroupcCsdS)Nr
)rrr
r
rÚvisit_theadKszTranslator.visit_theadcCsdS)Nr
)rrr
r
rÚdepart_theadOszTranslator.depart_theadcCs|j|dƒdS)NZtip)r¾)rrr
r
rÚ	visit_tipSszTranslator.visit_tipcCsÚt|jtjƒr&|jj|jddƒn°t|jtjƒrL|jj|jddƒnŠt|jtjƒrh|jjdƒnn|j	dkrš|j
ƒ|jd<|j
ƒjƒ|jd<tj
‚n<|j	dkrÊ|jjd|j|j
ƒjƒƒƒtj
‚n|jjd	ƒdS)
Nztopic-titlerz
sidebar-titlez.IP "r9r:r#z.SH %s
z.SS )r)r*rZtopicrbrrrrjÚ
admonitionrdrrhr¡rÂrƒ)rrr
r
rÚvisit_titleXs

zTranslator.visit_titlecCs*t|jtjƒr|jjdƒ|jjdƒdS)Nú"r*)r)r*rrƒrbr)rrr
r
rÚdepart_titlejszTranslator.depart_titlecCs|jj|jddƒdS)zinline citation referencer[rN)rbrrr)rrr
r
rÚvisit_title_referenceosz Translator.visit_title_referencecCs|jj|jddƒdS)Nr[r#)rbrrr)rrr
r
rÚdepart_title_referencessz!Translator.depart_title_referencecCsdS)Nr
)rrr
r
rÚvisit_topicvszTranslator.visit_topiccCsdS)Nr
)rrr
r
rÚdepart_topicyszTranslator.depart_topiccCsdS)Nr
)rrr
r
rÚ
visit_sidebar|szTranslator.visit_sidebarcCsdS)Nr
)rrr
r
rÚdepart_sidebarszTranslator.depart_sidebarcCsdS)Nr
)rrr
r
rÚvisit_rubric‚szTranslator.visit_rubriccCs|jjdƒdS)Nr*)rbr)rrr
r
rÚ
depart_rubric…szTranslator.depart_rubriccCs|jjdƒdS)Nz
.sp
.ce
----
)rbr)rrr
r
rÚvisit_transitionˆszTranslator.visit_transitioncCs|jjdƒdS)Nz
.ce 0
.sp
)rbr)rrr
r
rÚdepart_transitionŽszTranslator.depart_transitioncCs|j|dƒdS)NrA)r·)rrr
r
rÚ
visit_version‘szTranslator.visit_versioncCs|j|dƒdS)Nrü)r¾)rrr
r
rÚ
visit_warning”szTranslator.visit_warningcCstd|jjƒ‚dS)Nz$visiting unimplemented node type: %s)rÚ	__class__r)rrr
r
rÚunimplemented_visit™szTranslator.unimplemented_visit)N)r?)ÐrrrÚ__doc__ÚreÚcompileZwords_and_spacesrrór	rwrxryrrƒrr‘r¯r²r´r~r¸r¹r¾rÀrÁZdepart_attentionr·rÃrÄZ
depart_authorrÅrÆr¼r¿rÈrÉrÊrËrÌZdepart_cautionrÏrÐrÓrÔrÕrÖr×rØrÙrÚrÜZdepart_contactrÝrÞrßràrárâZ
depart_dangerrãrärårærçrérêrërìrírîrïrðrñròrõrørùrúrýrþrÿrrZdepart_errorrrrrr	r
rrr
rrrrrrrrrrrrrZdepart_hintrrrrr r!r%r&Zdepart_importantr'r(r+r,r-r.r/r0r1r2r3r4r5r6r8r9r:r;r<r=r>Zdepart_noterQr°rBrCrDrErFrGrIrJrKrLrOrPrQrRrUrVrWrXrYr[r\r]r_Zdepart_revisionr`rarbrcreZ
depart_statusrfrgrhrirlrmrurvrwrxryrzr{r|r}r~rr€rr‚Z
depart_tipr„r†r‡rˆr‰rŠr‹rŒrrŽrrr‘r’Zdepart_warningr”r
r
r
rr
¢s”

G	A
	


r
)rr)r•Z
__docformat__r–r©rªÚxranger0Zdocutilsrrrr™ÚImportErrorZdocutils.utils.romanÚutilsrrèrArÇr7rµrr®rr]r
r
r
r
rÚ<module>+s(
/