Re: [Flightgear-devel] Parsing Lon/lat strings

2002-06-05 Thread Andy Ross
James Turner wrote: > How do you generate a degree symbol under Linux? I was trying to and > failed miserably ... This is character 0xb0 in the various ISO 8859 character sets (try "man ascii" and "man iso_8859_1"), which essentially replace ASCII on modern systems. US keyboards won't generate t

Re: [Flightgear-devel] Parsing Lon/lat strings

2002-06-05 Thread Arnt Karlsen
On Wed, 5 Jun 2002 07:55:20 -0400, David Megginson <[EMAIL PROTECTED]> wrote in message <[EMAIL PROTECTED]>: > James Turner writes: > > > How do you generate a degree symbol under Linux? I was trying to > > and failed miserably ... > > You mean this: °? It's character code 176 in the ISO-

Re: [Flightgear-devel] Parsing Lon/lat strings

2002-06-05 Thread David Megginson
James Turner writes: > How do you generate a degree symbol under Linux? I was trying to and > failed miserably ... You mean this: °? It's character code 176 in the ISO-8859-1 encoding (which is usually the default under X11, at least in North America, Latin America, and Western Europe). Di

Re: [Flightgear-devel] Parsing Lon/lat strings

2002-06-05 Thread James Turner
On Tuesday, June 4, 2002, at 01:22 am, Andy Ross wrote: > > Heh, that actually sounded kinda fun, so I tried it. Here's the > smallest parser for your syntax that I could come up with, in good old > obfuscatorial C style. It sits pleasingly close to the line between > elegance and perversity.

Re: [Flightgear-devel] Parsing Lon/lat strings

2002-06-03 Thread Frederic Bouvier
is it me ( or Outlook ) ? - Original Message - From: "James Turner" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 04, 2002 12:27 AM Subject: [Flightgear-devel] Parsing Lon/lat strings > Further to my flight plan hacking (which is coming along nice

Re: [Flightgear-devel] Parsing Lon/lat strings

2002-06-03 Thread Andy Ross
James Turner wrote: > Is there any code in Sim/FlightGear to do generic conversion of a lat / > lon string into a decimal degree value? > > And, if it doesn't exist, any suggestions how do a vaguely elegant > implementation? Heh, that actually sounded kinda fun, so I tried it. Here's the smalles

[Flightgear-devel] Parsing Lon/lat strings

2002-06-03 Thread James Turner
Further to my flight plan hacking (which is coming along nicely): Is there any code in Sim/FlightGear to do generic conversion of a lat / lon string into a decimal degree value? I.e, something that would accept and convert some / all of the following: N50 23.1 -96.32 E00 06.3 into a sign-corre