Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - radon88

Pages: [1]
1
Zaurus - pdaXrom / Python's Help() Not Working
« on: February 06, 2006, 03:24:50 am »
Quote
Why don't you install 'python_2.4.1_armv5tel.ipk'. This package include it.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=113808\"][{POST_SNAPBACK}][/a][/div]

Thank you for your kind advice.    

What a size python_2.4.1_armv5tel.ipk has!

2
Zaurus - pdaXrom / Python's Help() Not Working
« on: February 06, 2006, 01:37:26 am »
Hi,

Python's help() function is not working.

I installed additional python-pydoc pacakges and urlparse.pyc and  urllib.pyc from desktop's python lib(c:\python24\lib).

But, help() made a new error

Code: [Select]
>>> help()
Traceback (most recent call last):
  File "", line 1, in ?
  File "/usr/lib/python2.4/site.py", line 327, in __call__
  File "/usr/lib/python2.4/pydoc.py", line 55, in ?
  File "/usr/lib/python2.4/repr.py", line 6, in ?
ImportError: No module named itertools


So I googled itertools, but itertools is a built-in module.

Did pdaxrom guys exclude(or compile) itertools module intentionally?

Do I need another packages?

Cheers,

3
Zaurus - pdaXrom / Minor Suggestions
« on: March 03, 2005, 01:56:54 am »
one more suggestion

X11: compile with

Code: [Select]
-DMUSTCOPY or -DMUSTCOPY2B
In XFree430, there's a bad assumption of structure size. (it's bad for ARM but for x86).

Without this define, XDrawString16 works incorectly.

4
Zaurus - pdaXrom / ANN: Fluxbox 0.9.10
« on: February 25, 2005, 12:41:00 am »
Quote
fluxbox is nice
but how do you rotate this?

[div align=\"right\"][a href=\"index.php?act=findpost&pid=51927\"][{POST_SNAPBACK}][/a][/div]

Hi, samxiao

Add belows to /home/root/.fluxbox/keys and restart X

Code: [Select]
None XF86RotateWindows :exec chkhinge
edited:

Before editing, check this.

Code: [Select]
xmodmap /etc/X11/kb/corgi.xmodmap
If you want rotation manually, just 'chkhinge' in terminal.

5
Zaurus - pdaXrom / How Can I Change Default Locale?
« on: February 23, 2005, 10:58:51 pm »
Quote
hmm. I don't know that problem,but I think you must install XLocale files.

get the pdaXrom feed xfree430-addon_430.... and install that.

and test..^^

good lucky.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=68372\"][{POST_SNAPBACK}][/a][/div]

It solved my problems nearly.

Thanks a lot.

6
Zaurus - pdaXrom / How Can I Change Default Locale?
« on: February 22, 2005, 06:47:43 am »
Hi,

How can I change default locales like LC_ALL, LC_CTYPE, ...?

I wrote "export LC_ALL=ko_KR.UTF-8" in /etc/profile.

But it didn't help.

Code: [Select]
#include

void main()
{
     char * name = NULL;
     name = setlocale(LC_ALL, (char*)NULL);
     printf("LC_ALL=%s\n", name);
}


This program always shows "LC_ALL=C".

Help me.

7
Zaurus - pdaXrom / Rc9: X430 Compiled Without Valid Define For Cjk.
« on: February 16, 2005, 02:06:28 am »
Hi,

I'm digging for displaying korean characters in xterm.

I found some weird things in X430 compilation in RC9.

XChar2b in zaurus is  4bytes long not 2bytes.

( see X11/Xlib.h, it's just a struct of 2 unsigned char.

 in x86 systems, it is 2bytes-long).

And compiling X430 without defining MUSTCOPY or MUSTCOPY2B,

 it makes trouble in diplaying non 1byte-characters(CJK or non-european world).)

see (X430SRC)/xc/lib/X11/Text16.c

Code: [Select]
int
XDrawString16
...
{
    ...
#if defined (MUSTCOPY) || defined(MUSTCOPY2B)
       // safe copy code for arm
#else
      // troublesome memcpy
      // it assume that XChar2b is 2bytes-long
      memcpy((char*) ..., (char*)..., 254 * 2);  
#endif
}


I patched my xterm code to work around with current situations.

And it displays korean characters correctly.

But I think it's the problem of compiling Xlibraries and with correct define will solve this problem

without inefficient workaround client patches.

And it should not harm 1byte-world people.(european characters world?)

Please compiling  X430 with defining MUSTCOPY or MUSTCOPY2B in RC10.

Am I wrong?  

PS.

I googled same problem: here

