[MPlayer-dev-eng] [PATCH]breakline properly with subtitles using Chinese

陆然 hephooey at fastmail.fm
Thu Nov 24 16:10:36 CET 2005


Hi,

MPlayer treat characters without whitespace as a single word and try to render 
it in one line, if the length is too long then the word will be truncated, 
however in Chinese and many asia languages there is no whitespace to seperate 
word, so MPlayer usually treat a sentence as a word, and usually the sentence 
will be truncate if it cannot be rendered in one line. This patch detect if 
the character is some asia char, (I assume char > 0x800 is a asia char), and 
try to break the sentence when it cannot be rendered as a word. Please test 
it, thx.

-- 
Best Regards,
LR
-------------- next part --------------
A non-text attachment was scrubbed...
Name: breakword.diff
Type: text/x-diff
Size: 2566 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20051124/86fa464e/attachment.diff>


More information about the MPlayer-dev-eng mailing list