[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-libunistring] observations on the manual

From: Paolo Bonzini
Subject: Re: [bug-libunistring] observations on the manual
Date: Mon, 11 May 2009 09:11:34 +0200
User-agent: Thunderbird (Macintosh/20090302)

>>    call uN_wordbreaks
>>    look for the second wordbreak
>>    use uN_totitle until the second wordbreak, excluded
>>    use uN_tolower from the second wordbreak on
> This could be some sample code, probably outside of the doc. Do you want
> to help writing it?

I can do this, though not at the top of my todo list. :-)

>> Having a function for this would be better though, because the function
>> would not need to find wordbreaks at all  In fact, just defining
>>   #define U_WORDBREAKS(s, n, wordbreaks)  memset ((wordbreaks), 0, (n))
>> and using u-totitle.h is enough, if suboptimal.
> This should IMO be a sample as well, not a built-in function. The
> transformation that you are suggesting (titlecase the first letter in the
> string, lowercase the rest) is "sentence capitalization" for some languages.
> But in other languages the sentence capitalization is different.
>   http://en.wikipedia.org/wiki/Capitalization
>   http://en.wikipedia.org/wiki/Sentence_case

Well, Italian titles are usually written in this style too, so the
concept of titlecasing is also a bit English-centric.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]