International text input on X11

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
127 messages Options
1 ... 4567
Reply | Threaded
Open this post in threaded view
|

Re: International text input on X11

timrowledge

> On 13-07-2016, at 8:30 PM, Yoshiki Ohshima <[hidden email]> wrote:
>
>
>
> On Wed, Jul 13, 2016 at 4:14 PM, tim Rowledge <[hidden email]> wrote:
>
{snip}
>
>> A script to do the install is simple enough and I suspect someone can offer up the incantation to automate adding the relevant lines to .bashrc or create it if needed.
>>
>> yes, and there are bunch of those floating on websites for Japanese.  Many educators make their own disk image, etc. so while it'd be good to provide such to the world, it may not be the job for the Squeak community. Some people have different font preferences even, and they make pages or images that has modified .po file (that contains font spec).  So I think the Squeak community's job is to provide a good foundation for internationalized Scratch.


OK, fair point. Perhaps you could provide a pointer to a good place for people to look? We (as in the Pi foundation) ought to provide at least that much I think, so that anyone new to the scene has a decent starting place.


>
> I dropped the ball about the shell script, but where does it stand?

The scratch script handles choosing the image, handling some options (like —sudo for users of xrdp) and finding out if the camera, senseHAT or pigpio need setting up before calling the squeak script. That in turn finds the latest VM (now that we will be able to rely on a single vm version designator), sorts out the clib gunk, checks XMODIFIERS etc and finally starts up the vm with all the set parameters.


tim
--
tim Rowledge; [hidden email]; http://www.rowledge.org/tim
Computing Dictionary: Recursive: (see Recursive)



Reply | Threaded
Open this post in threaded view
|

Re: International text input on X11

Yoshiki Ohshima-3


On Thu, Jul 14, 2016 at 10:42 AM, tim Rowledge <[hidden email]> wrote:

> On 13-07-2016, at 8:30 PM, Yoshiki Ohshima <[hidden email]> wrote:
>
>
>
> On Wed, Jul 13, 2016 at 4:14 PM, tim Rowledge <[hidden email]> wrote:
>
{snip}
>
>> A script to do the install is simple enough and I suspect someone can offer up the incantation to automate adding the relevant lines to .bashrc or create it if needed.
>>
>> yes, and there are bunch of those floating on websites for Japanese.  Many educators make their own disk image, etc. so while it'd be good to provide such to the world, it may not be the job for the Squeak community. Some people have different font preferences even, and they make pages or images that has modified .po file (that contains font spec).  So I think the Squeak community's job is to provide a good foundation for internationalized Scratch.


OK, fair point. Perhaps you could provide a pointer to a good place for people to look? We (as in the Pi foundation) ought to provide at least that much I think, so that anyone new to the scene has a decent starting place.

Right.  I asked Abe-san and Sugiura-san about this.

>
> I dropped the ball about the shell script, but where does it stand?

The scratch script handles choosing the image, handling some options (like —sudo for users of xrdp) and finding out if the camera, senseHAT or pigpio need setting up before calling the squeak script. That in turn finds the latest VM (now that we will be able to rely on a single vm version designator), sorts out the clib gunk, checks XMODIFIERS etc and finally starts up the vm with all the set parameters.

Ok.  Has anybody try that script with English mode with Matchbox, etc.?  I haven't and checking that is okay was something I wanted to do.


--
-- Yoshiki



Reply | Threaded
Open this post in threaded view
|

Re: International text input on X11

Yoshiki Ohshima-3
In reply to this post by timrowledge
With those scripts (and with my modification send in a separate email)
and the VM I compiled from the github source, it handles
-compositioninput properly and I can get the Japanese text into
Scratch where the proper environment variables are set.  (The
composition window's position is not there yet as the image I have is
"02052015".)  It probably is nice if I test everything as people would
see them.

I am now trying to run the matchbox-keyboard and see how it interacts
with Scratch.

On Thu, Jul 14, 2016 at 10:42 AM, tim Rowledge <[hidden email]> wrote:

>
>> On 13-07-2016, at 8:30 PM, Yoshiki Ohshima <[hidden email]> wrote:
>>
>>
>>
>> On Wed, Jul 13, 2016 at 4:14 PM, tim Rowledge <[hidden email]> wrote:
>>
> {snip}
>>
>>> A script to do the install is simple enough and I suspect someone can offer up the incantation to automate adding the relevant lines to .bashrc or create it if needed.
>>>
>>> yes, and there are bunch of those floating on websites for Japanese.  Many educators make their own disk image, etc. so while it'd be good to provide such to the world, it may not be the job for the Squeak community. Some people have different font preferences even, and they make pages or images that has modified .po file (that contains font spec).  So I think the Squeak community's job is to provide a good foundation for internationalized Scratch.
>
>
> OK, fair point. Perhaps you could provide a pointer to a good place for people to look? We (as in the Pi foundation) ought to provide at least that much I think, so that anyone new to the scene has a decent starting place.
>
>
>>
>> I dropped the ball about the shell script, but where does it stand?
>
> The scratch script handles choosing the image, handling some options (like —sudo for users of xrdp) and finding out if the camera, senseHAT or pigpio need setting up before calling the squeak script. That in turn finds the latest VM (now that we will be able to rely on a single vm version designator), sorts out the clib gunk, checks XMODIFIERS etc and finally starts up the vm with all the set parameters.
>
>
> tim
> --
> tim Rowledge; [hidden email]; http://www.rowledge.org/tim
> Computing Dictionary: Recursive: (see Recursive)
>
>
>



