HTML representation of 'less than or equal to' - not cross-platform?

2014-10-31 Thread Graham Samuel
I’ve got a little field with a single “less than or equal to” character in it. 
The character got there from executing

 set the htmlText of fld “myField” to ple;/p

from the message box while programming in the IDE (LC 6.6.5)

This works fine on a Mac, but I just noticed that it doesn’t work on a PC. When 
I open the card containing this field in LC on a PC running Windows 7, and 
execute this from the message box

 put the htmlText of fld “myField”

I get

 p#16;/p

which does not display as a less than or equal glyph. If I reset the contents 
of the field using ple;/p, it displays correctly.

Anyone any idea what's going on? How did 'le;' get changed to '16;'? Seems 
totally weird to me.

TIA for any suggestions.

Graham
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: HTML representation of 'less than or equal to' - not cross-platform?

2014-10-31 Thread Mark Schonewille

Hi Graham,

I think that should be lt and gt.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Installer Maker for LiveCode:
http://qery.us/468

Buy my new book Programming LiveCode for the Real Beginner 
http://qery.us/3fi


LiveCode on Facebook:
https://www.facebook.com/groups/runrev/

On 10/31/2014 15:00, Graham Samuel wrote:

I’ve got a little field with a single “less than or equal to” character in it. 
The character got there from executing

  set the htmlText of fld “myField” to ple;/p

from the message box while programming in the IDE (LC 6.6.5)

This works fine on a Mac, but I just noticed that it doesn’t work on a PC. When 
I open the card containing this field in LC on a PC running Windows 7, and 
execute this from the message box

  put the htmlText of fld “myField”

I get

  p#16;/p

which does not display as a less than or equal glyph. If I reset the contents of the field 
using ple;/p, it displays correctly.

Anyone any idea what's going on? How did 'le;' get changed to '16;'? Seems 
totally weird to me.

TIA for any suggestions.

Graham
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: HTML representation of 'less than or equal to' - not cross-platform?

2014-10-31 Thread Graham Samuel
Thanks Mark for the reply.

No, ‘lt' is less than and ‘gt' is greater than: these symbols are readily 
available on both the Mac and PC character sets, so if the objective is simply 
to display the correct glyph, it doesn’t matter if one shows them as html or 
just a simple character. My issue is with 'less than or equal' (and in 
principle ‘greater than or equal’). These are represented on the regular Mac 
keyboard as option-comma and option-period, but these codes are not the same on 
the PC. Hence my need to use html, since these characters are part of the 
standard html repertoire.

A possible (but not very probably IMHO) cause of the problem is that ‘le’ and 
‘ge’ are not in the LC dictionary as recognised subset-html characters dealt 
with by LC: but in fact they do work, just not when switched from Mac to PC. 
Odd.

Graham

 On 31 Oct 2014, at 16:05, Mark Schonewille m.schonewi...@economy-x-talk.com 
 wrote:
 
 Hi Graham,
 
 I think that should be lt and gt.
 
 --
 Best regards,
 
 Mark Schonewille
 
 Economy-x-Talk Consulting and Software Engineering
 Homepage: http://economy-x-talk.com
 Twitter: http://twitter.com/xtalkprogrammer
 KvK: 50277553
 
 Installer Maker for LiveCode:
 http://qery.us/468
 
 Buy my new book Programming LiveCode for the Real Beginner 
 http://qery.us/3fi
 
 LiveCode on Facebook:
 https://www.facebook.com/groups/runrev/
 
 On 10/31/2014 15:00, Graham Samuel wrote:
 I’ve got a little field with a single “less than or equal to” character in 
 it. The character got there from executing
 
  set the htmlText of fld “myField” to ple;/p
 
 from the message box while programming in the IDE (LC 6.6.5)
 
 This works fine on a Mac, but I just noticed that it doesn’t work on a PC. 
 When I open the card containing this field in LC on a PC running Windows 7, 
 and execute this from the message box
 
  put the htmlText of fld “myField”
 
 I get
 
  p#16;/p
 
 which does not display as a less than or equal glyph. If I reset the 
 contents of the field using ple;/p, it displays correctly.
 
 Anyone any idea what's going on? How did 'le;' get changed to '16;'? Seems 
 totally weird to me.
 
 TIA for any suggestions.
 
 Graham
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: HTML representation of 'less than or equal to' - not cross-platform?

