FAQ  •  Register  •  Login

£ (UK Pound) symbol

<<

britlion

Posts: 766

Joined: Mon Apr 27, 2009 7:26 pm

Location: Slough, Berkshire, UK

Post Sun Mar 21, 2010 7:33 pm

£ (UK Pound) symbol

Tip of the day:

Clearly, a US keyboard doesn't have this £ thing. I have no idea if it's on a spanish or austrian one. I doubt it. So, just in case you need it, with a default US character set, the ` (back quote) seems to do the same job in compiled code.

Chances are I'm the only person that's relevant to. But hey I'm sharing anyway. Hush.
<<

boriel

Site Admin

Posts: 1463

Joined: Wed Nov 01, 2006 6:18 pm

Location: Santa Cruz de Tenerife, Spain

Post Sun Mar 21, 2010 9:15 pm

Re: £ (UK Pound) symbol

britlion wrote:Tip of the day:

Clearly, a US keyboard doesn't have this £ thing. I have no idea if it's on a spanish or austrian one. I doubt it. So, just in case you need it, with a default US character set, the ` (back quote) seems to do the same job in compiled code.

Chances are I'm the only person that's relevant to. But hey I'm sharing anyway. Hush.


thanks, britlion. :-) The compiler just convert source strings to bytes, so bquote maps on pound symbol. However there is some support for Spectrum special chars ala Basin e.g. \c maps to copyright symbol
<<

britlion

Posts: 766

Joined: Mon Apr 27, 2009 7:26 pm

Location: Slough, Berkshire, UK

Post Mon Mar 22, 2010 6:43 am

Re: £ (UK Pound) symbol

It does?

That's a new one on me.

Basin does allow \` as a pound symbol, apparently. And \\ as a backslash, and \@ as an @ (what's wrong with using "@" to represent "@", I have to wonder!?)

A handy thing is \a for a graphic A. I think ZX Basic follows that convention, yes?

It also allows \#nnn (where nnn is 000 to 255).

But \c is new on me. That's excellent news.
<<

LCD

Posts: 596

Joined: Fri Feb 13, 2009 3:11 pm

Location: Vienna, Austria

Post Mon Mar 22, 2010 10:03 pm

Re: £ (UK Pound) symbol

There is no such thing like austrian Keyboard. We in austria are damned to use the german keyboards :wink: And there is no Pound sign on them. But I knew about the possibility to use control chars as boriel described. He wrote about them in one of the "Whats new" threads after releasing a new version of ZXBC... I even added a UDG/control char/colour control codes "typewriter" for the IDE I'm working on.
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
<<

britlion

Posts: 766

Joined: Mon Apr 27, 2009 7:26 pm

Location: Slough, Berkshire, UK

Post Tue Mar 23, 2010 5:41 am

Re: £ (UK Pound) symbol

I've been trying to make sure the wiki is reasonably up to date on information that Boriel posts (notice it lists load and save as reserved words, for example).

Documentation is /hard/ !
<<

LCD

Posts: 596

Joined: Fri Feb 13, 2009 3:11 pm

Location: Vienna, Austria

Post Tue Mar 23, 2010 6:18 pm

Re: £ (UK Pound) symbol

Well... Please check version history of all announced versions in this forum for tracking all additions.
britlion wrote:Documentation is /hard/ !

Absolutly true...
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
<<

LCD

Posts: 596

Joined: Fri Feb 13, 2009 3:11 pm

Location: Vienna, Austria

Post Thu Jul 01, 2010 11:27 pm

Re: £ (UK Pound) symbol

Just completed BorIDEs ASCII Table and testet it. \c does not put a copyright sign, but UDG C, as expected. Anyway, I hardcoded copyright symbol as CHR(127) into the editor. I wonder how it was done in BasIN
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
<<

britlion

Posts: 766

Joined: Mon Apr 27, 2009 7:26 pm

Location: Slough, Berkshire, UK

Post Wed Mar 16, 2011 8:15 pm

Re: £ (UK Pound) symbol

Did we ever track down the (C) symbol code?

Clearly \c is a graphics C.
<<

boriel

Site Admin

Posts: 1463

Joined: Wed Nov 01, 2006 6:18 pm

Location: Santa Cruz de Tenerife, Spain

Post Wed Mar 16, 2011 9:48 pm

Re: £ (UK Pound) symbol

britlion wrote:Did we ever track down the (C) symbol code?

Clearly \c is a graphics C.

If I recall correctly, Copyright symbol is \* as in BASIN. Not sure if this is already documented in the wiki (Graphics symbol and PRINT).
<<

britlion

Posts: 766

Joined: Mon Apr 27, 2009 7:26 pm

Location: Slough, Berkshire, UK

Post Wed Mar 16, 2011 11:02 pm

Re: £ (UK Pound) symbol

boriel wrote:If I recall correctly, Copyright symbol is \* as in BASIN. Not sure if this is already documented in the wiki (Graphics symbol and PRINT).


I just tweaked the Syntax page to list it with the block graphics characters. Thanks!

(Incidentally, the BASin help file doesn't list \* )

Return to How-To & Tutorials

Who is online

Users browsing this forum: No registered users and 1 guest

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by Vjacheslav Trushkin for Free Forums/DivisionCore.

phpBB SEO