--
-- Yoshiki

Reply | Threaded
Open this post in threaded view
|

Re: International text input on X11

Yoshiki Ohshima-3
In reply to this post by Yoshiki Ohshima-3
On Thu, Jul 14, 2016 at 11:08 AM, Yoshiki Ohshima
<[hidden email]> wrote:

>
>
> On Thu, Jul 14, 2016 at 10:42 AM, tim Rowledge <[hidden email]> wrote:
>>
>>
>> > On 13-07-2016, at 8:30 PM, Yoshiki Ohshima <[hidden email]>
>> > wrote:
>> >
>> >
>> >
>> > On Wed, Jul 13, 2016 at 4:14 PM, tim Rowledge <[hidden email]> wrote:
>> >
>> {snip}
>> >
>> >> A script to do the install is simple enough and I suspect someone can
>> >> offer up the incantation to automate adding the relevant lines to .bashrc or
>> >> create it if needed.
>> >>
>> >> yes, and there are bunch of those floating on websites for Japanese.
>> >> Many educators make their own disk image, etc. so while it'd be good to
>> >> provide such to the world, it may not be the job for the Squeak community.
>> >> Some people have different font preferences even, and they make pages or
>> >> images that has modified .po file (that contains font spec).  So I think the
>> >> Squeak community's job is to provide a good foundation for internationalized
>> >> Scratch.
>>
>>
>> OK, fair point. Perhaps you could provide a pointer to a good place for
>> people to look? We (as in the Pi foundation) ought to provide at least that
>> much I think, so that anyone new to the scene has a decent starting place.
>
>
> Right.  I asked Abe-san and Sugiura-san about this.
There is a page like this:

http://neuralassembly.blogspot.com/2016/06/noobs-192raspbian-jessie-scratch.html

which is pretty good but written just before the effort to make the
-compositioninput handling streamlined.  So the reader has to know
about it.  There is also a problem in the .po files for Japanese.  And
many people actually replace the .po files locally.  Perhaps the
standard distribution should have them.

--
-- Yoshiki



ja_po_20160801.zip (28K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: International text input on X11

Yoshiki Ohshima-3
In reply to this post by Yoshiki Ohshima-3
On Mon, Aug 1, 2016 at 1:09 PM, Yoshiki Ohshima <[hidden email]> wrote:
>
> I am now trying to run the matchbox-keyboard and see how it interacts
> with Scratch.

As for matchbox-keyboard and Scratch running in the English
environment, it works okay.
--
-- Yoshiki

Reply | Threaded
Open this post in threaded view
|

Re: International text input on X11

timrowledge
In reply to this post by Yoshiki Ohshima-3

> On 01-08-2016, at 1:09 PM, Yoshiki Ohshima <[hidden email]> wrote:
>
> With those scripts (and with my modification send in a separate email)
> and the VM I compiled from the github source, it handles
> -compositioninput properly and I can get the Japanese text into
> Scratch where the proper environment variables are set.  (The
> composition window's position is not there yet as the image I have is
> "02052015".)  It probably is nice if I test everything as people would
> see them.

The release candidate for the august Raspbian is at https://github.com/raspberrypi/scratch/commit/3b6cdcb03104964ac4de3472277ce828645a8de8

It’s a simple zipped-tar of the files for the entire release, so untar it in / as in
cd /
sudo tar xczf {path-to-.tgz}

and it ought to put everything where it needs to go. If it doesn’t…
a) swear loudly
b) re-install a fresh Raspbian
c) set it up as your previous version
d) eat chocolate
e) try again

I’m working on release notes and new demo scripts for the new features.

tim
--
tim Rowledge; [hidden email]; http://www.rowledge.org/tim
Useful Latin Phrases:- Totum dependeat. = Let it all hang out.



Reply | Threaded
Open this post in threaded view
|

Re: International text input on X11

Yoshiki Ohshima-3
On Mon, Aug 1, 2016 at 2:56 PM, tim Rowledge <[hidden email]> wrote:

>
>> On 01-08-2016, at 1:09 PM, Yoshiki Ohshima <[hidden email]> wrote:
>>
>> With those scripts (and with my modification send in a separate email)
>> and the VM I compiled from the github source, it handles
>> -compositioninput properly and I can get the Japanese text into
>> Scratch where the proper environment variables are set.  (The
>> composition window's position is not there yet as the image I have is
>> "02052015".)  It probably is nice if I test everything as people would
>> see them.
>
> The release candidate for the august Raspbian is at https://github.com/raspberrypi/scratch/commit/3b6cdcb03104964ac4de3472277ce828645a8de8
>
> It’s a simple zipped-tar of the files for the entire release, so untar it in / as in
> cd /
> sudo tar xczf {path-to-.tgz}

Great.  I just did above onto the Japanese environment and it seems to
work, including the composition window location.

> and it ought to put everything where it needs to go. If it doesn’t…
> a) swear loudly
> b) re-install a fresh Raspbian
> c) set it up as your previous version
> d) eat chocolate
> e) try again

I did not have to do any of those, including d).

> I’m working on release notes and new demo scripts for the new features.

Great!

--
-- Yoshiki

1 ... 4567