2014-10-31 Thread Mark Schonewille

Hi Graham,

Apparently, I misread the subject header of your e-mail. So, you have 
trouble with the less-than-or-equal-to and the greater-than-or-equal-to 
characters.


BTW I think that these characters are in the MacRoman character set but 
not in the Latin-1 character set, which means that you can refer to them 
by their ASCII values on Mac, but not on Windows.


I just tried this on Windows 8.1:

on mouseUp
 set the htmlText of fld 1 to pge;/p
end mouseUp

and it works fine. I can also change ge to le and that works too. If I 
execute


put the htmltext of fld 1

in the message box, I get the expected values and not the numerical 
values you are seeing.


I tried this in LC 6.6.2 on Windows 8.1. Perhaps it is a 6.6.5-specific bug.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Installer Maker for LiveCode:
http://qery.us/468

Buy my new book Programming LiveCode for the Real Beginner 
http://qery.us/3fi


LiveCode on Facebook:
https://www.facebook.com/groups/runrev/

On 10/31/2014 18:01, Graham Samuel wrote:

Thanks Mark for the reply.

No, ‘lt' is less than and ‘gt' is greater than: these symbols are readily 
available on both the Mac and PC character sets, so if the objective is simply 
to display the correct glyph, it doesn’t matter if one shows them as html or 
just a simple character. My issue is with 'less than or equal' (and in 
principle ‘greater than or equal’). These are represented on the regular Mac 
keyboard as option-comma and option-period, but these codes are not the same on 
the PC. Hence my need to use html, since these characters are part of the 
standard html repertoire.

A possible (but not very probably IMHO) cause of the problem is that ‘le’ and 
‘ge’ are not in the LC dictionary as recognised subset-html characters dealt 
with by LC: but in fact they do work, just not when switched from Mac to PC. 
Odd.

Graham




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: HTML representation of 'less than or equal to' - not cross-platform?

2014-10-31 Thread Graham Samuel
Hi Mark

Not to flog this to death, but what you did works for me too - you just set the 
htmlText of a field using a version of LC running on Windows. What didn’t work 
for me was setting the htmlText of the field using a Mac version of LC, saving 
the stack and then opening it on a PC with a PC version of LC - then the field 
had somehow changed. I will see if this applies in other versions of LC. What I 
did is repeatable but of course it may be something to do with my particular 
setup or versions of LC.

Cheers

Graham

 On 31 Oct 2014, at 18:16, Mark Schonewille m.schonewi...@economy-x-talk.com 
 wrote:
 
 Hi Graham,
 
 Apparently, I misread the subject header of your e-mail. So, you have trouble 
 with the less-than-or-equal-to and the greater-than-or-equal-to characters.
 
 BTW I think that these characters are in the MacRoman character set but not 
 in the Latin-1 character set, which means that you can refer to them by their 
 ASCII values on Mac, but not on Windows.
 
 I just tried this on Windows 8.1:
 
 on mouseUp
 set the htmlText of fld 1 to pge;/p
 end mouseUp
 
 and it works fine. I can also change ge to le and that works too. If I execute
 
 put the htmltext of fld 1
 
 in the message box, I get the expected values and not the numerical values 
 you are seeing.
 
 I tried this in LC 6.6.2 on Windows 8.1. Perhaps it is a 6.6.5-specific bug.
 
 --
 Best regards,
 
 Mark Schonewille
 
 Economy-x-Talk Consulting and Software Engineering
 Homepage: http://economy-x-talk.com
 Twitter: http://twitter.com/xtalkprogrammer
 KvK: 50277553
 
 Installer Maker for LiveCode:
 http://qery.us/468
 
 Buy my new book Programming LiveCode for the Real Beginner 
 http://qery.us/3fi
 
 LiveCode on Facebook:
 https://www.facebook.com/groups/runrev/
 
 On 10/31/2014 18:01, Graham Samuel wrote:
 Thanks Mark for the reply.
 
 No, ‘lt' is less than and ‘gt' is greater than: these symbols are readily 
 available on both the Mac and PC character sets, so if the objective is 
 simply to display the correct glyph, it doesn’t matter if one shows them as 
 html or just a simple character. My issue is with 'less than or equal' (and 
 in principle ‘greater than or equal’). These are represented on the regular 
 Mac keyboard as option-comma and option-period, but these codes are not the 
 same on the PC. Hence my need to use html, since these characters are part 
 of the standard html repertoire.
 
 A possible (but not very probably IMHO) cause of the problem is that ‘le’ 
 and ‘ge’ are not in the LC dictionary as recognised subset-html characters 
 dealt with by LC: but in fact they do work, just not when switched from Mac 
 to PC. Odd.
 
 Graham
 
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: HTML representation of 'less than or equal to' - not cross-platform?

