Page 1 of 1

How to put Hebrew text in my app?

Posted: Thu Apr 14, 2022 9:25 am
by liveCode
I try to work with the Hebrew language in liveCode
but there is a problem
I created a text field that has text in Hebrew
And as soon as I turn it into an app all the text goes wrong
that's how it's supposed to be:
a.png
a.png (6.07 KiB) Viewed 5965 times
But this is what it really looks like
b.png
So what do I do?
Thanks

Re: How to put Hebrew text in my app?

Posted: Thu Apr 14, 2022 10:55 am
by richmond62
Well apart from the fact that I don't know what 'abrit' means . . . 8)

I built a stack and ran off a MacOS standalone:
-
Screen Shot 2022-04-14 at 12.51.48 PM.png
-
Stack on left, standalone on left.

If you could attach your stack we could see if something was odd about your textField.

Re: How to put Hebrew text in my app?

Posted: Thu Apr 14, 2022 12:04 pm
by liveCode
On WINDOES or on Mac it works well but on Android it does not work well

Re: How to put Hebrew text in my app?

Posted: Thu Apr 14, 2022 1:18 pm
by richmond62
On WINDOES or on Mac it works well but on Android it does not work well
my stack, or yours, or both?

Please send your stack here.

Re: How to put Hebrew text in my app?

Posted: Thu Apr 14, 2022 1:42 pm
by richmond62
If you only want your text as a static thing you could convert it into
an image.

Re: How to put Hebrew text in my app?

Posted: Thu Apr 14, 2022 5:02 pm
by FourthWorld
Offhand it looks like the text is there but merely cropped.

Are you using fullscreenmode?

Re: How to put Hebrew text in my app?

Posted: Thu Apr 14, 2022 5:47 pm
by andresdt
It may be that Android does not have the font used on the desktop.
Try running the following code on desktop and Android to rule out font existence issue.

code on a button

Code: Select all

on mouseUp
    local tFontName = "Linotype" --> tFontName is the name of the font you are using
    
    if tFontName is among the lines of (the fontNames) then
       answer "The source if it exists"
    else
	answer "this may be the problem"
    end if
end mouseUp

Re: How to put Hebrew text in my app?

Posted: Thu Apr 14, 2022 6:01 pm
by jacque
A missing font was my first thought too, but it's odd that a single character would show. What font are you using? You can include it with the standalone by putting it into the Copy Files pane of the standalone builder, and including this command in your startup handler (preOpenStack, preopencard, etc.):

Code: Select all

start using font file <name>
The name must match the included font exactly. The older copy of the dictionary I'm looking at right now doesn't say it works for mobile, but I recently used it on Android and it does work.

Re: How to put Hebrew text in my app?

Posted: Thu Apr 14, 2022 11:12 pm
by bobcole
Offhand it looks like the text is there but merely cropped.
Try doubling the width and height of the field to see if it is cropped.
Maybe try setting the "Don't wrap" parameter of the field to true.
Bob C

Re: How to put Hebrew text in my app?

Posted: Fri Apr 15, 2022 5:40 am
by liveCode
The problem was really solved the phone did not find the font I was using so I added it

Re: How to put Hebrew text in my app?

Posted: Fri Apr 15, 2022 10:51 am
by FourthWorld
How was it rendering the left-most character without rendering the rest?

Re: How to put Hebrew text in my app?

Posted: Fri Apr 15, 2022 11:16 am
by richmond62
That was the LAST letter, not the first.

Re: How to put Hebrew text in my app?

Posted: Fri Apr 15, 2022 4:40 pm
by FourthWorld
richmond62 wrote:
Fri Apr 15, 2022 11:16 am
That was the LAST letter, not the first.
.
Of course. Corrected for precision.

Did you have any thoughts to share on the rendering mystery?