bug-groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #51468] [PATCH] Reverse the change '.it' to '.itc' for the simple m


From: Bjarni Ingi Gislason
Subject: [bug #51468] [PATCH] Reverse the change '.it' to '.itc' for the simple macros
Date: Fri, 14 Jul 2017 14:10:51 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0

URL:
  <http://savannah.gnu.org/bugs/?51468>

                 Summary: [PATCH] Reverse the change '.it' to '.itc' for the
simple macros
                 Project: GNU troff
            Submitted by: bjarniig
            Submitted on: Fri 14 Jul 2017 06:10:50 PM UTC
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None

    _______________________________________________________

Details:

 The simple font (one letter) and size changing (SM, SB) macros don't need
a request '.itc' to do their job.
That request can extend its influence too far.

  An example from "groff_out.5.man" shows that:

.B D\c
\~commands are assumed to be device-specific.

  A transparent line indicator (\!) should work for those macros if more
than one line is asked for.

  Macros that operate on the whole next input line do benefit from an '.itc'.
The next line can then be split into several source lines (for example all
beginning with a macro-call).

  An alternative could be to use a transparent line indicator (\!).



>From 2566b2b918e4a7a963a42fb86439d81cd1afcd49 Mon Sep 17 00:00:00 2001
From: Bjarni Ingi Gislason <address@hidden>
Date: Fri, 14 Jul 2017 17:57:16 +0000
Subject: [PATCH] Reverse the change '.it' to '.itc' for the simple font, size
changing macros

  The simple font (one letter) and size changing (SM, SB) macros don't need
a request '.itc' to do their job.
That request can extend its influence too far.

Signed-off-by: Bjarni Ingi Gislason <address@hidden>
---
 tmac/an-old.tmac | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/tmac/an-old.tmac b/tmac/an-old.tmac
index 1091e3d2..bc1de70b 100644
--- a/tmac/an-old.tmac
+++ b/tmac/an-old.tmac
@@ -376,25 +376,26 @@
 ..
 .
 .de1 B
-.  itc 1 an-trap
+.  it 1 an-trap
 .  ft B
 .  if \\n[.$] \&\\$*
 ..
 .
 .de1 I
-.  itc 1 an-trap
+.  it 1 an-trap
 .  ft I
+.\" The italic correction gets lost if a '\c' is in an argument
 .  if \\n[.$] \,\\$*\/
 ..
 .
 .de1 SM
-.  itc 1 an-trap
+.  it 1 an-trap
 .  ps -1
 .  if \\n[.$] \&\\$*
 ..
 .
 .de1 SB
-.  itc 1 an-trap
+.  it 1 an-trap
 .  ps -1
 .  ft B
 .  if \\n[.$] \&\\$*
-- 
2.13.2






    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?51468>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]