Skip to content

Commit 928e050

Browse files
committed
docs(fix): normalized
1 parent 41a5541 commit 928e050

File tree

6 files changed

+21
-21
lines changed

6 files changed

+21
-21
lines changed

docs-source/src/en/about/changelog.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
55
::: danger
66

7-
We will only maintain the latest API version, if you are using an outdate API version, you voluntarily renounce any possibility of maintenance.
7+
We will only maintain the latest API version. If you are using an outdated API version, you voluntarily renounce any possibility of maintenance.
88

99
:::
1010

1111
::: warning
1212

13-
To avoid translation time consumption, Changelog will use **Google Translation** from **Chinese** to **English**, please refer to the original text for actual reference.
13+
To avoid translation time consumption, the Changelog will use **Google Translation** from **Chinese** to **English**. Please refer to the original text for actual reference.
1414

1515
Time zone of version release date: **UTC+8**
1616

docs-source/src/en/about/contacts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Contact Us
22

3-
> If you have any questions in use, or have any constructive suggestions, you can contact us.
3+
> If you have any questions during use, or have any constructive suggestions, you can contact us.
44
55
Join our developers group.
66

docs-source/src/en/about/future.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Looking for Future
1+
# Looking Toward the Future
22

33
> The future is bright and uncertain, let us look forward to the future development space of `PanguText`.
44

docs-source/src/en/guide/home.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Introduce
1+
# Introduction
22

33
> `PanguText` is a solution for CJK (Chinese, Japanese, Korean) and English word, half-width number spacing.
44
@@ -13,7 +13,7 @@ Currently, the known vendor solutions are as follows:
1313
- Xiaomi’s (HyperOS) text typography optimization
1414
- OrginOS’s font-based text typography optimization
1515

16-
However, these solutions are closed and cannot be implemented on other platforms.
16+
However, these solutions are closed-source and cannot be implemented on other platforms.
1717
We aim to provide an open-source solution adaptable to various scenarios, featuring low intrusiveness and easy integration, allowing more developers to effectively address text typography issues.
1818

