Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

convert_to_language not working as expect #627

Open
tony1223 opened this issue Apr 6, 2024 · 2 comments
Open

convert_to_language not working as expect #627

tony1223 opened this issue Apr 6, 2024 · 2 comments

Comments

@tony1223
Copy link

tony1223 commented Apr 6, 2024

  • Version: commit 21bf104
  • Interface: command line
  • Arguments:
    node .\novel.cmn-Hans-CN\piaotian.js 14341

Expected result:
Translated to zh-TW.

Actual result:
zh-CN

第一篇 风起云涌 第一章 许景明
  蓝星2081年7月2日13:50,夏国最繁华城市‘滨海市’,此时乌云密布,雷声轰隆,眼看着一场暴雨要来。

  “夏天的雷阵雨,说来就来。”星空格斗馆顶层的一个房间,一名年轻人正透过落地窗看着外面的乌云闪电,“噼里啪啦”开始有雨滴拍打在窗户玻璃上。

  年轻人走到房间中央,双手撑地,很缓慢也很稳地进行倒立。先是双手直倒立,后收起了一只手,变成了右手的单手倒立。

@tony1223
Copy link
Author

tony1223 commented Apr 6, 2024

(The os is windows if that matters.)

I did more research.

if i used
node .\novel.cmn-Hans-CN\piaotian.js 14341 convert_to_language=TW

There's a error as following:

C:\workspaces\novels\work_crawler\CeJS-master\application\net\work_crawler.js:374
                        && --this.converted_text_cache[options.text]
                                                      ^

TypeError: Cannot read properties of undefined (reading 'requiring_thread_count')
    at Work_crawler.clear_converted_text_cache (C:\workspaces\novels\work_crawler\CeJS-master\application\net\work_crawler.js:374:34)
    at Work_crawler.add_ebook_chapter_actual_work (C:\workspaces\novels\work_crawler\CeJS-master\application\net\work_crawler\ebook.js:1227:9)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

If I add one line for null protection at work_cralwer.js:373

&& this.converted_text_cache[options.text]

It seems working on command line now.

@kanasimi
Copy link
Owner

kanasimi commented Apr 10, 2024

Are you using the latest git version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants