md2man 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 59fe54bcf46356d69451dddf8eaf5e8d29168814
4
- data.tar.gz: 8d52d3a877c1f7cf35682c838b474a1b3806adb1
3
+ metadata.gz: eb8a935bae8676bdadc4ccbe6f2aadb8d876972d
4
+ data.tar.gz: 337ef32c40ab8f70332d80b5e6a3421ef91f4e75
5
5
  SHA512:
6
- metadata.gz: 15eba96090956ce6504079b1371662a0162b16ffeb32af8319e9c33a9b4b82fc86be0c42e0e4bc77e5927e074b7a5d0ac037b96fa854cc22955647d491f1b40a
7
- data.tar.gz: 3eefaf9a8f5a35e34bc3a9cfbb4be2a9b2deb4a7e8bc61cd1818bccc8b9f00bc28e889d653d0cd906274f7066889f389bf3b5882e8769b508a5a7aefa846343e
6
+ metadata.gz: bf58345ff2571169edcf787698f48aaf2c53b3089001e82a19a73e8aca672c9b9333b376373096e42da70e80649fce036055567367f3e7f590d88573f43d72b0
7
+ data.tar.gz: 7d1ae30dd62482ac8c25d42dd4f8e359402ddf59d8b916bdde207727963595419b68cb1da8aeaec29f017d8b8595d61c7c9b1c010540b4130fbd66c07043aea8
data/LICENSE CHANGED
@@ -4,6 +4,7 @@ Copyright 2011 Suraj N. Kurapati <https://github.com/sunaku>
4
4
  Thanks to 2011 Vicent Marti <https://github.com/vmg>
5
5
  Thanks to 2012 Postmodern <https://github.com/postmodern>
6
6
  Thanks to 2013 Bastien Dejean <https://github.com/baskerville>
7
+ Thanks to 2013 Nick Fagerlund <https://github.com/nfagerlund>
7
8
 
8
9
  Permission to use, copy, modify, and/or distribute this software for any
9
10
  purpose with or without fee is hereby granted, provided that the above
data/VERSION.markdown CHANGED
@@ -1,3 +1,27 @@
1
+ ## Version 2.0.2 (2013-09-08)
2
+
3
+ Patch:
4
+
5
+ * GH-14: escape single quotes at beginning of lines
6
+
7
+ See the "CONTROL CHARACTERS" section in the groff(7) manual for details.
8
+
9
+ Thanks to Nick Fagerlund for reporting this bug.
10
+
11
+ * inhibit periods at line beginnings with \& escape
12
+
13
+ * escape text line backslashes as "\e" per groff(7)
14
+
15
+ * better documentation for escaping in normal_text()
16
+
17
+ * it's better to escape backslashes as \[rs] than \e
18
+
19
+ See "Single-Character Escapes" section in groff(7).
20
+
21
+ Other:
22
+
23
+ * switch from double-quoted strings to single quotes
24
+
1
25
  ## Version 2.0.1 (2013-08-29)
2
26
 
3
27
  Patch:
data/bin/md2man-html CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
  =begin =======================================================================
3
3
 
4
- # MD2MAN-HTML 1 2013-08-29 2.0.1
4
+ # MD2MAN-HTML 1 2013-09-08 2.0.2
5
5
 
6
6
  ## NAME
7
7
 
data/bin/md2man-rake CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
  =begin =======================================================================
3
3
 
4
- # MD2MAN-RAKE 1 2013-08-29 2.0.1
4
+ # MD2MAN-RAKE 1 2013-09-08 2.0.2
5
5
 
6
6
  ## NAME
7
7
 
data/bin/md2man-roff CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
  =begin =======================================================================
3
3
 
4
- # MD2MAN-ROFF 1 2013-08-29 2.0.1
4
+ # MD2MAN-ROFF 1 2013-09-08 2.0.2
5
5
 
6
6
  ## NAME
7
7
 
data/lib/md2man/roff.rb CHANGED
@@ -197,7 +197,17 @@ module Md2Man::Roff
197
197
  #---------------------------------------------------------------------------
198
198
 
199
199
  def normal_text text
