[SOLVED][Fonts]I can't select the script

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
saffolino
Level 1
Level 1
Posts: 6
Joined: Tue Apr 29, 2008 8:04 am

[SOLVED][Fonts]I can't select the script

Post by saffolino »

I need to use font that support japanese script, so I copied my MS gothic in wine(windows/fonts).Wine loads it but I can't set the script(as png).What should I do?

http://xs226.xs.to/xs226/08182/schermata284.png
Last edited by saffolino on Wed Apr 30, 2008 2:48 am, edited 1 time in total.
Dan Kegel

[Fonts]I can't select the script

Post by Dan Kegel »

On Tue, Apr 29, 2008 at 6:18 AM, saffolino <[email protected]> wrote:
I need to use font that support japanese script, so I copied my
MS gothic in wine(windows/fonts).Wine loads it but I can't set the script.
What should I do?

http://xs.to/xs.php?h=xs226&d=08182&f=schermata284.png)
If you're trying to switch your system to Japanese menus,
perhaps you should set a japanese locale in Linux
before running Wine. e.g.
export LANG=ja
Which version of Linux are you using? For Ubuntu, a guide is here:
https://help.ubuntu.com/community/Japan ... using_SCIM
saffolino
Level 1
Level 1
Posts: 6
Joined: Tue Apr 29, 2008 8:04 am

Post by saffolino »

I've set ubuntu local in japanese and it worked fine but I don't want to switch every time(ctrl+alt+backspace).export doesn't work.
Dan Kegel

[Fonts]I can't select the script

Post by Dan Kegel »

On Tue, Apr 29, 2008 at 7:32 AM, saffolino <[email protected]> wrote:
I've set ubuntu local in japanese and it worked fine but I don't want to switch every time(ctrl+alt+backspace).export doesn't work.
OK, at least we know it works if done properly now.
The only question is how to do it properly.

Maybe you just need to replicate the locale environment variables
more fully. In Japanese Ubuntu mode, type
locale | sed 's/^/export /' > setlocale.sh
and also look at the output of 'locale'. Then
set Ubuntu into English mode, log in,
and do
. setlocale.sh
and then in the same window try
locale
and verify the settings look right for Japanese. Then
*also in the same window* start a Wine app and see
if it behaves better for Japanese.

Or how about a native Linux app that works well with
Japanese fonts when Ubuntu is in Japanese mode.
Can you get one of those to use Japanese fonts
when Ubuntu is in English mode?
saffolino
Level 1
Level 1
Posts: 6
Joined: Tue Apr 29, 2008 8:04 am

Re: [Fonts]I can't select the script

Post by saffolino »

Dan Kegel wrote:On Tue, Apr 29, 2008 at 7:32 AM, saffolino <[email protected]> wrote:
I've set ubuntu local in japanese and it worked fine but I don't want to switch every time(ctrl+alt+backspace).export doesn't work.
OK, at least we know it works if done properly now.
The only question is how to do it properly.

Maybe you just need to replicate the locale environment variables
more fully. In Japanese Ubuntu mode, type
locale | sed 's/^/export /' > setlocale.sh
and also look at the output of 'locale'. Then
set Ubuntu into English mode, log in,
and do
. setlocale.sh
and then in the same window try
locale
and verify the settings look right for Japanese. Then
*also in the same window* start a Wine app and see
if it behaves better for Japanese.

Or how about a native Linux app that works well with
Japanese fonts when Ubuntu is in Japanese mode.
Can you get one of those to use Japanese fonts
when Ubuntu is in English mode?
I don't understand the "locale" thing (I'm not pro with linux(Ah I use ubuntu 8.04) )
EDIT:Ok I've done it with the .sh but it doen's work.Checking with "locale" remains still the same -> it_IT-UTF-8.I suppose I can't load two different LANG= in the same environment?

-------------------------------------------
EDIT2:
I was wondering if is possible to change only the LC_* in ja_JP.UTF-8, without change LANG=it_IT.UTF-8.I want to try this way, but I don't know how :|

Some windows app in japanese works well, for example unicode ones.In my case, it's not unicode.
This is the P2P:
http://fuktommy.com/poeny/poeny_20071010_win32.zip
Dan Kegel

[Fonts]I can't select the script

Post by Dan Kegel »

On Tue, Apr 29, 2008 at 10:49 AM, saffolino <[email protected]> wrote:
Maybe you just need to replicate the locale environment variables
more fully. In Japanese Ubuntu mode, type
locale | sed 's/^/export /' > setlocale.sh
and also look at the output of 'locale'. Then
set Ubuntu into English mode, log in,
and do
. setlocale.sh
I don't understand the "locale" thing (I'm not pro with linux(Ah I use ubuntu 8.04) )
Here's how. Log in to Ubuntu in Japanese mode.
Get a terminal window and paste the line
locale | sed 's/^/export /' > jap.sh
into it. Then look at the new file jap.sh you just created, e.g.
gedit jap.sh
It should look something like this:
export LANG=jp_JP
export LANGUAGE=jp
export LC_CTYPE="jp_JP"
...

Then log out, log back in to Ubuntu in English mode,
get another terminal window, and give the command
source jap.sh

If that doesn't give an error, you should be able to run
apps (including wine) inside that same terminal window
and have them run in japanese mode.
- Dan
saffolino
Level 1
Level 1
Posts: 6
Joined: Tue Apr 29, 2008 8:04 am

Post by saffolino »

LANG=it_IT.UTF-8
LC_CTYPE=ja_JP.UTF-8
LC_NUMERIC="it_IT.UTF-8"
LC_TIME="it_IT.UTF-8"
LC_COLLATE="it_IT.UTF-8"
LC_MONETARY="it_IT.UTF-8"
LC_MESSAGES="it_IT.UTF-8"
LC_PAPER="it_IT.UTF-8"
LC_NAME="it_IT.UTF-8"
LC_ADDRESS="it_IT.UTF-8"
LC_TELEPHONE="it_IT.UTF-8"
LC_MEASUREMENT="it_IT.UTF-8"
LC_IDENTIFICATION=ja_JP.UTF-8
LC_ALL=

:D Now it works! Edited /etc/profile export LC_IDENTIFICATION and LC_CTYPE. Thanks!!!
Locked