Re: Mac/WIndows ASCII characters

2013-08-18 Thread Warren Samples

On 08/17/2013 03:01 PM, Peter Haworth wrote:

Do you happen to know if all the entities mentioned there are supported
within htmltext?  Per my other post, they're not all mentioned in the
dictionary entry for htmltext



LiveCode seems to render all the html entities, in both forms where 
applicable, listed on this page, under Linux and Windows:


https://www.freeformatter.com/html-entities.html

You may run into issues of a char not being available using a particular 
font on a particular system, but LiveCode seems to otherwise be 
completely fluent in html entities.


Warren

___
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: Mac/WIndows ASCII characters

2013-08-17 Thread Peter Haworth
Thanks for the clarification Mark.  Am I right in thinking no special
action is necessary for Linux?

Pete
lcSQL Software http://www.lcsql.com


On Fri, Aug 16, 2013 at 6:53 PM, Mark Schonewille 
m.schonewi...@economy-x-talk.com wrote:

 Hi Pete,

 Either use isoToMac(numToChar(182)) or numToChar(166). The isoToMac and
 macToIso functions apply to all ASCII character above 128 and not only if
 store on one platform and displayed on another. If you use the Latin-1
 character table on Mac, like you're doing now, you'll always need the
 isoToMac function to convert the characters to MacRoman.

 --
 Best regards,

 Mark Schonewille

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

 Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other colour
 spaces. http://www.color-converter.com

 We have time for new software development projects. Contact me for a quote.






 On 17 aug 2013, at 03:43, Peter Haworth wrote:

  I'm displaying data from a custom property in a scrolling list field.
  Before I put the data into the field, I replace return chars in it  with
  numToChar(182) - the paragraph symbol.  This works fine on Windows but
 on a
  Mac I get  a completely different character - an O with some sort of
 accent
  over it.
 
  I'm aware of the ISOToMac/MacToISO functions but I thought those were
 only
  for ascii chars  128 that were stored on Windows then displayed on Mac
 or
  vice versa.  In this case, I'm just replacing the return character before
  loading it into the field, not changing it in the custom property.
 
  What am I doing wrong?
 
  Pete
  lcSQL Software http://www.lcsql.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

___
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: Mac/WIndows ASCII characters

2013-08-17 Thread Peter Haworth
Thanks Curry.  That might be the easiest way to go - no platform check
involved.  I'm also putting a horizontal ellipsis character in the text so
hopefully there's an html equivalent of that.

Pete
lcSQL Software http://www.lcsql.com


On Fri, Aug 16, 2013 at 10:51 PM, Curry Kenworthy cu...@pair.com wrote:


 Pete wrote:

  I replace return chars in it  with numToChar(182) - the paragraph
 symbol.  This works fine on Windows but on a Mac I get  a completely
 different character - an O with some sort of accent over it.

 Try para; with htmltext!

 Best wishes,

 Curry K.



 __**_
 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-livecodehttp://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: Mac/WIndows ASCII characters

2013-08-17 Thread Peter Haworth
Looking into this further, it appears the list of namd html entities in the
dictionary entry for htmltext is very incomplete.  I just tried crarr; and
hellip; and they both work fine but are not listed in the dictionary.

Does anyone have an up to date list of what LC recognizes in htmltext for
ascii chars  127?  Is it possible it supports them all, as listed at
http://www.w3schools.com/tags/ref_symbols.asp?

This also makes me wonder if the list of tags supported by htmltext is
complete.

Pete
lcSQL Software http://www.lcsql.com


On Sat, Aug 17, 2013 at 10:34 AM, Peter Haworth p...@lcsql.com wrote:

 Thanks Curry.  That might be the easiest way to go - no platform check
 involved.  I'm also putting a horizontal ellipsis character in the text so
 hopefully there's an html equivalent of that.

 Pete
 lcSQL Software http://www.lcsql.com


 On Fri, Aug 16, 2013 at 10:51 PM, Curry Kenworthy cu...@pair.com wrote:


 Pete wrote:

  I replace return chars in it  with numToChar(182) - the paragraph
 symbol.  This works fine on Windows but on a Mac I get  a completely
 different character - an O with some sort of accent over it.

 Try para; with htmltext!

 Best wishes,

 Curry K.



 __**_
 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-livecodehttp://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: Mac/WIndows ASCII characters

2013-08-17 Thread Warren Samples

On 08/17/2013 12:34 PM, Peter Haworth wrote:

hopefully there's an html equivalent of that.



http://www.html-entities.org/

___
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: Mac/WIndows ASCII characters

2013-08-17 Thread Mark Schonewille
Hi Pete,

You can treat Linux in the same way as Windows.

--
Best regards,

