[plt-scheme] problem to create string with unicode

From: Andre Mayers (andre.mayers at usherbrooke.ca)
Date: Sat Sep 6 15:47:08 EDT 2008

OK. I understand that it is not a bug and that I cannot easily overcome the
problem from within drscheme. 
I wanted something simple to show to my students. 



-----Message d'origine-----
De : plt-scheme-bounces at list.cs.brown.edu
[mailto:plt-scheme-bounces at list.cs.brown.edu] De la part de Richard Cobbe
Envoyé : September-06-08 3:22 PM
À : plt-scheme at list.cs.brown.edu
Objet : Re: [plt-scheme] problem to create string with unicode

On Sat, Sep 06, 2008 at 02:28:43PM -0400, Andre Mayers wrote:
> I want to print a big sigma with
> (display (integer->char 9138))(newline)
> (display (integer->char 9139))
> or with
> (display (string (integer->char 9138) #\return (integer->char 9139)))
> but I got extra character

We'll need more information to help you here.  Are you running in DrScheme
or MzScheme?  Which version?  What OS?  Which version?  And what precisely
are you seeing?  Rendering Unicode text depends on a lot of things beyond
DrScheme, not least of which is the specific font you're using.

I tried this on MacOS 10.5.4 running DrScheme 4.1, and I'm seeing a gap
between the two halves of the big sigma.  As far as I can tell, this is a
font thing rather than a DrScheme thing.

On my system, it looks like only one font, Apple Symbol Regular, provides
either of these two glyphs, and the large gap appears to be part of the
glyphs themselves.  I certainly get the gap in Apple's TextEdit.app as well
as in DrScheme.  So you can only get rid of that gap if you have control
over the precise placement of the individual glyphs on the page or screen,
and that's just not something that `display' gives you.

  For list-related administrative tasks:

Posted on the users mailing list.