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: 13824
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

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

Post by Klaus » Sun May 08, 2022 6:02 pm

@liveCode
You should read all replies carefully and ask if you don't understand them!

liveCode
Posts: 119
Joined: Sun Oct 17, 2021 5:53 pm

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

Post by liveCode » Sun May 08, 2022 6:27 pm

I tried the solution that was there but it did not help

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9359
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

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

Post by richmond62 » Sun May 08, 2022 6:35 pm

Again . . .

Unicode compliance?

Name of font?

Version of Windows?

Klaus
Posts: 13824
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

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

Post by Klaus » Sun May 08, 2022 6:39 pm

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: 13824
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

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

Post by Klaus » Sun May 08, 2022 6:45 pm

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: 119
Joined: Sun Oct 17, 2021 5:53 pm

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

Post by liveCode » 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 ...

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: 7228
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

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

Post by jacque » Tue May 10, 2022 5:32 pm

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: 119
Joined: Sun Oct 17, 2021 5:53 pm

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

Post by liveCode » Tue May 10, 2022 6:01 pm

This works if the text in the file is in English but if it is Hebrew then it leaves the field blank

Klaus
Posts: 13824
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

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

Post by Klaus » Tue May 10, 2022 6:17 pm

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: 9359
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

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

Post by richmond62 » Tue May 10, 2022 6:27 pm

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

Return to “Getting Started with LiveCode - Experienced Developers”