bugGNU roff - Bugs: bug #63179, [devpdf,depvs] sqrtex and...

 
 

bug #63179: [devpdf,depvs] 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:  Documentation Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 27 Jun 2023 07:46:15 AM UTC, comment #5: 


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


I think it's pretty much just a matter of documenting this quirky design feature of PostScript and PDF fonts.

G. Branden Robinson <gbranden>
Group administrator
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>
Group 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>
Group 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.

WTF?


G. Branden Robinson <gbranden>
Group 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.

Input:


$ cat EXPERIMENTS/distance.ms
.LP
.nr w1 \w'\(sr'
.nr w2 \w'\[sqrt]'
A text radical is \n(w1 wide.
A special radical is \n(w2 wide.
.LP
A\(srB
.LP
A\[sqrt]B
.EQ L
d = sqrt { ( x sub 2 - x sub 1 ) sup 2 + ( y sub 2 - y sub 1 ) sup 2 }
.EN
\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'
\Z'\*(rc'\l'\n(lnu\[radicalex]'
.LP
C\(rnD (root en extender)
.LP
C\[radicalex]D (text radical extension)
.LP
C\[sqrtex]D (special radical extension)
$ ./build/test-groff -e -ms EXPERIMENTS/distance.ms >| distance.ps


G. Branden Robinson <gbranden>
Group administrator

 

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

Attach Files:
   
   
Comment:
   

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.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-06-27 gbranden Item GroupRendering/Cosmetics Documentation
        StatusNeed Info None
        Summarysqrtex and radicalex are really weird glyphs, man [devpdf,depvs] sqrtex and radicalex are really weird glyphs, man
    2022-10-07 gbranden Attached File- Added radical_extension.png, #53812

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code