Hi, 

 After playing with printing today, I realized that gtk port of AW was unable
to print lists (under any locale, including en-US). Just try to print any
list, with triangles as item marks, or even plain unnumbered list ("bullets"
as markers) with zero interval between the mark and the text - different
symbols will be in the .ps file and the markers will be drawn under the texts
(since AW thinks that they are 0-points wide).
 It turned out that s050000l.u2g and d050000l.u2g files that are present in 
'unixfonts' module are guilty. AW doesn't use unicode value for drawing list
items - it uses index of the character in the fonts (i.e. values < 256). Here
are the corrected versions of these files that will allow to use symbol fonts.
In these files, the 2nd value on each line is not unicode value of the symbol
any more, but the index of that character in the font (this is the only way to
make symbol printing working for chars > 127).

 Also I've attached a patch that makes printing with symbol fonts possible for
non-latin1 single-byte locales - please apply it.

 So, the attached two u2g files should be placed in the module 'unixfonts'. 

 I wonder why nobody noticed this (perhaps everybody uses unnumbered lists
with default mark)..

 Best regards,
  -Vlad
124
Alpha,0x41
Beta,0x42
Chi,0x43
Delta,0x44
Epsilon,0x45
Eta,0x48
Gamma,0x47
Ifraktur,0xc1
Iota,0x49
Kappa,0x4b
Lambda,0x4c
Mu,0x4d
Nu,0x4e
Omega,0x57
Omicron,0x4f
Phi,0x46
Pi,0x50
Psi,0x59
Rfraktur,0xc2
Rho,0x52
Sigma,0x53
Tau,0x54
Theta,0x51
Upsilon,0x55
Xi,0x58
Zeta,0x5a
aleph,0xc0
alpha,0x61
ampersand,0x26
angle,0xd0
angleleft,0xe1
angleright,0xf1
approxequal,0xbb
arrowboth,0xab
arrowdblboth,0xdb
arrowdbldown,0xdf
arrowdblleft,0xdc
arrowdblright,0xde
arrowdblup,0xdd
arrowdown,0xaf
arrowhorizex,0xbe
arrowleft,0xac
arrowright,0xae
arrowup,0xad
arrowvertex,0xbd
asteriskmath,0x2a
bar,0x7c
beta,0x62
braceex,0xef
braceleft,0x7b
braceleftmid,0xed
bracelefttbt,0xee
bracelefttp,0xec
braceright,0x7d
bracerightbt,0xfe
bracerightmid,0xfd
bracerighttp,0xfc
bracketleft,0x5b
bracketleftbt,0xeb
bracketleftex,0xea
bracketlefttp,0xe9
bracketright,0x5d
bracketrightbt,0xfb
bracketrightex,0xfa
bracketrighttp,0xf9
bullet,0xb7
carriagereturn,0xbf
chi,0x63
circlemultiply,0xc4
circleplus,0xc5
club,0xa7
colon,0x3a
comma,0x2c
congruent,0x40
copyrightsans,0xe3
copyrightserif,0xd3
degree,0xb0
delta,0x64
diamond,0xa8
divide,0xb8
dotmath,0xd7
eight,0x38
element,0xce
ellipsis,0xbc
emptyset,0xc6
epsilon,0x65
equal,0x3d
equivalence,0xba
eta,0x68
exclam,0x21
existential,0x24
five,0x35
florin,0xa6
four,0x34
fraction,0xa4
gamma,0x67
gradient,0xd1
greater,0x3e
greaterequal,0xb3
heart,0xa9
infinity,0xa5
integral,0xf2
integralbt,0xf5
integralex,0xf4
integraltp,0xf3
intersection,0xc7
iota,0x69
kappa,0x6b
lambda,0x6c
less,0x3c
lessequal,0xa3
logicaland,0xd9
logicalnot,0xd8
logicalor,0xda
lozenge,0xe0
minus,0x2d
mu,0x6d
multiply,0xb4
nine,0x39
notelement,0xcf
notequal,0xb9
notsubset,0xcb
nu,0x6e
numbersign,0x23
omega,0x77
omicron,0x6f
one,0x31
parenleft,0x28
parenleftbt,0xe8
parenleftex,0xe7
parenlefttp,0xe6
parenright,0x29
parenrightbt,0xf8
parenrightex,0xf7
parenrighttp,0xf6
partialdiff,0xb6
percent,0x25
period,0x2e
perpendicular,0x5e
phi,0x66
phi1,0x6a
pi,0x70
plus,0x2b
plusminus,0xb1
product,0xd5
propersubset,0xcc
propersuperset,0xc9
proportional,0xb5
psi,0x79
question,0x3f
radical,0xd6
radicalex,0x60
reflexsubset,0xcd
reflexsuperset,0xca
registeredsans,0xe2
registeredserif,0xd2
rho,0x72
semicolon,0x3b
seven,0x37
sigma,0x73
sigma1,0x56
similar,0x7e
six,0x36
slash,0x2f
space,0x20
spade,0xaa
suchthat,0x27
summation,0xe5
tau,0x74
therefore,0x5c
theta,0x71
theta1,0x4a
three,0x33
trademarksans,0xe4
trademarkserif,0xd4
two,0x32
underscore,0x5f
union,0xc8
universal,0x22
upsilon,0x75
weierstrass,0xc3
xi,0x78
zero,0x30
zeta,0x7a
174
a1,0x21
a10,0x41
a100,0x7e
a101,0xa1
a102,0xa2
a103,0xa3
a104,0xa4
a105,0x30
a106,0xa5
a107,0xa6
a108,0xa7
a109,0xab
a11,0x2a
a110,0xaa
a111,0xa9
a112,0xa8
a117,0x29
a118,0x28
a119,0x27
a12,0x2b
a120,0xac
a121,0xad
a122,0xae
a123,0xaf
a124,0xb0
a125,0xb1
a126,0xb2
a127,0xb3
a128,0xb4
a129,0xb5
a13,0x2c
a130,0xb6
a131,0xb7
a132,0xb8
a133,0xb9
a134,0xba
a135,0xbb
a136,0xbc
a137,0xbd
a138,0xbe
a139,0xbf
a14,0x2d
a140,0xc0
a141,0xc1
a142,0xc2
a143,0xc3
a144,0xc4
a145,0xc5
a146,0xc6
a147,0xc7
a148,0xc8
a149,0xc9
a15,0x2e
a150,0xca
a151,0xcb
a152,0xcc
a153,0xcd
a154,0xce
a155,0xcf
a156,0xd0
a157,0xd1
a158,0xd2
a159,0xd3
a16,0x2f
a160,0xd4
a161,0xd5
a162,0xe3
a163,0xd6
a164,0xd7
a165,0xd9
a166,0xdb
a167,0xdc
a168,0xdd
a169,0xde
a17,0x31
a170,0xdf
a171,0xe0
a172,0xe1
a173,0xe2
a174,0xe4
a175,0xe5
a176,0xe6
a177,0xe7
a178,0xe8
a179,0xe9
a18,0x32
a180,0xeb
a181,0xed
a182,0xef
a183,0xf2
a184,0xf3
a185,0xf5
a186,0xf8
a187,0xfa
a188,0xfb
a189,0xfc
a19,0x33
a190,0xfd
a191,0xfe
a192,0xda
a193,0xea
a194,0xf6
a195,0xf9
a196,0xd8
a197,0xf4
a198,0xf7
a199,0xec
a2,0x22
a20,0x34
a200,0xee
a201,0xf1
a202,0x23
a203,0x70
a204,0x72
a21,0x35
a22,0x36
a23,0x37
a24,0x38
a25,0x39
a26,0x3a
a27,0x3b
a28,0x3c
a29,0x42
a3,0x24
a30,0x43
a31,0x44
a32,0x45
a33,0x46
a34,0x47
a35,0x48
a37,0x4a
a38,0x4b
a39,0x4c
a4,0x25
a40,0x4d
a41,0x4e
a42,0x4f
a43,0x50
a44,0x51
a45,0x52
a46,0x53
a47,0x54
a48,0x55
a49,0x56
a5,0x26
a50,0x57
a51,0x58
a52,0x59
a53,0x5a
a54,0x5b
a55,0x5c
a56,0x5d
a57,0x5e
a58,0x5f
a59,0x60
a6,0x3d
a60,0x61
a61,0x62
a62,0x63
a63,0x64
a64,0x65
a65,0x66
a66,0x67
a67,0x68
a68,0x69
a69,0x6a
a7,0x3e
a70,0x6b
a71,0x6c
a72,0x6d
a73,0x6e
a74,0x6f
a75,0x71
a76,0x73
a77,0x74
a78,0x75
a79,0x76
a8,0x3f
a81,0x77
a82,0x78
a83,0x79
a84,0x7a
a9,0x40
a97,0x7b
a99,0x7d
space,0x20
--- xap_UnixFont.cpp-orig       Sat Feb 17 18:04:59 2001
+++ xap_UnixFont.cpp    Mon Feb 19 16:58:18 2001
@@ -562,7 +562,7 @@
                memset (m_uniWidths, 0, m_metricsData->numOfChars * sizeof(uniWidth)); 
// Clear array - i would hope that sizeof(UT_uint16) == 16
                UT_AdobeEncoding *ae = 0;
 
-               if (loadEncodingFile() && 
(XAP_EncodingManager::instance->isUnicodeLocale() || 
XAP_EncodingManager::instance->try_nativeToU(0xa1)==0xa1))
+               if (loadEncodingFile() && 
+!XAP_EncodingManager::instance->cjk_locale())
                {
                        /*
                                iso8859-1 or cp1252 encoding or utf-8 locale -

Reply via email to