~ubuntu-branches/ubuntu/wily/psi/wily-proposed

« back to all changes in this revision

Viewing changes to debian/README.chinese_fonts

  • Committer: Package Import Robot
  • Author(s): Jan Niehusmann
  • Date: 2012-04-06 18:21:48 UTC
  • mfrom: (6.1.6 sid)
  • Revision ID: package-import@ubuntu.com-20120406182148-pe5yvcbs7403tzlu
Tags: 0.14-3
* Fixed clean target (Closes: Bug#666161)
* Add missing include to fix build with gcc 4.7 (Closes: Bug#667332)
* Build-depend on libenchant-dev (Closes: Bug#571657)
* Updated manual page (new man page generated with help2man)
  (Closes: Bug#602335)
* Switch to dh build tool
* Fix clean target (Closes: Bug#666161)
* Set Standards-Version to 3.9.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
During discussion debian bug report #280124, (http://bugs.debian.org/280124),
 
2
Toni Mueller provided the following hints to make psi display chinese glyphs
 
3
correctly.
 
4
 
 
5
I'm not sure if this still applies to current versions of psi - just adding it
 
6
here, as it's perhaps useful for people who want to use psi with chinese
 
7
or similar character sets.
 
8
 
 
9
----------------------------------------------------------------------
 
10
On Mon, 05.11.2007 at 10:31:25 +0100, Jan Niehusmann <jan@debian.org> wrote:
 
11
> On Tue, Oct 09, 2007 at 09:47:56AM +0200, Toni Mueller wrote:
 
12
> > On Sun, 07.10.2007 at 12:28:03 +0200, Toni Mueller <support@oeko.net> wrote:
 
13
> > > I've been struggling with getting PSI to show chinese glyphs well, but
 
14
> > > it often displays only an empty box instead of the glyph I want,
 
15
> > > whereas at least kbookmarkmanager and kaddressbook display all of them
 
16
> > 
 
17
> > it turned out to be my user error, but I'd like to note that the
 
18
> > configuration of all this is, requiring the coordinated use of
 
19
> > qtconfig-qt3 and the fonts configuration option in psi highly
 
20
> > unintuitive (imho). I don't know where this is explained, too.
 
21
 
22
> Could you write some lines explaining how you configured psi to
 
23
> display these fonts well? Then I could add it as a readme to to
 
24
> /usr/share/doc/psi/.
 
25
 
26
> BTW, sorry that I wasn't able to help you with this issue, I'm only
 
27
> using characters available in latin1, so most programs just work in that
 
28
> regard.
 
29
 
 
30
below is a quick run-down from memory. It's been a while since I did
 
31
it, and I'm currently not in the mood for experimenting too much (and
 
32
rather time-constrained, too).
 
33
 
 
34
I have  de_DE.utf8 as my standard language environment. This is
 
35
probably important because I guess that when you are using non-UTF8
 
36
locales, your results will differ by a LARGE margin.
 
37
 
 
38
Next, one needs an input method because chinese glyphs can't be
 
39
directly typed (~50.000 against ~100 keys... go figure). I use scim,
 
40
and I implemented the "Smart Pinyin" input method (and would like help
 
41
with other methods).
 
42
 
 
43
One also needs all fonts that one can grab. The names of the font
 
44
packages don't readily suggest which fonts are in them, and the only
 
45
font I found working well enough for me seems to be "AR PL ShanHeiSun
 
46
Uni". I don't know which package contains it, however. I also don't
 
47
know which other font and/or input method I'd have to choose if I
 
48
wanted to write Traditional Chinese... help appreciated!
 
49
 
 
50
Next, fire up qtconfig-qt3 (because psi is a qt3 program), go to the
 
51
tab labelled 'Fonts', and select a font. I selected "Sans Serif" as my
 
52
default font because I usually use western fonts. Then select the "Sans
 
53
Serif" family in the drop-down menu labelled "Select or Enter a
 
54
Family". Then, go to the bottom of that pane and select the font "AR PL
 
55
ShanHeiSun Uni" in the drop-down menu labelled "Select substitude
 
56
Family". In psi, you also select "Sans Serif" as your standard font.
 
57
 
 
58
As far as I understood, this results in psi (or any other qt3
 
59
application) looking for a glyph it cannot display using the standard
 
60
font, will look into the substitution table and try to take the glyphs
 
61
from the fonts listed there, in order. But you need to match your font
 
62
settings in psi with the font settings in qtconfig-qt3 in order to make
 
63
qt3 look up the correct subsitutions for you. Eg it should be possible
 
64
to replace all occurrences of "Sans Serif" with "Times".
 
65
 
 
66
I don't know how to do this with other non-latin fonts, however. Also,
 
67
the idea of using qtconfig-qt3 was not mine. It was suggested to me by
 
68
someone who had a similar problem in the past.
 
69
----------------------------------------------------------------------