Descriptions of the Current Directory
-
Japanized Tkmail
Japanese Page is here.
News
- Jul 10, 1999: jp-tkmail-4.0beta9-2i
Bug fix.
- Jun 16, 1999: jp-tkmail-4.0beta9-2f
Updated the japanese patch to avoid the missing closing
brace problem.
- Jun 13, 1998: jp-tkmail-4.0beta9-2e
Moved kinput2-related bindings to tkbind/kinput2.tcl
so that personal setting is unnecessary.
- May 17, 1998: jp-tkmail-4.0beta9-2d
Rebuilt with pre-DR3.
- Dec 21, 1997: jp-tkmail-4.0beta9-2C
Fixed a problem with mails having no subjects
and rebuilt with DR2.1update6.
- Oct 24, 1997: jp-tkmail-4.0beta9-2B
Fixed a problem in forwading messages and rebuit with
DR2.1update5.
- Sep 29, 1997: jp-tkmail-4.0beta9-2A
Fixed the misalignment of sender names in the
list window, when the names contain kanji characters
with some single byte characters interleaved.
- Sep 26, 1997: A bug fixed.
- Sep 24, 1997: jp-tkmail-4.0beta9-1A
the first beta version of japanized
tkmail-4.0beta9 which now enables iso-2022-jp
encoding and decoding for header fields.
See japanization notes below for details.
- Jun 10, 1997: a very preliminary version of japanized
tkmail-4.0beta8 which only allows Japanese text
editing with kinput2.
Files
This directory containes Japanized "tkmail" related files:
SOURCES : patches
SPECS : package building specs
jp-tkmail-4.0beta9-2i.ppc.rpm : binary package
jp-tkmail-4.0beta9-2i.src.rpm : source package
README.html : this file
Precaution: This is STILL beta
The original tkmail-4.0beta9 is still in beta test as its
name indicates. It works fine though as far as I know.
The japanization patch I created is rather primitive and
might contain bugs. If you find any problem, do not
e-mail the original author. E-mail me at fujiik@jlcuxf.kek.jp
instead. Nevertheless I cannot be responsible for any damage
caused by this package.
As always, install the package at your own risk!
Installation Instructions
The package requires preinstallation of the japanized tcl/tk.
If you don't have one, install it first as:
- # ls
- jp-tcltk-7.6p2_4.2p2-2b.ppc.rpm
- # rpm -Uvh jp-tcltk-7.6p2_4.2p2-2b.ppc.rpm
Once you have the japanized tcl/tk installed, check the tkmail rpm as
- # ls
- jp-tkmail-4.0beta9-2i.ppc.rpm
- # rpm -qpl jp-tkmail-4.0beta9-2i.ppc.rpm
If you are satisfied with the contents of the package: proceed to
- $ su
- # rpm -Uvh jp-tkmail-4.0beta9-2i.ppc.rpm
Caution:
If you have already the previous version of tkmail-4.0, you
have to edit your .tkmail4rc in your home directory:
- $ vi ~/.tkmail4rc
- .....
- set mf(headlist-format) {%-20.20F %3m %2d %-5.5h %4l %-1000.1000s}
- .....
Otherwise, you had better copy one:
- $ cp /usr/local/lib/tkmail4/example.tkmail4rc ~/.tkmail4rc
Now you are ready to try it by typing:
- $ tkmail4
Good luck!
Note Added
If you get an error message telling that tkmail couldn't find
"blt_bell", replace "blt_bell 80" by "bell" in ~/.tkmail4rc.
Japanization Notes
- Compiler Flags
Compile tkmail using japanized tcl/tk with -DKANJI and -DKINPUT2
flags activated:
$ vi Config.mk
- CFLAGS = -O -DKANJI -DKINPUT2
- TK_INC = -I/usr/local/include
- TCL_INC =
- TK_LIB = -L/usr/local/lib -ltk4.2jp -ljpeg
- TCL_LIB = -ltcl7.6jp -lm
- Modified Scripts
$ vi scripts/tkmail
- kanji internalCode JIS
$ vi scripts/viewer.tcl
- set mf(headlist-format) {%-20.20F %3m %2d %-5.5h %4l %-1000.1000s}
-
- source $mfp(bindlib)/kinput2.tcl
$ vi scripts/compose.tk
- A lot of changing related to iso2022jp encoding or decoding for subject and from field such as:
- set cursubj [mfv_util jpdecode "$cursubj"]
-
- set subject [mfv_util jpencode "$subject"]
-
- set fromline [mfv_util jpencode $fromline]
$ vi tkbind/kinput2.tcl
- # For Japanese Input
- bind Text {kinput_start %W over}
- bind Text {kinput_start %W over}
- bind Text {kinput_start %W over}
-
- bind Entry {kinput_start %W}
- bind Entry {kinput_start %W}
- bind Entry {kinput_start %W}
- Modified C Source Code (mfv.c)
Modified to allow iso-2022-jp handling:
- Mfv_GetSumLine
- Mfv_MakeFmtLine
- Mfv_SetCmd
- Mfv_FilterHeaders
- Mfv_FolderCmd
- Mfv_UtilCmd
Added newly to allow iso-2022-jp handling:
- Mfv_Iso2022jpEncode
- Mfv_Iso2022jpDecode
- Mfv_Base64Encode
- Mfv_FieldWidth
- Known Problems
When "fullname" or "subject" or both are truncated in
making header summary (Mfv_GetSumLine), escape sequence
is discarded. This confuses "wish" that it is still getting
wide characters. At this moment, I fixed the name field
width to "nameWidth" characters, which can be changed
between 10 to 92 as follows:
- set mf(headlist-format) {%-20.20F %3m %2d %-5.5h %4l %-1000.1000s}
Notice that the width of the format field is fixed to 5.
Notice that the field width has to depend on whether the name
field contains Japanese or not, since in sprintf, escape
sequences are also counted as characters.
- JP-Width = En-Width + 7
The width given in set mf(headlist-format) is En-Width.
As for the problem with "subject", I employed a brute-force
solution that is to set the field long enough in
viewer.tcl:
- set mf(headlist-format) {%-20.20F %3m %2d %-5.5h %4l %-1000.1000s}
This should also be improved in future.
- Jp-Patch
If you are really interested in or suspicious about what I have done,
take a look at the patch itself:
- tkmail-4.0beta9p1-jp0.4.patch
Back to Keisuke Fujii's MkLinux Page
fujiik@jlcuxf.kek.jp Jun 2, 1998