Skip to content

Commit

Permalink
Добавлен белорусский алфавит
Browse files Browse the repository at this point in the history
  • Loading branch information
kalenchukov committed Jul 17, 2022
1 parent 331f73f commit 30b41c0
Show file tree
Hide file tree
Showing 4 changed files with 756 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@

### Список поддерживаемых алфавитов
* Русский
* Английский
* Белорусский
* Кириллица
* Английский

### Получение букв алфавита
```java
Expand Down
2 changes: 1 addition & 1 deletion TODO.MD
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
[x] - не делать

# CORE
*
* Получение клавиатурного порядка букв
*
68 changes: 68 additions & 0 deletions src/main/java/dev/kalenchukov/alphabet/BelarusianAlphabet.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
/*
* Copyright © 2022 Алексей Каленчуков
* GitHub: https://github.com/kalenchukov
* E-mail: mailto:[email protected]
*/

package dev.kalenchukov.alphabet;

import org.jetbrains.annotations.NotNull;

/**
* Класс белорусского алфавита.
*/
public class BelarusianAlphabet extends AbstractAlphabetCase
{
/**
* Коды прописных букв в Unicode.
*/
@NotNull
public static final Character @NotNull [] LETTERS_UPPER_CASE = new Character[] {
'\u0410', '\u0411', '\u0412', '\u0413', '\u0414', '\u0415',
'\u0401', '\u0416', '\u0417', '\u0406', '\u0419', '\u041A',
'\u041B', '\u041C', '\u041D', '\u041E', '\u041F', '\u0420',
'\u0421', '\u0422', '\u0423', '\u040E', '\u0424', '\u0425',
'\u0426', '\u0427', '\u0428', '\u042B', '\u042C', '\u042D',
'\u042E', '\u042F'
};

/**
* Коды строчных букв в Unicode.
*/
@NotNull
public static final Character @NotNull [] LETTERS_LOWER_CASE = new Character[] {
'\u0430', '\u0431', '\u0432', '\u0433', '\u0434', '\u0435',
'\u0451', '\u0436', '\u0437', '\u0456', '\u0439', '\u043A',
'\u043B', '\u043C', '\u043D', '\u043E', '\u043F', '\u0440',
'\u0441', '\u0442', '\u0443', '\u045E', '\u0444', '\u0445',
'\u0446', '\u0447', '\u0448', '\u044B', '\u044C', '\u044D',
'\u044E', '\u044F'
};

/**
* Коды букв в Unicode.
*/
@NotNull
public static final Character @NotNull [] LETTERS = new Character[] {
'\u0410', '\u0430', '\u0411', '\u0431', '\u0412', '\u0432',
'\u0413', '\u0433', '\u0414', '\u0434', '\u0415', '\u0435',
'\u0401', '\u0451', '\u0416', '\u0436', '\u0417', '\u0437',
'\u0406', '\u0456', '\u0419', '\u0439', '\u041A', '\u043A',
'\u041B', '\u043B', '\u041C', '\u043C', '\u041D', '\u043D',
'\u041E', '\u043E', '\u041F', '\u043F', '\u0420', '\u0440',
'\u0421', '\u0441', '\u0422', '\u0442', '\u0423', '\u0443',
'\u040E', '\u045E', '\u0424', '\u0444', '\u0425', '\u0445',
'\u0426', '\u0446', '\u0427', '\u0447', '\u0428', '\u0448',
'\u042B', '\u044B', '\u042C', '\u044C', '\u042D', '\u044D',
'\u042E', '\u044E', '\u042F', '\u044F'

};

/**
* Конструктор для {@code BelarusianAlphabet}.
*/
public BelarusianAlphabet()
{
super(LETTERS, LETTERS_UPPER_CASE, LETTERS_LOWER_CASE);
}
}
Loading

0 comments on commit 30b41c0

Please sign in to comment.