Linux questions for Jacque

Bob Warren bobwarren at howsoft.com
Thu Mar 15 21:45:04 EDT 2007


Jacque:

Please see my answers below.

Bob Warren wrote:

> > Jacque:
> > 
> > I have just made another little test program so that I can type into the 
> > field. My wife's Ubuntu is in Portuguese, and she has an ABNT keyboard.
> > 
> > Of course, when she uses any program other than Rev (Word, Text Editor), 
> > everything is 100%.
> > 
> > On her computer, if I try typing Portuguese symbols into the field of 
> > the test stack, I get nothing but junk (pairs of symbols). The 
> > characters that correspond to English ones come out OK.
> > 
> > If I paste Portuguese text into the test field, it displays perfectly, 
> > but when trying to print, the result is the same as on my computer.
>   

Jacque wrote:

>This sounds suspiciously like a unicode issue to me. What does the 
message box tell you if you type:

   put the textfont of fld <whatever>

------------------------------------------------
I have no font set (in the properties) for the field in my test project, so it returns empty. However, I have tried setting the field's font to "courier" and the size to 14 for example. Trying that again now, it still produces an incorrect PS file of course, but "put the textfont of fld <whatever>" correctly returns "courier". The appearance of the field is correct (courier 14).
------------------------------------------------

>If the text isn't all one font, you should see "mixed".

------------------------------------------------
The text is all one font.

------------------------------------------------
>When you paste 
unicode text into a field, the textfont will change to a unicode font 
for the pasted chunk. If you can calculate it, try getting the text 
offsets for a pasted chunk and ask the message box this:

  the textfont of char <x> to <y> of fld <whatever>

What do you get back? Is it just something like "Ariel" or is two words 
separated by a comma?

------------------------------------------------
put the length of field "test" >> 290
put the textfont of char 1 to 290 of field "test" >> EMPTY!!!!!!
put the textfont of char 2 to 3 of field "test" >> EMPTY

Aha!




More information about the use-livecode mailing list