Multilingual Website (Euro & Asian languages)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Multilingual Website (Euro & Asian languages)

Sébastien Rocca-Serra
Hi, I'm currently developping a multilingual Seaside website.
I have already implemented several Euro languages, but I need to add
some Asian languages as well.

The trouble is that when I paste some Asian text in Squeak, it shows up
like this: '????' (i.e. a series of question marks).
Both in Squeak and then in the Web browser if I render it on a WAComponent.

Note - I'm using:
- Squeak 3.9
- Seaside 2.6
- the LanguageEditor
- on Windows & Linux.

How can I solve this ?
By the way, is there a 'search' function in the Squeak mailing lists ?

Thanks !
Sebastien.

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Multilingual Website (Euro & Asian languages)

cbeler
Hi
>
>
> Note - I'm using:
> - Squeak 3.9
> - Seaside 2.6
> - the LanguageEditor
is it a Package ?

> By the way, is there a 'search' function in the Squeak mailing lists ?
you can use google with:

site:http://lists.squeakfoundation.org language translation


Cédrick
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Multilingual Website (Euro & Asian languages)

Philippe Marschall
In reply to this post by Sébastien Rocca-Serra
2006/10/12, Sébastien Rocca-Serra <[hidden email]>:

> Hi, I'm currently developping a multilingual Seaside website.
> I have already implemented several Euro languages, but I need to add
> some Asian languages as well.
>
> The trouble is that when I paste some Asian text in Squeak, it shows up
> like this: '????' (i.e. a series of question marks).
> Both in Squeak and then in the Web browser if I render it on a WAComponent.
>
> Note - I'm using:
> - Squeak 3.9
The only working sever adaptor for non-ASCII Text in Squeak 3.9 is
WAKomEndcoded39.

> - Seaside 2.6
> - the LanguageEditor
> - on Windows & Linux.
>
> How can I solve this ?
> By the way, is there a 'search' function in the Squeak mailing lists ?

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Multilingual Website (Euro & Asian languages)

Sébastien Rocca-Serra
In reply to this post by Sébastien Rocca-Serra
> is it a Package ?
No, but loading Damien's ImageForDevelopers will smoothly ask and
install all you need.
(Cheers Damien, incredibly useful participation !)

> you can use google with:
> site:http://lists.squeakfoundation.org language translation
Great, thanks !

