Index | index by Group | index by Distribution | index by Vendor | index by creation date | index by Name | Mirrors | Help | Search |
Name: perl-Text-Capitalize | Distribution: openSUSE Leap 15.2 |
Version: 1.3 | Vendor: openSUSE |
Release: lp152.3.2 | Build date: Fri Sep 20 19:15:40 2019 |
Group: Development/Libraries/Perl | Build host: morla3 |
Size: 36053 | Source RPM: perl-Text-Capitalize-1.3-lp152.3.2.src.rpm |
Packager: https://bugs.opensuse.org | |
Url: http://search.cpan.org/dist/Text-Capitalize/ | |
Summary: capitalize strings ("to WORK AS titles" becomes "To Work as Titles") |
Text::Capitalize provides some routines for *title-like* formatting of strings. The simple *capitalize* function just makes the inital character of each word uppercase, and forces the rest to lowercase. The *capitalize_title* function applies English title case rules (discussed below) where only the "important" words are supposed to be capitalized. There are also some customization features provided to allow the user to choose variant rules. Comparing *capitalize* and *captialize_title*: Input: "lost watches of splitsville" capitalize: "Lost Watches Of Splitsville" capitalize_title: "Lost Watches of Splitsville" Some examples of formatting with *capitalize_title*: Input: "KiLLiNG TiMe" capitalize_title: "Killing Time" Input: "we have come to wound the autumnal city" capitalize_title: "We Have Come to Wound the Autumnal City" Input: "ask for whom they ask for" captialize_title: "Ask for Whom They Ask For" Text::Capitalize also provides some functions for special effects such as *scramble_case*, which typically would be used for this sort of transformation: Input: "get whacky" scramble_case: "gET wHaCkY" (or something similar)
Artistic-1.0 or GPL-1.0+
* Wed Apr 15 2015 coolo@suse.com - initial package $version * created by $NAME $VERSION
/usr/lib/perl5/vendor_perl/5.26.1/Text /usr/lib/perl5/vendor_perl/5.26.1/Text/Capitalize.pm /usr/share/doc/packages/perl-Text-Capitalize /usr/share/doc/packages/perl-Text-Capitalize/Changes /usr/share/doc/packages/perl-Text-Capitalize/README /usr/share/man/man3/Text::Capitalize.3pm.gz
Generated by rpm2html 1.8.1
Fabrice Bellet, Tue Apr 9 11:50:38 2024