2014-10-31 Thread Mark Schonewille

Hi Graham,

Now I see it too. Even if I set the unicodeText of a field to 
numToChar(8804), the character appears as something completely different 
on Windows.


In pre-7 versions of LiveCode, this might be acceptable, because the 
text of a field is saved as MacRoman or Latin. However, in 7, it is 
saved as unicode. I didn't try this, but this should not happen in 7.


--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Installer Maker for LiveCode:
http://qery.us/468

Buy my new book Programming LiveCode for the Real Beginner 
http://qery.us/3fi


LiveCode on Facebook:
https://www.facebook.com/groups/runrev/

On 10/31/2014 19:04, Graham Samuel wrote:

Hi Mark

Not to flog this to death, but what you did works for me too - you just set the 
htmlText of a field using a version of LC running on Windows. What didn’t work 
for me was setting the htmlText of the field using a Mac version of LC, saving 
the stack and then opening it on a PC with a PC version of LC - then the field 
had somehow changed. I will see if this applies in other versions of LC. What I 
did is repeatable but of course it may be something to do with my particular 
setup or versions of LC.

Cheers

Graham


On 31 Oct 2014, at 18:16, Mark Schonewille m.schonewi...@economy-x-talk.com 
wrote:

Hi Graham,

Apparently, I misread the subject header of your e-mail. So, you have trouble 
with the less-than-or-equal-to and the greater-than-or-equal-to characters.

BTW I think that these characters are in the MacRoman character set but not in 
the Latin-1 character set, which means that you can refer to them by their 
ASCII values on Mac, but not on Windows.

I just tried this on Windows 8.1:

on mouseUp
 set the htmlText of fld 1 to pge;/p
end mouseUp

and it works fine. I can also change ge to le and that works too. If I execute

put the htmltext of fld 1

in the message box, I get the expected values and not the numerical values you 
are seeing.

I tried this in LC 6.6.2 on Windows 8.1. Perhaps it is a 6.6.5-specific bug.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Installer Maker for LiveCode:
http://qery.us/468

Buy my new book Programming LiveCode for the Real Beginner http://qery.us/3fi

LiveCode on Facebook:
https://www.facebook.com/groups/runrev/

On 10/31/2014 18:01, Graham Samuel wrote:

Thanks Mark for the reply.

No, ‘lt' is less than and ‘gt' is greater than: these symbols are readily 
available on both the Mac and PC character sets, so if the objective is simply 
to display the correct glyph, it doesn’t matter if one shows them as html or 
just a simple character. My issue is with 'less than or equal' (and in 
principle ‘greater than or equal’). These are represented on the regular Mac 
keyboard as option-comma and option-period, but these codes are not the same on 
the PC. Hence my need to use html, since these characters are part of the 
standard html repertoire.

A possible (but not very probably IMHO) cause of the problem is that ‘le’ and 
‘ge’ are not in the LC dictionary as recognised subset-html characters dealt 
with by LC: but in fact they do work, just not when switched from Mac to PC. 
Odd.

Graham




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: HTML representation of 'less than or equal to' - not cross-platform?

2014-10-31 Thread J. Landman Gay

On 10/31/2014, 1:04 PM, Graham Samuel wrote:

Not to flog this to death, but what you did works for me too - you
just set the htmlText of a field using a version of LC running on
Windows. What didn’t work for me was setting the htmlText of the
field using a Mac version of LC, saving the stack and then opening it
on a PC with a PC version of LC - then the field had somehow changed.
I will see if this applies in other versions of LC. What I did is
repeatable but of course it may be something to do with my particular
setup or versions of LC.


That's what MacToISO and ISOtoMac were for. I'm not sure they still 
apply in LC 7.0 though. But if you're running in 6.x you'll probably 
need to use macToISO() on the text if the platform is a Windows machine. 
Or, you could try storing the HTML as a custom property and re-setting 
the htmlText on Windows; maybe that will map it correctly.


