Bug 21806 - Patron card creator - batch to export -unicode support
Summary: Patron card creator - batch to export -unicode support
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Label/patron card printing (show other bugs)
Version: 18.05
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Chris Nighswonger
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-11 02:56 UTC by cfhong2000
Modified: 2019-01-21 14:04 UTC (History)
5 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments
patron card screen shot and layout (50.83 KB, application/pdf)
2018-11-11 14:36 UTC, cfhong2000
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cfhong2000 2018-11-11 02:56:22 UTC
Currently, in Patron Card creator you cannot print unicode firstname and lastname. In my case, I was trying to print chinese name. The generated pdf file is not able to show chinese name.
Comment 1 Katrin Fischer 2018-11-11 09:20:47 UTC
Can you give us the name you were trying to print?
Do you have defined fonts in your koha-conf.xml that support the characters?
Comment 2 cfhong2000 2018-11-11 14:36:55 UTC
Created attachment 82218 [details]
patron card screen shot and layout
Comment 3 cfhong2000 2018-11-11 14:40:13 UTC
The patron Chinese name I tried to print : 費卓文 

Here is koha-conf.xml, out-of-box setting. Do I need add Chinese font in 
koha-conf.xml


<!-- true type font mapping according to type from $font_types in C4/Creators/Lib.pm -->
 <ttf>
    <font type="TR" >/usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif.ttf</font>
    <font type="TB" >/usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif-Bold.ttf</font>
    <font type="TI" >/usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif-Italic.ttf</font>
    <font type="TBI">/usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif-BoldItalic.ttf</font>
    <font type="C"  >/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf</font>
    <font type="CB" >/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-Bold.ttf</font>
    <font type="CO" >/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-Oblique.ttf</font>
    <font type="CBO">/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-BoldOblique.ttf</font>
    <font type="H"  >/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf</font>
    <font type="HO" >/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Oblique.ttf</font>
    <font type="HB" >/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf</font>
    <font type="HBO">/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-BoldOblique.ttf</font>
 </ttf>
Comment 4 cfhong2000 2019-01-21 14:04:12 UTC
I found a workaround from Koha Taiwan user group.
Here is the link to a google doc that provides the solution.

https://docs.google.com/viewer?a=v&pid=forums&srcid=MDA0NDYxNTM3NzUwNTcyNzI5NjYBMDkxODU4MDQ3OTk1NjE2NzgxMjEBLWNMdzJoYjRCd0FKATAuMQEBdjI&authuser=0