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

Timothy Lee timothy.lee at siriushk.com
Fri Nov 25 03:47:50 CET 2005


Zuxy Meng wrote:
> Hi,
>
> 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
>> reference:
>>
>> // 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.




More information about the MPlayer-dev-eng mailing list