← Back to team overview

openerp-chinese-team team mailing list archive

Re: [Bug 633991] Re: Don't support the chinese characters

 

Hi Tony,
Good job in general: do we have an update on the merge of the module
with main branch?

In my opinion, reporting style should be better set-up in database
rather than in the report, with aliases and called from the report
engine through those aliases. Another option would be to define at least
one default font in the database at the company level (so for example
when module l10n_xx is loaded it changes the default font) and all
standard reports should only call these standard font alias. This would
be standardization to the reporting system but that represent a great
modification in the philosophie of reporting engine, thought... 
And probably extra load for the server: I used to load a modified
base_report_unicode module whose unique purpose was to replace all
standard fonts by the Chinese ones in reports during the creation. It
was working fine but the main problem was the speed. If you are
interested I can send the code (I think it is already almost public
thought). Not tested in v6.0 but should be adapted easily.

Best regards

-- 
Eric Caudal

On Fri, 2010-12-17 at 11:44 +0800, Tony Gu wrote:

> Hi xrg,
> 
> I've noticed your continuous great contributions to both the Openerp
> project and its global community. We all owe you a big thanks.
> 
> I followed your tips of V6 changes and found the 'customfonts' module
> and an server option for adding fonts directory. I will adjust my code
> accordingly.
> 
>         "However, I see another challenge: when we replace "Times" eg.
>         with SimHei fonts, what happens to the other latin or non-latin
>         characters? "
>         
> The SimHei and SimSun fonts that we used in the report module is
> actually aliases of open sourced wenquanyi fonts(wenquanyi.org), which
> including Latin characters, Japanese kanas, hanguls and symbols from
> many other languages. Basically, it is not a problem to showing a report
> in most of popular languages by using only these two fonts. 
> 
> However, it is really a challenge though for how we gonna set/use
> different font for different language. Creating different rml template
> for different language is not an option here. Hard coding the font name
> in rml template as we are doing now is probably the source of the
> problem. I would love to listen to your opinion on this.
> 
> Thanks and best regards,
> 
> Tony Gu 
> 
> 
> 
> 
> 
> 在 2010-12-15三的 20:16 +0200,P. Christeas写道: 
> > On Wednesday 15 December 2010, you wrote:
> > > *** This bug is a duplicate of bug 625019 ***
> > >     https://bugs.launchpad.net/bugs/625019
> > > 
> > > The problem describe in comment #1 is due to the transcoding problem in
> > > the module l10n_chart_cn. (see bug report: https://bugs.launchpad.net
> > > /openobject-addons/+bug/625019).
> > > 
> > > OpenERP also has another problem when printing report with Chinese
> > > character , it produces gibberish fonts.
> > > 
> > > We Chinese team tackled these two major character coding problems long
> > > time ago in our project repository. (http://code.google.com/p/openerp-
> > > community-addons/downloads/list),
> > > 
> > > We will submit these modules to official branch soon after some more
> > > test.
> > 
> > Hello, 
> > I have long followed all attempts to make OpenERP work for all languages, all 
> > character sets. Read your code in google code and would like to discuss it.
> > 
> > In version 6 we have a standard table of font mappings, so you don't need to 
> > write your trml2pdf wrappers. I have also taken care so that fonts can easily 
> > be distributed along with addons[1].
> > 
> > However, I see another challenge: when we replace "Times" eg. with SimHei 
> > fonts, what happens to the other latin or non-latin characters? 
> > 
> > I would like to work together with the international community, in order to 
> > find a solution as generally acceptable as possible. 
> > Therefore, I welcome your contribution and ask you, please, to help with your 
> > know-how to make your language mainstream in OpenERP.
> > 
> > Regards,
> > Panos (aka xrg)
> > 
> > [1] pending some documentation, for the integrators to see how it works.
> > 
> 
> 
> 
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~openerp-chinese-team
> Post to     : openerp-chinese-team@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openerp-chinese-team
> More help   : https://help.launchpad.net/ListHelp

References