File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
lib/service/convert_to_epub/txt Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 10
10
- Feat: Expand the range of custom font size
11
11
- Feat: Add volume key page turn switch
12
12
- Feat: Add custom Gemini api url
13
- -
13
+ - Fix: Android TTS slider value not updating
14
+ - Fix: Txt file chapter title detection(#107 )
14
15
- 新增:扩大自定义字体大小范围
15
16
- 新增:音量键翻页开关
16
17
- 新增:自定义 Gemini api url
17
18
- 修复:Android TTS 滑块数值不更新
19
+ - 修复:txt 文件章节标题检测(#107 )
18
20
19
21
## 1.2.6
20
22
- Fix: Fix ai stream error
Original file line number Diff line number Diff line change @@ -64,8 +64,9 @@ Future<File> convertFromTxt(File file) async {
64
64
AnxLog .info ('convert from txt. content: ${content .length }' );
65
65
66
66
final patternStr = RegExp (
67
- r'^(.* +| *)?([第] [一二三四五六七八九十零〇百千万两0123456789]+[章卷]|[卷] [一二三四五六七八九十零〇百千万两0123456789]+|[Cc]hap (?:ter)\.?|[Vv]ol (?:ume)?\.?|[Bb]ook|[Bb]k)( +.*)?$' ,
67
+ r'^(?:(.+ +)|())(第 [一二三四五六七八九十零〇百千万两0123456789]+[章卷]|卷 [一二三四五六七八九十零〇百千万两0123456789]+|chap (?:ter)\.?|vol (?:ume)?\.?|book|bk)(?:(?: +.+)?|(?:\S. *)?) $' ,
68
68
multiLine: true ,
69
+ caseSensitive: false ,
69
70
);
70
71
71
72
final matches = patternStr.allMatches (content).toList ();
You can’t perform that action at this time.
0 commit comments