Skip to content

Commit

Permalink
Assembly v 1.3.3 (16.02.25)
Browse files Browse the repository at this point in the history
  • Loading branch information
adslbarxatov committed Jan 15, 2025
1 parent b9967a3 commit 594fa04
Show file tree
Hide file tree
Showing 11 changed files with 219 additions and 72 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/Release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
# Константы, используемые далее по тексту
env:
PROJ: ${{ github.event.repository.name }}
TAG: '1.3.2'
TAG: '1.3.3'

steps:
# Проверка состава репозитория (без анализа, как может показаться)
Expand Down
8 changes: 3 additions & 5 deletions .release/Release.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
_Changes for v 1.3.2_:
- Access and appearance of the Lab Policy have been updated;
- `Android`: app target API has been upgraded to 35;
_Changes for v 1.3.3_:
- `Android`: MAUI support packages have been updated;
- Implemented the search for specified word or phrase (thanks to @MecyJere);
- `Windows`: added some useful hotkeys
- Access and appearance of the Lab Policy have been updated;
- `Android`: app target API has been upgraded to 35
Binary file modified .release/TextStats.apk
Binary file not shown.
Binary file added .release/TextStats.exe
Binary file not shown.
72 changes: 72 additions & 0 deletions .release/TextStats_en_us.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
<html>

<head>
<title>TextStats: user guide | TextStats</title>
</head>

<body>
<h1 id="textstats-user-guide">TextStats: user guide</h1>
<p>ƒ <i>RD AAOW FDL</i></p>

<br />
<p>This tool obtains statistics on the specified text. It allows you to collect next data:</p>
<ul>
<li>Quantity of every letter in the text (in descending order)</li>
<li>Quantity of every digit (in descending order)</li>
<li>Quantity of every character (in descending order)</li>
<li>Percentage of letters, digits and characters</li>
<li>Quantity of words with their lengths (in descending order)</li>
<li>Maximum, minimum and average word lengths</li>
<li>Quantity of sentences with their lengths in letters and words (in descending order)</li>
<li>Maximum, minimum and average lengths of sentences</li>
<li>Quantity of paragraphs with their lengths in letters, words and sentences (in descending order)</li>
<li>Maximum, minimum and average lengths of paragraphs</li>
</ul>
<p>The text can be loaded from file under UTF8, UTF16 and CP1251 encodings (auto-detection by
preamble). Statistics can also be saved to file.</p>

<br />

<h3 id="supported-characters">Supported characters</h3>
<p>This app now detects only next characters as letters when considering words,
sentences and paragraphs. Other characters will be treated as separators. Let us know if you
need to change this behavior.</p>
<ul>
<li>Russian alphabet:</li>
</ul>
<pre><code>АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ
абвгдеёжзийклмнопрстуфхцчшщъыьэюя
</code></pre>
<ul>
<li>English alphabet:</li>
</ul>
<pre><code>ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz
</code></pre>
<ul>
<li>Digits:</li>
</ul>
<pre><code>0123456789
</code></pre>
<ul>
<li>Connecting characters:</li>
</ul>
<pre><code>-'’
</code></pre>

<r/>

<br />

<h3 id="hotkeys">Hotkeys</h3>
<p>For Windows:</p>
<ul>
<li><code>Ctrl</code> + <code>O</code>: open text file</li>
<li><code>Ctrl</code> + <code>S</code>: save statistics to file</li>
<li><code>Ctrl</code> + <code>F</code>: search for specified text</li>
<li><code>Ctrl</code> + <code>G</code>: get statistics for entered text again</li>
<li><code>Ctrl</code> + <code>B</code>: get text from clipboard</li>
</ul>

</body>
</html>
73 changes: 73 additions & 0 deletions .release/TextStats_ru_ru.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
<html>

<head>
<title>TextStats: руководство пользователя | TextStats</title>
</head>

<body>

<h1 id="textstats--">TextStats: руководство пользователя</h1>
<p>ƒ <i>RD AAOW FDL</i></p>

<br />
<p>Этот инструмент получает статистику по указанному тексту. Он позволяет собирать следующие данные:</p>
<ul>
<li>Количество каждой буквы в тексте (в порядке убывания)</li>
<li>Количество каждой цифры (в порядке убывания)</li>
<li>Количество каждого символа (в порядке убывания)</li>
<li>Процент букв, цифр и символов</li>
<li>Количество слов с их длиной (в порядке убывания)</li>
<li>Максимальная, минимальная и средняя длина слов</li>
<li>Количество предложений с их длиной в буквах и словах (в порядке убывания)</li>
<li>Максимальная, минимальная и средняя длина предложений</li>
<li>Количество абзацев с их длиной в буквах, словах и предложениях (в порядке убывания)</li>
<li>Максимальная, минимальная и средняя длина абзацев</li>
</ul>
<p>Текст можно загрузить из файла в кодировках UTF8, UTF16 и CP1251 (автоматическое определение
по преамбуле). Статистику также можно сохранить в файл.</p>

<br />

<h3 id="section-2">Поддерживаемые символы</h3>
<p>Это приложение сейчас определяет только следующие символы как буквы при учёте
слов, предложений и абзацев. Другие символы будут обрабатываться как разделители. Сообщите нам,
если вам необходимо изменить это поведение.</p>
<ul>
<li>Русский алфавит:</li>
</ul>
<pre><code>АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ
абвгдеёжзийклмнопрстуфхцчшщъыьэюя
</code></pre>
<ul>
<li>Английский алфавит:</li>
</ul>
<pre><code>ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz
</code></pre>
<ul>
<li>Цифры:</li>
</ul>
<pre><code>0123456789
</code></pre>
<ul>
<li>Соединяющие символы:</li>
</ul>
<pre><code>-'’
</code></pre>

<r/>

<br />

<h3 id="section-3">Горячие клавиши</h3>
<p>Для Windows:</p>
<ul>
<li><code>Ctrl</code> + <code>O</code>: открыть текстовый файл</li>
<li><code>Ctrl</code> + <code>S</code>: сохранить статистику в файл</li>
<li><code>Ctrl</code> + <code>F</code>: найти указанный текст</li>
<li><code>Ctrl</code> + <code>G</code>: получить статистику для указанного текста ещё раз</li>
<li><code>Ctrl</code> + <code>B</code>: получить текст из буфера обмена</li>
</ul>

</body>
</html>
3 changes: 3 additions & 0 deletions Changes.log
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
TextStats: changes log

Version 1.3.3:
• Android: MAUI support packages have been updated

Version 1.3.2:
• Access and appearance of the Lab Policy have been updated;
• Android: app target API has been upgraded to 35;
Expand Down
4 changes: 2 additions & 2 deletions src/TextStats.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ public static void Main ()
return;

// Отображение справки и запроса на принятие Политики
if (!RDGenerics.AcceptEULA ())
if (!RDInterface.AcceptEULA ())
return;
RDGenerics.ShowAbout (true);
RDInterface.ShowAbout (true);

// Запуск
Application.Run (new TextStatsForm ());
Expand Down
12 changes: 6 additions & 6 deletions src/TextStatsForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ private void LanguageCombo_SelectedIndexChanged (object sender, EventArgs e)
// Запрос справки
private void AboutButton_Clicked (object sender, EventArgs e)
{
RDGenerics.ShowAbout (false);
RDInterface.ShowAbout (false);
}

// Закрытие окна
Expand Down Expand Up @@ -207,15 +207,15 @@ private void SearchButton_Click (object sender, EventArgs e)
bool hasFile = !string.IsNullOrWhiteSpace (TextStatsMath.LastFilePath);
if (!hasManualText && !hasFile)
{
RDGenerics.LocalizedMessageBox (RDMessageTypes.Warning_Center, "SearchSourceNotFound", 1000);
RDInterface.LocalizedMessageBox (RDMessageTypes.Warning_Center, "SearchSourceNotFound", 1000);
return;
}

// Ввод текста
string textForSearch = RDGenerics.LocalizedMessageBox ("SearchRequest", true, 50);
string textForSearch = RDInterface.LocalizedMessageBox ("SearchRequest", true, 50);
if (string.IsNullOrWhiteSpace (textForSearch))
{
RDGenerics.LocalizedMessageBox (RDMessageTypes.Warning_Center, "SearchSourceNotFound", 1000);
RDInterface.LocalizedMessageBox (RDMessageTypes.Warning_Center, "SearchSourceNotFound", 1000);
return;
}

Expand All @@ -224,7 +224,7 @@ private void SearchButton_Click (object sender, EventArgs e)
bool useManualText = false;
if (hasFile && hasManualText)
{
switch (RDGenerics.MessageBox (RDMessageTypes.Question_Center, RDLocale.GetText ("SearchVariant"),
switch (RDInterface.MessageBox (RDMessageTypes.Question_Center, RDLocale.GetText ("SearchVariant"),
RDLocale.GetText ("SearchVariantFile"), RDLocale.GetText ("SearchVariantText"),
RDLocale.GetDefaultText (RDLDefaultTexts.Button_Cancel)))
{
Expand Down Expand Up @@ -258,7 +258,7 @@ private void SearchButton_Click (object sender, EventArgs e)

// Результат
string stats = TextStatsMath.SearchForText (sourceText, textForSearch);
if (RDGenerics.MessageBox (RDMessageTypes.Information_Left, stats,
if (RDInterface.MessageBox (RDMessageTypes.Information_Left, stats,
RDLocale.GetDefaultText (RDLDefaultTexts.Button_Close),
RDLocale.GetDefaultText (RDLDefaultTexts.Button_Save)) == RDMessageButtons.ButtonTwo)
{
Expand Down
2 changes: 1 addition & 1 deletion src/android/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.RD_AAOW.TextStats"
android:installLocation="internalOnly" android:versionCode="600107" android:versionName="1.3.2">
android:installLocation="internalOnly" android:versionCode="600108" android:versionName="1.3.3">

<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="35" />

Expand Down
Loading

0 comments on commit 594fa04

Please sign in to comment.