Thread: [Dotproject-cvs] Locale problem
Brought to you by:
ajdonnison,
kchisholm
|
From: Innox - J. C. G. <jgo...@in...> - 2005-04-06 23:23:54
|
Everyone... after about a two hours debugging I came out with some strange type of problem. Summarized: In JPGraph, the used font_family is FF_FONT0 When a text is displayed within a gantt graph, it is preprocessed by the LanguageConv::Convert (in jpgraph.php L:499). This function receives $aTxt (text) and $aFF (which I ignore what it is). The only thing that I know is that this function is called in Image::StrokeText (jpgraph.php L:6141) and it passes a font_family! The problem is that font_family == 1 and in the LangageConv::Convert function, if $aFF == 1 it thinks that the language is LANGUAGE_CYRILLIC; so it encodes in an all strange form and gantt graphs appear screwed up! So guys! :) any help will be really appreciated. I think my problem is conceptual, I'm not sure it's a JPGraph's bug. Thank you in advance! Atentamente / Sincerely Juan Carlos González Innox - Innovación Inteligente Tel: +52 (33) 36 15-5348 jgo...@in... http://www.innox.com.mx |
|
From: Gregor E. <gr...@or...> - 2005-04-07 00:42:24
|
most jpgraph objects have a setFont() function or sth similar, perhaps just= overwrite the native object property with something you can handle. perhap= s that helps without having to tweak much of the code. cheers greg On Wed, 06 Apr 2005 18:23:49 -0500 Innox - Juan Carlos Gonzalez <jgo...@in...> wrote: > Everyone... after about a two hours debugging I came out with some > strange type of problem. Summarized: >=20 > In JPGraph, the used font_family is FF_FONT0 > When a text is displayed within a gantt graph, it is preprocessed by the > LanguageConv::Convert (in jpgraph.php L:499). >=20 > This function receives $aTxt (text) and $aFF (which I ignore what it > is). The only thing that I know is that this function is called in > Image::StrokeText (jpgraph.php L:6141) and it passes a font_family! >=20 > The problem is that font_family =3D=3D 1 and in the LangageConv::Convert > function, if $aFF =3D=3D 1 it thinks that the language is LANGUAGE_CYRILL= IC; > so it encodes in an all strange form and gantt graphs appear screwed up! >=20 > So guys! :) any help will be really appreciated. I think my problem is > conceptual, I'm not sure it's a JPGraph's bug. >=20 > Thank you in advance! >=20 >=20 > Atentamente / Sincerely=20 > Juan Carlos Gonz=E1lez > Innox - Innovaci=F3n Inteligente=20 > Tel: +52 (33) 36 15-5348=20 > jgo...@in...=20 > http://www.innox.com.mx >=20 >=20 >=20 > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=3D6595&alloc_id=3D14396&op=3Dclick > _______________________________________________ > Dotproject-cvs mailing list > Dot...@li... > https://lists.sourceforge.net/lists/listinfo/dotproject-cvs |
|
From: Ivan P. <cyb...@gm...> - 2005-04-07 00:57:14
|
What appears screwed up? Some of your locale particular characters? The cyrillic changes were introduced to fix russian and other cyrillic translations - if they are not compatible with other languages, maybe we'll have to introduce a user-based setting for this ?! On Apr 7, 2005 11:12 AM, Gregor Erhardt <gr...@or...> wrote: > most jpgraph objects have a setFont() function or sth similar, perhaps ju= st overwrite the native object property with something you can handle. perh= aps that helps without having to tweak much of the code. >=20 > cheers > greg >=20 > On Wed, 06 Apr 2005 18:23:49 -0500 > Innox - Juan Carlos Gonzalez <jgo...@in...> wrote: >=20 > > Everyone... after about a two hours debugging I came out with some > > strange type of problem. Summarized: > > > > In JPGraph, the used font_family is FF_FONT0 > > When a text is displayed within a gantt graph, it is preprocessed by th= e > > LanguageConv::Convert (in jpgraph.php L:499). > > > > This function receives $aTxt (text) and $aFF (which I ignore what it > > is). The only thing that I know is that this function is called in > > Image::StrokeText (jpgraph.php L:6141) and it passes a font_family! > > > > The problem is that font_family =3D=3D 1 and in the LangageConv::Conver= t > > function, if $aFF =3D=3D 1 it thinks that the language is LANGUAGE_CYRI= LLIC; > > so it encodes in an all strange form and gantt graphs appear screwed up= ! > > > > So guys! :) any help will be really appreciated. I think my problem is > > conceptual, I'm not sure it's a JPGraph's bug. > > > > Thank you in advance! > > > > > > Atentamente / Sincerely > > Juan Carlos Gonz=E1lez > > Innox - Innovaci=F3n Inteligente > > Tel: +52 (33) 36 15-5348 > > jgo...@in... > > http://www.innox.com.mx > > > > > > > > ------------------------------------------------------- > > SF email is sponsored by - The IT Product Guide > > Read honest & candid reviews on hundreds of IT Products from real users= . > > Discover which products truly live up to the hype. Start reading now. > > http://ads.osdn.com/?ad_id=3D6595&alloc_id=3D14396&op=3Dclick > > _______________________________________________ > > Dotproject-cvs mailing list > > Dot...@li... > > https://lists.sourceforge.net/lists/listinfo/dotproject-cvs >=20 > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_ide95&alloc_id=14396&opclick > _______________________________________________ > Dotproject-cvs mailing list > Dot...@li... > https://lists.sourceforge.net/lists/listinfo/dotproject-cvs > |
|
From: Innox - J. C. G. <jgo...@in...> - 2005-04-07 13:33:05
|
Hi Ivan, thank you for replying. Within the gantt graphs, all non-english letters appear with html entities; If I comment out that function and only return the text as it arrives to it, everything works perfectly. On Thu, 2005-04-07 at 10:26 +0930, Ivan Peevski wrote: > What appears screwed up? Some of your locale particular characters? > The cyrillic changes were introduced to fix russian and other cyrillic > translations - if they are not compatible with other languages, maybe > we'll have to introduce a user-based setting for this ?! > > On Apr 7, 2005 11:12 AM, Gregor Erhardt <gr...@or...> wrote: > > most jpgraph objects have a setFont() function or sth similar, perhaps just overwrite the native object property with something you can handle. perhaps that helps without having to tweak much of the code. > > > > cheers > > greg > > > > On Wed, 06 Apr 2005 18:23:49 -0500 > > Innox - Juan Carlos Gonzalez <jgo...@in...> wrote: > > > > > Everyone... after about a two hours debugging I came out with some > > > strange type of problem. Summarized: > > > > > > In JPGraph, the used font_family is FF_FONT0 > > > When a text is displayed within a gantt graph, it is preprocessed by the > > > LanguageConv::Convert (in jpgraph.php L:499). > > > > > > This function receives $aTxt (text) and $aFF (which I ignore what it > > > is). The only thing that I know is that this function is called in > > > Image::StrokeText (jpgraph.php L:6141) and it passes a font_family! > > > > > > The problem is that font_family == 1 and in the LangageConv::Convert > > > function, if $aFF == 1 it thinks that the language is LANGUAGE_CYRILLIC; > > > so it encodes in an all strange form and gantt graphs appear screwed up! > > > > > > So guys! :) any help will be really appreciated. I think my problem is > > > conceptual, I'm not sure it's a JPGraph's bug. > > > > > > Thank you in advance! > > > > > > > > > Atentamente / Sincerely > > > Juan Carlos González > > > Innox - Innovación Inteligente > > > Tel: +52 (33) 36 15-5348 > > > jgo...@in... > > > http://www.innox.com.mx > > > > > > > > > > > > ------------------------------------------------------- > > > SF email is sponsored by - The IT Product Guide > > > Read honest & candid reviews on hundreds of IT Products from real users. > > > Discover which products truly live up to the hype. Start reading now. > > > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > > > _______________________________________________ > > > Dotproject-cvs mailing list > > > Dot...@li... > > > https://lists.sourceforge.net/lists/listinfo/dotproject-cvs > > > > ------------------------------------------------------- > > SF email is sponsored by - The IT Product Guide > > Read honest & candid reviews on hundreds of IT Products from real users. > > Discover which products truly live up to the hype. Start reading now. > > http://ads.osdn.com/?ad_ide95&alloc_id396&opclick > > _______________________________________________ > > Dotproject-cvs mailing list > > Dot...@li... > > https://lists.sourceforge.net/lists/listinfo/dotproject-cvs > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_ide95&alloc_id396&op=click > _______________________________________________ > Dotproject-cvs mailing list > Dot...@li... > https://lists.sourceforge.net/lists/listinfo/dotproject-cvs > Atentamente / Sincerely Juan Carlos González Innox - Innovación Inteligente Tel: +52 (33) 36 15-5348 jgo...@in... http://www.innox.com.mx |
|
From: Ivan P. <cyb...@gm...> - 2005-04-07 14:31:49
|
do one try - get the function back and in your
lib/jpgraph/src/jpg-config.inc change the two variables:
DEFINE("LANGUAGE_CYRILLIC",true);
DEFINE("CYRILLIC_FROM_WINDOWS",true);
to false - that should also solve your problem and is the advisable
solution for now until a better one is thought of.
On Apr 7, 2005 11:02 PM, Innox - Juan Carlos Gonzalez
<jgo...@in...> wrote:
> Hi Ivan, thank you for replying.
>=20
> Within the gantt graphs, all non-english letters appear with html
> entities; If I comment out that function and only return the text as it
> arrives to it, everything works perfectly.
>=20
>=20
> On Thu, 2005-04-07 at 10:26 +0930, Ivan Peevski wrote:
> > What appears screwed up? Some of your locale particular characters?
> > The cyrillic changes were introduced to fix russian and other cyrillic
> > translations - if they are not compatible with other languages, maybe
> > we'll have to introduce a user-based setting for this ?!
> >
> > On Apr 7, 2005 11:12 AM, Gregor Erhardt <gr...@or...> wrote:
> > > most jpgraph objects have a setFont() function or sth similar, perhap=
s just overwrite the native object property with something you can handle. =
perhaps that helps without having to tweak much of the code.
> > >
> > > cheers
> > > greg
> > >
> > > On Wed, 06 Apr 2005 18:23:49 -0500
> > > Innox - Juan Carlos Gonzalez <jgo...@in...> wrote:
> > >
> > > > Everyone... after about a two hours debugging I came out with some
> > > > strange type of problem. Summarized:
> > > >
> > > > In JPGraph, the used font_family is FF_FONT0
> > > > When a text is displayed within a gantt graph, it is preprocessed b=
y the
> > > > LanguageConv::Convert (in jpgraph.php L:499).
> > > >
> > > > This function receives $aTxt (text) and $aFF (which I ignore what i=
t
> > > > is). The only thing that I know is that this function is called in
> > > > Image::StrokeText (jpgraph.php L:6141) and it passes a font_family!
> > > >
> > > > The problem is that font_family =3D=3D 1 and in the LangageConv::Co=
nvert
> > > > function, if $aFF =3D=3D 1 it thinks that the language is LANGUAGE_=
CYRILLIC;
> > > > so it encodes in an all strange form and gantt graphs appear screwe=
d up!
> > > >
> > > > So guys! :) any help will be really appreciated. I think my problem=
is
> > > > conceptual, I'm not sure it's a JPGraph's bug.
> > > >
> > > > Thank you in advance!
> > > >
> > > >
> > > > Atentamente / Sincerely
> > > > Juan Carlos Gonz=E1lez
> > > > Innox - Innovaci=F3n Inteligente
> > > > Tel: +52 (33) 36 15-5348
> > > > jgo...@in...
> > > > http://www.innox.com.mx
> > > >
> > > >
> > > >
> > > > -------------------------------------------------------
> > > > SF email is sponsored by - The IT Product Guide
> > > > Read honest & candid reviews on hundreds of IT Products from real u=
sers.
> > > > Discover which products truly live up to the hype. Start reading no=
w.
> > > > http://ads.osdn.com/?ad_id=3D6595&alloc_id=3D14396&op=3Dclick
> > > > _______________________________________________
> > > > Dotproject-cvs mailing list
> > > > Dot...@li...
> > > > https://lists.sourceforge.net/lists/listinfo/dotproject-cvs
> > >
> > > -------------------------------------------------------
> > > SF email is sponsored by - The IT Product Guide
> > > Read honest & candid reviews on hundreds of IT Products from real use=
rs.
> > > Discover which products truly live up to the hype. Start reading now.
> > > http://ads.osdn.com/?ad_ide95&alloc_id=14396&opclick
> > > _______________________________________________
> > > Dotproject-cvs mailing list
> > > Dot...@li...
> > > https://lists.sourceforge.net/lists/listinfo/dotproject-cvs
> > >
> >
> >
> > -------------------------------------------------------
> > SF email is sponsored by - The IT Product Guide
> > Read honest & candid reviews on hundreds of IT Products from real users=
.
> > Discover which products truly live up to the hype. Start reading now.
> > http://ads.osdn.com/?ad_ide95&alloc_id=14396&op=3Dclick
> > _______________________________________________
> > Dotproject-cvs mailing list
> > Dot...@li...
> > https://lists.sourceforge.net/lists/listinfo/dotproject-cvs
> >
> Atentamente / Sincerely
> Juan Carlos Gonz=E1lez
> Innox - Innovaci=F3n Inteligente
> Tel: +52 (33) 36 15-5348
> jgo...@in...
> http://www.innox.com.mx
>=20
>
|
|
From: Gregor E. <er...@fr...> - 2005-04-07 00:35:50
|
while I'd like to help you (as you helped me recently) I need some sleep no= w. Additionally your problem seems to be much more complicated :) On Wed, 06 Apr 2005 18:23:49 -0500 Innox - Juan Carlos Gonzalez <jgo...@in...> wrote: > Everyone... after about a two hours debugging I came out with some > strange type of problem. Summarized: >=20 > In JPGraph, the used font_family is FF_FONT0 > When a text is displayed within a gantt graph, it is preprocessed by the > LanguageConv::Convert (in jpgraph.php L:499). >=20 > This function receives $aTxt (text) and $aFF (which I ignore what it > is). The only thing that I know is that this function is called in > Image::StrokeText (jpgraph.php L:6141) and it passes a font_family! >=20 > The problem is that font_family =3D=3D 1 and in the LangageConv::Convert > function, if $aFF =3D=3D 1 it thinks that the language is LANGUAGE_CYRILL= IC; > so it encodes in an all strange form and gantt graphs appear screwed up! >=20 > So guys! :) any help will be really appreciated. I think my problem is > conceptual, I'm not sure it's a JPGraph's bug. >=20 > Thank you in advance! >=20 >=20 > Atentamente / Sincerely=20 > Juan Carlos Gonz=E1lez > Innox - Innovaci=F3n Inteligente=20 > Tel: +52 (33) 36 15-5348=20 > jgo...@in...=20 > http://www.innox.com.mx >=20 >=20 >=20 > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=3D6595&alloc_id=3D14396&op=3Dclick > _______________________________________________ > Dotproject-cvs mailing list > Dot...@li... > https://lists.sourceforge.net/lists/listinfo/dotproject-cvs |