printing a degree symbol as text

191 views
Skip to first unread message

Entropy_3

unread,
Feb 2, 2009, 7:53:56 PM2/2/09
to MapInfo-L
Hi,
I'm working on a geologic amp that has a good deal of miscellaneous
text printed on it as labels associated with points. I need one of
the labels to include a degree symbol within a fairly long string of
text, but I can't figure out how to do it. I tried inserting Chr
$(176) into the string itself, but it just printed that as if it was
part of the text. And I can't change the font for just a portion of
the label without changing all of it.

Any suggestions?

Thanks,
Tracey Van Gundy
Quaterra Alaska

David Reid

unread,
Feb 2, 2009, 8:28:17 PM2/2/09
to mapi...@googlegroups.com
I've seen several different character codes produce different results in
different mediums (i.e. the degree symbol which appears correct on the
scree, may print with an underscore; or copy/paste into Excel for instance,
as something strange)

Try chr$(186) from the ANSI Character set

I use this in an MBX and when printed, they appear as they're supposed to.

For me anyway, your milage may vary :)



David Reid

Mats Elfström

unread,
Feb 3, 2009, 2:38:24 AM2/3/09
to mapi...@googlegroups.com
Hi Tracey!

Try to format your string like this
degree_field+Chr$(176)+" "+"your long string of text"

that is a concatenated string with first a numerical value from the table, ASCII code to print °, a space for clarity and then your string.

HTH Mats.E

2009/2/3 Entropy_3 <Tracey....@gmail.com>

Entropy_3

unread,
Feb 3, 2009, 1:40:15 PM2/3/09
to MapInfo-L
Thanks mats, but all I get for a label is: degree_field+Chr$(176)+"
"+"my long string of text"

On Feb 2, 11:38 pm, Mats Elfström <mats.elfst...@gmail.com> wrote:
> Hi Tracey!
>
> Try to format your string like this
> degree_field+Chr$(176)+" "+"your long string of text"
>
> that is a concatenated string with first a numerical value from the table,
> ASCII code to print °, a space for clarity and then your string.
>
> HTH Mats.E
>
> 2009/2/3 Entropy_3 <Tracey.VanGu...@gmail.com>

Entropy_3

unread,
Feb 3, 2009, 1:56:12 PM2/3/09
to MapInfo-L
All I get here is a label that says "50 chr$(186) dip shear"
Perhaps I am going about this all wrong?
Here's what I'm doing:

I have a layer called Misc Text because this geologist wants a good
deal of his notes printed on the map. but because I am working with
this map at a variety of scales, I don't enter it as text, but rather
as points that are labeled from the column entitled "text." So I just
place a point where I want the text centered, enter the required text
in that field, then turn on labels and rotate labels as necessary.

So as far as the formatting suggestions go, I've just been entering
them as part of the string in the text column from which my labels are
created. Should I be handling this differently? I also tried
entering it simply as text rather than a label for a point, with the
same results.

Since I have only one label (so far) that he wants the degree symbol
used in, perhaps I should just create a separate layer for this little
blurb of text, and then format under labels, and use the Char$(176)
there? I know that will do as a workaround, but it seems pretty
convoluted. Will I need to do this every time I run across a text
blurb in which he wants me to include a symbol that isn't on the
keyboard?

Tracey

Rob Schneider - Aurchem Exploration

unread,
Feb 3, 2009, 2:30:23 PM2/3/09
to mapi...@googlegroups.com
What you are doing seems very complicated. Not sure what OS or MI version you are using but If you insert the degree symbol directly into the label it seems to work fine.

ie. 50° - to get the degree symbol either cut and paste from the character map application or in most fonts place your cursor where you want the symbol and hold the ALT key and type 0176 using the numberpad.

Cheers,
Rob

.

  

Entropy_3

unread,
Feb 3, 2009, 2:45:02 PM2/3/09
to MapInfo-L
Hi Rob,
I'm using version 9.5. But a lot of the "simple" fixes that others
know I haven't yet gotten to, since MapInfo isn't my primary mapping
program, and all I know about it has pretty much been self-taught in a
non-linear fashion. But it seemed to be the best program to use for
this particular project (which is indeed complicated). Thank heavens
for this list!

I used the alt 0176 option, and it worked perfectly. Thanks a
million!

Tracey

On Feb 3, 11:30 am, Rob Schneider - Aurchem Exploration
<r...@aurchem.ca> wrote:
> What you are doing seems very complicated. Not sure what OS or MI
> version you are using but If you insert the degree symbol directly into
> the label it seems to work fine.
>
> ie. 50° - to get the degree symbol either cut and paste from the
> character map application or in most fonts place your cursor where you
> want the symbol and *hold* the ALT key and type 0176 using the *numberpad*.

Mats Elfström

unread,
Feb 3, 2009, 4:10:42 PM2/3/09
to mapi...@googlegroups.com
Hi Tracey!

Sorry to be confusing.
I assumed, from your mention of the Chr$ function that you were building an expression for the label string from the columns of the table, not that you wrote the whole string into a single field by hand.
I hope you got it sorted out now.
Funny how geologists tend to want to cram essays into their map labels and legends. I've seen it before.

Cheers, Mats.E

2009/2/3 Entropy_3 <Tracey....@gmail.com>
Reply all
Reply to author
Forward
0 new messages