Of course, the better way to do it would be to generate it as a vector graphic:

Attachment: Characters.pdf
Description: Adobe PDF document


This is done in the following steps:

  1. In your graphics application of choice, type a text block "127°.42"
  2. Convert the text block to an outline
  3. Explode the outline into discrete paths
  4. move the ".42" horizontally to align with the degree mark
  5. Recombine all the elements into a compound path

This will have the advantage that the characters will be correctly rendered wherever they can be displayed, but are not easily editable.

-- 
Barry



On 6 Jul 2013, at 12:38, Barry Wainwright <bar...@mac.com> wrote:

It can be done, but how the characters are rendered depends very much on the application used to render them.

There are a block of unicode characters called "Combining Diacritical Marks" which are used to modify the preceding character. These characters include unicode character U-309A (UTF-8 E3 82 9A) which is a "Combining Katakana-Hirangana Semi-voiced sound mark" (but it looks very much like the degree symbol (U-00B0). When this character is 'typed' after a period, you get a character that is almost, but not quite, aligned:

This is the unicode typed in as characters: 127.゚42

Exactly how this character displays depends on the mail client/word processor/other application used to render it. Here (if the graphic is allowed) is how it renders in TextEdit:
 <Screen Shot 2013-07-06 at 12.36.08.png>
Hope this helps :)

-- 
Barry




On 6 Jul 2013, at 01:37, J M <jgera...@gmail.com> wrote:

My sundial software is also used for general astronomy calculations.
When I print or display an ephemeris I would like to use not just
the degree (°), prime (′) and double prime symbols (") but those symbols
above the decimal point (.) indicator.

In other words, instead of 127.42° display 127°.42 but have (°) aligned
directly above (.) as this is how it is typecast in old ephemerides.

Anyone know how to do this for not just ° but also ' and "?

I'm just looking for the (preferably unicode) characters not the
technique for converting the numerical value to the string representation.

-thanks

PS - I found this web-site to have lots of good astronomy related
unicode characters:

 Astronomical symbols
 http://en.wikipedia.org/wiki/Astronomical_symbols

PPS - I found this web-site

 http://gis.stackexchange.com/questions/30754/field-calculate-degree-minute-second-in-different-format

     which displays a sample as 90°12'28.15" whereas I want 90°12'28".15
---------------------------------------------------
https://lists.uni-koeln.de/mailman/listinfo/sundial


---------------------------------------------------
https://lists.uni-koeln.de/mailman/listinfo/sundial


---------------------------------------------------
https://lists.uni-koeln.de/mailman/listinfo/sundial

Reply via email to