• Home
Name Date Size #Lines LOC

..--

TL/22-Oct-2025-1,5471,484

collaboration/22-Oct-2025-256,189252,293

data/language-codes/22-Oct-2025-67,34165,848

docs/22-Oct-2025-1,7951,532

encodings/22-Oct-2025-24,08423,911

hyph-utf8/22-Oct-2025-1,176,3591,174,269

lib/tex/22-Oct-2025-

misc/22-Oct-2025-17,25417,249

ohos/22-Oct-2025-2,2621,872

old/22-Oct-2025-154,717154,047

source/22-Oct-2025-187,367186,622

tests/22-Oct-2025-19,58917,960

tools/22-Oct-2025-808688

webpage/22-Oct-2025-7,2275,912

.gitignoreD22-Oct-202525 43

.rspecD22-Oct-202555 21

.travis.ymlD22-Oct-202530 43

BUILD.gnD22-Oct-20252 KiB6355

CONTRIBUTING.mdD22-Oct-2025674 118

GemfileD22-Oct-2025207 1211

LICENSED22-Oct-20255 KiB11887

LICENSE-BSD3D22-Oct-20251.5 KiB2923

LICENSE-GPLD22-Oct-202512.2 KiB248200

LICENSE-GPL2D22-Oct-202517.7 KiB340281

LICENSE-LGPL2.1D22-Oct-202525.8 KiB501417

LICENSE-LGPL3D22-Oct-20257.5 KiB165128

LICENSE-LPPLD22-Oct-20258.9 KiB211161

LICENSE-LPPL1.2D22-Oct-202514.1 KiB315245

LICENSE-LPPL1.3D22-Oct-202518.6 KiB415329

LICENSE-MITD22-Oct-20251.1 KiB2117

LICENSE-MPL1.1D22-Oct-202525.2 KiB469396

OAT.xmlD22-Oct-20257.3 KiB10355

READMED22-Oct-2025222 118

README.NorwegianD22-Oct-20251.7 KiB3528

README.OpenSourceD22-Oct-2025539 1212

README.mdD22-Oct-20251.3 KiB2520

README_en.mdD22-Oct-20258.5 KiB245222

README_zh.mdD22-Oct-20258.5 KiB251227

ROADMAPD22-Oct-20259.7 KiB563435

RakefileD22-Oct-2025855 2622

TODOD22-Oct-202511.2 KiB274222

bundle.jsonD22-Oct-2025751 3838

tex-hyphen-language.gemD22-Oct-20251.2 MiB

tex-hyphen-language.gemspecD22-Oct-2025715 1615

tex-hyphen.gniD22-Oct-20255.5 KiB244241

README

1CTAN
2	(I don't like the name)
3	the files with patterns as authors should submit it
4source
5	sources of pattern files, like programs to generate them or word lists
6	please contribute!
7TL
8	files that should go to TeX Live?
9
10
11

README.Norwegian

1*NOTES ABOUT NORWEGIAN*
2
3The Norwegian language has two written forms, called bokmål and nynorsk, whose
4history dates back to the 19th century during the Danish occupation.  The most
5widely used one of them is bokmål, but nynorsk is used as well, and they are
6both official languages of Norway.  The ISO 639-1 code are ‘nb’ for bokmål and
7‘nn’ for nynorsk.  There is also a ISO 639-1 code for “Norwegian”, ‘no’.
8
9  Traditionally, LaTeX has been supporting Norwegian under the common name
10“norsk”, with “norwegian” as an alias in language.dat.  The captions in Babel's
11norsk.ldf are in bokmål.  Since a few months, there are two additional pattern
12files available on CTAN labelled as bokmål and nynorsk, which correct
13hyphenations for a small number of words – two words for each language,
14actually: in bokmål, attende and betre are hyphenated at-ten-de and be-tre,
15whereas in nynorsk it's att-en-de and bet-re.  With the current patterns for
16“Norwegian” (nohyphbx.tex), though, they are hyphenated atten-de and betre,
17which is correct in neither language.  The new pattern files provide therefore
18provide tiny improvements.
19
20  Since the Babel's current support is suitable for bokmål, and the bokmål
21patterns are only slightly different from the current ones, we can use them as
22the successor to the norsk patterns, and ship the nynorsk patterns in addition
23to this.  We thus can use the following definitions in language.no.dat:
24
25	norsk		loadhyph-nb.tex
26	=norwegian
27	=bokmal
28	nynorsk		loadhyph-nn.tex
29
30  Of course, the nynorsk patterns still can't be used directly as long as there
31is no Babel support, but we hope that support will be added on the future, and
32the patterns will already be there.
33
34		Arthur, 2008-06-11
35

README.OpenSource

1[
2  {
3    "Name": "TEX hyphenation patterns",
4    "License": "MIT;GPL;GPL-2;LGPL-2.1;LGPL-3;LPPL-1;LPPL-1.2;LPPL-1.3;MPL-1.1",
5    "License File": "LICENSE-MIT;LICENSE-GPL;LICENSE-GPL2;LICENSE-LGPL2.1;LICENSE-LGPL3;LICENSE-LPPL;LICENSE-LPPL1.2;LICENSE-LPPL1.3;LICENSE-MPL1.1",
6    "Version Number": "CTAN-2024.12.31",
7    "Owner": "wangxiaokai@huawei.com",
8    "Upstream URL": "https://github.com/hyphenation/tex-hyphen",
9    "Description": "This is the central repository for all hyphenation patterns",
10    "Dependencies": [ "icu" ]
11  }
12]

README.md

1[![Build Status](https://travis-ci.com/hyphenation/tex-hyphen.svg?branch=master)](https://travis-ci.com/hyphenation/tex-hyphen)
2
3This is the central repository for all hyphenation patterns (that we know of).
4These patterns are encoded in UTF-8, but can also be used with 8-bit TeX
5engines such as pdfTeX with the help of mechanisms provided with the package.
6It is meant to be a low-level package and is integrated with all major TeX
7distributions (TeX Live, MiKTeX, W32TeX); most TeX users should thus not
8concern themselves with this package, unless of course they’re working on the
9hyphenation patterns themselves.
10
11We upload the package to CTAN regularly and use git tags to identify versions;
12a CTAN upload has a version date in the form `yyyy-mm-dd`, corresponding to tag
13`CTAN-yyyy.mm.dd` in this git repository. Because the package contains
14contributions from many different sources that are not updated at the same
15time, we felt this was this best choice for version identifiers.
16
17If you are an author of hyphenation patterns and want to add or update them,
18please contact the maintainers through the mailing list: tex-hyphen@tug.org
19You can also visit the [TeX hyphenation page](http://www.hyphenation.org/tex) for more
20information and technical details.
21
22# Running
23`bundle` (or `bundle install`)
24`bundle exec rake` runs the default task in the Rakefile.
25

README_en.md

1# tex-hyphen
2## Introduction
3tex-hyphen is a hyphenation pattern library for the TeX system. It can correctly hyphenate words in multiple languages to improve typesetting quality.
4
5Source: tex-hyphen
6URL: https://github.com/hyphenation/tex-hyphen
7Version: CTAN-2024.12.31
8License: Various combinations
9
10## Background
11In multilingual document processing and typesetting, correct hyphenation is crucial. tex-hyphen provides a comprehensive set of hyphenation patterns that support multiple languages, ensuring high-quality typesetting. Introducing tex-hyphen into OpenHarmony can significantly enhance the typesetting quality of multilingual documents.
12
13## Language Classification
14The tex directory contains multiple hyphenation patterns from TeX hyphenation patterns, each using different open-source licenses. The classification is as follows:
15* MIT License
16* GPL, GPL 2
17* LGPL 1, LGPL 2.1
18* LPPL 1, LPPL 1.2, LPPL 1.3
19* MPL 1.1
20* BSD 3
21
22Languages used in OHOS,the following languages all use a user-friendly open-source license.:
23* be - Belarusian
24* cs - Czech
25* cy - Welsh
26* da - Danish
27* de-1901 - German (1901 orthography)
28* de-ch-1901 - Swiss German (1901 orthography)
29* el-monoton - Modern Greek (monotonic)
30* el-polyton - Modern Greek (polytonic)
31* en-gb - British English
32* en-us - American English
33* es - Spanish
34* et - Estonian
35* fr - French
36* ga - Irish
37* gl - Galician
38* hr - Croatian
39* hu - Hungarian
40* id - Indonesian
41* is - Icelandic
42* it - Italian
43* ka - Georgian
44* lt - Lithuanian
45* lv - Latvian
46* mk - Macedonian
47* mn-cyrl - Mongolian (Cyrillic script)
48* nl - Dutch
49* pt - Portuguese
50* ru - Russian
51* sh-cyrl - Serbo-Croatian (Cyrillic script)
52* sh-latn - Serbo-Croatian (Latin script)
53* sk - Slovak
54* sl - Slovenian
55* sr-cyrl - Serbian (Cyrillic script)
56* sv - Swedish
57* th - Thai
58* tk - Turkmen
59* tr - Turkish
60* uk - Ukrainian
61* zh-latn-pinyin - Chinese (Pinyin)
62
63## Directory Structure
64```
65third_party_tex-hyphen
66├── collaboration
67│   ├── original
68│   ├── repository
69│   └── source
70├── data/language-codes
71├── docs
72│   └── languages
73├── encoding
74│   └── data
75├── hyph-utf8
76│   ├── doc
77│   ├── source
78│   └── tex
79├── misc
80├── ohos
81│   ├── src
82│   └── hpb-binary
83├── old
84├── source
85├── tests
86├── TL
87├── tools
88└── webpage
89```
90collaboration/       JavaScript dependencies and XML configuration files required by the tex-hyphen official website
91ohos/                OpenHarmony compilation files and hpb binary files
92data/                Language library
93docs/                Documentation related to hyphenation
94encoding/            Contains files related to character set encodings, handling different character sets.
95hyph-utf8/           Hyphenation pattern package for TeX, providing hyphenation patterns encoded in UTF-8
96misc/                An example of a hyphenation file for the en-gb language.
97old/                 Contains older hyphenation pattern files that may have been updated or replaced.
98source/              Contains source code files used to generate and process hyphenation patterns.
99TL/                  tlpsrc resource files, which are package source files in the TeX Live system, used to describe metadata of TeX Live packages
100tools/               Contains utility scripts to assist in processing hyphenation pattern files.
101webpage/             tex-hyphen official homepage, providing detailed information and resources about the hyph-utf8 package
102
103
104## Value Brought to OpenHarmony
105**1. Improved Typesetting Quality:** By introducing tex-hyphen, OpenHarmony can achieve more accurate hyphenation, improving the readability and aesthetics of documents.
106**2. Enhanced Small Screen Experience:** Using hyphenation patterns on small screen devices can display more content in the same area, enhancing the reading experience.
107
108## How to Use tex-hyphen in OpenHarmony
109### 1. Compile the HPB Binary
110#### Compilation Steps
111Open the terminal (or command prompt), navigate to the directory containing the [hyphen_pattern_processor.cpp](ohos%2Fsrc%2Fhyphen-build%2Fhyphen_pattern_processor.cpp) file, and run the following command to compile the code:
112
113```
114cd ohos/src/hyphen-build/
115g++ -g -Wall hyphen_pattern_processor.cpp -o transform
116```
117
118Explanation of the command:
119- g++: Invoke the GCC compiler.
120- -g: Add debugging information.
121- -Wall: Enable all warnings.
122- hyphen_pattern_processor.cpp: Source code file.
123- -o transform: Specify the output executable file name as transform.
124
125#### Execution Steps
126After compilation, you can run the generated executable file and process the specified .tex file using the following command:
127
128```
129./transform hyph-en-us.tex ./out/
130```
131
132Explanation of the command:
133- ./transform: Run the generated transform executable file.
134- hyph-en-us.tex: Input file (the .tex file to be processed).
135- ./out/: Output directory (the processed files will be stored in this directory).
136
137After successful execution, the processed files will be stored in the ./out/ directory.
138
139#### Batch Compilation
140- Dependencies:
141```
142jq:JSON file parsing tool
143```
144- Configure the files to be compiled using the JSON configuration file [build-tex.json](ohos%2Fbuild%2Fbuild-tex.json):
145```
146[
147    {
148        "filename": "example1.tex"
149    },
150    {
151        "filename": "example2.tex"
152    }
153]
154```
155filename: Specifies the name of the TeX file to be compiled. The file must be located in the [tex](hyph-utf8%2Ftex%2Fgeneric%2Fhyph-utf8%2Fpatterns%2Ftex) directory.
156
157The build-tex.json file defines all supported languages, and the script will compile all of them by default. Developers can control the addition or removal of languages by modifying build-tex.json.
158For example:
159To remove the example2 language, modify the file as follows:
160```
161[
162    {
163        "filename": "example1.tex"
164    }
165]
166```
167To add the example3 language, modify the file as follows:
168```
169[
170    {
171        "filename": "example1.tex"
172    },
173    {
174        "filename": "example2.tex"
175    },
176    {
177        "filename": "example3.tex"
178    }
179]
180```
181
182- Open a terminal (or command prompt), navigate to the directory containing the [build.sh](ohos%2Fbuild%2Fbuild.sh) file, and run the following commands to compile the code:
183```
184chmod +x build.sh
185./build.sh
186```
187After successful compilation, the compiled output will be placed in the ./out_hpb directory.
188### 2. Parse Word Hyphenation Positions Using HPB
189#### compilation Steps
190Open a terminal (or command prompt), navigate to the directory containing the [hyphen_pattern_reader.cpp](ohos%2Fsrc%2Fhyphen-build%2Fhyphen_pattern_reader.cpp) file, and run the following command to compile the code:
191
192```
193cd ohos/src/hyphen-build/
194g++ -g -Wall hyphen_pattern_reader.cpp -o reader
195```
196Explanation of the command:
197- g++: Calls the GCC compiler.
198- -g: Adds debugging information.
199- -Wall: Enables all warnings.
200- hyphen_pattern_reader.cpp: The source code file.
201- -o reader: Specifies the output executable file name as reader.
202
203#### Running Steps
204After compilation, you can parse the hyphenation positions of words in the specified language using the following command:
205
206```
207./reader hyph-en-us.hpb helloworld
208```
209Explanation of the command:
210- ./reader: Runs the generated reader executable.
211- hyph-en-us.hpb: The input file (the binary file to be parsed).
212- helloworld: The word to be parsed.
213
214After successful execution, the log will output the hyphenation information of the parsed word.
215
216### 3. Batch Verification
217You can use the [generate_report.py](ohos%2Ftest%2Fgenerate_report.py) Python script to read the [report_config.json](ohos%2Ftest%2Freport_config.json) configuration file and perform batch verification to check the validity of the generated binary files.
218#### Preparation
219- Python 3.x
220- transform and reader executables, placed in the same directory as the script.
221- report_config.json configuration file
222
223#### Usage
2241. Prepare the Configuration File First, create a JSON configuration file named report_config.json with the following content:
225```
226{
227    "file_path": "path/to/tex/files",
228    "tex_files": [
229        {
230            "filename": "example.tex",
231            "words": ["word1", "word2", "word3", "word4", "word5", "word6", "word7", "word8", "word9", "word10"]
232        },
233        ...
234    ]
235}
236```
2372. Run the Script Run the following command in the terminal:
238```
239python generate_report.py report_config.json
240```
2413. Log Files The script will generate a timestamped subdirectory under the report directory, containing the following log files:
242```
243match.log: Records successful matches.
244unmatch.log: Records unsuccessful matches.
245```

README_zh.md

1# 三方开源软件tex-hyphen
2
3## tex-hyphen简介
4tex-hyphen是一个用于TeX系统的断字模式库,它能够在多种语言中正确地将单词断行,以改善排版效果。
5
6来源:tex-hyphen
7URL:https://github.com/hyphenation/tex-hyphen
8版本:CTAN-2024.12.31
9License:多种组合
10
11## 引入背景陈述
12在多语言文档处理和排版中,正确的断字处理是至关重要的。tex-hyphen 提供了一套通用的断字模式,支持多种语言,为高质量的排版提供了基础保障。在OpenHarmony中,引入tex-hyphen可以显著提升多语言文档的排版质量。
13
14## 语种归类
15tex目录下包含了多个来自TeX hyphenations patterns的连字符规则,不同语种使用的开源许可证各不相同,整理归类:
16* MIT License
17* GPL,GPL 2
18* LGPL 1,LGPL 2.1
19* LPPL 1,LPPL 1.2,LPPL 1.3
20* MPL 1.1
21* BSD 3
22
23OHOS中使用以下语种资源,以下语种均使用友好型开源协议:
24* be - 白俄罗斯语(Belarusian)
25* cs - 捷克语(Czech)
26* cy - 威尔士语(Welsh)
27* da - 丹麦语(Danish)
28* de-1901 - 德语(German,1901orthography)
29* de-ch-1901 - 瑞士德语(SwissGerman,1901orthography)
30* el-monoton - 现代希腊语(ModernGreek,monotonic)
31* el-polyton - 现代希腊语(ModernGreek,polytonic)
32* en-gb - 英式英语(BritishEnglish)
33* en-us - 美式英语(AmericanEnglish)
34* es - 西班牙语(Spanish)
35* et - 爱沙尼亚语(Estonian)
36* fr - 法语(French)
37* ga - 爱尔兰语(Irish)
38* gl - 加利西亚语(Galician)
39* hr - 克罗地亚语(Croatian)
40* hu - 匈牙利语(Hungarian)
41* id - 印度尼西亚语(Indonesian)
42* is - 冰岛语(Icelandic)
43* it - 意大利语(Italian)
44* ka - 格鲁吉亚语(Georgian)
45* lt - 立陶宛语(Lithuanian)
46* lv - 拉脱维亚语(Latvian)
47* mk - 马其顿语(Macedonian)
48* mn-cyrl - 蒙古语(Mongolian,Cyrillicscript)
49* nl - 荷兰语(Dutch)
50* pt - 葡萄牙语(Portuguese)
51* ru - 俄语(Russian)
52* sh-cyrl - 塞尔维亚-克罗地亚语(Serbo-Croatian,Cyrillicscript)
53* sh-latn - 塞尔维亚-克罗地亚语(Serbo-Croatian,Latinscript)
54* sk - 斯洛伐克语(Slovak)
55* sl - 斯洛文尼亚语(Slovenian)
56* sr-cyrl - 塞尔维亚语(Serbian,Cyrillicscript)
57* sv - 瑞典语(Swedish)
58* th - 泰语(Thai)
59* tk - 土库曼语(Turkmen)
60* tr - 土耳其语(Turkish)
61* uk - 乌克兰语(Ukrainian)
62* zh-latn-pinyin - 汉语拼音(Chinese,Pinyin)
63
64## 目录结构
65
66```
67third_party_tex-hyphen
68├── collaboration
69│   ├── original
70│   ├── repository
71│   └── source
72├── data/language-codes
73├── docs
74│   └── languages
75├── encoding
76│   └── data
77├── hyph-utf8
78│   ├── doc
79│   ├── source
80│   └── tex
81├── misc
82├── ohos
83│   ├── src
84│   └── hpb-binary
85├── old
86├── source
87├── tests
88├── TL
89├── tools
90└── webpage
91
92collaboration/       tex-hyphen官网依赖的js脚本、xml配置文件
93ohos/                OpenHarmony编译文件和hpb二进制文件
94data/                语种库
95docs/                项目的文档资料
96encoding/            包含编码相关的文件,用于处理不同字符集的编码问题。
97hyph-utf8/           TeX 的断字模式包,提供了以 UTF-8 编码的断字模式
98misc/                en-gb语种断词文件案例
99old/                 包含一些旧的断词模式文件,这些文件可能已经被更新或替换。
100source/              包含源代码文件,用于生成和处理断词模式。
101TL/                  tlpsrc资源文件,tlpsrc文件是TeX Live系统中的一个包源文件,用于描述TeX Live包的元数据
102tools/               包含一些工具脚本,用于辅助处理断词模式文件。
103webpage/             tex-hyphen官网主页,提供了关于 hyph-utf8 包的详细信息和资源
104```
105
106## 为 OpenHarmony 带来的价值
107
108**1.提高排版质量:** 通过引入 tex-hyphen,OpenHarmony 可以实现更为精准的断字处理,提高文档的可读性和美观度。
109**2.提升小屏设备体验:** 在小屏设备中使用断词模式,能够在相同区域内显示更多内容,提升阅读体验。
110
111## OpenHarmony中如何使用tex-hyphen
112
113### 1、编译hpb二进制
114#### 编译步骤
115打开终端(或命令提示符),导航到包含 [hyphen_pattern_processor.cpp](ohos%2Fsrc%2Fhyphen-build%2Fhyphen_pattern_processor.cpp) 文件的目录,并运行以下命令来编译代码:
116
117```
118cd ohos/src/hyphen-build/
119g++ -g -Wall hyphen_pattern_processor.cpp -o transform
120```
121上述命令说明:
122- g++: 调用 GCC 编译器。
123- -g: 添加调试信息。
124- -Wall: 启用所有警告。
125- hyphen_pattern_processor.cpp: 源代码文件。
126- -o transform: 指定输出的可执行文件名为 transform。
127
128#### 运行步骤
129编译完成后,可以使用以下命令来运行生成的可执行文件,并处理指定的 .tex 文件:
130```
131./transform hyph-en-us.tex ./out/
132```
133上述命令说明:
134- ./transform: 运行生成的 transform 可执行文件。
135- hyph-en-us.tex: 输入文件(待处理的 .tex 文件)。
136- ./out/: 输出目录(处理后的文件将存储在此目录中)。
137
138运行成功后,处理后的.hpb二进制文件将存储在 ./out/ 目录中。
139
140#### 批量编译
141- 依赖:
142```
143jq:json文件解析工具
144```
145
146- 通过json配置文件[build-tex.json](ohos%2Fbuild%2Fbuild-tex.json),配置需要编译的文件。
147```
148[
149    {
150        "filename": "example1.tex"
151    },
152    {
153        "filename": "example2.tex"
154    }
155]
156```
157**filename** :指定需要编译的tex文件名,文件须在 [tex](hyph-utf8%2Ftex%2Fgeneric%2Fhyph-utf8%2Fpatterns%2Ftex) 目录下
158
159build-tex.json文件中定义了全量支持语种,脚本会默认全量编译。开发者可通过修改build-tex.json来控制新增或者删除语种。
160例如:
161需要移除example2语种,修改结果如下:
162```
163[
164    {
165        "filename": "example1.tex"
166    }
167]
168```
169需要新增example3语种,修改结果如下:
170```
171[
172    {
173        "filename": "example1.tex"
174    },
175    {
176        "filename": "example2.tex"
177    },
178    {
179        "filename": "example3.tex"
180    }
181]
182```
183
184- 打开终端(或命令提示符),导航到包含 [build.sh](ohos%2Fbuild%2Fbuild.sh) 文件的目录,并运行以下命令来编译代码
185```
186chmod +x build.sh
187./build.sh
188```
189编译成功后,编译产物将会放置在./out_hpb目录下
190
191### 2、通过hpb解析单词断词位置
192#### 编译步骤
193打开终端(或命令提示符),导航到包含 [hyphen_pattern_reader.cpp](ohos%2Fsrc%2Fhyphen-build%2Fhyphen_pattern_reader.cpp) 文件的目录,并运行以下命令来编译代码:
194
195```
196cd ohos/src/hyphen-build/
197g++ -g -Wall hyphen_pattern_reader.cpp -o reader
198```
199上述命令说明:
200- g++: 调用 GCC 编译器。
201- -g: 添加调试信息。
202- -Wall: 启用所有警告。
203- hyphen_pattern_reader.cpp: 源代码文件。
204- -o reader: 指定输出的可执行文件名为 reader。
205
206#### 运行步骤
207编译完成后,可以使用以下命令来解析对应语种的单词:
208```
209./reader hyph-en-us.hpb helloworld
210```
211上述命令说明:
212- ./reader: 运行生成的 reader 可执行文件。
213- hyph-en-us.hpb: 输入文件(待解析的二进制文件)。
214- helloworld: 待解析的单词。
215
216运行成功后,日志中将会输出本次解析的单词断词信息。
217
218### 3、自动化验证
219通过[generate_report.py](ohos%2Ftest%2Fgenerate_report.py) Python脚本读取[report_config.json](ohos%2Ftest%2Freport_config.json)配置文件,可实现批量校验生成的二进制文件是否有效
220#### 准备
221- Python 3.x
222- transform和reader可执行文件,并将可执行文件放在脚本同一级目录
223- report_config.json配置文件
224#### 使用方法
2251. 准备配置文件
226首先,创建一个JSON格式的配置文件report_config.json,包含以下内容:
227```
228   {
229       "file_path": "path/to/tex/files",
230       "tex_files": [
231           {
232           "filename": "example.tex",
233           "words": ["word1", "word2", "word3", "word4", "word5", "word6", "word7", "word8", "word9", "word10"]
234           },
235       ...
236       ]
237   }
238```
239- file_path:TeX文件所在的目录路径。
240- tex_files:包含多个TeX文件及其对应的单词列表。
2412. 运行脚本
242在终端中运行以下命令:
243```
244python generate_report.py report_config.json
245```
2463. 日志文件
247脚本会在 report 目录下生成一个带有时间戳的子目录,包含以下日志文件:
248```
249match.log:记录匹配成功的结果。
250unmatch.log:记录匹配失败的结果。
251```