How do I import a text file in Hebrew?

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: How do I import a text file in Hebrew?

Post by Klaus »

@liveCode
You should read all replies carefully and ask if you don't understand them!
liveCode
Posts: 124
Joined: Sun Oct 17, 2021 5:53 pm

Re: How do I import a text file in Hebrew?

Post by liveCode »

I tried the solution that was there but it did not help
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10415
Joined: Fri Feb 19, 2010 10:17 am

Re: How do I import a text file in Hebrew?

Post by richmond62 »

Again . . .

Unicode compliance?

Name of font?

Version of Windows?
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: How do I import a text file in Hebrew?

Post by Klaus »

liveCode wrote: Sun May 08, 2022 6:27 pm I tried the solution that was there but it did not help
OK, then please tell us next time what you already tried, that is helpful for US!
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: How do I import a text file in Hebrew?

Post by Klaus »

Hmmm, see attached screenshot!?

I downloaded yout text file, opened it with TextEdit on my Mac and imported it
into an LC field with my above mentioned script. Looks really OK to me.
hebrewtextfile.jpg
liveCode
Posts: 124
Joined: Sun Oct 17, 2021 5:53 pm

Re: How do I import a text file in Hebrew?

Post by liveCode »

How can I get the user to select the file?
I tried this code and it did not work ...

Code: Select all

on mouseUp
   answer file "file:"
   
put url(it) into tText
put textdecode(tText,"UTF-8") into fld 1
end mouseUp
jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7423
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: How do I import a text file in Hebrew?

Post by jacque »

liveCode wrote: Tue May 10, 2022 2:15 pm How can I get the user to select the file?
I tried this code and it did not work ...
Is this for mobile? Answer file and ask file don't work there.

On desktop you need to add the file designator:

Code: Select all

put url ("file:" & it) into tText
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
liveCode
Posts: 124
Joined: Sun Oct 17, 2021 5:53 pm

Re: How do I import a text file in Hebrew?

Post by liveCode »

This works if the text in the file is in English but if it is Hebrew then it leaves the field blank
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: How do I import a text file in Hebrew?

Post by Klaus »

Did you try with your own test file you had posted -> טקסט לדוגמא.txt ? That worked for me as you can see in my posting.
What exactly did you script? Why are you always so miserly with infos?
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10415
Joined: Fri Feb 19, 2010 10:17 am

Re: How do I import a text file in Hebrew?

Post by richmond62 »

Why are you always so miserly with infos?
Possible answers:

1. The OP wants other people to do their work for them.

2. They have a very limited understanding of computers and computer programming . . .

(think "what is RTF?")

I asked the OP to attach their original text file, and they did NOT, they attached something different.
Post Reply