maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   Full Chinese Japanese Korean (CJK) input for the Nokia N900 GNU mobile phone (https://talk.maemo.org/showthread.php?t=37242)

白い熊 2009-12-15 06:42

Re: Full Chinese Japanese Korean (CJK) input for the Nokia N900 GNU mobile phone
 
Ah, you're right man, my mistake, I missed one `1' when compiling it
/opt/emacs_23.1_shiroikuma_2009-12-15-001000_fremantle_armel/bin/emacs
will make it run.

Ahhh... I wanted to help everybody, damn it... so many errors. If you bear with me a couple of hours, I'll rebuild the package, fix the errors, and make it start from the icon and everything.

You'd then have to uninstall this one, in the way specified above, and reinstall the new one... :mad:

urmybaby 2009-12-15 06:44

Re: Full Chinese Japanese Korean (CJK) input for the Nokia N900 GNU mobile phone
 
Quote:

Originally Posted by 白い熊 (Post 428452)
Edit a file on the PC, make it have the following text:
(set-clipboard-coding-system 'utf-8)
(setq x-select-enable-clipboard t)

Save it as .emacs (note the DOT in front of the `e').
Copy it to the N900.
In the terminal, move it to /home/user

Or just run emacs, then:
C-x C-f .emacs
Then type the text, then save with
C-x C-s
Then restart Emacs, and you it'll work.

you mean use notepad? and save as (set-clipboard-coding-system 'utf-8).emacs?

urmybaby 2009-12-15 06:45

Re: Full Chinese Japanese Korean (CJK) input for the Nokia N900 GNU mobile phone
 
Quote:

Originally Posted by 白い熊 (Post 428459)
Ah, you're right man, my mistake, I missed one `1' when compiling it
/opt/emacs_23.1_shiroikuma_2009-12-15-001000_fremantle_armel/bin/emacs
will make it run.

Ahhh... I wanted to help everybody, damn it... so many errors. If you bear with me a couple of hours, I'll rebuild the package, fix the errors, and make it start from the icon and everything.

You'd then have to uninstall this one, in the way specified above, and reinstall the new one... :mad:

thank you for your patiatence, i will stay for couple hours, thank you

白い熊 2009-12-15 06:48

Re: Full Chinese Japanese Korean (CJK) input for the Nokia N900 GNU mobile phone
 
Quote:

Originally Posted by urmybaby (Post 428460)
you mean use notepad? and save as (set-clipboard-coding-system 'utf-8).emacs?

If you use notepad, create a file named .emacs (with a DOT in front of the `emacs')
and make it contain the following text:
(set-clipboard-coding-system 'utf-8)
(setq x-select-enable-clipboard t)
Then copy it to the N900 and in the terminal move it to /home/user

urmybaby 2009-12-15 06:51

Re: Full Chinese Japanese Korean (CJK) input for the Nokia N900 GNU mobile phone
 
yes, /opt/emacs_23.1_shiroikuma_2009-12-15-001000_fremantle_armel/bin/emacs

worked, i finally opened emacs, but is there a simple way to run it? like click the icon on desktop instead of xterminal every time?

urmybaby 2009-12-15 06:59

Re: Full Chinese Japanese Korean (CJK) input for the Nokia N900 GNU mobile phone
 
im in buffer mode, but i dont exactly know how to change to chinese input. do i type C-x RET C-\chinese TAB TAB or do i do it out actually?

urmybaby 2009-12-15 07:08

Re: Full Chinese Japanese Korean (CJK) input for the Nokia N900 GNU mobile phone
 
im very confused of how to use chinese input in emacs, so in the buffer scrach mode, then i press ctrl+x then enter, press ctrl+/, then chinese?
then tab tab? how do i do that on n900?

白い熊 2009-12-15 07:12

Re: Full Chinese Japanese Korean (CJK) input for the Nokia N900 GNU mobile phone
 
Quote:

Originally Posted by urmybaby (Post 428470)
yes, /opt/emacs_23.1_shiroikuma_2009-12-15-001000_fremantle_armel/bin/emacs

worked, i finally opened emacs, but is there a simple way to run it? like click the icon on desktop instead of xterminal every time?

Yeah, when I fix it, it'll run.

If you got this far, you could probably fix it yourself, here's how:
create a file called emacs.sh
and make it containt the following text
cd ~
/opt/emacs_23.1_shiroikuma_2009-12-15-001000_fremantle_armel/bin/emacs
Copy it to your Documents folder, then in the terminal as root, i.e. after sudo gainroot
type
mv /home/user/MyDocs/emacs.sh /usr/bin/
chmod 755 /usr/bin/emacs.sh


Now, when you click the Emacs icon in the app menu, it'll work.

白い熊 2009-12-15 07:19

Re: Full Chinese Japanese Korean (CJK) input for the Nokia N900 GNU mobile phone
 
Quote:

Originally Posted by urmybaby (Post 428497)
im very confused of how to use chinese input in emacs, so in the buffer scrach mode, then i press ctrl+x then enter, press ctrl+/, then chinese?
then tab tab? how do i do that on n900?

Yeah, press ctrl+x then enter then ctrl+\ (not /), that's C-x RET C-\ in Emacs notation, then, for tab you need to remap one of the keys to be tab, I'll post about that later, in the meantime, you need to type the full name of the input method without tab.

For chinese, GNU Emacs has the following input methods:
chinese-4corner
chinese-array30
chinese-b5-quick
chinese-b5-tsangchi
chinese-ccdospy
chinese-cns-quick
chinese-cns-tsangchi
chinese-ctlau
chinese-ctlaub
chinese-ecdict
chinese-etzy
chinese-punct
chinese-punct-b5
chinese-py
chinese-py-b5
chinese-py-punct
chinese-py-punct-b5
chinese-qj
chinese-qj-b5
chinese-sisheng
chinese-sw
chinese-tonepy
chinese-tonepy-punct
chinese-ziranma
chinese-zozy

So after C-x RET C-\ just type one of these full names and hit RET.

GNU Emacs will then switch into the input method and you'll be able to type Chinese.

To switch back and forth between the selected method and English then, just hit C-\

If you need to select another one, do C-x RET C-\ again.

urmybaby 2009-12-15 07:34

Re: Full Chinese Japanese Korean (CJK) input for the Nokia N900 GNU mobile phone
 
maybe im too dumb to use emacs.....
i can do ctrl+x+enter, but n900 doesn't have a \ key. i still cant figure out how to type chinese in emacs.

urmybaby 2009-12-15 07:39

Re: Full Chinese Japanese Korean (CJK) input for the Nokia N900 GNU mobile phone
 
i hope you can make a new pakage soon, thank you, i ll go to bed now, and come back tomorrow to check with you. thank you
(still cannot type CJK input)

白い熊 2009-12-15 12:58

Re: Full Chinese Japanese Korean (CJK) input for the Nokia N900 GNU mobile phone
 
I've built a new package with all the problems fixed. It starts neatly from an icon, and I've updated the GNU Emacs on Nokia N900 install guide:
http://sumoudou.org/0/14.html
Haven't yet uploaded the new package, as I'm having connection issues, will upload in a couple of hours.

I've updated the guides, on how to remap the keys, how to edit the necessary .emacs file directly in GNU Emacs etc. but can't upload the guides temporarily.

白い熊 2009-12-15 14:41

Re: Full Chinese Japanese Korean (CJK) input for the Nokia N900 GNU mobile phone
 
I've uploaded the fixed installation package, it's the same link as in the 1st post of this thread:
http://sumoudou.org/n900/emacs_23.1.1_armel.deb

Be sure to check the updated setup instructions:
http://sumoudou.org/0/14.html

urmybaby 2009-12-15 20:12

Re: Full Chinese Japanese Korean (CJK) input for the Nokia N900 GNU mobile phone
 
Quote:

Originally Posted by 白い熊 (Post 429022)
I've uploaded the fixed installation package, it's the same link as in the 1st post of this thread:
http://sumoudou.org/n900/emacs_23.1.1_armel.deb

Be sure to check the updated setup instructions:
http://sumoudou.org/0/14.html

when i come back, i will try again. ty

kcman123 2009-12-15 22:36

Re: Full Chinese Japanese Korean (CJK) input for the Nokia N900 GNU mobile phone
 
Hi all Im really new to Linux and I really want to learn. I thought it would be similar to dos but I am embrassed to say I cannot get through this step:

Ok I am trying to get through step 5:
dpkg -i emacs_23.1.1_armel.deb

it says dpkg: requetsted operation requires superuser privlege?

What do i do :(

jakiman 2009-12-16 01:04

Re: Full Chinese Japanese Korean (CJK) input for the Nokia N900 GNU mobile phone
 
Would be awesome if someone made a Youtube video on how to do this and how it works on the N900. (for those who don't have N900 yet...) This will also make it more attractive for thos who are thinking of buying the N900. =)

hypnotik 2009-12-16 02:00

Re: Full Chinese Japanese Korean (CJK) input for the Nokia N900 GNU mobile phone
 
Someone's working on an IME input: http://twitter.com/taike_hk/status/6715580698

Watch the video, pretty neat.

archzai 2009-12-16 03:32

Re: Full Chinese Japanese Korean (CJK) input for the Nokia N900 GNU mobile phone
 
yes please. youtube videos showing how it works would be nice.

how does one type chinese for example? using pinyin?

白い熊 2009-12-16 05:38

Re: Full Chinese Japanese Korean (CJK) input for the Nokia N900 GNU mobile phone
 
Quote:

Originally Posted by kcman123 (Post 429678)
Ok I am trying to get through step 5:
dpkg -i emacs_23.1.1_armel.deb
it says dpkg: requetsted operation requires superuser privlege?
What do i do :(

If you're trying to get through step 5, you first need to get through step 4, which you didn't, that's why you're getting the error...

archzai 2009-12-16 07:06

Re: Full Chinese Japanese Korean (CJK) input for the Nokia N900 GNU mobile phone
 
how do i uninstall this thing....

kcman123 2009-12-16 14:55

Re: Full Chinese Japanese Korean (CJK) input for the Nokia N900 GNU mobile phone
 
Quote:

Originally Posted by 白い熊 (Post 430004)
If you're trying to get through step 5, you first need to get through step 4, which you didn't, that's why you're getting the error...

Ok I extracted the file into Nokia N900/Documents/

This is the original directory which the nokia gave me to download the emacs file in.

For some reason Terminal X says:
Cannot access archive: No such file or directory

Errors were encountered while processing:
emacs_23.1.1_armel.deb

chinablue 2009-12-17 07:20

Re: Full Chinese Japanese Korean (CJK) input for the Nokia N900 GNU mobile phone
 
remapping the keyboard, but wget not found...what should I do next?

白い熊 2009-12-17 09:03

Re: Full Chinese Japanese Korean (CJK) input for the Nokia N900 GNU mobile phone
 
Quote:

Originally Posted by kcman123 (Post 430468)
Ok I extracted the file into Nokia N900/Documents/

What do you mean extracted? You mean downloaded?

Quote:

For some reason Terminal X says:
Cannot access archive: No such file or directory
If you downloaded it there, it should be in /home/user/MyDocs
Do you see it there in the terminal

Quote:

Errors were encountered while processing:
emacs_23.1.1_armel.deb
Yeah, this is fine, this it what it says in the site ERRORS WILL SHOW, because you don't have the dependencies installed.

Then connect to the internet and do apt-get -f install to install the dependencies.

白い熊 2009-12-17 09:04

Re: Full Chinese Japanese Korean (CJK) input for the Nokia N900 GNU mobile phone
 
Quote:

Originally Posted by chinablue (Post 431476)
remapping the keyboard, but wget not found...what should I do next?

Just download the file from the webbrowser.

kinhung 2009-12-17 10:13

Re: Full Chinese Japanese Korean (CJK) input for the Nokia N900 GNU mobile phone
 
Quote:

Originally Posted by 白い熊 (Post 431569)
What do you mean extracted? You mean downloaded?


If you downloaded it there, it should be in /home/usr/MyDocs
Do you see it there in the terminal


Yeah, this is fine, this it what it says in the site ERRORS WILL SHOW, because you don't have the dependencies installed.

Then connect to the internet and do apt-get -f install to install the dependencies.

I have the same problem. After install the dependencies, the problem still exist.

I put the deb file in Documents.
is the " /home/usr/MyDocs " correct for the Documents folder?

Thank you.

白い熊 2009-12-17 10:39

Re: Full Chinese Japanese Korean (CJK) input for the Nokia N900 GNU mobile phone
 
Quote:

Originally Posted by kinhung (Post 431645)
I have the same problem. After install the dependencies, the problem still exist.

Which problem exists? If you installed the dependencies the problem with missing dependencies is fixed. Be more concrete, man...

Quote:

I put the deb file in Documents.
is the " /home/usr/MyDocs " correct for the Documents folder?
It's /home/user/MyDocs

But what's the problem, if you've installed it and installed the dependencies, obviously you've found the file. Where was it? Or what are you askin' 'bout?

kinhung 2009-12-17 12:42

Re: Full Chinese Japanese Korean (CJK) input for the Nokia N900 GNU mobile phone
 
Quote:

Originally Posted by 白い熊 (Post 431668)
Which problem exists? If you installed the dependencies the problem with missing dependencies is fixed. Be more concrete, man...


It's /home/user/MyDocs

But what's the problem, if you've installed it and installed the dependencies, obviously you've found the file. Where was it? Or what are you askin' 'bout?

Thank you for your fast reply.

I place the .deb file in Nokia N900/Documents

And I follow your steps to install it, after Step5 in basic mode. I got the error that cannot find the file like the previous user.

Then I follow Step6 to install dependencies. And try again Step 5. Same error happens.

kinhung 2009-12-17 12:59

Re: Full Chinese Japanese Korean (CJK) input for the Nokia N900 GNU mobile phone
 
I solved it myself.

after cd to mydocs folder. I list the files of this folder.

And I found it is the root directory when connecting to PC as mass storage. I just move the .deb file to this root directory. It can be installed through your steps.

anyway, thanks for great work.

白い熊 2009-12-17 13:07

Re: Full Chinese Japanese Korean (CJK) input for the Nokia N900 GNU mobile phone
 
Quote:

Originally Posted by kinhung (Post 431785)
And I follow your steps to install it, after Step5 in basic mode. I got the error that cannot find the file like the previous user.

Then I follow Step6 to install dependencies. And try again Step 5. Same error happens.

If you get file missing error in Step 5, it's useless to go to Step 6...

Save the file in N900/ that's /home/user/MyDocs, I don't know where your N900/Documents points to...

If you save it N900/ then cd to /home/user/MyDocs, then carry out Step 5, it'll work...

白い熊 2009-12-17 13:08

Re: Full Chinese Japanese Korean (CJK) input for the Nokia N900 GNU mobile phone
 
Quote:

Originally Posted by kinhung (Post 431810)
And I found it is the root directory when connecting to PC as mass storage. I just move the .deb file to this root directory. It can be installed through your steps.

Good......

kcman123 2009-12-17 15:01

Re: Full Chinese Japanese Korean (CJK) input for the Nokia N900 GNU mobile phone
 
Quote:

Originally Posted by 白い熊 (Post 428438)
It'll work, if you do the above step.

To uninstall, either go to the Package manager, and choose Uninstall, then Emacs, or from the terminal as root, i.e. after sudo gainroot:
apt-get remove emacs

When i use "apt-get remove emacs"
The following proceeds:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package emacs is not installed, so not removed
The following packages were automatically installed and are no longer requiredE:
libxpm4 libungif4g
use 'apt-get autoremove' to remove them
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded

Does that mean I uninstalled emacs? Do i have to type apt-get autoremove' to finish the process of removal? Thanks for the help!

白い熊 2009-12-17 15:15

Re: Full Chinese Japanese Korean (CJK) input for the Nokia N900 GNU mobile phone
 
Yeah, you uninstalled it. To uninstall deps do the autoremove.

白い熊 2009-12-19 03:10

Re: Full Chinese Japanese Korean (CJK) input for the Nokia N900 GNU mobile phone
 
Quote:

Originally Posted by jakiman (Post 429846)
Would be awesome if someone made a Youtube video on how to do this and how it works on the N900. (for those who don't have N900 yet...) This will also make it more attractive for thos who are thinking of buying the N900. =)

I've captured a screencast of the N900 CJK input in GNU Emacs, originally with audio explanation, but it was lagging behind the video, so confusing, so removed the audio.

But it shows what I highlight above:
open GNU Emacs
switch to *scratch* buffer
change to Chinese input, type Chinese
change to Japanese input, type Japanese
change to Korean input, type Korean
cut the text
switch to a new SMS
paste the text into an SMS ready to send

http://sumoudou.org/n900/emacs-cjk.avi

jakiman 2009-12-23 07:39

Re: Full Chinese Japanese Korean (CJK) input for the Nokia N900 GNU mobile phone
 
Hi, I've been trying to get this to work and I'm failing miserably.

I have followed the Basic steps.

But am stuck in Step 8 & 9.

Questions:
1. Can Step 8 be reversed? or will it impact me using my N900 in any other apps? (I have US N900 model)
UPDATE: Okay. I have found the answer to this. Just had to look at the commands. =P

2. I'm really having a hard time following this step. It says to download the maxframe.el. But where do I put it once downloaded?
UPDATE: Okay. I think I have sorta figured this out also.

3.. Also, I have /home/user/.emacs.d right now. Do I need a separate .emacs file?

I'm still stuck with lower part of emacs not displaying correctly...

I'm unsure exactly how to setup the .emacs file and the location of the maxframe.el. (should the name remain maxframe.el?)

jakiman 2009-12-23 20:11

Re: Full Chinese Japanese Korean (CJK) input for the Nokia N900 GNU mobile phone
 
I couldn't get the screen maximised properly on my N900 still.
However, the shortcuts still work and I could get Korean to work. =)

Is there a way to start gnu emacs automatically in scratch buffer with korean-hangul set as default?

白い熊 2009-12-24 03:26

Re: Full Chinese Japanese Korean (CJK) input for the Nokia N900 GNU mobile phone
 
[QUOTE=jakiman;438701]2. I'm really having a hard time following this step. It says to download the maxframe.el. But where do I put it once downloaded?[quote]
Put it anywhere, then enter the path to it, as shown in the step.

If you download it to the N900 dir, the path is /home/user/MyDocs
Quote:

3.. Also, I have /home/user/.emacs.d right now. Do I need a separate .emacs file?
Yeah, .emacs.d is not a file, it's a configuration directory. You need /home/user/.emacs

Quote:

tI'm still stuck with lower part of emacs not displaying correctly...
That's what maxframe is for.

After you run maximize-frame, it'll display perfectly.

白い熊 2009-12-24 03:29

Re: Full Chinese Japanese Korean (CJK) input for the Nokia N900 GNU mobile phone
 
Quote:

Originally Posted by jakiman (Post 439470)
I couldn't get the screen maximised properly on my N900 still.
However, the shortcuts still work and I could get Korean to work. =)

Set up maxframe as described, and it'll maximize well.

Quote:

Is there a way to start gnu emacs automatically in scratch buffer with korean-hangul set as default?
Add:
(setq default-input-method "korean-hangul")
to .emacs
then you can switch to korean just with C-\

You need to switch to scratch manually.

lovemov 2009-12-31 01:08

Re: Full Chinese Japanese Korean (CJK) input for the Nokia N900 GNU mobile phone
 
I though web input such as this one http://www.inputking.com/ should work? Interestingly enough it's NOT!
It works fine on N810 browser, not N900 browser. What's wrong?

chocolate_cass 2010-04-29 06:42

Re: Full Chinese Japanese Korean (CJK) input for the Nokia N900 GNU mobile phone
 
Quote:

Originally Posted by 白い熊 (Post 428364)
If you open File Manager and go all the way to the top you will see some folder that has the same name as you called your N900 device. This is the /home/user/MyDocs folder, so if you save the file to this folder, then open the terminal and:
cd /home/user/MyDocs
If you have a MicroSD card in there and you saved it to it, it should be automatically mounted somewhere in /media/ so you can cd there...

i changed my device name, n saved the file in "documents"folder. in step 5, it can cd to /home/user/MyDocs, but when i key in the dpkg command, the following displayed:

dpkg: error processing emacs_23.1.1_armel.deb (--install):
cannot access archive: No such file or directory
Error were encountered while processing:
emacs_23.1.1_armel.deb

need your help, thanks.

nan 2010-04-29 06:52

Re: Full Chinese Japanese Korean (CJK) input for the Nokia N900 GNU mobile phone
 
Where did you save your package? under documents? then you need to cd to that dir instead of MyDocs. use ls to check whether the package exists or not.


All times are GMT. The time now is 16:16.

vBulletin® Version 3.8.8