8
Zaurus - pdaXrom / Chinese New Year Gift
« on: February 16, 2005, 01:38:27 am »
Quote
i have n't  found any 10646-chineses-font .
[div align=\"right\"][a href=\"index.php?act=findpost&pid=67242\"][{POST_SNAPBACK}][/a][/div]

Uh-oh.

I know nothing about chinese font and anyone can help me?

Cheers,

9
Zaurus - pdaXrom / Chinese New Year Gift
« on: February 14, 2005, 11:50:08 pm »
Quote
error:
xterm unable to open font "-misc-fixed-medium-r-semicondensed-13-120-75-75-c-60-iso10646-1",trying "fixed"...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=67063\"][{POST_SNAPBACK}][/a][/div]

sorry for inconvenience.

I forgot that Z had no english-iso10646-1-fonts in default.

here's needed font.

put it to /usr/X11R6/lib/X11/fonts/misc

and

Code: [Select]
cd /usr/X11R6/lib/X11/fonts/misc

edit font.dir

add 1 to the first line's number

and add a next line into the last line.

Code: [Select]
6x13.pcf.gz -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1

Code: [Select]
xset fp rehash

now try
    /usr/local/bin/xterm
again.

thanks for help with experiment.

 

10
Zaurus - pdaXrom / Chinese New Year Gift
« on: February 13, 2005, 12:32:01 pm »
Quote
I think xterm can't display Chinese or Korean characters.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=66840\"][{POST_SNAPBACK}][/a][/div]

Try this ipk and tell me if xterm can display chinese correctly

new xterm will be installed at  /usr/local/bin,

so, try

/usr/local/bin/xterm -fn <english-iso10646-1-font> -fw <chinese-iso10646-1-font>

Cheers.

11
Zaurus - pdaXrom / Chinese New Year Gift
« on: February 13, 2005, 06:04:37 am »
Hi guys.

I'm a korean who want to know i18n capability in pdaxrom.

Is xterm display chinese characters correctly?

Do you guys use another xterm-compliants to see chinses characters?

Or xterm with some parameter or hack?

Cheers.

12
Zaurus - pdaXrom / Pdaxrom Window Manager
« on: February 04, 2005, 08:31:10 pm »
Quote
radon88:
Thanks! That did the trick   

I've got bad eyes and the small font on the menu has always bugged me. I set it to Verdana-16 and now it's perfect.

I also found you can use Scite to edit the file, just open and search for Verdana.

Just make sure to backup the file first in case of mistakes.

YMMV

Now to update the Wiki with a nod to pgas

Jerry
[div align=\"right\"][a href=\"index.php?act=findpost&pid=65568\"][{POST_SNAPBACK}][/a][/div]

Good to hear that.

I think that font name should be changed carefully.

I didn't do the experiments but new font name's size should not exceed original one(10 chars).

i.e UnDotum-14 and Verdana-16 are ok, but LongFontName-xx is not.

 

13
Zaurus - pdaXrom / Pdaxrom Window Manager
« on: February 04, 2005, 04:49:05 am »
Quote
pgas:
I echo Laze's comments, thanks for taking the initiative to write up the info I was looking for. I had gleaned much of the same info from the openbox3 website.

Now that I've had a chance to play some with the themes and tried hacking the xml files. I've come to the conclusion that the start menu's attributes are set in a binary file like mb-start-button. As no matter what I set  menu.items.font to it doesn't change the menu. I've got the window decorations like I'd like, but I would love to be able to change and increase the font of the menu.

Is there a way to edit the binary file like I do for Entrance configuration? (I forget the name of the app that I use, I think it's part of gtk -  linux box is at home)

Cheers,
Jerry
[div align=\"right\"][a href=\"index.php?act=findpost&pid=65425\"][{POST_SNAPBACK}][/a][/div]
Hi, I got same situation.

I suspected mb-applet-menu-launcher of  hard-coded font settings.

With gvim in Win32, I found and changed "Verdana-14"  in mb-applet-menu-launcher with  my local-language font name.

And voila!

It worked.

It's located at 0x3b90 and you can easily do in a linux box.

 

14
Zaurus - pdaXrom / Korean Locale Issue
« on: January 26, 2005, 11:39:23 pm »
Hi.

I'm a big fan of pdaXrom and now I want to print korean characters in xterm.  

So when  I started xterm like belows,  korean character(double width character) was badly represented with single-width character.  
(-gnu-* font was dragged from ubuntu desktop machine)

Code: [Select]
LANG=ko_KR.UTF-8 xterm -u8 -fn -gnu-unifont-medium-r-normal--16-160-75-75-c-80-iso10646-1
With some curiosity,  I decided to check korean locale support with program below

Code: [Select]
#include
#include
#include

int main(void)
{
time_t now;
struct tm *l_time;
char string[256];

setlocale(LC_TIME, "");
now = time((time_t *)NULL);
l_time = localtime(&now);
strftime(string, sizeof string, "%c", l_time);
printf("%s\n", string);

return 0;
}

But failed.  

Code: [Select]
LANG=ko ./localetester
LANG=ko_KR.UTF-8 ./localetester
LC_CTIME=ko ./localetester
LC_CTIME=ko_KR.UTF-8 ./localetester

All these commands shows C locale style outputs not korean locale.  
Code: [Select]
Wed Sep 17 01:44:38 2003
So, anyone teach me how to print korean characters correctly.

Help from Japanese and Chinese users will be very appreciated.  

Thanks for help in advance.

PS. sorry for bad english

Pages: [1]