-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
92 lines (68 loc) · 2.73 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="generator" content="HTML Tidy, see www.w3.org">
<title>FarsiWeb - HOWTOs - Persian XTerm for Linux</title>
<link rel="stylesheet" type="text/css" href="../../common/farsiweb.css">
<body>
<div id="main">
<h1>How to setup Linux XTerm with Persian support</h1>
<p>Following are the instructions for getting Linux XTerm work with Persian
Unicode. Two screenshots are available for <a href="hafez.png">a sonnet of
Hafez (15KB)</a> and <a href="hamd.png">First Soore of Quran (9 KB)</a>. Please note that these are
not for novice Linux users.</p>
<h2> 1 The font</h2>
<p>Download <a href="http://prdownloads.sourceforge.net/farsitools/10x20.bdf.bz2">10x20.bdf.bz2</a>.
Run:</p>
<pre> bunzip2 10x20.bdf.gz
bdftopcf 10x20.bdf > 10x20.pcf
gzip -9 10x20.pcf
su
mv -b 10x20.pcf.gz /usr/lib/X11/fonts/misc
cd /usr/lib/X11/fonts/misc
</pre>
<p>Add the following line to '<code>fonts.alias</code>':</p>
<pre> 10x20U -Misc-Fixed-Medium-R-Normal--20-200-75-75-C-100-ISO10646-1
</pre>
<p>Continue:</p>
<pre> mkfontdir
xset fp rehash
</pre>
<p>To test the font, run:</p>
<pre> xfd -fn 10x20U
</pre>
<h2>2 The Terminal</h2>
<p>Get <a href="http://prdownloads.sourceforge.net/farsitools/xterm-156.tar.bz2">xterm-156.tar.bz2</a>
and <a href="http://prdownloads.sourceforge.net/farsitools/xterm-bidi-27.diff.bz2">xterm-bidi-27.diff.bz2</a>.
Run:</p>
<pre> bzip2 -cd xterm-156.tar.bz | tar xvf -
cd xterm-156
bzcat ../xterm-bidi-27.diff.bz2 | patch -p1
./configure --enable-wide-chars
make
./xterm -u8 -bi -fn 10x20U
</pre>
<p>To test your installation, download
<a href="hafez.utf8">hafez.utf8</a> and
<a href="hamd.utf8">hamd.utf8</a> and
run:</p>
<pre> cat hafez.utf8
cat hamd.utf8
</pre>
<p>You should be able to see the first Sonnet of Hafez (<strong>alaa yaa
ayyohas-saaghi</strong>) and the first <strong>Soore</strong> of Quran
(<strong>hamd</strong>).</p>
<hr>
<div class="copyright" style="margin-top: -1.5em; margin-bottom: -1em"><p>Copyright
© 2001 The FarsiWeb Project Group, Computing Center, Sharif University
of Technology.
<br>
Verbatim copying and distribution of this entire article is permitted in any
medium, provided this notice is preserved.
</p></div>
<hr>
<p><strong>Problems?</strong> contact the FarsiWeb Project Group at
<a href="mailto:[email protected]">[email protected]</a>.</p>
<div style="text-align: center">Back to <a href="http://persian-computing.org/archives/FarsiWeb-Project/">The FarsiWeb Project</a>
homepage.</div>
</div>
</body></html>