https://bugzilla.wikimedia.org/show_bug.cgi?id=33430
Web browser: ---
Bug #: 33430
Summary: "Create a book" and "Download as PDF" don't wrap
Chinese or Japanese lines
Product: MediaWiki
Version: 1.18.0
Platform: All
OS/Version: All
Status: NEW
Severity: major
Priority: Unprioritized
Component: General/Unknown
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
PROBLEM:
The Chinese and Japanese languages are the only two languages in the world that
don't use spaces to separate words. Instead, they just stick all words
together. So it's common to see a whole Chinese/Japanese paragraph without any
spaces in it.
Because of this peculiarity, MediaWiki's "Create a book" and "Download as PDF"
features don't wrap Chinese/Japanese lines in a generated PDF file, resulting
in a whole paragraph rendered on a single line and truncated when the line runs
out of the right edge of the page.
HOW TO REPRODUCE THE PROBLEM:
1. Go to http://www.mediawiki.org/wiki/MediaWiki/zh-hans
2. Open the page's "Download as PDF" link in a new browser tab;
3. You will get a PDF file that doesn't wrap a long Chinese line but instead
truncates it at the right edge of the page:
"MediaWiki是一个最初用于维基百科的自由wiki程序包,用PHP语言写成。现在,非营利的维基媒体基金会的其他计划、许多其他wiki网站以及本网站(MediaWiki主页)都在使用这个程序包。"
HOW TO FIX IT
1. As a quick workaround, consider inserting special, invisible Unicode control
characters into a long Chinese/Japanese line that will cause line wraps;
2. As a dirty rule, if you can't wrap a line at a space, wrap it at the right
margin of the page forcibly;
3. In principle, every Chinese/Japanese character can be considered a "word"
and therefore a line wrap is allowable before or after any Chinese/Japanese
character;
4. Experts may have a better solution than the above.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l