That said, if those particular characters aren't in the Windows 
character set then I don't think anything will work to display them.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: HTML representation of 'less than or equal to' - not cross-platform?

2014-10-31 Thread Paul Dupuis
On 10/31/2014 1:01 PM, Graham Samuel wrote:
  These are represented on the regular Mac keyboard as option-comma and 
 option-period, but these codes are not the same on the PC. Hence my need to 
 use html, since these characters are part of the standard html repertoire.

See the isoToMac and macToIso functions in the dictionary. High ASCII
characters (byte 128-255) differ between platforms. The htmText property
of a field will not do a character conversion of these for you.

Unfortunately, if your text contains high ASCII characters you need to
know what platform it was generated on to use or convert via the
functions above as needed.

OR you need to encode any high ASCII characters in some platform
independent format, like HTML Unicode characters such as #;



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: HTML representation of 'less than or equal to' - not cross-platform?

2014-10-31 Thread Bob Sneidar
I believe what you have encountered is an *actual*, albeit extremely rare, 
“Undocumented Feature”.

Bob S


On Oct 31, 2014, at 10:01 , Graham Samuel 
livf...@mac.commailto:livf...@mac.com wrote:

A possible (but not very probably IMHO) cause of the problem is that ‘le’ and 
‘ge’ are not in the LC dictionary as recognised subset-html characters dealt 
with by LC: but in fact they do work, just not when switched from Mac to PC. 
Odd.

Graham

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: HTML representation of 'less than or equal to' - not cross-platform?

2014-10-31 Thread Bob Sneidar
Which brings up a point that seems to be the 800 pound gorilla in the room. 
Bulleted lists, Special characters, seems like there ought to be a way to set 
the Icon of a character to something. Problem solved. But… it only works 
with stacks, apps and buttons.

Bob S


On Oct 31, 2014, at 12:03 , J. Landman Gay 
jac...@hyperactivesw.commailto:jac...@hyperactivesw.com wrote:

That said, if those particular characters aren't in the Windows character set 
then I don't think anything will work to display them.

--
Jacqueline Landman Gay

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: HTML representation of 'less than or equal to' - not cross-platform?

2014-10-31 Thread Mark Schonewille
Sure, but if you have to correct a field using isoToMac and macToIso 
every time your stack opens, you might as well just replace the ASCII 16 
value with le; in the HTML text of the field. I think Graham's point is 
that this shouldn't be necessary and I believe in 7 it should indeed no 
longer be necessary.


--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Installer Maker for LiveCode:
http://qery.us/468

Buy my new book Programming LiveCode for the Real Beginner 
http://qery.us/3fi


LiveCode on Facebook:
https://www.facebook.com/groups/runrev/

On 10/31/2014 20:03, J. Landman Gay wrote:

On 10/31/2014, 1:04 PM, Graham Samuel wrote:

Not to flog this to death, but what you did works for me too - you
just set the htmlText of a field using a version of LC running on
Windows. What didn’t work for me was setting the htmlText of the
field using a Mac version of LC, saving the stack and then opening it
on a PC with a PC version of LC - then the field had somehow changed.
I will see if this applies in other versions of LC. What I did is
repeatable but of course it may be something to do with my particular
setup or versions of LC.


That's what MacToISO and ISOtoMac were for. I'm not sure they still
apply in LC 7.0 though. But if you're running in 6.x you'll probably
need to use macToISO() on the text if the platform is a Windows machine.
Or, you could try storing the HTML as a custom property and re-setting
the htmlText on Windows; maybe that will map it correctly.

That said, if those particular characters aren't in the Windows
character set then I don't think anything will work to display them.



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: HTML representation of 'less than or equal to' - not cross-platform?

2014-10-31 Thread Mark Schonewille

Paul,

This won't work because isoToMac/macToIso convert from MacRoman to 
Latin-1 or back, while Latin-1 simply doesn't have that char. You can't 
convert something if it doesn't exist.


--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Installer Maker for LiveCode:
http://qery.us/468

Buy my new book Programming LiveCode for the Real Beginner 
http://qery.us/3fi


LiveCode on Facebook:
https://www.facebook.com/groups/runrev/

On 10/31/2014 20:03, Paul Dupuis wrote:

On 10/31/2014 1:01 PM, Graham Samuel wrote:

  These are represented on the regular Mac keyboard as option-comma and 
