Jeckky / dompdf

Automatically exported from code.google.com/p/dompdf
0 stars 0 forks source link

chinese word unicode wrapping issues #404

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.When Export PDF File. the Chinese word Wrapping not Correct.
this unicode_wrapping can't wrapping chinese word.

What is the expected output? What do you see instead?
Please see attach PDF file.

Operating system
Server Version: Apache/2.2.18 (Win32) PHP/5.3.6 DAV/2
WinXP + Uniserver v7

HTML source code.
Please see attach mycode.html

Original issue reported on code.google.com by tomdy....@gmail.com on 12 Jan 2012 at 8:25

Attachments:

GoogleCodeExporter commented 9 years ago
Export PDF File 

Original comment by tomdy....@gmail.com on 12 Jan 2012 at 8:27

Attachments:

GoogleCodeExporter commented 9 years ago
It looks like we should split words on the 0xFF0C Unicode char 
http://www.fileformat.info/info/unicode/char/ff0c/index.htm

And even other uncommon word separators.

Original comment by fabien.menager on 12 Jan 2012 at 8:12

GoogleCodeExporter commented 9 years ago
split 0xFF0C is good solution,

in my case need set width to word wrap. not split words on the 0xFF0C.

in this content, I have set the width: 500px, and word-wrap: break-word;

.entry-content {
        width:500px;
        word-wrap: break-word;
}

when i export pdf this chinese word content not wrap by width.

Original comment by tomdy....@gmail.com on 13 Jan 2012 at 12:52

GoogleCodeExporter commented 9 years ago
You might try the latest code. break-word support was only added after the 
release of 0.6.0 beta 2. I tested with more recent code and the does appear to 
wrap:
http://eclecticgeek.com/dompdf/debug.php?identifier=0513a34a8c7e7a42cb713a8baa20
b6bc

This doesn't address the issue of introducing correct break-points for natural 
sentence wrapping, and we'll keep this bug open to address that issue.

You can download a "nightly" release here:
http://eclecticgeek.com/dompdf

Original comment by eclecticgeek on 14 Jan 2012 at 2:44

GoogleCodeExporter commented 9 years ago
Seeing the PDF size, I can't wait for font subsetting !!
Ha! I forgot I'm the one in charge of this ;)

Original comment by fabien.menager on 14 Jan 2012 at 1:53

GoogleCodeExporter commented 9 years ago
No doubt. The Firefly font is particularly large, so it will be a good test 
case for subsetting.

Original comment by eclecticgeek on 14 Jan 2012 at 11:48

GoogleCodeExporter commented 9 years ago
Dear All
I am download "nightly" and change code.
It's Working Now.

Thank All.

Original comment by tomdy....@gmail.com on 16 Jan 2012 at 5:53

GoogleCodeExporter commented 9 years ago

Original comment by eclecticgeek on 24 May 2013 at 3:00