Mark Schonewille

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

Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other colour 
spaces. http://www.color-converter.com

We have time for new software development projects. Contact me for a quote.






On 17 aug 2013, at 19:33, Peter Haworth wrote:

 Thanks for the clarification Mark.  Am I right in thinking no special
 action is necessary for Linux?
 
 Pete
 lcSQL Software http://www.lcsql.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: Mac/WIndows ASCII characters

2013-08-17 Thread Richmond

On 08/17/2013 09:38 PM, Mark Schonewille wrote:

Hi Pete,

You can treat Linux in the same way as Windows.


Really? That's odd as I didn't know it was that similar! LOL.



--
Best regards,

Mark Schonewille

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

Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other colour 
spaces. http://www.color-converter.com

We have time for new software development projects. Contact me for a quote.






On 17 aug 2013, at 19:33, Peter Haworth wrote:


Thanks for the clarification Mark.  Am I right in thinking no special
action is necessary for Linux?

Pete
lcSQL Software http://www.lcsql.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



___
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: Mac/WIndows ASCII characters

2013-08-17 Thread Peter Haworth
Thanks Warren, that works.

Do you happen to know if all the entities mentioned there are supported
within htmltext?  Per my other post, they're not all mentioned in the
dictionary entry for htmltext

Pete
lcSQL Software http://www.lcsql.com


On Sat, Aug 17, 2013 at 11:05 AM, Warren Samples war...@warrensweb.uswrote:

 On 08/17/2013 12:34 PM, Peter Haworth wrote:

 hopefully there's an html equivalent of that.



 http://www.html-entities.org/


 __**_
 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-livecodehttp://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: Mac/WIndows ASCII characters

2013-08-17 Thread Peter Haworth
Thanks Mark.  I decided to go the htmltext route so I don't have to worry
about platforms.

Pete
lcSQL Software http://www.lcsql.com


On Sat, Aug 17, 2013 at 11:38 AM, Mark Schonewille 
m.schonewi...@economy-x-talk.com wrote:

 Hi Pete,

 You can treat Linux in the same way as Windows.

 --
 Best regards,

 Mark Schonewille

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

 Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other colour
 spaces. http://www.color-converter.com

 We have time for new software development projects. Contact me for a quote.






 On 17 aug 2013, at 19:33, Peter Haworth wrote:

  Thanks for the clarification Mark.  Am I right in thinking no special
  action is necessary for Linux?
 
  Pete
  lcSQL Software http://www.lcsql.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

___
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


Mac/WIndows ASCII characters

2013-08-16 Thread Peter Haworth
I'm displaying data from a custom property in a scrolling list field.
 Before I put the data into the field, I replace return chars in it  with
numToChar(182) - the paragraph symbol.  This works fine on Windows but on a
Mac I get  a completely different character - an O with some sort of accent
over it.

I'm aware of the ISOToMac/MacToISO functions but I thought those were only
for ascii chars  128 that were stored on Windows then displayed on Mac or
vice versa.  In this case, I'm just replacing the return character before
loading it into the field, not changing it in the custom property.

What am I doing wrong?

Pete
lcSQL Software http://www.lcsql.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: Mac/WIndows ASCII characters

2013-08-16 Thread Mark Schonewille
Hi Pete,

Either use isoToMac(numToChar(182)) or numToChar(166). The isoToMac and 
macToIso functions apply to all ASCII character above 128 and not only if store 
on one platform and displayed on another. If you use the Latin-1 character 
table on Mac, like you're doing now, you'll always need the isoToMac function 
to convert the characters to MacRoman.

--
Best regards,

Mark Schonewille

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

Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other colour 
spaces. http://www.color-converter.com

We have time for new software development projects. Contact me for a quote.






On 17 aug 2013, at 03:43, Peter Haworth wrote:

 I'm displaying data from a custom property in a scrolling list field.
 Before I put the data into the field, I replace return chars in it  with
 numToChar(182) - the paragraph symbol.  This works fine on Windows but on a
 Mac I get  a completely different character - an O with some sort of accent
 over it.
 
 I'm aware of the ISOToMac/MacToISO functions but I thought those were only
 for ascii chars  128 that were stored on Windows then displayed on Mac or
 vice versa.  In this case, I'm just replacing the return character before
 loading it into the field, not changing it in the custom property.
 
 What am I doing wrong?
 
 Pete
 lcSQL Software http://www.lcsql.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: Mac/WIndows ASCII characters

2013-08-16 Thread Curry Kenworthy


Pete wrote:

 I replace return chars in it  with numToChar(182) - the paragraph 
symbol.  This works fine on Windows but on a Mac I get  a completely 
different character - an O with some sort of accent over it.


Try para; with htmltext!

Best wishes,

Curry K.


___
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