1.0.7 • Published 7 years ago

ng-latinize v1.0.7

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

Ng Latinize

npm version Bower dependency Status Github All Releases npm license

Angularjs directive and angularjs filter; which use latinize.js to convert accents (diacritics) from strings to latin characters.

Installation

npm install ng-latinize
bower install ng-latinize

Features

  • Using as directive and filter.
  • Delete inappropriate characters
  • Capitalization option.

Usage

  • Add latinize.js and ng-latinize.js to your source.
<script src="bower_components/latinize/latinize.js"></script>
<script src="bower_components/ng-latinize/dist/ng-latinize.js"></script>

Basic Setup

  • Add ng-latinize directive to your input element.
<input type="text" ng-model="test" ng-latinize />
  • Add ngLatinize filter anywhere you need.
{{ text | ngLatinize }}

Capitalize Setup

  • Add capitalize param to your input or variable
<input type="text" ng-model="test" data-capitalize="true" ng-latinize />
{{ anothertext | ngLatinize:true }}

Example

If you enter ỆᶍǍᶆṔƚÉ áéíóúýčďěňřšťžů to the input below.

<input type="text" ng-model="accentedLetter" />
{{ accentedLetter | ngLatinize:true }}

It will convert the string to EXAMPLE AEIOUYCDENRSTZU.

License

MIT license.

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago