Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/basemax/textdotscounterjs

JS script (web-based) to count number of dots inside characters. for example i have one dot, and p not have a dot. (Support English, Persian, and Arabic languages)
https://github.com/basemax/textdotscounterjs

assignment assignment-problem assignment-solutions assignments dom es6 javascript js

Last synced: 1 day ago
JSON representation

JS script (web-based) to count number of dots inside characters. for example i have one dot, and p not have a dot. (Support English, Persian, and Arabic languages)

Awesome Lists containing this project

README

        

# Text Dots Counter (Javascript)

> I attended in a Front-end challenge, and this was one of project task.

JS script (web-based) to count number of **dots** inside characters.

**For example `i` have one dot, and `p` not have a dot.**

Supported languages:
- English
- Persian
- Arabic

**Demo:** https://basemax.github.io/TextDotsCounterJS/

[![JavaScript Text Dots Counter](preview.gif)](https://basemax.github.io/TextDotsCounterJS/)

## Challenge

```
چطوری عزیز
```

Should have 7 dots.

As you see "ی" when is at middle of a word it has 2 dots but when you put "ی" at end of a word, it not has a dot.

And,

```
Hi there?
```

Should have 1 dots. (Only `i` has one dot)