Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-21908 Non-latin Chinese/Japanese characters are not supported in PDF file
  3. SAK-21909

In site-manage tool, non-latin (Japanese/Chinese) characters are not supported while export site members in PDF file.

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: OPEN
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: 2.8.1, 2.9.0
    • Fix Version/s: None
    • 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

            1. bug.png
              bug.png
              59 kB
            2. chinese_characters_site-info_export.jpg
              chinese_characters_site-info_export.jpg
              28 kB
            3. chinese_characters_site-info.jpg
              chinese_characters_site-info.jpg
              88 kB
            4. fix.png
              fix.png
              97 kB
            5. kernel_SAK-21909.patch.txt
              2 kB
            6. sakai-site-manage-tool.tar.gz
              7 kB
            7. site-manage_SAK-21909.patch.txt
              14 kB
            8. site-manage_SAK-21909.patch.txt
              11 kB
            9. site-manage_SAK-21909.patch2.txt
              4 kB
            10. src.diff
              11 kB

              Issue Links

                Activity

                  People

                  Assignee:
                  Unassigned Unassigned
                  Reporter:
                  gaojun Gao Jun
                  Votes:
                  1 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                    Dates

                    Created:
                    Updated:

                      Git Integration