option-period, but these codes are not the same on the PC. Hence my need to use 
html, since these characters are part of the standard html repertoire.


See the isoToMac and macToIso functions in the dictionary. High ASCII
characters (byte 128-255) differ between platforms. The htmText property
of a field will not do a character conversion of these for you.

Unfortunately, if your text contains high ASCII characters you need to
know what platform it was generated on to use or convert via the
functions above as needed.

OR you need to encode any high ASCII characters in some platform
independent format, like HTML Unicode characters such as #;



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: HTML representation of 'less than or equal to' - not cross-platform?

2014-10-31 Thread Peter Haworth
You can - the imageSource

Pete
lcSQL Software http://www.lcsql.com
Home of lcStackBrowser http://www.lcsql.com/lcstackbrowser.html and
SQLiteAdmin http://www.lcsql.com/sqliteadmin.html

On Fri, Oct 31, 2014 at 12:46 PM, Bob Sneidar bobsnei...@iotecdigital.com
wrote:

 Which brings up a point that seems to be the 800 pound gorilla in the
 room. Bulleted lists, Special characters, seems like there ought to be a
 way to set the Icon of a character to something. Problem solved. But…
 it only works with stacks, apps and buttons.

 Bob S


 On Oct 31, 2014, at 12:03 , J. Landman Gay jac...@hyperactivesw.com
 mailto:jac...@hyperactivesw.com wrote:

 That said, if those particular characters aren't in the Windows character
 set then I don't think anything will work to display them.

 --
 Jacqueline Landman Gay

 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: HTML representation of 'less than or equal to' - not cross-platform?

2014-10-31 Thread Peter Haworth
I ran across the same problem with the ellipsis character.  I ended up
doing this:

if the platform is MacOS then
   put ISOToMac(numToChar(133)) into tEllipsis
else
   put numToChar(133) into tEllipsis
end if


Pete
lcSQL Software http://www.lcsql.com
Home of lcStackBrowser http://www.lcsql.com/lcstackbrowser.html and
SQLiteAdmin http://www.lcsql.com/sqliteadmin.html

On Fri, Oct 31, 2014 at 12:03 PM, Paul Dupuis p...@researchware.com wrote:

 On 10/31/2014 1:01 PM, Graham Samuel wrote:
   These are represented on the regular Mac keyboard as option-comma and
 option-period, but these codes are not the same on the PC. Hence my need to
 use html, since these characters are part of the standard html repertoire.

 See the isoToMac and macToIso functions in the dictionary. High ASCII
 characters (byte 128-255) differ between platforms. The htmText property
 of a field will not do a character conversion of these for you.

 Unfortunately, if your text contains high ASCII characters you need to
 know what platform it was generated on to use or convert via the
 functions above as needed.

 OR you need to encode any high ASCII characters in some platform
 independent format, like HTML Unicode characters such as #;



 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: HTML representation of 'less than or equal to' - not cross-platform?

2014-10-31 Thread Bob Sneidar
Cool thanks!

 On Oct 31, 2014, at 13:47 , Peter Haworth p...@lcsql.com wrote:
 
 You can - the imageSource
 
 Pete
 lcSQL Software http://www.lcsql.com
 Home of lcStackBrowser http://www.lcsql.com/lcstackbrowser.html and
 SQLiteAdmin http://www.lcsql.com/sqliteadmin.html
 
 On Fri, Oct 31, 2014 at 12:46 PM, Bob Sneidar bobsnei...@iotecdigital.com
 wrote:
 
 Which brings up a point that seems to be the 800 pound gorilla in the
 room. Bulleted lists, Special characters, seems like there ought to be a
 way to set the Icon of a character to something. Problem solved. But…
 it only works with stacks, apps and buttons.
 
 Bob S

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: HTML representation of 'less than or equal to' - not cross-platform?

2014-10-31 Thread Bob Sneidar
Okay, so to follow through with this, I first took a screen shot of a bullet 
character, opened it in Preview, erased the white space (making it transparent) 
and saving it as bullet.png. 

Next I imported the bullet as an image, and set the source of the imported 
image to the file “bullet.png” (so I could edit it and see the changes in 
Livecode without reimporting). 

Then I put several lines into a scrolling field where each line starts with a 
space and a tab. I set the first tabstop to enough pixels to fit the bullet 
mark. I had to play around a bit but I got it close. 