200
- text.gsub('-', '\\-') if text
200
+ if text then text.
201
+ # escape backslashes so that they appear in the printable output
202
+ gsub('\\', '\\[rs]').
203
+
204
+ # inhibit soft-hyphens so that they appear in the printable output
205
+ gsub('-', '\\-').
206
+
207
+ # inhibit line-beginning control characters (period and single-quote)
208
+ # by prefixing a non-printable, zero-width glyph (backslash-ampersand)
209
+ gsub(/^(?=[.'])/, '\\\\&')
210
+ end
201
211
  end
202
212
 
203
213
  def entity text
@@ -520,346 +530,346 @@ private
520
530
 
521
531
  # see groff_char(7) and "Special Characters" in groff(7)
522
532
  UNICODE_TO_GLYPH = {
523
- 0x0022 => "\\[dq]",
524
- 0x0023 => "\\[sh]",
525
- 0x0024 => "\\[Do]",
533
+ 0x0022 => '\\[dq]',
534
+ 0x0023 => '\\[sh]',
535
+ 0x0024 => '\\[Do]',
526
536
  0x0026 => '&',
527
- 0x0027 => "\\[aq]",
528
- 0x002b => "\\[pl]",
529
- 0x002f => "\\[sl]",
537
+ 0x0027 => '\\[aq]',
538
+ 0x002b => '\\[pl]',
539
+ 0x002f => '\\[sl]',
530
540
  0x003c => '<',
531
- 0x003d => "\\[eq]",
541
+ 0x003d => '\\[eq]',
532
542
  0x003e => '>',
533
- 0x0040 => "\\[at]",
534
- 0x005b => "\\[lB]",
535
- 0x005c => "\\[rs]",
536
- 0x005d => "\\[rB]",
537
- 0x005e => "\\[ha]",
538
- 0x005f => "\\[nl]",
539
- 0x007b => "\\[lC]",
540
- 0x007c => "\\[ba]",
541
- #0x007c => "\\[or]",
542
- 0x007d => "\\[rC]",
543
- 0x007e => "\\[ti]",
544
- 0x00a0 => "\\~",
545
- 0x00a1 => "\\[r!]",
546
- 0x00a2 => "\\[ct]",
547
- 0x00a3 => "\\[Po]",
548
- 0x00a4 => "\\[Cs]",
549
- 0x00a5 => "\\[Ye]",
550
- 0x00a6 => "\\[bb]",
551
- 0x00a7 => "\\[sc]",
552
- 0x00a8 => "\\[ad]",
553
- 0x00a9 => "\\[co]",
554
- 0x00aa => "\\[Of]",
555
- 0x00ab => "\\[Fo]",
556
- 0x00ac => "\\[no]",
557
- #0x00ac => "\\[tno]",
543
+ 0x0040 => '\\[at]',
544
+ 0x005b => '\\[lB]',
545
+ 0x005c => '\\[rs]',
546
+ 0x005d => '\\[rB]',
547
+ 0x005e => '\\[ha]',
548
+ 0x005f => '\\[nl]',
549
+ 0x007b => '\\[lC]',
550
+ 0x007c => '\\[ba]',
551
+ #0x007c => '\\[or]',
552
+ 0x007d => '\\[rC]',
553
+ 0x007e => '\\[ti]',
554
+ 0x00a0 => '\\~',
555
+ 0x00a1 => '\\[r!]',
556
+ 0x00a2 => '\\[ct]',
557
+ 0x00a3 => '\\[Po]',
558
+ 0x00a4 => '\\[Cs]',
559
+ 0x00a5 => '\\[Ye]',
560
+ 0x00a6 => '\\[bb]',
561
+ 0x00a7 => '\\[sc]',
562
+ 0x00a8 => '\\[ad]',
563
+ 0x00a9 => '\\[co]',
564
+ 0x00aa => '\\[Of]',
565
+ 0x00ab => '\\[Fo]',
566
+ 0x00ac => '\\[no]',
567
+ #0x00ac => '\\[tno]',
558
568
  0x00ad => '-',
559
- 0x00ae => "\\[rg]",
560
- 0x00af => "\\[a-]",
561
- 0x00b0 => "\\[de]",
562
- 0x00b1 => "\\[+-]",
563
- #0x00b1 => "\\[t+-]",
564
- 0x00b2 => "\\[S2]",
565
- 0x00b3 => "\\[S3]",
566
- 0x00b4 => "\\[aa]",
567
- 0x00b5 => "\\[mc]",
568
- 0x00b6 => "\\[ps]",
569
- 0x00b7 => "\\[pc]",
570
- 0x00b8 => "\\[ac]",
571
- 0x00b9 => "\\[S1]",
572
- 0x00ba => "\\[Om]",
573
- 0x00bb => "\\[Fc]",
574
- 0x00bc => "\\[14]",
575
- 0x00bd => "\\[12]",
576
- 0x00be => "\\[34]",
577
- 0x00bf => "\\[r?]",
578
- 0x00c0 => "\\[`A]",
579
- 0x00c1 => "\\['A]",
580
- 0x00c2 => "\\[^A]",
581
- 0x00c3 => "\\[~A]",
582
- 0x00c4 => "\\[:A]",
583
- 0x00c5 => "\\[oA]",
584
- 0x00c6 => "\\[AE]",
585
- 0x00c7 => "\\[,C]",
586
- 0x00c8 => "\\[`E]",
587
- 0x00c9 => "\\['E]",
588
- 0x00ca => "\\[^E]",
589
- 0x00cb => "\\[:E]",
590
- 0x00cc => "\\[`I]",
591
- 0x00cd => "\\['I]",
592
- 0x00ce => "\\[^I]",
593
- 0x00cf => "\\[:I]",
594
- 0x00d0 => "\\[-D]",
595
- 0x00d1 => "\\[~N]",
596
- 0x00d2 => "\\[`O]",
597
- 0x00d3 => "\\['O]",
598
- 0x00d4 => "\\[^O]",
599
- 0x00d5 => "\\[~O]",
600
- 0x00d6 => "\\[:O]",
601
- 0x00d7 => "\\[mu]",
602
- #0x00d7 => "\\[tmu]",
603
- 0x00d8 => "\\[/O]",
604
- 0x00d9 => "\\[`U]",
605
- 0x00da => "\\['U]",
606
- 0x00db => "\\[^U]",
607
- 0x00dc => "\\[:U]",
608
- 0x00dd => "\\['Y]",
609
- 0x00de => "\\[TP]",
610
- 0x00df => "\\[ss]",
611
- 0x00e0 => "\\[`a]",
612
- 0x00e1 => "\\['a]",
613
- 0x00e2 => "\\[^a]",
614
- 0x00e3 => "\\[~a]",
615
- 0x00e4 => "\\[:a]",
616
- 0x00e5 => "\\[oa]",
617
- 0x00e6 => "\\[ae]",
618
- 0x00e7 => "\\[,c]",
619
- 0x00e8 => "\\[`e]",
620
- 0x00e9 => "\\['e]",
621
- 0x00ea => "\\[^e]",
622
- 0x00eb => "\\[:e]",
623
- 0x00ec => "\\[`i]",
624
- 0x00ed => "\\['i]",
625
- 0x00ee => "\\[^i]",
626
- 0x00ef => "\\[:i]",
627
- 0x00f0 => "\\[Sd]",
628
- 0x00f1 => "\\[~n]",
629
- 0x00f2 => "\\[`o]",
630
- 0x00f3 => "\\['o]",
631
- 0x00f4 => "\\[^o]",
632
- 0x00f5 => "\\[~o]",
633
- 0x00f6 => "\\[:o]",
634
- 0x00f7 => "\\[di]",
635
- #0x00f7 => "\\[tdi]",
636
- 0x00f8 => "\\[/o]",
637
- 0x00f9 => "\\[`u]",
638
- 0x00fa => "\\['u]",
639
- 0x00fb => "\\[^u]",
640
- 0x00fc => "\\[:u]",
641
- 0x00fd => "\\['y]",
642
- 0x00fe => "\\[Tp]",
643
- 0x00ff => "\\[:y]",
644
- 0x0131 => "\\[.i]",
645
- 0x0132 => "\\[IJ]",
646
- 0x0133 => "\\[ij]",
647
- 0x0141 => "\\[/L]",
648
- 0x0142 => "\\[/l]",
649
- 0x0152 => "\\[OE]",
650
- 0x0153 => "\\[oe]",
651
- 0x0160 => "\\[vS]",
652
- 0x0161 => "\\[vs]",
653
- 0x0178 => "\\[:Y]",
654
- 0x0192 => "\\[Fn]",
655
- 0x02c6 => "\\[a^]",
656
- 0x02dc => "\\[a~]",
657
- 0x0300 => "\\[ga]",
658
- 0x0301 => "\\[aa]",
659
- 0x0302 => "\\[a^]",
660
- 0x0303 => "\\[a~]",
661
- 0x0304 => "\\[a-]",
662
- 0x0306 => "\\[ab]",
663
- 0x0307 => "\\[a.]",
664
- 0x0308 => "\\[ad]",
665
- 0x030a => "\\[ao]",
569
+ 0x00ae => '\\[rg]',
570
+ 0x00af => '\\[a-]',
571
+ 0x00b0 => '\\[de]',
572
+ 0x00b1 => '\\[+-]',
573
+ #0x00b1 => '\\[t+-]',
574
+ 0x00b2 => '\\[S2]',
575
+ 0x00b3 => '\\[S3]',
576
+ 0x00b4 => '\\[aa]',
577
+ 0x00b5 => '\\[mc]',
578
+ 0x00b6 => '\\[ps]',
579
+ 0x00b7 => '\\[pc]',
580
+ 0x00b8 => '\\[ac]',
581
+ 0x00b9 => '\\[S1]',
582
+ 0x00ba => '\\[Om]',
583
+ 0x00bb => '\\[Fc]',
584
+ 0x00bc => '\\[14]',
585
+ 0x00bd => '\\[12]',
586
+ 0x00be => '\\[34]',
587
+ 0x00bf => '\\[r?]',
588
+ 0x00c0 => '\\[`A]',
589
+ 0x00c1 => '\\[\'A]',
590
+ 0x00c2 => '\\[^A]',
591
+ 0x00c3 => '\\[~A]',
592
+ 0x00c4 => '\\[:A]',
593
+ 0x00c5 => '\\[oA]',
594
+ 0x00c6 => '\\[AE]',
595
+ 0x00c7 => '\\[,C]',
596
+ 0x00c8 => '\\[`E]',
597
+ 0x00c9 => '\\[\'E]',
598
+ 0x00ca => '\\[^E]',
599
+ 0x00cb => '\\[:E]',
600
+ 0x00cc => '\\[`I]',
601
+ 0x00cd => '\\[\'I]',
602
+ 0x00ce => '\\[^I]',
603
+ 0x00cf => '\\[:I]',
604
+ 0x00d0 => '\\[-D]',
605
+ 0x00d1 => '\\[~N]',
606
+ 0x00d2 => '\\[`O]',
607
+ 0x00d3 => '\\[\'O]',
608
+ 0x00d4 => '\\[^O]',
609
+ 0x00d5 => '\\[~O]',
610
+ 0x00d6 => '\\[:O]',
611
+ 0x00d7 => '\\[mu]',
612
+ #0x00d7 => '\\[tmu]',
613
+ 0x00d8 => '\\[/O]',
614
+ 0x00d9 => '\\[`U]',
615
+ 0x00da => '\\[\'U]',
616
+ 0x00db => '\\[^U]',
617
+ 0x00dc => '\\[:U]',
618
+ 0x00dd => '\\[\'Y]',
619
+ 0x00de => '\\[TP]',
620
+ 0x00df => '\\[ss]',
621
+ 0x00e0 => '\\[`a]',
622
+ 0x00e1 => '\\[\'a]',
623
+ 0x00e2 => '\\[^a]',
624
+ 0x00e3 => '\\[~a]',
625
+ 0x00e4 => '\\[:a]',
626
+ 0x00e5 => '\\[oa]',
627
+ 0x00e6 => '\\[ae]',
628
+ 0x00e7 => '\\[,c]',
629
+ 0x00e8 => '\\[`e]',
630
+ 0x00e9 => '\\[\'e]',
631
+ 0x00ea => '\\[^e]',
632
+ 0x00eb => '\\[:e]',
633
+ 0x00ec => '\\[`i]',
634
+ 0x00ed => '\\[\'i]',
635
+ 0x00ee => '\\[^i]',
636
+ 0x00ef => '\\[:i]',
637
+ 0x00f0 => '\\[Sd]',
638
+ 0x00f1 => '\\[~n]',
639
+ 0x00f2 => '\\[`o]',
640
+ 0x00f3 => '\\[\'o]',
641
+ 0x00f4 => '\\[^o]',
642
+ 0x00f5 => '\\[~o]',
643
+ 0x00f6 => '\\[:o]',
644
+ 0x00f7 => '\\[di]',
645
+ #0x00f7 => '\\[tdi]',
646
+ 0x00f8 => '\\[/o]',
647
+ 0x00f9 => '\\[`u]',
648
+ 0x00fa => '\\[\'u]',
649
+ 0x00fb => '\\[^u]',
650
+ 0x00fc => '\\[:u]',
651
+ 0x00fd => '\\[\'y]',
652
+ 0x00fe => '\\[Tp]',
653
+ 0x00ff => '\\[:y]',
654
+ 0x0131 => '\\[.i]',
655
+ 0x0132 => '\\[IJ]',
656
+ 0x0133 => '\\[ij]',
657
+ 0x0141 => '\\[/L]',
658
+ 0x0142 => '\\[/l]',
659
+ 0x0152 => '\\[OE]',
660
+ 0x0153 => '\\[oe]',
661
+ 0x0160 => '\\[vS]',
662
+ 0x0161 => '\\[vs]',
663
+ 0x0178 => '\\[:Y]',
664
+ 0x0192 => '\\[Fn]',
665
+ 0x02c6 => '\\[a^]',
666
+ 0x02dc => '\\[a~]',
667
+ 0x0300 => '\\[ga]',
668
+ 0x0301 => '\\[aa]',
669
+ 0x0302 => '\\[a^]',
670
+ 0x0303 => '\\[a~]',
671
+ 0x0304 => '\\[a-]',
672
+ 0x0306 => '\\[ab]',
673
+ 0x0307 => '\\[a.]',
674
+ 0x0308 => '\\[ad]',
675
+ 0x030a => '\\[ao]',
666
676
  0x030b => '\\[a"]',
667
- 0x030c => "\\[ah]",
668
- 0x0327 => "\\[ac]",
669
- 0x0328 => "\\[ho]",
670
- 0x0391 => "\\[*A]",
671
- 0x0392 => "\\[*B]",
672
- 0x0393 => "\\[*G]",
673
- 0x0394 => "\\[*D]",
674
- 0x0395 => "\\[*E]",
675
- 0x0396 => "\\[*Z]",
676
- 0x0397 => "\\[*Y]",
677
- 0x0398 => "\\[*H]",
678
- 0x0399 => "\\[*I]",
679
- 0x039a => "\\[*K]",
680
- 0x039b => "\\[*L]",
681
- 0x039c => "\\[*M]",
682
- 0x039d => "\\[*N]",
683
- 0x039e => "\\[*C]",
684
- 0x039f => "\\[*O]",
685
- 0x03a0 => "\\[*P]",
686
- 0x03a1 => "\\[*R]",
687
- 0x03a3 => "\\[*S]",
688
- 0x03a4 => "\\[*T]",
689
- 0x03a5 => "\\[*U]",
690
- 0x03a6 => "\\[*F]",
691
- 0x03a7 => "\\[*X]",
692
- 0x03a8 => "\\[*Q]",
693
- 0x03a9 => "\\[*W]",
694
- 0x03b1 => "\\[*a]",
695
- 0x03b2 => "\\[*b]",
696
- 0x03b3 => "\\[*g]",
697
- 0x03b4 => "\\[*d]",
698
- 0x03b5 => "\\[*e]",
699
- 0x03b6 => "\\[*z]",
700
- 0x03b7 => "\\[*y]",
701
- 0x03b8 => "\\[*h]",
702
- 0x03b9 => "\\[*i]",
703
- 0x03ba => "\\[*k]",
704
- 0x03bb => "\\[*l]",
705
- 0x03bc => "\\[*m]",
706
- 0x03bd => "\\[*n]",
707
- 0x03be => "\\[*c]",
708
- 0x03bf => "\\[*o]",
709
- 0x03c0 => "\\[*p]",
710
- 0x03c1 => "\\[*r]",
711
- 0x03c2 => "\\[ts]",
712
- 0x03c3 => "\\[*s]",
713
- 0x03c4 => "\\[*t]",
714
- 0x03c5 => "\\[*u]",
715
- 0x03c6 => "\\[+f]",
716
- 0x03c7 => "\\[*x]",
717
- 0x03c8 => "\\[*q]",
718
- 0x03c9 => "\\[*w]",
719
- 0x03d1 => "\\[+h]",
720
- 0x03d5 => "\\[*f]",
721
- 0x03d6 => "\\[+p]",
722
- 0x03f5 => "\\[+e]",
723
- 0x2010 => "\\[hy]",
724
- 0x2013 => "\\[en]",
725
- 0x2014 => "\\[em]",
726
- 0x2018 => "\\[oq]",
727
- 0x2019 => "\\[cq]",
728
- 0x201a => "\\[bq]",
729
- 0x201c => "\\[lq]",
730
- 0x201d => "\\[rq]",
731
- 0x201e => "\\[Bq]",
732
- 0x2020 => "\\[dg]",
733
- 0x2021 => "\\[dd]",
734
- 0x2022 => "\\[bu]",
735
- 0x2030 => "\\[%0]",
736
- 0x2032 => "\\[fm]",
737
- 0x2033 => "\\[sd]",
738
- 0x2039 => "\\[fo]",
739
- 0x203a => "\\[fc]",
740
- 0x203e => "\\[rn]",
741
- 0x2044 => "\\[f/]",
742
- #0x20ac => "\\[Eu]",
743
- 0x20ac => "\\[eu]",
744
- 0x210f => "\\[-h]",
745
- #0x210f => "\\[hbar]",
746
- 0x2111 => "\\[Im]",
747
- 0x2118 => "\\[wp]",
748
- 0x211c => "\\[Re]",
749
- 0x2122 => "\\[tm]",
750
- 0x2135 => "\\[Ah]",
751
- 0x215b => "\\[18]",
752
- 0x215c => "\\[38]",
753
- 0x215d => "\\[58]",
754
- 0x215e => "\\[78]",
755
- 0x2190 => "\\[<-]",
756
- 0x2191 => "\\[ua]",
757
- 0x2192 => "\\[->]",
758
- 0x2193 => "\\[da]",
759
- 0x2194 => "\\[<>]",
760
- 0x2195 => "\\[va]",
761
- 0x21b5 => "\\[CR]",
762
- 0x21d0 => "\\[lA]",
763
- 0x21d1 => "\\[uA]",
764
- 0x21d2 => "\\[rA]",
765
- 0x21d3 => "\\[dA]",
766
- 0x21d4 => "\\[hA]",
767
- 0x21d5 => "\\[vA]",
768
- 0x2200 => "\\[fa]",
769
- 0x2202 => "\\[pd]",
770
- 0x2203 => "\\[te]",
771
- 0x2205 => "\\[es]",
772
- 0x2207 => "\\[gr]",
773
- 0x2208 => "\\[mo]",
774
- 0x2209 => "\\[nm]",
775
- 0x220b => "\\[st]",
776
- 0x220f => "\\[product]",
777
- 0x2210 => "\\[coproduct]",
778
- 0x2211 => "\\[sum]",
779
- 0x2212 => "\\[mi]",
780
- 0x2213 => "\\[-+]",
781
- 0x2217 => "\\[**]",
782
- #0x221a => "\\[sqrt]",
783
- 0x221a => "\\[sr]",
784
- 0x221d => "\\[pt]",
785
- 0x221e => "\\[if]",
786
- 0x2220 => "\\[/_]",
787
- 0x2227 => "\\[AN]",
788
- 0x2228 => "\\[OR]",
789
- 0x2229 => "\\[ca]",
790
- 0x222a => "\\[cu]",
791
- #0x222b => "\\[integral]",
792
- 0x222b => "\\[is]",
793
- 0x2234 => "\\[3d]",
794
- #0x2234 => "\\[tf]",
795
- 0x223c => "\\[ap]",
796
- 0x2243 => "\\[|=]",
797
- 0x2245 => "\\[=~]",
798
- #0x2248 => "\\[~=]",
799
- 0x2248 => "\\[~~]",
800
- 0x2260 => "\\[!=]",
801
- 0x2261 => "\\[==]",
802
- 0x2264 => "\\[<=]",
803
- 0x2265 => "\\[>=]",
804
- 0x226a => "\\[<<]",
805
- 0x226b => "\\[>>]",
806
- 0x2282 => "\\[sb]",
807
- 0x2283 => "\\[sp]",
808
- 0x2284 => "\\[nb]",
809
- 0x2286 => "\\[ib]",
810
- 0x2287 => "\\[ip]",
811
- 0x2295 => "\\[c+]",
812
- 0x2297 => "\\[c*]",
813
- 0x22a5 => "\\[pp]",
814
- 0x22c5 => "\\[md]",
815
- 0x2308 => "\\[lc]",
816
- 0x2309 => "\\[rc]",
817
- 0x230a => "\\[lf]",
818
- 0x230b => "\\[rf]",
819
- 0x2329 => "\\[la]",
820
- 0x232a => "\\[ra]",
821
- 0x239b => "\\[parenlefttp]",
822
- 0x239c => "\\[parenleftex]",
823
- 0x239d => "\\[parenleftbt]",
824
- 0x239e => "\\[parenrighttp]",
825
- 0x239f => "\\[parenrightex]",
826
- 0x23a0 => "\\[parenrightbt]",
827
- 0x23a1 => "\\[bracketlefttp]",
828
- 0x23a2 => "\\[bracketleftex]",
829
- 0x23a3 => "\\[bracketleftbt]",
830
- 0x23a4 => "\\[bracketrighttp]",
831
- 0x23a5 => "\\[bracketrightex]",
832
- 0x23a6 => "\\[bracketrightbt]",
833
- #0x23a7 => "\\[bracelefttp]",
834
- 0x23a7 => "\\[lt]",
835
- #0x23a8 => "\\[braceleftmid]",
836
- 0x23a8 => "\\[lk]",
837
- #0x23a9 => "\\[braceleftbt]",
838
- 0x23a9 => "\\[lb]",
839
- #0x23aa => "\\[braceex]",
840
- #0x23aa => "\\[braceleftex]",
841
- #0x23aa => "\\[bracerightex]",
842
- 0x23aa => "\\[bv]",
843
- #0x23ab => "\\[bracerighttp]",
844
- 0x23ab => "\\[rt]",
845
- #0x23ac => "\\[bracerightmid]",
846
- 0x23ac => "\\[rk]",
847
- #0x23ad => "\\[bracerightbt]",
848
- 0x23ad => "\\[rb]",
849
- 0x23af => "\\[an]",
850
- 0x2502 => "\\[br]",
851
- 0x25a1 => "\\[sq]",
852
- 0x25ca => "\\[lz]",
853
- 0x25cb => "\\[ci]",
854
- 0x261c => "\\[lh]",
855
- 0x261e => "\\[rh]",
856
- 0x2660 => "\\[SP]",
857
- 0x2663 => "\\[CL]",
858
- 0x2665 => "\\[HE]",
859
- 0x2666 => "\\[DI]",
860
- 0x2713 => "\\[OK]",
861
- 0x27e8 => "\\[la]",
862
- 0x27e9 => "\\[ra]",
677
+ 0x030c => '\\[ah]',
678
+ 0x0327 => '\\[ac]',
679
+ 0x0328 => '\\[ho]',
680
+ 0x0391 => '\\[*A]',
681
+ 0x0392 => '\\[*B]',
682
+ 0x0393 => '\\[*G]',
683
+ 0x0394 => '\\[*D]',
684
+ 0x0395 => '\\[*E]',
685
+ 0x0396 => '\\[*Z]',
686
+ 0x0397 => '\\[*Y]',
687
+ 0x0398 => '\\[*H]',
688
+ 0x0399 => '\\[*I]',
689
+ 0x039a => '\\[*K]',
690
+ 0x039b => '\\[*L]',
691
+ 0x039c => '\\[*M]',
692
+ 0x039d => '\\[*N]',
693
+ 0x039e => '\\[*C]',
694
+ 0x039f => '\\[*O]',
695
+ 0x03a0 => '\\[*P]',
696
+ 0x03a1 => '\\[*R]',
697
+ 0x03a3 => '\\[*S]',
698
+ 0x03a4 => '\\[*T]',
699
+ 0x03a5 => '\\[*U]',
700
+ 0x03a6 => '\\[*F]',
701
+ 0x03a7 => '\\[*X]',
702
+ 0x03a8 => '\\[*Q]',
703
+ 0x03a9 => '\\[*W]',
704
+ 0x03b1 => '\\[*a]',
705
+ 0x03b2 => '\\[*b]',
706
+ 0x03b3 => '\\[*g]',
707
+ 0x03b4 => '\\[*d]',
708
+ 0x03b5 => '\\[*e]',
709
+ 0x03b6 => '\\[*z]',
710
+ 0x03b7 => '\\[*y]',
711
+ 0x03b8 => '\\[*h]',
712
+ 0x03b9 => '\\[*i]',
713
+ 0x03ba => '\\[*k]',
714
+ 0x03bb => '\\[*l]',
715
+ 0x03bc => '\\[*m]',
716
+ 0x03bd => '\\[*n]',
717
+ 0x03be => '\\[*c]',
718
+ 0x03bf => '\\[*o]',
719
+ 0x03c0 => '\\[*p]',
720
+ 0x03c1 => '\\[*r]',
721
+ 0x03c2 => '\\[ts]',
722
+ 0x03c3 => '\\[*s]',
723
+ 0x03c4 => '\\[*t]',
724
+ 0x03c5 => '\\[*u]',
725
+ 0x03c6 => '\\[+f]',
726
+ 0x03c7 => '\\[*x]',
727
+ 0x03c8 => '\\[*q]',
728
+ 0x03c9 => '\\[*w]',
729
+ 0x03d1 => '\\[+h]',
730
+ 0x03d5 => '\\[*f]',
731
+ 0x03d6 => '\\[+p]',
732
+ 0x03f5 => '\\[+e]',
733
+ 0x2010 => '\\[hy]',
734
+ 0x2013 => '\\[en]',
735
+ 0x2014 => '\\[em]',
736
+ 0x2018 => '\\[oq]',
737
+ 0x2019 => '\\[cq]',
738
+ 0x201a => '\\[bq]',
739
+ 0x201c => '\\[lq]',
740
+ 0x201d => '\\[rq]',
741
+ 0x201e => '\\[Bq]',
742
+ 0x2020 => '\\[dg]',
743
+ 0x2021 => '\\[dd]',
744
+ 0x2022 => '\\[bu]',
745
+ 0x2030 => '\\[%0]',
746
+ 0x2032 => '\\[fm]',
747
+ 0x2033 => '\\[sd]',
748
+ 0x2039 => '\\[fo]',
749
+ 0x203a => '\\[fc]',
750
+ 0x203e => '\\[rn]',
751
+ 0x2044 => '\\[f/]',
752
+ #0x20ac => '\\[Eu]',
753
+ 0x20ac => '\\[eu]',
754
+ 0x210f => '\\[-h]',
755
+ #0x210f => '\\[hbar]',
756
+ 0x2111 => '\\[Im]',
757
+ 0x2118 => '\\[wp]',
758
+ 0x211c => '\\[Re]',
759
+ 0x2122 => '\\[tm]',
760
+ 0x2135 => '\\[Ah]',
761
+ 0x215b => '\\[18]',
762
+ 0x215c => '\\[38]',
763
+ 0x215d => '\\[58]',
764
+ 0x215e => '\\[78]',
765
+ 0x2190 => '\\[<-]',
766
+ 0x2191 => '\\[ua]',
767
+ 0x2192 => '\\[->]',
768
+ 0x2193 => '\\[da]',
769
+ 0x2194 => '\\[<>]',
770
+ 0x2195 => '\\[va]',
771
+ 0x21b5 => '\\[CR]',
772
+ 0x21d0 => '\\[lA]',
773
+ 0x21d1 => '\\[uA]',
774
+ 0x21d2 => '\\[rA]',
775
+ 0x21d3 => '\\[dA]',
776
+ 0x21d4 => '\\[hA]',
777
+ 0x21d5 => '\\[vA]',
778
+ 0x2200 => '\\[fa]',
779
+ 0x2202 => '\\[pd]',
780
+ 0x2203 => '\\[te]',
781
+ 0x2205 => '\\[es]',
782
+ 0x2207 => '\\[gr]',
783
+ 0x2208 => '\\[mo]',
784
+ 0x2209 => '\\[nm]',
785
+ 0x220b => '\\[st]',
786
+ 0x220f => '\\[product]',
787
+ 0x2210 => '\\[coproduct]',
788
+ 0x2211 => '\\[sum]',
789
+ 0x2212 => '\\[mi]',
790
+ 0x2213 => '\\[-+]',
791
+ 0x2217 => '\\[**]',
792
+ #0x221a => '\\[sqrt]',
793
+ 0x221a => '\\[sr]',
794
+ 0x221d => '\\[pt]',
795
+ 0x221e => '\\[if]',
796
+ 0x2220 => '\\[/_]',
797
+ 0x2227 => '\\[AN]',
798
+ 0x2228 => '\\[OR]',
799
+ 0x2229 => '\\[ca]',
800
+ 0x222a => '\\[cu]',
801
+ #0x222b => '\\[integral]',
802
+ 0x222b => '\\[is]',
803
+ 0x2234 => '\\[3d]',
804
+ #0x2234 => '\\[tf]',
805
+ 0x223c => '\\[ap]',
806
+ 0x2243 => '\\[|=]',
807
+ 0x2245 => '\\[=~]',
808
+ #0x2248 => '\\[~=]',
809
+ 0x2248 => '\\[~~]',
810
+ 0x2260 => '\\[!=]',
811
+ 0x2261 => '\\[==]',
812
+ 0x2264 => '\\[<=]',
813
+ 0x2265 => '\\[>=]',
814
+ 0x226a => '\\[<<]',
815
+ 0x226b => '\\[>>]',
816
+ 0x2282 => '\\[sb]',
817
+ 0x2283 => '\\[sp]',
818
+ 0x2284 => '\\[nb]',
819
+ 0x2286 => '\\[ib]',
820
+ 0x2287 => '\\[ip]',
821
+ 0x2295 => '\\[c+]',
822
+ 0x2297 => '\\[c*]',
823
+ 0x22a5 => '\\[pp]',
824
+ 0x22c5 => '\\[md]',
825
+ 0x2308 => '\\[lc]',
826
+ 0x2309 => '\\[rc]',
827
+ 0x230a => '\\[lf]',
828
+ 0x230b => '\\[rf]',
829
+ 0x2329 => '\\[la]',
830
+ 0x232a => '\\[ra]',
831
+ 0x239b => '\\[parenlefttp]',
832
+ 0x239c => '\\[parenleftex]',
833
+ 0x239d => '\\[parenleftbt]',
834
+ 0x239e => '\\[parenrighttp]',
835
+ 0x239f => '\\[parenrightex]',
836
+ 0x23a0 => '\\[parenrightbt]',
837
+ 0x23a1 => '\\[bracketlefttp]',
838
+ 0x23a2 => '\\[bracketleftex]',
839
+ 0x23a3 => '\\[bracketleftbt]',
840
+ 0x23a4 => '\\[bracketrighttp]',
841
+ 0x23a5 => '\\[bracketrightex]',
842
+ 0x23a6 => '\\[bracketrightbt]',
843
+ #0x23a7 => '\\[bracelefttp]',
844
+ 0x23a7 => '\\[lt]',
845
+ #0x23a8 => '\\[braceleftmid]',
846
+ 0x23a8 => '\\[lk]',
847
+ #0x23a9 => '\\[braceleftbt]',
848
+ 0x23a9 => '\\[lb]',
849
+ #0x23aa => '\\[braceex]',
850
+ #0x23aa => '\\[braceleftex]',
851
+ #0x23aa => '\\[bracerightex]',
852
+ 0x23aa => '\\[bv]',
853
+ #0x23ab => '\\[bracerighttp]',
854
+ 0x23ab => '\\[rt]',
855
+ #0x23ac => '\\[bracerightmid]',
856
+ 0x23ac => '\\[rk]',
857
+ #0x23ad => '\\[bracerightbt]',
858
+ 0x23ad => '\\[rb]',
859
+ 0x23af => '\\[an]',
860
+ 0x2502 => '\\[br]',
861
+ 0x25a1 => '\\[sq]',
862
+ 0x25ca => '\\[lz]',
863
+ 0x25cb => '\\[ci]',
864
+ 0x261c => '\\[lh]',
865
+ 0x261e => '\\[rh]',
866
+ 0x2660 => '\\[SP]',
867
+ 0x2663 => '\\[CL]',
868
+ 0x2665 => '\\[HE]',
869
+ 0x2666 => '\\[DI]',
870
+ 0x2713 => '\\[OK]',
871
+ 0x27e8 => '\\[la]',
872
+ 0x27e9 => '\\[ra]',
863
873
  }
864
874
 
865
875
  end
@@ -1,3 +1,3 @@
1
1
  module Md2Man
2
- VERSION = "2.0.1"
2
+ VERSION = "2.0.2"
3
3
  end
data/man/index.html CHANGED
@@ -2,7 +2,7 @@
2
2
  <html>
3
3
  <head>
4
4
  <meta charset="utf-8" />
5
- <meta name="generator" content="md2man 2.0.1 https://github.com/sunaku/md2man" />
5
+ <meta name="generator" content="md2man 2.0.2 https://github.com/sunaku/md2man" />
6
6
  <title>man/index</title>
7
7
  <link rel="stylesheet" href="style.css"/>
8
8
  <!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
data/man/man0/README.html CHANGED
@@ -2,7 +2,7 @@
2
2
  <html>
3
3
  <head>
4
4
  <meta charset="utf-8" />
5
- <meta name="generator" content="md2man 2.0.1 https://github.com/sunaku/md2man" />
5
+ <meta name="generator" content="md2man 2.0.2 https://github.com/sunaku/md2man" />
6
6
  <title>README</title>
7
7
  <link rel="stylesheet" href="../style.css"/>
8
8
  <!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
@@ -2,12 +2,24 @@
2
2
  <html>
3
3
  <head>
4
4
  <meta charset="utf-8" />
5
- <meta name="generator" content="md2man 2.0.1 https://github.com/sunaku/md2man" />
5
+ <meta name="generator" content="md2man 2.0.2 https://github.com/sunaku/md2man" />
6
6
  <title>VERSION</title>
7
7
  <link rel="stylesheet" href="../style.css"/>
8
8
  <!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
9
9
  </head>
10
- <body><div class="navbar"><div class="navbar-inner"><span class="brand"><a href="../index.html#man0">man0</a>/VERSION</span></div></div><div class="container-fluid"><h2 id="Version-2-0-1-2013-08-29">Version 2.0.1 (2013-08-29)</h2><p>Patch:</p>
10
+ <body><div class="navbar"><div class="navbar-inner"><span class="brand"><a href="../index.html#man0">man0</a>/VERSION</span></div></div><div class="container-fluid"><h2 id="Version-2-0-2-2013-09-08">Version 2.0.2 (2013-09-08)</h2><p>Patch:</p>
11
+ <ul>
12
+ <li><p>GH-14: escape single quotes at beginning of lines</p><p>See the &quot;CONTROL CHARACTERS&quot; section in the <a class="md2man-xref">groff(7)</a> manual for details.</p><p>Thanks to Nick Fagerlund for reporting this bug.</p></li>
13
+ <li><p>inhibit periods at line beginnings with &amp; escape</p></li>
14
+ <li><p>escape text line backslashes as &quot;\e&quot; per <a class="md2man-xref">groff(7)</a></p></li>
15
+ <li><p>better documentation for escaping in normal_text()</p></li>
16
+ <li><p>it&#39;s better to escape backslashes as [rs] than \e</p><p>See &quot;Single-Character Escapes&quot; section in <a class="md2man-xref">groff(7)</a>.</p></li>
17
+ </ul>
18
+ <p>Other:</p>
19
+ <ul>
20
+ <li>switch from double-quoted strings to single quotes</li>
21
+ </ul>
22
+ <h2 id="Version-2-0-1-2013-08-29">Version 2.0.1 (2013-08-29)</h2><p>Patch:</p>
11
23
  <ul>
12
24
  <li><p>Use a proper CDN to access Bootstrap 2.3.2 styling in HTML output.</p></li>
13
25
  <li><p>Ensure that man/ directory exists for the <code>md2man:web</code> Rake task.</p></li>
@@ -1,3 +1,27 @@
1
+ ## Version 2.0.2 (2013-09-08)
2
+
3
+ Patch:
4
+
5
+ * GH-14: escape single quotes at beginning of lines
6
+
7
+ See the "CONTROL CHARACTERS" section in the groff(7) manual for details.
8
+
9
+ Thanks to Nick Fagerlund for reporting this bug.
10
+
11
+ * inhibit periods at line beginnings with \& escape
12
+
13
+ * escape text line backslashes as "\e" per groff(7)
14
+
15
+ * better documentation for escaping in normal_text()
16
+
17
+ * it's better to escape backslashes as \[rs] than \e
18
+
19
+ See "Single-Character Escapes" section in groff(7).
20
+
21
+ Other:
22
+
23
+ * switch from double-quoted strings to single quotes
24
+
1
25
  ## Version 2.0.1 (2013-08-29)
2
26
 
3
27
  Patch:
@@ -1,4 +1,4 @@
1
- .TH MD2MAN\-HTML 1 2013\-08\-29 2.0.1
1
+ .TH MD2MAN\-HTML 1 2013\-09\-08 2.0.2
2
2
  .SH NAME
3
3
  .PP
4
4
  md2man\-html \- convert
@@ -2,12 +2,12 @@
2
2
  <html>
3
3
  <head>
4
4
  <meta charset="utf-8" />
5
- <meta name="generator" content="md2man 2.0.1 https://github.com/sunaku/md2man" />
5
+ <meta name="generator" content="md2man 2.0.2 https://github.com/sunaku/md2man" />
6
6
  <title>md2man-html(1) &mdash; convert md2man(5) flavored markdown(7) into HTML</title>
7
7
  <link rel="stylesheet" href="../style.css"/>
8
8
  <!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
9
9
  </head>
10
- <body><div class="navbar"><div class="navbar-inner"><span class="brand"><a href="../index.html#man1">man1</a>/md2man-html.1</span></div></div><div class="container-fluid"><h1 id="MD2MAN-HTML-1-2013-08-29-2-0-1">MD2MAN-HTML 1 2013-08-29 2.0.1</h1><h2 id="NAME">NAME</h2><p>md2man-html - convert <a class="md2man-xref" href="../man5/md2man.5.html">md2man(5)</a> flavored <a class="md2man-xref">markdown(7)</a> into HTML</p><h2 id="SYNOPSIS">SYNOPSIS</h2><p><code>md2man-html</code> [<em>OPTION</em>]... [<em>FILE</em>]</p><h2 id="DESCRIPTION">DESCRIPTION</h2><p>This program converts <a class="md2man-xref" href="../man5/md2man.5.html">md2man(5)</a> flavored <a class="md2man-xref">markdown(7)</a> input from the given
10
+ <body><div class="navbar"><div class="navbar-inner"><span class="brand"><a href="../index.html#man1">man1</a>/md2man-html.1</span></div></div><div class="container-fluid"><h1 id="MD2MAN-HTML-1-2013-09-08-2-0-2">MD2MAN-HTML 1 2013-09-08 2.0.2</h1><h2 id="NAME">NAME</h2><p>md2man-html - convert <a class="md2man-xref" href="../man5/md2man.5.html">md2man(5)</a> flavored <a class="md2man-xref">markdown(7)</a> into HTML</p><h2 id="SYNOPSIS">SYNOPSIS</h2><p><code>md2man-html</code> [<em>OPTION</em>]... [<em>FILE</em>]</p><h2 id="DESCRIPTION">DESCRIPTION</h2><p>This program converts <a class="md2man-xref" href="../man5/md2man.5.html">md2man(5)</a> flavored <a class="md2man-xref">markdown(7)</a> input from the given
11
11
  <em>FILE</em> into HTML and then prints the result to the standard output stream.
12
12
  If <em>FILE</em> is not given, then the standard input stream is read in its place.</p><h3 id="Cross-references">Cross references</h3><p>Cross references to manual pages are emitted as HTML hyperlinks that have
13
13
  <code>class=&quot;md2man-xref&quot;</code> and <code>href=&quot;../man$SECTION/$PAGE.$SECTION.html&quot;</code>
@@ -1,4 +1,4 @@
1
- .TH MD2MAN\-RAKE 1 2013\-08\-29 2.0.1
1
+ .TH MD2MAN\-RAKE 1 2013\-09\-08 2.0.2
2
2
  .SH NAME
3
3
  .PP
4
4
  md2man\-rake \- run
@@ -2,12 +2,12 @@
2
2
  <html>
3
3
  <head>
4
4
  <meta charset="utf-8" />
5
- <meta name="generator" content="md2man 2.0.1 https://github.com/sunaku/md2man" />
5
+ <meta name="generator" content="md2man 2.0.2 https://github.com/sunaku/md2man" />
6
6
  <title>md2man-rake(1) &mdash; run rake(1) tasks from md2man(1)</title>
7
7
  <link rel="stylesheet" href="../style.css"/>
8
8
  <!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
9
9
  </head>
10
- <body><div class="navbar"><div class="navbar-inner"><span class="brand"><a href="../index.html#man1">man1</a>/md2man-rake.1</span></div></div><div class="container-fluid"><h1 id="MD2MAN-RAKE-1-2013-08-29-2-0-1">MD2MAN-RAKE 1 2013-08-29 2.0.1</h1><h2 id="NAME">NAME</h2><p>md2man-rake - run <a class="md2man-xref">rake(1)</a> tasks from <a class="md2man-xref">md2man(1)</a></p><h2 id="SYNOPSIS">SYNOPSIS</h2><p><code>md2man-rake</code> [<em>OPTION</em>]... [<em>TASK</em>]...</p><h2 id="DESCRIPTION">DESCRIPTION</h2><p>This program lets you run <a class="md2man-xref">rake(1)</a> tasks provided by <a class="md2man-xref">md2man(1)</a> without having
10
+ <body><div class="navbar"><div class="navbar-inner"><span class="brand"><a href="../index.html#man1">man1</a>/md2man-rake.1</span></div></div><div class="container-fluid"><h1 id="MD2MAN-RAKE-1-2013-09-08-2-0-2">MD2MAN-RAKE 1 2013-09-08 2.0.2</h1><h2 id="NAME">NAME</h2><p>md2man-rake - run <a class="md2man-xref">rake(1)</a> tasks from <a class="md2man-xref">md2man(1)</a></p><h2 id="SYNOPSIS">SYNOPSIS</h2><p><code>md2man-rake</code> [<em>OPTION</em>]... [<em>TASK</em>]...</p><h2 id="DESCRIPTION">DESCRIPTION</h2><p>This program lets you run <a class="md2man-xref">rake(1)</a> tasks provided by <a class="md2man-xref">md2man(1)</a> without having
11
11
  to create a special file named <code>Rakefile</code> that contains the following snippet:</p>
12
12
  <pre><code>require &#39;md2man/rakefile&#39;
13
13
  </code></pre>
@@ -1,4 +1,4 @@
1
- .TH MD2MAN\-ROFF 1 2013\-08\-29 2.0.1
1
+ .TH MD2MAN\-ROFF 1 2013\-09\-08 2.0.2
2
2
  .SH NAME
3
3
  .PP
4
4
  md2man\-roff \- convert
@@ -2,12 +2,12 @@
2
2
  <html>
3
3
  <head>
4
4
  <meta charset="utf-8" />
5
- <meta name="generator" content="md2man 2.0.1 https://github.com/sunaku/md2man" />
5
+ <meta name="generator" content="md2man 2.0.2 https://github.com/sunaku/md2man" />
6
6
  <title>md2man-roff(1) &mdash; convert md2man(5) flavored markdown(7) into roff(7)</title>
7
7
  <link rel="stylesheet" href="../style.css"/>
8
8
  <!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
9
9
  </head>
10
- <body><div class="navbar"><div class="navbar-inner"><span class="brand"><a href="../index.html#man1">man1</a>/md2man-roff.1</span></div></div><div class="container-fluid"><h1 id="MD2MAN-ROFF-1-2013-08-29-2-0-1">MD2MAN-ROFF 1 2013-08-29 2.0.1</h1><h2 id="NAME">NAME</h2><p>md2man-roff - convert <a class="md2man-xref" href="../man5/md2man.5.html">md2man(5)</a> flavored <a class="md2man-xref">markdown(7)</a> into <a class="md2man-xref">roff(7)</a></p><h2 id="SYNOPSIS">SYNOPSIS</h2><p><code>md2man-roff</code> [<em>OPTION</em>]... [<em>FILE</em>]</p><h2 id="DESCRIPTION">DESCRIPTION</h2><p>This program converts <a class="md2man-xref" href="../man5/md2man.5.html">md2man(5)</a> flavored <a class="md2man-xref">markdown(7)</a> input from the given
10
+ <body><div class="navbar"><div class="navbar-inner"><span class="brand"><a href="../index.html#man1">man1</a>/md2man-roff.1</span></div></div><div class="container-fluid"><h1 id="MD2MAN-ROFF-1-2013-09-08-2-0-2">MD2MAN-ROFF 1 2013-09-08 2.0.2</h1><h2 id="NAME">NAME</h2><p>md2man-roff - convert <a class="md2man-xref" href="../man5/md2man.5.html">md2man(5)</a> flavored <a class="md2man-xref">markdown(7)</a> into <a class="md2man-xref">roff(7)</a></p><h2 id="SYNOPSIS">SYNOPSIS</h2><p><code>md2man-roff</code> [<em>OPTION</em>]... [<em>FILE</em>]</p><h2 id="DESCRIPTION">DESCRIPTION</h2><p>This program converts <a class="md2man-xref" href="../man5/md2man.5.html">md2man(5)</a> flavored <a class="md2man-xref">markdown(7)</a> input from the given
11
11
  <em>FILE</em> into <a class="md2man-xref">roff(7)</a> and then prints the result to the standard output stream.
12
12
  If <em>FILE</em> is not given, then the standard input stream is read in its place.</p><h3 id="Limitations">Limitations</h3><p>This program does not convert the following <a href="https://github.com/vmg/redcarpet">Redcarpet</a> nodes into <a class="md2man-xref">roff(7)</a>:</p>
13
13
  <ul>
data/man/man5/md2man.5 CHANGED
@@ -1,4 +1,4 @@
1
- .TH MD2MAN 5 2013\-08\-29 2.0.1
1
+ .TH MD2MAN 5 2013\-09\-08 2.0.2
2
2
  .SH NAME
3
3
  .PP
4
4
  md2man \- manual page flavoring for the
@@ -2,12 +2,12 @@
2
2
  <html>
3
3
  <head>
4
4
  <meta charset="utf-8" />
5
- <meta name="generator" content="md2man 2.0.1 https://github.com/sunaku/md2man" />
5
+ <meta name="generator" content="md2man 2.0.2 https://github.com/sunaku/md2man" />
6
6
  <title>md2man(5) &mdash; manual page flavoring for the markdown(7) file format</title>
7
7
  <link rel="stylesheet" href="../style.css"/>
8
8
  <!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
9
9
  </head>
10
- <body><div class="navbar"><div class="navbar-inner"><span class="brand"><a href="../index.html#man5">man5</a>/md2man.5</span></div></div><div class="container-fluid"><h1 id="MD2MAN-5-2013-08-29-2-0-1">MD2MAN 5 2013-08-29 2.0.1</h1><h2 id="NAME">NAME</h2><p>md2man - manual page flavoring for the <a class="md2man-xref">markdown(7)</a> file format</p><h2 id="DESCRIPTION">DESCRIPTION</h2><p><a href="https://github.com/sunaku/md2man">md2man</a> makes the <a class="md2man-xref">markdown(7)</a> file format friendly for writing UNIX manual
10
+ <body><div class="navbar"><div class="navbar-inner"><span class="brand"><a href="../index.html#man5">man5</a>/md2man.5</span></div></div><div class="container-fluid"><h1 id="MD2MAN-5-2013-09-08-2-0-2">MD2MAN 5 2013-09-08 2.0.2</h1><h2 id="NAME">NAME</h2><p>md2man - manual page flavoring for the <a class="md2man-xref">markdown(7)</a> file format</p><h2 id="DESCRIPTION">DESCRIPTION</h2><p><a href="https://github.com/sunaku/md2man">md2man</a> makes the <a class="md2man-xref">markdown(7)</a> file format friendly for writing UNIX manual
11
11
  pages by extending its syntax, semantics, and assumed processing extensions.</p><h3 id="Syntax">Syntax</h3><p>md2man extends <a class="md2man-xref">markdown(7)</a> syntax by defining three kinds of paragraphs.</p>
12
12
  <pre><code>This is a
13
13
  normal
@@ -1,4 +1,4 @@
1
- # MD2MAN 5 2013-08-29 2.0.1
1
+ # MD2MAN 5 2013-09-08 2.0.2
2
2
 
3
3
  ## NAME
4
4
 
@@ -142,6 +142,23 @@ describe 'roff engine' do
142
142
  | paragraph.
143
143
  OUTPUT
144
144
  end
145
+
146
+ it 'escapes backslashes in normal text' do
147
+ @markdown.render(heredoc(<<-INPUT)).must_equal(heredoc(<<-OUTPUT))
148
+ |c:\\drive
149
+ INPUT
150
+ |.PP
151
+ |c:\\[rs]drive
152
+ OUTPUT
153
+
154
+ @markdown.render(heredoc(<<-INPUT)).must_equal(heredoc(<<-OUTPUT))
155
+ |c:\\drive\\walk\\\\\\car
156
+ INPUT
157
+ |.PP
158
+ |c:\\[rs]drive\\[rs]walk\\[rs]\\[rs]car
159
+ OUTPUT
160
+ end
161
+
145
162
  it 'escapes hyphens in normal text' do
146
163
  @markdown.render(heredoc(<<-INPUT)).must_equal(heredoc(<<-OUTPUT))
147
164
  |pre-process
@@ -158,6 +175,66 @@ describe 'roff engine' do
158
175
  OUTPUT
159
176
  end
160
177
 
178
+ it 'inhibits periods at the beginning of lines in normal text' do
179
+ @markdown.render(heredoc(<<-INPUT)).must_equal(heredoc(<<-OUTPUT))
180
+ |.
181
+ INPUT
182
+ |.PP
183
+ |\\&.
184
+ OUTPUT
185
+
186
+ @markdown.render(heredoc(<<-INPUT)).must_equal(heredoc(<<-OUTPUT))
187
+ |..
188
+ INPUT
189
+ |.PP
190
+ |\\&..
191
+ OUTPUT
192
+
193
+ @markdown.render(heredoc(<<-INPUT)).must_equal(heredoc(<<-OUTPUT))
194
+ |...
195
+ INPUT
196
+ |.PP
197
+ |\\&...
198
+ OUTPUT
199
+
200
+ @markdown.render(heredoc(<<-INPUT)).must_equal(heredoc(<<-OUTPUT))
201
+ |.hello. world qu.o.tes
202
+ INPUT
203
+ |.PP
204
+ |\\&.hello. world qu.o.tes
205
+ OUTPUT
206
+ end
207
+
208
+ it 'inhibits single quotes at the beginning of lines in normal text' do
209
+ @markdown.render(heredoc(<<-INPUT)).must_equal(heredoc(<<-OUTPUT))
210
+ |'
211
+ INPUT
212
+ |.PP
213
+ |\\&'
214
+ OUTPUT
215
+
216
+ @markdown.render(heredoc(<<-INPUT)).must_equal(heredoc(<<-OUTPUT))
217
+ |''
218
+ INPUT
219
+ |.PP
220
+ |\\&''
221
+ OUTPUT
222
+
223
+ @markdown.render(heredoc(<<-INPUT)).must_equal(heredoc(<<-OUTPUT))
224
+ |'''
225
+ INPUT
226
+ |.PP
227
+ |\\&'''
228
+ OUTPUT
229
+
230
+ @markdown.render(heredoc(<<-INPUT)).must_equal(heredoc(<<-OUTPUT))
231
+ |'hello' world qu'o'tes
232
+ INPUT
233
+ |.PP
234
+ |\\&'hello' world qu'o'tes
235
+ OUTPUT
236
+ end
237
+
161
238
  it 'renders emphasis' do
162
239
  @markdown.render(heredoc(<<-INPUT)).must_equal(heredoc(<<-OUTPUT))
163
240
  |just *some paragraph*
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: md2man
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Suraj N. Kurapati
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-30 00:00:00.000000000 Z
11
+ date: 2013-09-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: binman