How to put Hebrew text in my app?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
How to put Hebrew text in my app?
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:
But this is what it really looks like So what do I do?
Thanks
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:
But this is what it really looks like So what do I do?
Thanks
-
- Livecode Opensource Backer
- Posts: 9359
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: How to put Hebrew text in my app?
Well apart from the fact that I don't know what 'abrit' means . . .
I built a stack and ran off a MacOS standalone:
- -
Stack on left, standalone on left.
If you could attach your stack we could see if something was odd about your textField.
I built a stack and ran off a MacOS standalone:
- -
Stack on left, standalone on left.
If you could attach your stack we could see if something was odd about your textField.
- Attachments
-
- Abrit.livecode.zip
- Stack.
- (1.38 KiB) Downloaded 61 times
Re: How to put Hebrew text in my app?
On WINDOES or on Mac it works well but on Android it does not work well
-
- Livecode Opensource Backer
- Posts: 9359
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: How to put Hebrew text in my app?
my stack, or yours, or both?On WINDOES or on Mac it works well but on Android it does not work well
Please send your stack here.
-
- Livecode Opensource Backer
- Posts: 9359
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: How to put Hebrew text in my app?
If you only want your text as a static thing you could convert it into
an image.
an image.
-
- VIP Livecode Opensource Backer
- Posts: 9824
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: How to put Hebrew text in my app?
Offhand it looks like the text is there but merely cropped.
Are you using fullscreenmode?
Are you using fullscreenmode?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: How to put Hebrew text in my app?
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
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
-
- VIP Livecode Opensource Backer
- Posts: 7229
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: How to put Hebrew text in my app?
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.):
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.
Code: Select all
start using font file <name>
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
-
- VIP Livecode Opensource Backer
- Posts: 135
- Joined: Tue Feb 23, 2010 10:53 pm
- Location: Saint Louis, Missouri USA
Re: How to put Hebrew text in my app?
Try doubling the width and height of the field to see if it is cropped.Offhand it looks like the text is there but merely 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?
The problem was really solved the phone did not find the font I was using so I added it
-
- VIP Livecode Opensource Backer
- Posts: 9824
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: How to put Hebrew text in my app?
How was it rendering the left-most character without rendering the rest?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- Livecode Opensource Backer
- Posts: 9359
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: How to put Hebrew text in my app?
That was the LAST letter, not the first.
-
- VIP Livecode Opensource Backer
- Posts: 9824
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: How to put Hebrew text in my app?
.
Of course. Corrected for precision.
Did you have any thoughts to share on the rendering mystery?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn