Some characters are black squares when printed (trunk)

Bug #319595 reported by Dukai Gábor
18
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Won't Fix
Undecided
Unassigned

Bug Description

Hi!
Trunk version.
Some accented characters appear as black squares on pdf files generated. Try for example with print screen on the product form. The characters: űőŰŐčćđČĆĐ

Revision history for this message
Fabien (Open ERP) (fp-tinyerp) wrote :

Hello,
We can not fix for v5, please createa blueprint so that we planify for v5.2

Changed in openobject-server:
status: New → Won't Fix
Revision history for this message
Dukai Gábor (gdukai) wrote :

In the countries where these languages are used this is critical.
The companies can't print invoices! National language support has been available for many years in the old programs they use.

Could you please provide a workaround if trunk won't be fixed?

Thank you

Revision history for this message
Fabien (Open ERP) (fp-tinyerp) wrote : Re: [Bug 319595] Re: Some characters are black squares when printed (trunk)

Yes, as soon as trunk is released, we will work on a fix for this.
I already find the solution on the wiki or forum (I can't remember) If
you surch for reportlab and unicode, you may have a fix for this.

Dukai Gábor wrote:
> In the countries where these languages are used this is critical.
> The companies can't print invoices! National language support has been available for many years in the old programs they use.
>
> Could you please provide a workaround if trunk won't be fixed?
>
>
> Thank you
>

--
Fabien Pinckaers
CEO Tiny - OpenERP Editor
Chaussée de Namur 40
B-1367 Grand-Rosière
Belgium
Phone: +32.81.81.37.00
Fax: +32.81.73.35.01
Web: http://openerp.com

Great Achievements Start With Tiny Investments
   -- Marty, 2005

Revision history for this message
Dukai Gábor (gdukai) wrote :
Revision history for this message
Fabien (Open ERP) (fp-tinyerp) wrote :

I think latest version of reportlab uses unicode by default ?
To be checked, may be it's just an option to turn on.

Revision history for this message
Fabien (Open ERP) (fp-tinyerp) wrote :

I reopen this bug because it seems reportlab 2.0 fully support unicode.
So why isn't it working in Open eRP?
See: http://www.reportlab.org/whatsnew_2_0.html

To be tested.

Revision history for this message
Dukai Gábor (gdukai) wrote :

It doesn't work because the fonts that are used in the reports (for example Helvetica) are old Type1 fonts that simply don't have these characters.
Please take a look at the wiki link included in the previous post.

Revision history for this message
Fabien (Open ERP) (fp-tinyerp) wrote :

Ok. I close the bug, I propose to write a module that include all these fonts and execute the queries.
As fonts takes some Mb, I prefer having this in a module: base_report_unicode.
Thanks

Revision history for this message
lavardez (vlgiang) wrote :

Have you got any release about the unicode report yet? I'm translating the module to Vietnamese but without the report we still have problem. Bump.

Revision history for this message
Dukai Gábor (gdukai) wrote :
Revision history for this message
lunomad (damon-metapaso) wrote :

Hi Dukai,

I tried to install your module, but I got the following error:

 File "/usr/lib/openerp-server/addons/base_report_unicode/__init__.py", line 85, in <module>
    report.render.rml2pdf.parseNode = wrap_trml2pdf(report.render.rml2pdf.parseNode)
AttributeError: 'module' object has no attribute 'parseNode'

Should I file a bug for this?

Also, the wiki link above has been changed to:

http://www.openobject.com/wiki/index.php/Developers:Developper%27s_Book/Reports/ReportsUnicode

Revision history for this message
Dukai Gábor (gdukai) wrote :

Hi!

That probably means that you use openerp-server <5.0.1 version. There was a change in the report generation code. Could you try either upgrading to 5.0.3 or commenting out that line if you need to stay with an old version?

Revision history for this message
lunomad (damon-metapaso) wrote :

Thanks, I pulled in the .deb file for 5.0.3 from debian unstable and with a couple of modifications got it to run on python2.5.

I migrated the DB and your module installed just fine. I then restarted the openerp-server to make sure everything was picked up.

However, now my Chinese characters are printing as open squares (no longer black boxes). Do your fonts include Chinese glyphs? I'm not trying to localize for Chinese, but I have a few Chinese and Japanese customers and I'd like to reference their documents.

Thanks!
Damon

Revision history for this message
Dukai Gábor (gdukai) wrote :

The capabilities of the DejaVu fonts are on their website: http://dejavu-fonts.org/
Please look at this topic: http://openobject.com/forum/topic9962.html and read the comments at the end.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.