[Mifos-users] Grameen Koota - Loan passbook

234 views
Skip to first unread message

Naganand

unread,
Feb 8, 2010, 7:03:46 AM2/8/10
to mifos...@lists.sourceforge.net

Hi,

 

Thanks for the fast response and the help

 

The Pass book is running good in Firefox but having issues in ie8 as you had mentioned.

 

I have one more issue which is I have used kannada Unicode font in the passbook for the label contents.

 

When I am running the report, the output PDF has ??? value for all the kannada texts.

 

Not able to understand the issue.

 

Can anybody help.

 

Regards,

 

Nagananda Kumar. K.N

Deputy General Manager [Information Technology]

Grameen Financial Services Pvt. Ltd

Avalahalli, Anjanapura Post,

Bangalore

Karnataka

India

PinCode: 560062

Ph: 080-28436237, Fax: 080 28436577

Mob: 9845104252

Email:naga...@grameenkoota.org

Website: www.grameenkoota.org

 

image001.gif

Ryan Whitney

unread,
Feb 8, 2010, 7:07:49 AM2/8/10
to mifos...@lists.sourceforge.net
Naganand,

I suspect this is due to the system not having access to this font.  You are running on windows, correct?  Have you installed the Kannada font on the server?

Thanks,
Ryan

Website: www.grameenkoota.org <http://www.grameenkoota.org>



------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com

_______________________________________________
Mifos-users mailing list
Mifos...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mifos-users

--
Ryan Whitney
Mifos Technical Program Manager
rwhi...@grameenfoundation.org  
Mifos - Technology that Empowers Microfinance (www.mifos.org)
Our mission is to enable the poor, especially the poorest, to create a world without poverty.  
<
http://grameenfoundation.org/take-action/ingenuity-fund-challenge/>
P please consider the environment before printing this e-mail.
image.gif

Naganand

unread,
Feb 8, 2010, 7:13:59 AM2/8/10
to A good place to start for users or folks new to Mifos.

Hi Ryan,

 

I tried to use the default font “Tunga” which is there in my windows system. But even then, the font is not displaying properly. It is not showing junk but still not proper words as in the reports when I used this font.

 

Regards,

 

Nagananda Kumar. K.N

Deputy General Manager [Information Technology]

Grameen Financial Services Pvt. Ltd

Avalahalli, Anjanapura Post,

Bangalore

Karnataka

India

PinCode: 560062

Ph: 080-28436237, Fax: 080 28436577

Mob: 9845104252

Email:naga...@grameenkoota.org

Website: www.grameenkoota.org

 

image001.gif

Udai Gupta

unread,
Feb 9, 2010, 7:01:37 AM2/9/10
to A good place to start for users or folks new to Mifos.
Hi,

I haven't done much around BIRT, but I think this issue is far beyond just installing the fonts on your system.

You might be able to see the report working in your browser or BIRT viewer, but BIRT PDF generator might not be able to process the fonts (or it doesn't even understand what font you are using).

If you look into this path
mifos-gazelle/application/reporting/BirtWebViewer-2_5_0/WEB-INF/platform/plugin/org.eclipse.birt.report.engine.fonts_2.5.0.v20090615
in Mifos 1.4 (somewhat similar but different version in Mifos 1.3).

You will find
fontsConfig.xml
fontsConfig_pdf.xml
fontsConfig_win32.xml

You can see how other fonts are mapped in these configuration, so I think mapping your local font should make it work.

You should be able to see the mapping working in logs if you make BIRT_VIEWER_LOG_LEVEL use INFO level logging in
mifos-gazelle/application/reporting/BirtWebViewer-2_5_0/WEB-INF/web.xml

INFO: register fonts in / usr/openwin/lib/locale/iso_8859_2/X11/fonts/TrueType cost: 0ms
2009-2-20 15:47:56 org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory registerFontPath 2009-2-20 15:47:56 org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory registerFontPath

I guess this should work but I am not sure if BIRT_VIEWER_LOCALE = en_US will have any effect (my guess is it should not).
But if it does you can also use __locale "kn_IN" to override global locale. refer http://www.eclipse.org/birt/phoenix/deploy/viewerUsage2.2.php

I can't suggest the best path as I haven't tried these myself, but I think you can try and let us know which configuration works.

As these changes will not be in WAR file and you will be adding them explicitly, there are chances that you may loose them after a reload, so keep them safe at other place for later use.

Udai Gupta
Mifos Developer




Udai Gupta

unread,
Feb 9, 2010, 7:12:55 AM2/9/10
to A good place to start for users or folks new to Mifos.
PS: if it works, then this solution is a temporary solution because to
avoid loosing these configuration at every reload we would have to add
your setting in source code so that you can use it even after reload
after next release. I didn't find any other way to have these
configuration out of box.

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com

Naganand

unread,
Feb 11, 2010, 3:39:41 AM2/11/10
to A good place to start for users or folks new to Mifos.

Hi

 

Udai,

 

I wanted to try out the process you explained below. But I find it too complex to handle and felt. It is better if you can help us with some detailed examples.

 

Please let us know.

 

Regards,

 

Nagananda Kumar. K.N

Deputy General Manager [Information Technology]

Grameen Financial Services Pvt. Ltd

Avalahalli, Anjanapura Post,

Bangalore

Karnataka

India

PinCode: 560062

Ph: 080-28436237, Fax: 080 28436577

Mob: 9845104252

Email:naga...@grameenkoota.org

Website: www.grameenkoota.org

 

From: Udai Gupta [mailto:mail...@gmail.com]
Sent: 09 February 2010 17:32
To: A good place to start for users or folks new to Mifos.
Subject: Re: [Mifos-users] Grameen Koota - Loan passbook

 

Hi,

Udai Gupta

unread,
Feb 11, 2010, 4:18:47 AM2/11/10
to A good place to start for users or folks new to Mifos.
Hi Naganand,,

I looked for some example but I didn't find anything straight forward.
If we look at Mifos 1.3 (BIRT 2.1) fontsConfig file

http://mifos.svn.sourceforge.net/viewvc/mifos/branches/v1.3.x/application/reporting/BirtWebViewer/WEB-INF/platform/plugins/org.eclipse.birt.report.engine.fonts_2.1.2.v20070205-1728/fontsConfig.xml?view=markup

it seems the file path <path path=""/> could be the reason why BIRT is
not able to find system fonts.

In 1.4 Mifos, I can see BIRT 2.5 fontConfig.xml has all the possible
paths by default (I think you just need your system font path)

http://mifos.svn.sourceforge.net/viewvc/mifos/trunk/application/reporting/BirtWebViewer-2_5_0/WEB-INF/platform/plugins/org.eclipse.birt.report.engine.fonts_2.5.0.v20090615/fontsConfig.xml?view=markup

I think Mifos 1.3 has BIRT 2.1, So I am little skeptical about locale
support because it seems the work to support locale has been done in
BIRT 2.3 from the commit logs.

http://dev.eclipse.org/viewsvn/index.cgi/source/org.eclipse.birt.report.engine.fonts/?root=BIRT_Project

Also, I think that looking at BIRT logs (INFO level enabled) can show
whether system fonts are being mapped or not.

Sorry for making it more complex. It will great if works, otherwise
just file an improvement at http://mifosforge.jira.com and look for
other workarounds (like placing image instead of text for static
content).

Udai

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev

Adam Monsen

unread,
Mar 8, 2010, 2:49:18 PM3/8/10
to Mifos User Discussions
Hi Naganand,

Here's something else you could try: HTML reports.

* on the reports page, click "Collection Sheet Report"
* show only the report parameter frame (screenshot:
http://yfrog.com/0bonlyframep )
* change the last part of the URL from __format=pdf to
__format=html (screenshot: http://yfrog.com/jnchangeurlp )

This might give us more information about where the problem lies, and
could provide a workaround.

signature.asc

Adam Monsen

unread,
Mar 9, 2010, 11:50:08 PM3/9/10
to mifos...@lists.sourceforge.net
One other thought: double-check the encoding of the .rptdesign file
(and any other files this report uses). I believe it should be UTF-8.

On GNU/Linux I usually use the "file" command or the Vim text editor
to query the file encoding. On Windows it seems like opening in
Notepad then choosing File -> Save As... pre-selects the current
encoding for the "Encoding:" field.

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev

Reply all
Reply to author
Forward
0 new messages