95
Chapter 13
Examples of I18N
Programmers who have internationalized softwares, have written a patch of L10N, and so on are
encouraged to contribute to this chapter.
13.1 TWM usage of XFontSet instead of XFontStruct
The author of this section is Tomohiro KUBOTA (
).
13.1.1 Introduction
TWM is Tabbed (or Tom's) Window Manager, one of the most well known window managers in
the world. It is included in the XFree86 distribution. Since it was not internationalized, I wrote
a patch for TWM included in XFree86 version 4.0.1. The patch was adopted in XFree86 version
4.0.1d.
Note: a bug is found for
I18N_FetchName()
and
I18N_GetIconName()
of my patch. The bug
is fixed since XFree86 version 4.1.0. This document is also fixed.
The contents of the internationalization are:
Usage of
XFontSet
related functions instead of
XFontStruct
, so that font handling will
be locale sensible. This is the main part of the patch.
Addition of automatic font guessing mechanism (the simplest version). This avoids lack of
font caused by ISO8859 1 based font specification in configuration files.
Usage of
XGetWMName()
and
XmbTextPropertyToTextList()
instead of
XFetchName()
,
so that Compound Text can be used for inter client communication of window title names.
footer
Our partners:
PHP: Hypertext Preprocessor Best Web Hosting
Java Web Hosting
Inexpensive Web Hosting
Jsp Web Hosting
Cheapest Web Hosting
Jsp Hosting
Cheap Hosting
Visionwebhosting.net Business web hosting division of Web
Design Plus. All rights reserved