Sha256: 07de985e3254366267791c3736292530171abf364dd697f4e93ae39bb398f7f7

Contents?: true

Size: 1.89 KB

Versions: 1

Compression:

Stored size: 1.89 KB

Contents

srbovanje
=========

Ruby gem za preslovanjavanje ćirilice na latinicu i tzv. "ošišanu" latinicu


## Instaliranje

U Gemfile projekta dodajte:

    gem 'srbovanje'


## Korišćenje

    >> "Ђурђевак".na_latinici
    => "Đurđevak"

    >> "Ђурђевак".na_latinici :ascii
    => "DJurdjevak"

Ako zatreba, tu je i niz sa slovima abecede:

    >> Srbovanje.abeceda
    => ["A", "B", "C", "Č", "Ć", "D", "DŽ", "Đ", "E", "F", "G", "H", "I", "J", "K", "L", "LJ", "M", "N", "NJ", "O", "P", "R", "S", "Š", "T", "U", "V", "Z", "Ž"]


Ako koristite Srbovanje uz Rails dobićete setovana pravila za preslovnjavanja 
koje koristi i18n gem, tako da će npr. parameterize raditi pravilnije:

    # bez Srbovanja
    >> "Đelem, Đelem".parameterize 
    => "delem-delem"

    # uz Srbovanje
    >> "Đelem, đelem".parameterize 
    => "djelem-djelem"

## MIT Licence

Copyright (c) 2009 Dejan Simic

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
srbovanje-1.0.2 README.md