[MPlayer-dev-eng] [PATCH]breakline properly with subtitles using Chinese
dalias at aerifal.cx
Fri Nov 25 04:38:21 CET 2005
On Fri, Nov 25, 2005 at 10:47:50AM +0800, Timothy Lee wrote:
> Zuxy Meng wrote:
> >2005/11/25, Timothy Lee <timothy.lee at siriushk.com>:
> >>This is a function I wrote for another library that uses CJK code blocks
> >>to check for permissible line breaks. Perhaps it can be used as a
> >>// Returns non-zero value if character allows line-break after it
> >>int is_linebreak(unsigned int ucs)
> >I guess this piece of code deals with UCS-2 encoded texts?
> Actually the (unsigned int) parameter is designed to take UCS-4
> characters, but there is no checking for characters above U+FFFF.
This is a unicode character number, not ucs-4 (which is a particular
horrible way of serializing unicode strings).
More information about the MPlayer-dev-eng