Skip to content

Commit

Permalink
Merge pull request #5 from ZZHow1024/develop
Browse files Browse the repository at this point in the history
MagicEncoding3.0.0
  • Loading branch information
ZZHow1024 authored Sep 8, 2024
2 parents 1466e61 + b064ce5 commit 176d49e
Show file tree
Hide file tree
Showing 20 changed files with 1,176 additions and 159 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
/.idea
.DS_Store
/target
MagicEncoding.conf
674 changes: 674 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

72 changes: 44 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# [JavaFX 项目]神奇编码_**MagicEncoding**(中文说明)
# [JavaFX Project]**MagicEncoding**(English)

[**English**](README_EN.md)
[**中文说明**](README_ZH.md)

---

Website:

[[JavaFX 项目]神奇编码_MagicEncoding | ZZHow](https://www.zzhow.com/MagicEncoding)
[[JavaFX Project]MagicEncoding_EN | ZZHow](https://www.zzhow.com/MagicEncodingEN)

Source Code:

Expand All @@ -18,43 +18,59 @@ https://github.com/ZZHow1024/MagicEncoding/releases

---

## 使用说明

- 确定您使用的操作系统。
- Linux:
- 选择 .deb安装包 / .rpm安装包。
- macOS:
- 确定您使用的 Mac 的芯片(Apple Silicon / Intel)。
- 选择 .dmg磁盘镜像 / .pkg安装包。
- Windows:
- 选择 .zip压缩包 / .exe安装包 / .msi安装包。
- 下载对应的文件。
- Linux 和 macOS 需要执行安装操作后再运行,Windows 可直接运行 .zip 压缩包中的 .exe 可执行程序或选择 .exe 安装包与 .msi 安装包执行安装操作。
- 启动 MagicEncoding。
- 拖拽文件夹获取路径,填入需要筛选的后缀名(多种后缀名用“&”分隔),单击“查找文件”。
- 选择原始编码与目标编码,单击“开始转换”。
## License

This project is licensed under the GNU General Public License v3.0 - see the [LICENSE](LICENSE) file for details.

## **Instructions for use**

- Determine the operating system you are using.
- Linux:
- Select .deb installation package/ .rpm installation package.
- macOS:
- Determine the chipset of your Mac (Apple Silicon / Intel).
- Select .dmg disk image/ .pkg installation package.
- Windows:
- Select .zip package/.exe installation package/.msi installation package.
- Download the corresponding file.
- Linux and macOS users need to perform the installation operation before running. Windows users can directly run the .exe executable program in the .zip compressed package or select the .exe installation package and .msi installation package to perform the installation operation.
- Start MagicEncoding.
- You can select the language in the lower right corner of MagicEncoding's main interface.
- Currently supports Chinese (Simplified / Traditional) and English.
- Drag the folder or file to obtain the path, enter the suffix name to be filtered (separate multiple suffix names with "&"), and click Find File.
- Select the original encoding and target encoding, and click "Start Conversion".

---

## 功能介绍
## Function Introduction

- MagicEncoding3.0.0
- Automatic encoding recognition.
- Single file conversion.
- Support multiple languages.
- Chinese (Simplified/Traditional)
- English
- MagicEncoding2.0.0
- 拖拽文件夹获取路径。
- 查找多种后缀名。
- 支持覆盖原文件。
- Drag the folder to get the path.
- Search for multiple suffixes.
- Support overwriting original files.
- MagicEncoding1.0.0
- "GBK" "UTF-8" 之间的编码转换。
- 根据路径查找文件。
- 支持根据文件后缀名筛选文件。
- Encoding conversion between "GBK" and "UTF-8”.
- Find files by path.
- Support filtering files based on file extensions.

---

## **效果图**
## **Renderings**

![MagicEncoding3.0.0_EN](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F4b165318-6383-451c-8845-110b786c9f0a%2Fa48f9fb0-5ca9-4b3e-aa65-5c0b9b8f53a4%2FMagicEncoding3.0.0_EN.png?table=block&id=e473a771-1ea7-42ab-9cc2-b124f8610072&t=e473a771-1ea7-42ab-9cc2-b124f8610072&width=1624&cache=v2)

MagicEncoding3.0.0_EN

![MagicEncoding2.0.0](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F4b165318-6383-451c-8845-110b786c9f0a%2Fcea3d468-2198-4819-a5c3-cb4f3f287dfa%2FMagicEncoding2.0.0.png?table=block&id=34817b71-f9d4-42b9-91e9-a477ad85b262&t=34817b71-f9d4-42b9-91e9-a477ad85b262&width=1624&cache=v2)
![MagicEncoding2.0.0](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F4b165318-6383-451c-8845-110b786c9f0a%2Fbf42de01-57d9-4f5d-bb7c-3490b0db7ee1%2FMagicEncoding2.0.0.png?table=block&id=7ce8da63-3633-47ff-848c-94492101089c&t=7ce8da63-3633-47ff-848c-94492101089c&width=1624&cache=v2)

MagicEncoding2.0.0

![MagicEncoding1.0.0](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F4b165318-6383-451c-8845-110b786c9f0a%2F94657332-79a5-4e54-b697-8979784a6da3%2FMagicEncoding1.0.0.png?table=block&id=c8dd391f-0e31-455c-8dc3-2b154b44605f&t=c8dd391f-0e31-455c-8dc3-2b154b44605f&width=529&cache=v2)
![MagicEncoding1.0.0](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F4b165318-6383-451c-8845-110b786c9f0a%2Fa91b3a7d-672f-4ea2-b167-4657fef038dc%2FMagicEncoding1.0.0.png?table=block&id=ed5e4ef9-7816-4961-9740-d423c5681168&t=ed5e4ef9-7816-4961-9740-d423c5681168&width=1624&cache=v2)

MagicEncoding1.0.0
60 changes: 0 additions & 60 deletions README_EN.md

This file was deleted.

76 changes: 76 additions & 0 deletions README_ZH.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# [JavaFX 项目]神奇编码_**MagicEncoding**(中文说明)

[**English**](README.md)

---

Website:

[[JavaFX 项目]神奇编码_MagicEncoding | ZZHow](https://www.zzhow.com/MagicEncoding)

Source Code:

https://github.com/ZZHow1024/MagicEncoding

Releases:

https://github.com/ZZHow1024/MagicEncoding/releases

---

## License

This project is licensed under the GNU General Public License v3.0 - see the [LICENSE](LICENSE) file for details.

## 使用说明

- 确定您使用的操作系统。
- Linux:
- 选择 .deb安装包 / .rpm安装包。
- macOS:
- 确定您使用的 Mac 的芯片(Apple Silicon / Intel)。
- 选择 .dmg磁盘镜像 / .pkg安装包。
- Windows:
- 选择 .zip压缩包 / .exe安装包 / .msi安装包。
- 下载对应的文件。
- Linux 和 macOS 需要执行安装操作后再运行,Windows 可直接运行 .zip 压缩包中的 .exe 可执行程序或选择 .exe 安装包与 .msi 安装包执行安装操作。
- 启动 MagicEncoding。
- 在 MagicEncoding 的主界面右下方可以选择语言。
- 当前支持中文(简体 / 繁体)与英文。
- 拖拽文件夹或文件获取路径,填入需要筛选的后缀名(多种后缀名用“&”分隔),单击“查找文件”。
- 选择原始编码与目标编码,单击“开始转换”。

---

## 功能介绍

- MagicEncoding3.0.0
- 自动识别编码。
- 单文件转换。
- 支持多语言。
- 中文(简体/繁体)
- 英文
- MagicEncoding2.0.0
- 拖拽文件夹获取路径。
- 查找多种后缀名。
- 支持覆盖原文件。
- MagicEncoding1.0.0
- "GBK" 与 "UTF-8" 之间的编码转换。
- 根据路径查找文件。
- 支持根据文件后缀名筛选文件。

---

## **效果图**

![MagicEncoding3.0.0_ZH](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F4b165318-6383-451c-8845-110b786c9f0a%2F59e24efe-e112-48a3-8ca6-fa721270fca0%2FMagicEncoding3.0.0_ZH.png?table=block&id=63c5eb8e-9288-4418-a76b-627ee422a9c5&t=63c5eb8e-9288-4418-a76b-627ee422a9c5&width=1624&cache=v2)

MagicEncoding3.0.0_ZH

![MagicEncoding2.0.0](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F4b165318-6383-451c-8845-110b786c9f0a%2Fcea3d468-2198-4819-a5c3-cb4f3f287dfa%2FMagicEncoding2.0.0.png?table=block&id=34817b71-f9d4-42b9-91e9-a477ad85b262&t=34817b71-f9d4-42b9-91e9-a477ad85b262&width=1624&cache=v2)

MagicEncoding2.0.0

![MagicEncoding1.0.0](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F4b165318-6383-451c-8845-110b786c9f0a%2F94657332-79a5-4e54-b697-8979784a6da3%2FMagicEncoding1.0.0.png?table=block&id=c8dd391f-0e31-455c-8dc3-2b154b44605f&t=c8dd391f-0e31-455c-8dc3-2b154b44605f&width=1624&cache=v2)

MagicEncoding1.0.0
7 changes: 7 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@
</properties>

<dependencies>
<!-- https://mvnrepository.com/artifact/com.github.albfernandez/juniversalchardet -->
<dependency>
<groupId>com.github.albfernandez</groupId>
<artifactId>juniversalchardet</artifactId>
<version>2.5.0</version>
</dependency>

<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
package com.zzhow.magicencoding.controller;

import com.zzhow.magicencoding.ui.Application;
import javafx.fxml.FXML;
import javafx.scene.control.Label;

import java.util.ResourceBundle;

/**
* @author ZZHow
* @date 2024/9/8
*/
public class AboutController {

@FXML
private Label Label1;
@FXML
private Label Label2;
@FXML
private Label Label3;

@FXML
public void initialize() {
switchLanguage();
}

private void switchLanguage() {
ResourceBundle bundle = Application.bundle;

Label1.setText(bundle.getString("MagicEncoding"));
Label2.setText(bundle.getString("features"));
Label3.setText(bundle.getString("features_content"));
}
}
Loading

0 comments on commit 176d49e

Please sign in to comment.