1919
The primary inspiration for this project comes from [pangu.js](https://github.com/vinta/pangu.js), which offers a set of regular expressions for CJK typography.
@@ -66,5 +66,5 @@ The maintenance of this project is inseparable from the support and contribution
6666

6767
This project is currently in its early stages, and there may still be some problems or lack of functions you need.
6868

69-
If possible, feel free to submit a PR to contribute features you think are needed to this project or goto [GitHub Issues](repo://issues)
69+
If possible, feel free to submit a PR to contribute features you think are needed to this project or go to [GitHub Issues](repo://issues)
7070
to make suggestions to us.

docs-source/src/en/guide/quick-start.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
## Project Requirements
66

77
The project needs to be created using `Android Studio` or `IntelliJ IDEA` and be of type Android or Kotlin Multiplatform
8-
project and have integrated Kotlin environment dependencies.
8+
project with integrated Kotlin environment dependencies.
99

1010
- Android Studio (It is recommended to get the latest version [from here](https://developer.android.com/studio))
1111

@@ -15,8 +15,8 @@ project and have integrated Kotlin environment dependencies.
1515

1616
### Configure Repositories
1717

18-
The dependencies of `PanguText` are published in **Maven Central** and our public repository,
19-
you can use the following method to configure repositories.
18+
The dependencies of `PanguText` are published in **Maven Central** and our public repository.
19+
You can use the following method to configure repositories.
2020

2121
We recommend using Kotlin DSL as the Gradle build script language and [SweetDependency](https://github.com/HighCapable/SweetDependency)
2222
to manage dependencies.
@@ -45,7 +45,7 @@ repositories {
4545
google()
4646
mavenCentral()
4747
// (Optional) You can add this URL to use our public repository
48-
// When Sonatype-OSS fails and cannot publish dependencies, this repository is added as a backup
48+
// When Sonatype OSS fails and cannot publish dependencies, this repository is added as a backup
4949
// For details, please visit: https://github.com/HighCapable/maven-repository
5050
maven("https://raw.githubusercontent.com/HighCapable/maven-repository/main/repository/releases")
5151
}

docs-source/src/en/library/android.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Integrating `PanguText` into your current project is very easy. You don't need t
9393

9494
#### Inject to LayoutInflater
9595

96-
`PanguText` supports direct injection of `LayoutInflater.Factory2` or creating a `LayoutInflater.Factory2` instance for the current `Activity` to take over the entire view. This is the recommended integration method, as it allows for non-intrusive and quick integration without modifying any existing layouts.
96+
`PanguText` supports direct injection of `LayoutInflater.Factory2` or creating a `LayoutInflater.Factory2` instance for the current `Activity` to take over the entire view layout inflation. This is the recommended integration method, as it allows for non-intrusive and quick integration without modifying any existing layouts.
9797

9898
> The following example
9999

@@ -113,7 +113,7 @@ class MainActivity : AppCompatActivity() {
113113

114114
::: tip
115115

116-
Since `LayoutInflater.Factory2` is taken over, recycled layouts like `ListView` and `RecyclerView` can also be correctly taken over.
116+
Since `LayoutInflater.Factory2` is taken over, recycled layouts like `ListView` and `RecyclerView` can also be correctly handled.
117117

118118
After injecting the `LayoutInflater` instance in the `Activity`, the following instances attached to the current `Context` will automatically take effect:
119119

@@ -122,7 +122,7 @@ After injecting the `LayoutInflater` instance in the `Activity`, the following i
122122
- `PopupWindow`
123123
- `Toast` (foreground only in higher system versions)
124124

125-
Layouts based on `RemoteView` will not take effect because they are remote objects and do not use the current `Context`'s `LayoutInflater` for layout loading.
125+
Layouts based on `RemoteView` will not take effect because they are remote objects and do not use the current `Context`'s `LayoutInflater` for layout inflation.
126126

127127
:::
128128

@@ -166,15 +166,15 @@ class MainActivity : Activity() {
166166
::: tip
167167

168168
`PanguTextFactory2` can be used not only with `Activity` but also injected into any existing `LayoutInflater` instance.
169-
However, please inject before the `LayoutInflater` instance is used to load the layout, otherwise it will not take effect.
169+
However, please inject it before the `LayoutInflater` instance is used to inflate the layout, otherwise it will not take effect.
170170

171171
:::
172172

173173
#### Using the Patching Tool
174174

175175
You can use `PanguTextPatcher` to patch existing `View` or `ViewGroup` instances.
176176

177-
Patch the entire root layout, and `PanguTextPatcher` will automatically patch all `TextView` or its subclasses under the root layout.
177+
Patch the entire root layout, and `PanguTextPatcher` will automatically patch all `TextView` instances or their subclasses under the root layout.
178178

179179
> The following example
180180

@@ -326,19 +326,19 @@ config.isEnabled = true
326326
// If issues occur, you can disable it. When disabled, Spanned text will return the original text.
327327
config.isProcessedSpanned = true
328328
// Whether to automatically re-measure the text width after processing.
329-
// Note: [PanguText] after injecting text and changing the text,
329+
// Note: After [PanguText] injects text and changes the text,
330330
// the width of [TextView] will not be calculated automatically.
331331
// At this time, this feature will call [TextView.setText] to re-execute the measurements,
332-
// which can fix every time in some dynamic layouts (such as `RecyclerView`) changes in text width,
333-
// but may cause performance issues, you can choose to disable this feature.
332+
// which can fix issues in some dynamic layouts (such as `RecyclerView`) where text width changes each time,
333+
// but may cause performance issues. You can choose to disable this feature.
334334
// To prevent unnecessary performance overhead,
335335
// this feature only takes effect on [TextView] with `maxLines` set to 1 or `singleLine`.
336336
config.isAutoRemeasureText = true
337337
// Set patterns to exclude during formatting using regular expressions.
338338
// For example, exclude all URLs.
339339
config.excludePatterns.add("https?://\\S+".toRegex())
340-
// For example, exclude emoji placeholders like "[doge]",
341-
// if you use [ImageSpan] to display emoji images, you can choose to exclude these placeholders.
340+
// For example, exclude emoji placeholders like "[doge]".
341+
// If you use [ImageSpan] to display emoji images, you can choose to exclude these placeholders.
342342
config.excludePatterns.add("\\[.*?]".toRegex())
343343
// Set the spacing ratio for CJK characters.
344344
// This determines the final layout effect.

0 commit comments

Comments
 (0)