[Libreoffice] [EasyHacks] Protocol capitalization

Sébastien Le Ray sebastien-libreoffice at orniz.org
Sun Feb 20 23:59:49 PST 2011


Hi list,

Here are two patch regarding the Easy Hack "Improve Autocorrect
capitalize first word in sentence" (on the wiki).

First one improves french autocorrection for non breaking space
before : when you enter a protocol. I didn't remove the code
handling the "://" case since INETUrlObject does not contains ftps://,
imaps:// and other protocols. I could modify INETUrlObject if needed to
handle these and get ride of this special case.

Second one prevents capitalisation of recognized protocole (e.g. http:
will never be replaced by Http: even at the beginning of a sentence).

Awaiting your comments

Sebastien
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Better-protocols-handling-in-french-autoco-libs-core.patch
Type: text/x-patch
Size: 1910 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20110221/8afec652/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Disable-protocols-capitalization-libs-core.patch
Type: text/x-patch
Size: 1274 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20110221/8afec652/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20110221/8afec652/attachment.pgp>


More information about the LibreOffice mailing list