> The only working sever adaptor for non-ASCII Text in Squeak 3.9 is
> WAKomEndcoded39.
Yes, that's what I'm using.
It displays European accented characters fine (which WAKom doesn't), but
I still can't display Asian characters...

I also read Yoshiki's Multilingualized Squeak page, but I still can't
display Chinese or Japanese text in my image or website.

Any suggestions ?
Thanks !

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Multilingual Website (Euro & Asian languages)

Philippe Marschall
2006/10/13, Sébastien Rocca-Serra <[hidden email]>:

> > is it a Package ?
> No, but loading Damien's ImageForDevelopers will smoothly ask and
> install all you need.
> (Cheers Damien, incredibly useful participation !)
>
> > you can use google with:
> > site:http://lists.squeakfoundation.org language translation
> Great, thanks !
>
> > The only working sever adaptor for non-ASCII Text in Squeak 3.9 is
> > WAKomEndcoded39.
> Yes, that's what I'm using.
> It displays European accented characters fine (which WAKom doesn't), but
> I still can't display Asian characters...
>
> I also read Yoshiki's Multilingualized Squeak page, but I still can't
> display Chinese or Japanese text in my image or website.
>
> Any suggestions ?
Well the problem I have is I don't know how to paste Japanse text
intoSqueak. If I take for example Hiragana from the UTF-8 sampler [1]
I get "javascript encoded uunicode" just see for yourself:

'\u3044\u308d\u306f\u306b\u307b\u3078\u3069\u3000\u3061\u308a\u306c\u308b\u3092
\u308f\u304c\u3088\u305f\u308c\u305e\u3000\u3064\u306d\u306a\u3089\u3080
\u3046\u3090\u306e\u304a\u304f\u3084\u307e\u3000\u3051\u3075\u3053\u3048\u3066
\u3042\u3055\u304d\u3086\u3081\u307f\u3058\u3000\u3091\u3072\u3082\u305b\u305a'

You probably have to go to squeak-dev with this problem.

But once I converted it to a Squeak WideString everything did as it
should (only in the inspector the WideString shows up as '????????').

renderUnicodeOn: html
        | encoded codePoints unicode |
        encoded := '\u3044\u308d\u306f\u306b\u307b\u3078\u3069\u3000\u3061\u308a\u306c\u308b\u3092
\u308f\u304c\u3088\u305f\u308c\u305e\u3000\u3064\u306d\u306a\u3089\u3080
\u3046\u3090\u306e\u304a\u304f\u3084\u307e\u3000\u3051\u3075\u3053\u3048\u3066
\u3042\u3055\u304d\u3086\u3081\u307f\u3058\u3000\u3091\u3072\u3082\u305b\u305a'.
       
        codePoints := (encoded findTokens: '\u') collect: [ :each |
                Integer readFrom: each asUppercase readStream base: 16 ].
               
        unicode := WideString streamContents: [ :stream |
                codePoints do: [ :each |
                        stream nextPut: (Character value: each) ] ].
       
        html text: unicode

I would be great to have non-Latin 1 tests in Seaside the problem is
just that this is highly platform specific.

Philippe

[1] http://www.columbia.edu/kermit/utf8.html

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Multilingual Website (Euro & Asian languages)

Chun, Sungjin
In reply to this post by Sébastien Rocca-Serra
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

To display Japanese or Korean text string in Squeak Environment, you
need to import fonts for these languages and set up properly. To display
 on web browser, as far as I know(I'm using 3.8), WAKomEncoded does work.

Hope this can help you.

Sébastien Rocca-Serra wrote:

>> is it a Package ?
> No, but loading Damien's ImageForDevelopers will smoothly ask and
> install all you need.
> (Cheers Damien, incredibly useful participation !)
>
>> you can use google with:
>> site:http://lists.squeakfoundation.org language translation
> Great, thanks !
>
>> The only working sever adaptor for non-ASCII Text in Squeak 3.9 is
>> WAKomEndcoded39.
> Yes, that's what I'm using.
> It displays European accented characters fine (which WAKom doesn't), but
> I still can't display Asian characters...
>
> I also read Yoshiki's Multilingualized Squeak page, but I still can't
> display Chinese or Japanese text in my image or website.
>
> Any suggestions ?
> Thanks !
>
> _______________________________________________
> Seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFL40wQqspS1+XJHgRAsvfAKDQm3SQaOA8+8zlsSmeW3Z65OCWGQCgsWDQ
8d8C7l9qrrhHJceWjDv1zkQ=
=JEkL
-----END PGP SIGNATURE-----
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Multilingual Website (Euro & Asian languages)

Humber Aquino
To display japanese characters i use the squeak image 3.9 RC1 and with the developer image loaded from squeak map.
Then just execute WAKomEncoded39 startOn: portNumber

Then my browser automatically use UTF-8 chraracters to display the text. (Firefox 1.5 on MacOSX Tiger).



On 10/13/06, Sungjin Chun <[hidden email]> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

To display Japanese or Korean text string in Squeak Environment, you
need to import fonts for these languages and set up properly. To display
on web browser, as far as I know(I'm using 3.8), WAKomEncoded does work.

Hope this can help you.

Sébastien Rocca-Serra wrote:

>> is it a Package ?
> No, but loading Damien's ImageForDevelopers will smoothly ask and
> install all you need.
> (Cheers Damien, incredibly useful participation !)
>
>> you can use google with:
>> site:http://lists.squeakfoundation.org language translation
> Great, thanks !
>
>> The only working sever adaptor for non-ASCII Text in Squeak 3.9 is
>> WAKomEndcoded39.
> Yes, that's what I'm using.
> It displays European accented characters fine (which WAKom doesn't), but
> I still can't display Asian characters...
>
> I also read Yoshiki's Multilingualized Squeak page, but I still can't
> display Chinese or Japanese text in my image or website.
>
> Any suggestions ?
> Thanks !
>
> _______________________________________________
> Seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFL40wQqspS1+XJHgRAsvfAKDQm3SQaOA8+8zlsSmeW3Z65OCWGQCgsWDQ
8d8C7l9qrrhHJceWjDv1zkQ=
=JEkL
-----END PGP SIGNATURE-----
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Multilingual Website (Euro & Asian languages)

Sébastien Rocca-Serra
In reply to this post by Chun, Sungjin
> Well the problem I have is I don't know how to paste Japanse text
> intoSqueak.

Same problem for me. I partially solved the problem by editing a
translation file in Vim and then loading it into LanguageEditor.
The website displays fine in any language now.

> To display Japanese or Korean text string in Squeak Environment, you
> need to import fonts for these languages and set up properly. To display
>  on web browser, as far as I know(I'm using 3.8), WAKomEncoded does work.

Thanks, I will look for a proper font if I need to (my problem is solved
for the moment !).

Cheers.
Sebastien.

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside