Re: Arabic input via WebObjects?
Re: Arabic input via WebObjects?
- Subject: Re: Arabic input via WebObjects?
- From: email@hidden
- Date: Mon, 23 May 2005 17:53:54 +0200
Hi Steven,
Your questions are entitled.
Let me try.
----- Original Message -----
From: "Steven McDowall" <email@hidden>
To: <email@hidden>
Cc: <email@hidden>
Sent: Monday, May 23, 2005 4:08 PM
Subject: Re: Arabic input via WebObjects?
>
> Hi Sako!
>
> >>
> > You mean on the same page he can use 5 diffrent languages? and what
> > language
> > do you presnet your site?
> > however,..
> >
>
> Yes, we must be able to accept "on the fly" any of the above
> languages for input. The presentation language is also at the option
> of the user, but currently limited (just due to translation efforts)
> to English, German, French.
let me repeat in my words:
the user sees something like this:
----------------------------------------------------------------------------
--
Hello world, whats ur name? "My name is Sako."
مرحبا عالم, ما هو أسمك؟ "أسمي ساكو."
Hallo Weld, Wie heißt du? "ich heisse Sako"
----------------------------------------------------------------------------
--
and all together in one page?
i can imagin the user sees A PAGE in ONE language. so maybe arabic or
hebrow, etc...
However, if you mean that! ok.
>
> Something is still not quite jelling for me. Lets say we have a
> typical "records" type system where they have some data entry form
> where they can do the normal Change / Add / Delete.
>
> So -- new empty form. The user, by switching input modes (somehow)
> types data in : Name 1 in german and Name 2 in arabic. We store the
> data on the db.
>
> The enter a second record -- this time both NAME 1 and NAME 2 in French.
>
> Third record -- both NAME 1 and NAME 2 in Arabic.
>
> Now, lets say we have a "List" screen which shows the records in the
> DB where they can see and select one to edit.
>
> How in the world am I going to display the names correctly, given
> that some are in LTR (German/French) and some in RTL (Arabic)?
correctly? hmm. i dont think you will be able to do that simply.
The browsers will show the text correctly. At least opera and ie.
see this www.mrer.de for example
it contains words in english and others in arabic.
you must decide left or right. But the text will be correct. i.e. the user
will be able to read the text.
>
> Proper formatting would have the LTR names left justified and the RTL
> names Right Justified within the columns..
You can solve this problem if you use Tables. and set the LTR for EU and RTL
for hebrow/arabic.
>
> Seems to me the app will have to have special knowledge of which
> fields can be RTL and LTR and have special CSS or table formats or
> whatever to justify the names correctly for display based on the
> content, but that also seems a bit tricky.. Maybe not.
again, the user will be able to read the text very well. the problem is just
that the line starts from the left.
Tables is good solution.
>
> I also think searching CAN be an issue -- lets say we allow them to
> search by partial last name
Here as i saind. u will search for a word like "McDowall" your "عربي"
I already tested these sql with ms-sql. name col is nvarchar.
-------------------------------------------------------------
SELECT name
FROM Table1
WHERE (name = N'McDowall')
-------------------------------------------------------------
search for rows where the name is 'عربي'
SELECT name
FROM Table1
WHERE (name = N'عربي')
-------------------------------------------------------------
search for rows where the name starts with 'عر'
SELECT name
FROM Table1
WHERE (name LIKE N'عر%')
-------------------------------------------------------------
>
> Well -- if its an Arabic search, we need to tell the DB (unless its
> really smart) to match at the END of the string, where as in German/
> French/English it matches at the start of the string..
Wrong. the db does not save in this way.
i dont know exactly how db works. my suggestion.
the DB saves the first letter in german at the first 2 byte (Unicode)
and the LAST letter in arabic at the first 2 byte (Unicode).
however. it works. dont care about this.
One think you misunderstood i think. You will not be able to search for the
same name in diffrent langauges.
hope that helped
Sako.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden