diff --git "a/docs/translate_english.json" "b/docs/translate_english.json" --- "a/docs/translate_english.json" +++ "b/docs/translate_english.json" @@ -1,468 +1,4 @@ { - "无": "No", - "英语学术润色": "English academic proofreading", - "中文学术润色": "Chinese academic proofreading", - "查找语法错误": "Finding grammar errors", - "中译英": "Chinese to English translation", - "学术中英互译": "Academic Chinese-English translation", - "英译中": "English to Chinese translation", - "找图片": "Finding images", - "解释代码": "Explaining code", - "作为一名中文学术论文写作改进助理,你的任务是改进所提供文本的拼写、语法、清晰、简洁和整体可读性,": "As a Chinese academic paper writing improvement assistant, your task is to improve the spelling, grammar, clarity, conciseness, and overall readability of the provided text, while breaking down long sentences, reducing repetition, and providing improvement suggestions. Please only provide the corrected version of the text, avoiding explanations. Please edit the following text:", - "同时分解长句,减少重复,并提供改进建议。请只提供文本的更正版本,避免包括解释。请编辑以下文本": "Translate to authentic Chinese:", - "翻译成地道的中文:": "I need you to find a web image. Use the Unsplash API (https://source.unsplash.com/960x640/?) to get the image URL,", - "我需要你找一张网络图片。使用Unsplash API(https://source.unsplash.com/960x640/?<英语关键词>)获取图片URL,": "Then please wrap it in Markdown format, without backslashes or code blocks. Now, please send me the image according to the following description:", - "然后请使用Markdown格式封装,并且不要有反斜线,不要用代码块。现在,请按以下描述给我发送图片:": "Please explain the following code:", - "请解释以下代码:": "Parse the entire Python project", - "解析整个Python项目": "LoadConversationHistoryArchive (upload archive or enter path first)", - "LoadConversationHistoryArchive(先上传存档或输入路径)": "DeleteAllLocalConversationHistoryRecords (please use with caution)", - "DeleteAllLocalConversationHistoryRecords(请谨慎操作)": "[Test function] Parse Jupyter Notebook files", - "[测试功能] 解析Jupyter Notebook文件": "Summarize Word documents in batches", - "批量总结Word文档": "Parse the header files of the entire C++ project", - "解析整个C++项目头文件": "Parse the entire C++ project (.cpp/.hpp/.c/.h)", - "解析整个C++项目(.cpp/.hpp/.c/.h)": "Parse the entire Go project", - "解析整个Go项目": "Parse the entire Java project", - "解析整个Java项目": "Parse the entire front-end project (js, ts, css, etc.)", - "解析整个前端项目(js,ts,css等)": "Parse the entire Lua project", - "解析整个CSharp项目": "Analyze the entire CSharp project", - "读Tex论文写摘要": "Read Tex papers and write abstracts", - "Markdown/Readme英译中": "Translate Markdown/Readme from English to Chinese", - "保存当前的对话": "Save the current conversation", - "[多线程Demo] 解析此项目本身(源码自译解)": "[Multi-threaded Demo] Analyze this project itself (source code self-translation)", - "[老旧的Demo] 把本项目源代码切换成全英文": "[Old Demo] Switch the source code of this project to full English", - "[插件demo] 历史上的今天": "[Plugin Demo] Today in history", - "若输入0,则不解析notebook中的Markdown块": "If 0 is entered, do not parse the Markdown block in the notebook", - "BatchTranslatePDFDocuments(多线程)": "BatchTranslatePDFDocuments (multi-threaded)", - "询问多个GPT模型": "Ask multiple GPT models", - "[测试功能] BatchSummarizePDFDocuments": "[Test Function] BatchSummarizePDFDocuments", - "[测试功能] BatchSummarizePDFDocumentspdfminer": "[Test Function] BatchSummarizePDFDocumentspdfminer", - "谷歌学术检索助手(输入谷歌学术搜索页url)": "Google Scholar search assistant (enter Google Scholar search page URL)", - "理解PDF文档内容 (模仿ChatPDF)": "Understand the content of PDF documents (imitate ChatPDF)", - "[测试功能] 英文Latex项目全文润色(输入路径或上传压缩包)": "[Test Function] English Latex project full text polishing (enter path or upload compressed package)", - "[测试功能] 中文Latex项目全文润色(输入路径或上传压缩包)": "[Test Function] Chinese Latex project full text polishing (enter path or upload compressed package)", - "Latex项目全文中译英(输入路径或上传压缩包)": "Latex project full text translation from Chinese to English (enter path or upload compressed package)", - "Latex项目全文英译中(输入路径或上传压缩包)": "Latex project full text translation from English to Chinese (enter path or upload compressed package)", - "批量TranslateChineseToEnglishForMarkdown(输入路径或上传压缩包)": "BatchTranslateChineseToEnglishForMarkdown (enter path or upload compressed package)", - "一键DownloadArxivPapersAndTranslateAbstracts(先在input输入编号,如1812.10695)": "One-click DownloadArxivPapersAndTranslateAbstracts (enter number in input, such as 1812.10695)", - "ConnectToInternetAndAnswerQuestions(先输入问题,再点击按钮,需要访问谷歌)": "ConnectToInternetAndAnswerQuestions (enter question first, then click button, requires access to Google)", - "解析项目源代码(手动指定和筛选源代码文件类型)": "Analyze project source code (manually specify and filter source code file types)", - "输入时用逗号隔开, *代表通配符, 加了^代表不匹配; 不输入代表全部匹配。例如: \"*.c, ^*.cpp, config.toml, ^*.toml\"": "Use commas to separate when entering, * represents wildcard, adding ^ means not matching; not entering means all matches. For example: \"*.c, ^*.cpp, config.toml, ^*.toml\"", - "询问多个GPT模型(手动指定询问哪些模型)": "Ask multiple GPT models (manually specify which models to ask)", - "支持任意数量的llm接口,用&符号分隔。例如chatglm&gpt-3.5-turbo&api2d-gpt-4": "Support any number of llm interfaces, separated by & symbol. For example: chatglm&gpt-3.5-turbo&api2d-gpt-4", - "ImageGeneration(先切换模型到openai或api2d)": "ImageGeneration (switch the model to openai or api2d first)", - "在这里输入分辨率, 如256x256(默认)": "Enter the resolution here, such as 256x256 (default)", - "

ChatGPT 学术优化": "

ChatGPT Academic Optimization", - "代码开源和更新[地址🚀](https://github.com/binary-husky/chatgpt_academic),感谢热情的[开发者们❤️](https://github.com/binary-husky/chatgpt_academic/graphs/contributors)": "Code open source and updated [address🚀](https://github.com/binary-husky/chatgpt_academic), thanks to enthusiastic [developers❤️](https://github.com/binary-husky/chatgpt_academic/graphs/contributors)", - "所有问询记录将自动保存在本地目录./gpt_log/chat_secrets.log, 请注意自我隐私保护哦!": "All inquiry records will be automatically saved in the local directory ./gpt_log/chat_secrets.log, please pay attention to self-privacy protection!", - "ChatGPT 学术优化": "ChatGPT Academic Optimization", - "当前模型:": "Current model:", - "输入区": "Input area", - "提交": "Submit", - "重置": "Reset", - "停止": "Stop", - "清除": "Clear", - "Tip: 按Enter提交, 按Shift+Enter换行。当前模型:": "Tip: Press Enter to submit, press Shift+Enter to line break. Current model:", - "基础功能区": "Basic function area", - "函数插件区": "Function plugin area", - "注意:以下“红颜色”标识的函数插件需从输入区读取路径作为参数": "Note: The function plugins marked in \"red\" need to read the path from the input area as a parameter", - "更多函数插件": "More function plugins", - "打开插件列表": "Open plugin list", - "高级参数输入区": "Advanced parameter input area", - "这里是特殊函数插件的高级参数输入区": "This is the advanced parameter input area for special function plugins", - "请先从插件列表中选择": "Please select from the plugin list first", - "点击展开“文件上传区”。上传本地文件可供红色函数插件调用。": "Click to expand the \"file upload area\". Upload local files for red function plugins to call.", - "任何文件, 但推荐上传压缩文件(zip, tar)": "Any file, but it is recommended to upload compressed files (zip, tar)", - "更换模型 & SysPrompt & 交互界面布局": "Change model & SysPrompt & interaction interface layout", - "底部输入区": "Bottom input area", - "输入清除键": "Press clear button", - "插件参数区": "Plugin parameter area", - "显示/隐藏功能区": "Show/hide function area", - "更换LLM模型/请求源": "Change LLM model/request source", - "备选输入区": "Alternative input area", - "输入区2": "Input area 2", - "已重置": "Reset", - "插件[": "Advanced parameter explanation for plugin [", - "]的高级参数说明:": "]:", - "没有提供高级参数功能说明": "No advanced parameter functionality provided", - "]不需要高级参数。": "] does not require advanced parameters.", - "如果浏览器没有自动打开,请复制并转到以下URL:": "If the browser does not open automatically, please copy and go to the following URL:", - "(亮色主题): http://localhost:": "(light theme): http://localhost:", - "(暗色主题): http://localhost:": "(dark theme): http://localhost:", - "[一-鿿]+": "[Chinese characters]", - "gradio版本较旧, 不能自定义字体和颜色": "Gradio version is outdated and cannot customize fonts and colors", - "/* 设置表格的外边距为1em,内部单元格之间边框合并,空单元格显示. */\n.markdown-body table {\n margin: 1em 0;\n border-collapse: collapse;\n empty-cells: show;\n}\n\n/* 设置表格单元格的内边距为5px,边框粗细为1.2px,颜色为--border-color-primary. */\n.markdown-body th, .markdown-body td {\n border: 1.2px solid var(--border-color-primary);\n padding: 5px;\n}\n\n/* 设置表头背景颜色为rgba(175,184,193,0.2),透明度为0.2. */\n.markdown-body thead {\n background-color: rgba(175,184,193,0.2);\n}\n\n/* 设置表头单元格的内边距为0.5em和0.2em. */\n.markdown-body thead th {\n padding: .5em .2em;\n}\n\n/* 去掉列表前缀的默认间距,使其与文本线对齐. */\n.markdown-body ol, .markdown-body ul {\n padding-inline-start: 2em !important;\n}\n\n/* 设定聊天气泡的样式,包括圆角、最大宽度和阴影等. */\n[class *= \"message\"] {\n border-radius: var(--radius-xl) !important;\n /* padding: var(--spacing-xl) !important; */\n /* font-size: var(--text-md) !important; */\n /* line-height: var(--line-md) !important; */\n /* min-height: calc(var(--text-md)*var(--line-md) + 2*var(--spacing-xl)); */\n /* min-width: calc(var(--text-md)*var(--line-md) + 2*var(--spacing-xl)); */\n}\n[data-testid = \"bot\"] {\n max-width: 95%;\n /* width: auto !important; */\n border-bottom-left-radius: 0 !important;\n}\n[data-testid = \"user\"] {\n max-width: 100%;\n /* width: auto !important; */\n border-bottom-right-radius: 0 !important;\n}\n\n/* 行内代码的背景设为淡灰色,设定圆角和间距. */\n.markdown-body code {\n display: inline;\n white-space: break-spaces;\n border-radius: 6px;\n margin: 0 2px 0 2px;\n padding: .2em .4em .1em .4em;\n background-color: rgba(13, 17, 23, 0.95);\n color: #c9d1d9;\n}\n\n.dark .markdown-body code {\n display: inline;\n white-space: break-spaces;\n border-radius: 6px;\n margin: 0 2px 0 2px;\n padding: .2em .4em .1em .4em;\n background-color: rgba(175,184,193,0.2);\n}\n\n/* 设定代码块的样式,包括背景颜色、内、外边距、圆角。 */\n.markdown-body pre code {\n display: block;\n overflow: auto;\n white-space: pre;\n background-color: rgba(13, 17, 23, 0.95);\n border-radius: 10px;\n padding: 1em;\n margin: 1em 2em 1em 0.5em;\n}\n\n.dark .markdown-body pre code {\n display: block;\n overflow: auto;\n white-space: pre;\n background-color: rgba(175,184,193,0.2);\n border-radius: 10px;\n padding: 1em;\n margin: 1em 2em 1em 0.5em;\n}": "/* Set the table margin to 1em, merge the borders between internal cells, and display empty cells. */\n.markdown-body table {\n margin: 1em 0;\n border-collapse: collapse;\n empty-cells: show;\n}\n\n/* Set the padding of table cells to 5px, the border thickness to 1.2px, and the color to --border-color-primary. */\n.markdown-body th, .markdown-body td {\n border: 1.2px solid var(--border-color-primary);\n padding: 5px;\n}\n\n/* Set the background color of the table header to rgba(175,184,193,0.2), with transparency of 0.2. */\n.markdown-body thead {\n background-color: rgba(175,184,193,0.2);\n}\n\n/* Set the padding of the table header cells to 0.5em and 0.2em. */\n.markdown-body thead th {\n padding: .5em .2em;\n}\n\n/* Remove the default spacing of the list prefix to align with the text line. */\n.markdown-body ol, .markdown-body ul {\n padding-inline-start: 2em !important;\n}\n\n/* Set the style of the chat bubble, including rounded corners, maximum width, and shadows. */\n[class *= \"message\"] {\n border-radius: var(--radius-xl) !important;\n /* padding: var(--spacing-xl) !important; */\n /* font-size: var(--text-md) !important; */\n /* line-height: var(--line-md) !important; */\n /* min-height: calc(var(--text-md)*var(--line-md) + 2*var(--spacing-xl)); */\n /* min-width: calc(var(--text-md)*var(--line-md) + 2*var(--spacing-xl)); */\n}\n[data-testid = \"bot\"] {\n max-width: 95%;\n /* width: auto !important; */\n border-bottom-left-radius: 0 !important;\n}\n[data-testid = \"user\"] {\n max-width: 100%;\n /* width: auto !important; */\n border-bottom-right-radius: 0 !important;\n}\n\n/* Set the background of inline code to light gray, and set the rounded corners and spacing. */\n.markdown-body code {\n display: inline;\n white-space: break-spaces;\n border-radius: 6px;\n margin: 0 2px 0 2px;\n padding: .2em .4em .1em .4em;\n background-color: rgba(13, 17, 23, 0.95);\n color: #c9d1d9;\n}\n\n.dark .markdown-body code {\n display: inline;\n white-space: break-spaces;\n border-radius: 6px;\n margin: 0 2px 0 2px;\n padding: .2em .4em .1em .4em;\n background-color: rgba(175,184,193,0.2);\n}\n\n/* Set the style of the code block, including background color, padding, margin, and rounded corners. */\n.markdown-body pre code {\n display: block;\n overflow: auto;\n white-space: pre;\n background-color: rgba(13, 17, 23, 0.95);\n border-radius: 10px;\n padding: 1em;\n margin: 1em 2em 1em 0.5em;\n}\n\n.dark .markdown-body pre code {\n display: block;\n overflow: auto;\n white-space: pre;\n background-color: rgba(175,184,193,0.2);\n border-radius: 10px;\n padding: 1em;\n margin: 1em 2em 1em 0.5em;\n}", - "========================================================================\n第一部分\n函数插件输入输出接驳区\n - ChatBotWithCookies: 带Cookies的Chatbot类,为实现更多强大的功能做基础\n - ArgsGeneralWrapper: 装饰器函数,用于重组输入参数,改变输入参数的顺序与结构\n - update_ui: 刷新界面用 yield from update_ui(chatbot, history)\n - CatchException: 将插件中出的所有问题显示在界面上\n - HotReload: 实现插件的热更新\n - trimmed_format_exc: 打印traceback,为了安全而隐藏绝对地址\n========================================================================": "========================================================================\nPart 1\nFunction plugin input/output interface\n - ChatBotWithCookies: Chatbot class with cookies, as the basis for implementing more powerful functions\n - ArgsGeneralWrapper: Decorator function used to restructure input parameters and change the order and structure of input parameters\n - update_ui: Refresh the interface using yield from update_ui(chatbot, history)\n - CatchException: Encapsulate all problems in the plugin into a generator and return them, and display them in the chat\n - HotReload: Implement hot update of plugins\n - trimmed_format_exc: Print traceback, hide absolute addresses for security\n========================================================================", - "装饰器函数,用于重组输入参数,改变输入参数的顺序与结构。": "Decorator function used to restructure input parameters and change the order and structure of input parameters.", - "正常": "Normal", - "刷新用户界面": "Refresh user interface", - "在传递chatbot的过程中不要将其丢弃。必要时,可用clear将其清空,然后用for+append循环重新赋值。": "Do not discard chatbot when passing it. If necessary, it can be cleared and then reassigned using for+append loop.", - "装饰器函数,捕捉函数f中的异常并封装到一个生成器中返回,并显示到聊天当中。": "Decorator function that catches exceptions in function f and encapsulates them in a generator to return, and displays them in the chat.", - "插件调度异常": "Plugin scheduling exception", - "异常原因": "Exception reason", - "实验性函数调用出错:": "Experimental function call error:", - "当前代理可用性:": "Current agent availability:", - "异常": "Exception", - "HotReload的装饰器函数,用于实现Python函数插件的热更新。\n 函数热更新是指在不停止程序运行的情况下,更新函数代码,从而达到实时更新功能。\n 在装饰器内部,使用wraps(f)来保留函数的元信息,并定义了一个名为decorated的内部函数。\n 内部函数通过使用importlib模块的reload函数和inspect模块的getmodule函数来重新加载并获取函数模块,\n 然后通过getattr函数获取函数名,并在新模块中重新加载函数。\n 最后,使用yield from语句返回重新加载过的函数,并在被装饰的函数上执行。\n 最终,装饰器函数返回内部函数。这个内部函数可以将函数的原始定义更新为最新版本,并执行函数的新版本。": "HotReload decorator function used to implement Python function plugin hot updates.\\n Function hot update refers to updating function code without stopping program execution, achieving real-time update function.\\n Inside the decorator, use wraps(f) to preserve the function's metadata and define an internal function named decorated.\\n The internal function reloads and retrieves the function module by using the reload function of the importlib module and the getmodule function of the inspect module,\\n then uses the getattr function to retrieve the function name and reloads the function in the new module.\\n Finally, use the yield from statement to return the reloaded function and execute it on the decorated function.\\n Finally, the decorator function returns the internal function. This internal function can update the original definition of the function to the latest version and execute the new version of the function.", - "========================================================================\n第二部分\n其他小工具:\n - write_results_to_file: 将结果写入markdown文件中\n - regular_txt_to_markdown: 将普通文本转换为Markdown格式的文本。\n - report_execption: 向chatbot中添加简单的意外错误信息\n - text_divide_paragraph: 将文本按照段落分隔符分割开,生成带有段落标签的HTML代码。\n - markdown_convertion: 用多种方式组合,将markdown转化为好看的html\n - format_io: 接管gradio默认的markdown处理方式\n - on_file_uploaded: 处理文件的上传(自动解压)\n - on_report_generated: 将生成的报告自动投射到文件上传区\n - clip_history: 当历史上下文过长时,自动截断\n - get_conf: 获取设置\n - select_api_key: 根据当前的模型类别,抽取可用的api-key\n========================================================================": "========================================================================\\nPart 2\\nOther small tools:\\n - write_results_to_file: Write results to markdown file\\n - regular_txt_to_markdown: Convert plain text to markdown format text.\\n - report_execption: Add simple unexpected error information to chatbot\\n - text_divide_paragraph: Divide text into paragraphs according to paragraph separators, and generate HTML code with paragraph tags.\\n - markdown_convertion: Combine in multiple ways to convert markdown to beautiful html\\n - format_io: Take over gradio's default markdown processing method\\n - on_file_uploaded: Handle file uploads (automatic decompression)\\n - on_report_generated: Automatically project the generated report to the file upload area\\n - clip_history: Automatically truncate when the history context is too long\\n - get_conf: Get settings\\n - select_api_key: Extract available api-key based on the current model category\\n========================================================================", - "* 此函数未来将被弃用": "* This function will be deprecated in the future", - "不详": "Unknown", - "将对话记录history以Markdown格式写入文件中。如果没有指定文件名,则使用当前时间生成文件名。": "Write the conversation record history to a file in Markdown format. If no file name is specified, a file name is generated based on the current time.", - "chatGPT分析报告": "chatGPT analysis report", - "# chatGPT 分析报告": "# chatGPT Analysis Report", - "以上材料已经被写入": "The above materials have been written", - "将普通文本转换为Markdown格式的文本。": "Convert plain text to markdown format text.", - "向chatbot中添加错误信息": "Add error information to chatbot", - "将文本按照段落分隔符分割开,生成带有段落标签的HTML代码。": "Divide text into paragraphs according to paragraph separators and generate HTML code with paragraph tags.", - "将Markdown格式的文本转换为HTML格式。如果包含数学公式,则先将公式转换为HTML格式。": "Convert Markdown format text to HTML format. If it contains mathematical formulas, convert the formulas to HTML format first.", - "解决一个mdx_math的bug(单$包裹begin命令时多余