Re: UTF8 and hand crafting styles

2009-04-19 Thread Mark Schonewille

Hi David,

Do you think that simple conversion to UTF16 won't work?

put uniencode(myUTF8Var,UTF8) into myUTF16Var
set the unicodeText of fld x to myUTF16Var

Once you have done this, you could retrieve and adjust the htmlText.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz
Dutch forum: http://runrev.info/rrforum

Simple, inexpensive, reliable web hosting. €11/year.
http://economy-x-talk.com/server.html

On 19 apr 2009, at 22:31, David Bovill wrote:


I mainly work with htmltext - and add the styling direct to the chunks
needed with scripts - like b... /b, font colours, links etc So  
how

should I work with UTF8 that I get from a web service?

  1. Turn the utf8 to htmltext and then format as usual
  2. Figure out how to insert small utf16 equivalents for formatting

What are the implications of converting to htmltext - I 'guess it's a
loss-less conversion?
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution


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


Re: UTF8 and hand crafting styles

2009-04-19 Thread David Bovill
2009/4/19 Mark Schonewille m.schonewi...@economy-x-talk.com

 Hi David,

 Do you think that simple conversion to UTF16 won't work?

 put uniencode(myUTF8Var,UTF8) into myUTF16Var
 set the unicodeText of fld x to myUTF16Var

 Once you have done this, you could retrieve and adjust the htmlText.


yeah - that's what I'm thinking... its just that this would involve putting
the text into the field - retrieving it as htmltxt - then manipulating it
and setting the htmltext - so my two questions are:

   1. is it any harder to add teh formatting direct to the utf/8 or utf16 as
   comared to doig the same to htmltext?
   2. Is anything at all lost in converting to htmltext and then back to
   UTF16?
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: UTF8 and hand crafting styles

2009-04-19 Thread Mark Schonewille

Hi David,

As far as I know, a unicode stream doesn't contain any formatting data  
at all. That means that formatting unicode directly text is impossible.


I don't think that anything is actually lost when converting unicode  
text from and to htmlText, but there may be a few bugs. There are a  
few bugs in conversion to RTF text, with regard to the size of the  
text and colours (although the colours bug may have been fixed  
already). I can imagine that there are similar bugs in the conversion  
to and from htmlText.


--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz
Dutch forum: http://runrev.info/rrforum

Simple, inexpensive, reliable web hosting. €11/year.
http://economy-x-talk.com/server.html

On 19 apr 2009, at 22:50, David Bovill wrote:


2009/4/19 Mark Schonewille m.schonewi...@economy-x-talk.com

yeah - that's what I'm thinking... its just that this would involve  
putting
the text into the field - retrieving it as htmltxt - then  
manipulating it

and setting the htmltext - so my two questions are:

  1. is it any harder to add teh formatting direct to the utf/8 or  
utf16 as

  comared to doig the same to htmltext?
  2. Is anything at all lost in converting to htmltext and then back  
to

  UTF16?


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