Hi, I was browsing the help-tagged bugs and this one looked not too
hard. It turns out finding good documentation on groff is not that easy
at all :) but according to #120306 \(oq and \(cq should be used for left
and right single quotes, and the attached patch makes texinfo2man.c do
that.
--- texinfo2man.c       2005-05-23 15:44:25.000000000 +0200
+++ texinfo2man.pdw.c   2005-05-23 16:56:02.000000000 +0200
@@ -143,13 +143,23 @@
        printf (" .");
       return;
     }
+  if (c == '\'')
+    {
+      printf("\\(cq");
+      return;
+    }
+  if (c == '`')
+    {
+      printf("\\(oq");
+      return;
+    }
   if (no_break && c == '\n')
     c = ' ';
   if (no_break && c == ' ')
     putchar ('\\');
   if (to_upper)
     c = toupper (c);
-  if (c == '\'' || c == '`' || c == '\\')
+  if (c == '\\')
     putchar ('\\');
   putchar (c);
   at_start_of_line = at_start_of_line_for_dot = (c == '\n');

Reply via email to