Calibre 插件 Ebook Translator 发布一周年新增多项实用功能

延伸阅读

给这篇文章写一条留言

提示:带 * 标记的是必填项。您填写的邮箱地址将会被保密。首次留言将会在通过人工审核后显示。如果是提出问题,请务必提供尽可能多信息,这有助于他人更好地理解你所提出的问题。

小伙伴们写下了 14 条留言

  1. 我安装了插件,使用正常,但是插件的界面是英文的,我反复卸载重新安装,但都无济于事,请教怎样将插件的使用页面设置成中文操作页面,谢谢帮助。

  2. 用calibre的翻译插件试着翻译了《shogun》,使用的是windows edge的翻译(没有各种大牛翻译注册码。。。),完了之后粗看上去看不错

  3. 发现gemini pro无法翻译,已经有api。报错:

    Traceback (most recent call last):
      File "calibre_plugins.ebook_translator.components.engine", line 66, in translate_text
        translation = self.translator.translate(text)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "calibre_plugins.ebook_translator.engines.google", line 321, in translate
        return self.get_result(
               ^^^^^^^^^^^^^^^^
      File "calibre_plugins.ebook_translator.engines.base", line 217, in get_result
        raise Exception(
    Exception: 无法解析返回的响应。原始数据:
    
    Traceback (most recent call last):
      File "calibre_plugins.ebook_translator.engines.base", line 204, in get_result
        br.open(request)
      File "mechanize/_mechanize.py", line 257, in open
      File "mechanize/_mechanize.py", line 313, in _mech_open
    mechanize._response.get_seek_wrapper_class..httperror_seek_wrapper: HTTP Error 429: Too Many Requests
    
    [{
      "error": {
        "code": 429,
        "message": "Quota exceeded for quota metric 'Generate Content API requests per minute' and limit 'GenerateContent request limit per minute for a region' of service 'generativelanguage.googleapis.com' for consumer 'project_number:353477670576'.",
        "status": "RESOURCE_EXHAUSTED",
        "details": [
          {
            "@type": "type.googleapis.com/google.rpc.ErrorInfo",
            "reason": "RATE_LIMIT_EXCEEDED",
            "domain": "googleapis.com",
            "metadata": {
              "quota_metric": "generativelanguage.googleapis.com/generate_content_requests",
              "quota_limit_value": "0",
              "quota_limit": "GenerateContentRequestsPerMinutePerProjectPerRegion",
              "consumer": "projects/353477670576",
              "service": "generativelanguage.googleapis.com",
              "quota_location": "us-west4"
            }
          },
          {
            "@type": "type.googleapis.com/google.rpc.Help",
            "links": [
              {
                "description": "Request a higher quota limit.",
                "url": "https://cloud.google.com/docs/quota#requesting_higher_quota"
              }
            ]
          }
        ]
      }
    }
    ]
    • Quota exceeded for quota metric ‘Generate Content API requests per minute’ and limit ‘GenerateContent request limit per minute for a region’ of service ‘generativelanguage.googleapis.com’ for consumer ‘project_number:353477670576’.

      你设置的请求速率超过了你项目所允许的请求限制,建议减少并发,并提高请求间隔。

      • 你好,我想提一个建议,就是看不可以在对照格式上提供一个切换译文与原文位置的选项,就是把译文提到原文前面来,万分感谢