Skip to content

Commit e956375

Browse files
committed
v2.10.0
1 parent 874b5f9 commit e956375

12 files changed

Lines changed: 20 additions & 14 deletions

File tree

arrangement/recover_mulitiple_downloaded_bad_file.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ do {
108108

109109
node_fs.writeSync(target_fd, from_buffer_list[0], 0, max_buffer_index);
110110
process_to += max_buffer_index;
111-
process.stdout.write(`${process_to / max_size * 100 | 0}% ${CeL.show_KiB(process_to)} / ${CeL.show_KiB(max_size)} ...\r`);
111+
process.stdout.write(`${process_to / max_size * 100 | 0}% ${CeL.to_KiB(process_to)} / ${CeL.to_KiB(max_size)} ...\r`);
112112
} while (not_ended);
113113

114114
node_fs.closeSync(target_fd);

arrangement/renamer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ cache_file = base_directory + 'data.json',
6767
//
6868
cache_data = CeL.get_JSON(cache_file),
6969
// file / folder name
70-
PATTERN_latin_fso_name = /^([\u0020-\u007Fūûōôō]+?)(\.[a-z\d]{2,9})?$/i,
70+
PATTERN_latin_fso_name = /^([\u0020-\u007Fūûōôō@]+?)(\.[a-z\d]{2,9})?$/i,
7171
// [[en:Numerals_in_Unicode#Roman_numerals]]
72-
PATTERN_full_latin_or_sign = /^[\u0020-\u00FFūûōôō----]+$/;
72+
PATTERN_full_latin_or_sign = /^[\u0020-\u00FFūûōôō@----]+$/;
7373

7474
if (target_directory) {
7575
if (!/[\\\/]$/.test(target_directory)) {

gui_electron/gui_electron_functions.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,15 +255,15 @@ var force_convert = [ 'en' ];
255255
// @see setup_language_menu()
256256
// for i18n: define gettext() user domain resource location.
257257
// gettext() will auto load (CeL.env.domain_location + language + '.js').
258-
// e.g., resource/cmn-Hant-TW.js, resource/ja-JP.js
258+
// e.g., resources/cmn-Hant-TW.js, resources/ja-JP.js
259259
CeL.env.domain_location = function() {
260260
is_installation_package = CeL.is_installation_package();
261261

262262
return CeL.env.domain_location
263263
// CeL.env.script_base_path: 形如 ...'/work_crawler/gui_electron/'
264264
= CeL.env.script_base_path.replace(/gui_electron[\\\/]$/, '')
265-
// resource/
266-
+ CeL.env.resource_directory_name + '/';
265+
// resources/
266+
+ CeL.env.resources_directory_name + '/';
267267
// 在安裝包中, `process.cwd()` 可能為
268268
// C:\Users\user\AppData\Local\Programs\work_crawler
269269
// 因此 CeL.env.domain_location 必須提供完整路徑。

novel.cmn-Hans-CN/qidian.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,12 @@ function fix_HTML_error(html) {
258258
//
259259
// 然而每次展示頁面會加載不同字型,因此解析特定字型檔無效,
260260
// 恐怕需要解析字型數據本身,從 glyphs 數據判斷對應哪個字,再作 mapping。
261+
// 或可參考 https://github.com/foliojs/fontkit
262+
// https://github.com/trevordixon/ttfinfo
263+
// https://github.com/fontello/svg2ttf
264+
// https://github.com/aui/font-spider
265+
// https://github.com/kekee000/fonteditor-core/tree/master/src/ttf
266+
// https://github.com/fontello/ttf2woff/blob/master/index.js
261267
html = html.replace(/&#(58\d{3});/g, function(entity, code) {
262268
if (+code in char_mapper)
263269
return char_mapper[+code];

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name" : "work_crawler",
33
"title" : "CeJS online novels and comics downloader",
4-
"version" : "v2.9.0",
4+
"version" : "v2.10.0",
55
"description" : "A tool using CeJS library to download online novels / comics.",
66
"keywords" : [ "comic-downloader", "novel-downloader", "cejs",
77
"downloader", "download-comic", "epub", "ebook", "comics",
@@ -42,7 +42,7 @@
4242
"owner" : "kanasimi",
4343
"repo" : "work_crawler"
4444
} ],
45-
"files" : [ "package.json", "node_modules/*", "resource/*",
45+
"files" : [ "package.json", "node_modules/*", "resources/*",
4646
"_CeL.loader.nodejs.js", "gui_electron/**/*",
4747
"work_crawler_loader.js",
4848
"work_crawler.default_configuration.js", "comic.*/**/*",
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)