Finally I have this in the script of the scrolling field:

on mouseUp
   put the hilitedLine of me into theHilitedLine
   set the itemDelimiter to tab
   put the vscroll of me into theVScroll
   
   if the imageSource of char 1 of line theHilitedLine of me is bullet.png 
then
  set the imageSource of char 1 of line theHilitedLine of me to empty
   else
  set the imageSource of char 1 of line theHilitedLine of me to bullet.png
   end if
   
   set the itemDelimiter to comma
   set the vScroll of me to theVScroll
end mouseUp


Presto! Voila! Good looking bulleted list that will look the same in Windows 
and Mac, or any OS!

Bob S


 On Oct 31, 2014, at 14:01 , Bob Sneidar bobsnei...@iotecdigital.com wrote:
 
 Cool thanks!
 
 On Oct 31, 2014, at 13:47 , Peter Haworth p...@lcsql.com wrote:
 
 You can - the imageSource
 
 Pete
 lcSQL Software http://www.lcsql.com
 Home of lcStackBrowser http://www.lcsql.com/lcstackbrowser.html and
 SQLiteAdmin http://www.lcsql.com/sqliteadmin.html
 
 On Fri, Oct 31, 2014 at 12:46 PM, Bob Sneidar bobsnei...@iotecdigital.com
 wrote:
 
 Which brings up a point that seems to be the 800 pound gorilla in the
 room. Bulleted lists, Special characters, seems like there ought to be a
 way to set the Icon of a character to something. Problem solved. But…
 it only works with stacks, apps and buttons.
 
 Bob S
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: HTML representation of 'less than or equal to' - not cross-platform?

2014-10-31 Thread Graham Samuel
I think I have just confirmed Mark’s conjecture about LC7 - I created a test 
stack on the Mac in LC7, put the html ‘less than or equal to’ character into a 
field there, saved it, reopened in LC7 and it still looked OK. So we can leave 
that particular problem behind us, at least once I’ve double-checked that it 
was a fair test.

My next problem will be to make sure any special treatment that I gave to the 
Mac-only characters (Mac Roman) like the pi symbol (which will still be there 
on the keyboard in spite of Unicode being recognised by LC) doesn’t adversely 
affect the PC version of the program. But it’s bedtime here and I strongly 
suspect I’ve stopped thinking straight. Tomorrow…(sings).

Graham


 On 31 Oct 2014, at 20:48, Mark Schonewille m.schonewi...@economy-x-talk.com 
 wrote:
 
 Sure, but if you have to correct a field using isoToMac and macToIso every 
 time your stack opens, you might as well just replace the ASCII 16 value with 
 le; in the HTML text of the field. I think Graham's point is that this 
 shouldn't be necessary and I believe in 7 it should indeed no longer be 
 necessary.
 
 --
 Best regards,
 
 Mark Schonewille
 
 Economy-x-Talk Consulting and Software Engineering
 Homepage: http://economy-x-talk.com
 Twitter: http://twitter.com/xtalkprogrammer
 KvK: 50277553
 
 Installer Maker for LiveCode:
 http://qery.us/468
 
 Buy my new book Programming LiveCode for the Real Beginner 
 http://qery.us/3fi
 
 LiveCode on Facebook:
 https://www.facebook.com/groups/runrev/
 
 On 10/31/2014 20:03, J. Landman Gay wrote:
 On 10/31/2014, 1:04 PM, Graham Samuel wrote:
 Not to flog this to death, but what you did works for me too - you
 just set the htmlText of a field using a version of LC running on
 Windows. What didn’t work for me was setting the htmlText of the
 field using a Mac version of LC, saving the stack and then opening it
 on a PC with a PC version of LC - then the field had somehow changed.
 I will see if this applies in other versions of LC. What I did is
 repeatable but of course it may be something to do with my particular
 setup or versions of LC.
 
 That's what MacToISO and ISOtoMac were for. I'm not sure they still
 apply in LC 7.0 though. But if you're running in 6.x you'll probably
 need to use macToISO() on the text if the platform is a Windows machine.
 Or, you could try storing the HTML as a custom property and re-setting
 the htmlText on Windows; maybe that will map it correctly.
 
 That said, if those particular characters aren't in the Windows
 character set then I don't think anything will work to display them.
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode