Details
-
Type:
Sub-task
-
Status: OPEN
-
Priority:
Critical
-
Resolution: Unresolved
-
Affects Version/s: 2.8.1, 2.9.0
-
Fix Version/s: None
-
Component/s: Internationalization, Site Info
-
Labels:None
-
Property addition/change required:Yes
Description
To show the bug:
1. Add a user with non-latin name to a site. You can just copy some Chinese characters from zh.wikipedia.org
2. Go to "site info" of the site, and click "Printable Version". And in the PDF file, all special chars are replaced by '#'
You can see the screen shot in attachment. (Use Sakai nightly trunk build)
Patch:
1. Modify sakai.properties
Add an entry: fop.pdf.default.font=AR PL UMing CN
"AR PL UMing CN" is a Chinese font. In Linux, it can be installed via "ttf-arphic-uming'
Admin can set this to any font he/she like, only if the font is installed in the OS.
2. Modify pom.xml
Update Apache FOP version from 0.20.5 to 1.0
3. Add config/userconfig.xml
Let FOP auto detect System fonts.
4. Modify config/participants-all-attrs.xsl, src/bundleprintParticipant.properties
Set fo:root font to DEFAULT_FONT
Add i18n support for table title. This title value would be fetch from src/bundle/printParticipant.properties
5. Modify src/java/org/sakaiproject/site/tool/SiteInfoToolServlet.java
Update the FOP related code to couple with FOP 1.0. Add some parameters to support i18n of table tite.
I modify the code based on Sakai 2.8.1. The source are in the attachment(without sakai.properties).
Also, you can see the effect after fix the bug as attachment
Gliffy Diagrams
Zeplin
Attachments
Issue Links
- is related to
-
SAK-30351 In sitestats tool, non-latin (Japanese) characters are not supported while export site members in PDF file.
-
- RESOLVED
-