You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scripts/README.md
+40-23Lines changed: 40 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
1
# Documentation Consistency Checker
2
2
3
-
A Python script designed to check consistency between English and Chinese documentation files in the Defold project. This tool compares file structures and Markdown syntax trees to ensure translations maintain the same structure and formatting.
3
+
A Python script designed to check consistency between documentation files in different languages for the Defold project. This tool compares file structures and Markdown syntax trees to ensure translations maintain the same structure and formatting.
4
4
5
5
## Features
6
6
7
-
-**File Structure Comparison**: Compares the directory structure between English and Chinese documentation
7
+
-**File Structure Comparison**: Compares the directory structure between source and target documentation directories
8
8
-**Markdown Syntax Tree Analysis**: Analyzes and compares Markdown syntax elements including:
9
9
- Headers (h1, h2, h3, etc.)
10
10
- Code blocks
@@ -34,52 +34,49 @@ A Python script designed to check consistency between English and Chinese docume
34
34
35
35
### Basic Usage
36
36
37
-
To run a full comparison between English and Chinese documentation:
37
+
To run a full comparison between source and target documentation directories:
formula_text=f"Compare {source_dir}\\{file_path} and {target_dir}\\{file_path} paragraph by paragraph with each heading as a paragraph, to ensure the target version is a complete and accurate translation of the source version."
132
+
formula_text=f"Compare {source_dir_name}\\{file_path} and {target_dir_name}\\{file_path} paragraph by paragraph with each heading as a paragraph, to ensure the target version is a complete and accurate translation of the source version."
0 commit comments