bugGNU troff - Bugs: bug #63179, sqrtex and radicalex are really...


bug #63179: sqrtex and radicalex are really weird glyphs, man

Submitter:  G. Branden Robinson <gbranden>
Submitted:  Fri 07 Oct 2022 12:17:16 PM UTC
Category:  Font - others/general Severity:  3 - Normal
Item Group:  Rendering/Cosmetics Status:  Need Info
Privacy:  Public Assigned to:  None
Open/Closed:  Open Planned Release:  None
* Mandatory Fields

Add a New Comment (Rich Markup)

Comment Type & Canned Response:
       No canned response available


Fri 04 Nov 2022 06:35:47 PM UTC, comment #4: 

What info is required for this "feature"? You can see more discussion in this thread https://lists.gnu.org/archive/html/bug-groff/2022-11/msg00008.html

Deri James <deri>
Project Member
Sat 08 Oct 2022 02:26:23 AM UTC, comment #3: 

To comment 1:

  The radicalex is shifted to the right.  Try current stable groff and check your version of 'gv' (I have 3.7.4)

Bjarni Ingi Gislason <bjarniig>
Fri 07 Oct 2022 04:07:06 PM UTC, comment #2: 

You should not be so surprised!!

If you have a look at the file s.pdf attached to bug #62923, and my long comments in that bug you will see that I demonstrated the same thing. The equivalent glyph in font XITSMR does not behave this way, it is just a bar at the top of its own bounding box.

Deri James <deri>
Project Member
Fri 07 Oct 2022 12:17:56 PM UTC, comment #1: 

So the radical and square root extensions are overbars for...the next glyph to the right.


G. Branden Robinson <gbranden>
Project Administrator
Fri 07 Oct 2022 12:17:16 PM UTC, original submission:  

Spawned off of bug #62923.

Curious, I attempted equation construction by hand to see how I would fare compared to eqn(1).

I also commented out the redefinition of the "radicalex" special character in ps.tmac.

So check this out.


$ cat EXPERIMENTS/distance.ms
.nr w1 \w'\(sr'
.nr w2 \w'\[sqrt]'
A text radical is \n(w1 wide.
A special radical is \n(w2 wide.
d = sqrt { ( x sub 2 - x sub 1 ) sup 2 + ( y sub 2 - y sub 1 ) sup 2 }
\fId\fP = \(sr
.\" Define the radicand.
.ds rc (\fIx\fP\*<2\*> \- \fIx\fP\*<1\*>)\*{2\*})\
 + (\fIy\fP\*<2\*> \- \fIy\fP\*<1\*>)\*{2\*})
.nr ln \w'\*(rc'
C\(rnD (root en extender)
C\[radicalex]D (text radical extension)
C\[sqrtex]D (special radical extension)
$ ./build/test-groff -e -ms EXPERIMENTS/distance.ms >| distance.ps

G. Branden Robinson <gbranden>
Project Administrator


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by bjarniig (Posted a comment)
  • -email is unavailable- added by deri (Posted a comment)
  • -email is unavailable- added by gbranden (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.





    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-10-07 gbranden Attached File- Added radical_extension.png, #53812

    Back to the top

    Powered by Savane 3.9