After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 269430 - Print preview of russian names is not working
Print preview of russian names is not working
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Contacts
2.0.x (obsolete)
Other All
: Normal normal
: ---
Assigned To: evolution-addressbook-maintainers
Evolution QA team
: 270210 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-11-12 21:45 UTC by Artem G. Abanov
Modified: 2013-09-10 13:58 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Initial version of patch for addressbook printing (with lots of debug logging, and without a ChangeLog entry) (28.17 KB, patch)
2005-02-17 00:35 UTC, Dave Malcolm
none Details | Review
Updated, cleaned-up version of the patch (requires libgnomeprint >= 2.7.0) (25.88 KB, patch)
2005-02-22 03:40 UTC, Dave Malcolm
none Details | Review
Revised Patch (26.01 KB, patch)
2005-09-20 08:51 UTC, Devashish Sharma
none Details | Review

Description Artem G. Abanov 2004-11-12 21:45:19 UTC
Distribution: Fedora Core release 3 (Heidelberg)
Package: Evolution
Priority: Normal
Version: GNOME2.8.0 unspecified
Gnome-Distributor: Red Hat, Inc
Synopsis: Print preview of russian names is not working
Bugzilla-Product: Evolution
Bugzilla-Component: Contacts [was: Addressbook]
Bugzilla-Version: unspecified
Description:
Description of Problem:

I have entries in the Contacts both in russian and english.
When I try to print them the russian (cyrillic) characters do not print
at all.

My locale is:

[                ]$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=




Steps to reproduce the problem:
1.  Make a russian entry in the Contacts
2.  Look at print preview

Actual Results:
Russian characters do not show

Expected Results:
Russian characters should show

How often does this happen?
always

Additional Information:


Setting qa contact to the default for this product.
   This bug either had no qa contact or an invalid one.

Comment 1 Gerardo Marin 2004-11-15 17:38:24 UTC
What Evolution version is this?
Comment 2 Radek Doulik 2004-11-22 17:43:29 UTC
please could you attach some contact which shows the problem? are you
able to print appointments and mails with cyrilic characters?
Comment 3 Radek Doulik 2004-11-23 14:55:06 UTC
Hi,
Bugzilla does not allow me to post my comments there (or I do not know
how).

Attached is the fake contact in Russian, which I cannot print or print
preview.

The mail (in Russian) prints fine.

If I start evolution in Russian locale, then everything works.
I can print preview all entries in Contacts (English and Russian)

Artem
Comment 4 Radek Doulik 2004-11-23 14:58:35 UTC
OK, looks like gnome print problem then. mailer uses pango interface
in newer gnome print and thus it works. => rescheduling for 2.1 as we
cannot use newer gnome print for 2.0.3

I think you might be able to print cyrillic chars OK if you will
install cyrillic postscript fonts.
Comment 5 André Klapper 2005-01-25 16:55:32 UTC
adding keywords
Comment 6 Dave Malcolm 2005-02-17 00:10:09 UTC
Looks like a duplicate of 70210 (or vice versa; the latter was the
first I spotted).

I'm tracking this downstream here:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=138075
and I'm actively working on a fix.
Comment 7 Dave Malcolm 2005-02-17 00:34:16 UTC
*** bug 270210 has been marked as a duplicate of this bug. ***
Comment 8 Dave Malcolm 2005-02-17 00:35:12 UTC
Created attachment 44802 [details] [review]
Initial version of patch for addressbook printing (with lots of debug logging, and without a ChangeLog entry)
Comment 9 Dave Malcolm 2005-02-17 01:01:53 UTC
I just attached a first attempt at a patch for this; it's still got
some debug logging in it, but I can cleap that up.

Please can you try with this patch?  It attempts to use Pango for all
text handling when printing address books).

I'm seeing addressbooks with considerably larger fonts after applying
this pacth; it appears that when e_contact_build_style loads
"medbook.ecps"; this is parsed to populate the EContactPrintStyle
struct; on FC3 when loading the various fonts e.g. header_font it gets
"Helvetica Bold 12", which it passes to gnome_font_face_find, which
returns NULL, hence the existing code is always simply using the
defaults at the top of e_contact_build_style (Sans Bold 8).
My version of the code manages to get at "Helvetica Bold 12" etc, so
everything is coming out at about 50% bigger (i.e. at 18 point rather
than point, allowing for the factor of 1.5 that gets applied)
Comment 10 Dave Malcolm 2005-02-22 03:40:33 UTC
Created attachment 44828 [details] [review]
Updated, cleaned-up version of the patch (requires libgnomeprint >= 2.7.0)
Comment 11 André Klapper 2005-03-01 00:42:55 UTC
adding patch keyword
Comment 12 André Klapper 2005-07-20 10:44:35 UTC
setting first patch to "obsolete" as per dave's comments.
Comment 13 Devashish Sharma 2005-09-20 08:51:21 UTC
Created attachment 52424 [details] [review]
Revised Patch

The patch was causing a crash in Preview of contacts, when preview is done from
Print Configuration Dialog.
Attaching the revised patch
Comment 14 André Klapper 2005-11-25 00:31:02 UTC
reassigning since rodo does not work anymore on evo/gtkhtml
Comment 15 Devashish Sharma 2006-02-14 10:45:44 UTC
fix committed to cvs head.