From 89eb37f849d7d15a6b1a5511cb30e225e8c41c4e Mon Sep 17 00:00:00 2001 From: Owen Young Date: Fri, 31 May 2024 05:46:22 +0800 Subject: [PATCH] update prompts --- plugins/ecommerce.yml | 3 ++ plugins/fiction.yml | 14 ++++++++- plugins/financial.yml | 11 ++++++- plugins/game.yml | 2 ++ plugins/legal.yml | 12 +++++++- plugins/medical.yml | 7 ++++- plugins/music.yml | 16 ++++++++-- plugins/paper.yml | 3 ++ plugins/reddit.yml | 72 +++++++++++++++++++++++++++++++++++++++++++ plugins/tech.yml | 1 + plugins/twitter.yml | 5 ++- plugins/web3.yml | 22 ++++++++++++- 12 files changed, 160 insertions(+), 8 deletions(-) create mode 100644 plugins/reddit.yml diff --git a/plugins/ecommerce.yml b/plugins/ecommerce.yml index 7d7f6c7..35de4e1 100644 --- a/plugins/ecommerce.yml +++ b/plugins/ecommerce.yml @@ -35,6 +35,9 @@ matches: - https://www.zalora.com/* - https://www.alibaba.com/* - https://www.1688.com/* + - https://member.1688.com/* + - https://www.taobao.com/* + - https://onetalk.alibaba.com/* env: imt_source_field: text imt_trans_field: text diff --git a/plugins/fiction.yml b/plugins/fiction.yml index 4d1cc55..c0ed687 100644 --- a/plugins/fiction.yml +++ b/plugins/fiction.yml @@ -1,5 +1,5 @@ id: fiction -version: 1.0.1 +version: 1.0.2 extensionVersion: 1.4.10 name: Fiction Translation Expert description: Designed to enrich the narrative and emotional depth of fiction translations, ensuring each word captures the original's essence. @@ -19,6 +19,18 @@ i18n: description: 專注於提升小說類翻譯的敘事和情感深度,確保每個詞都能捕捉到原文的精髓。 details: |- 該專家在翻譯小說文學方面表現卓越,提供小說、短篇故事等敘事形式的細膩且忠實的呈現。使用它可以將小說翻譯成目標語言,增強情感共鳴和文化相關性。 +matches: + - https://www.wattpad.com/* + - https://www.fanfiction.net/* + - https://www.royalroad.com/* + - https://www.webnovel.com/* + - https://babelnovel.com/* + - https://www.17k.com/* + - https://www.qidian.com/* + - https://www.wuxiaworld.com/* + - https://www.volarenovels.com/* + - https://www.novelupdates.com/* + env: imt_source_field: text imt_trans_field: text diff --git a/plugins/financial.yml b/plugins/financial.yml index aa02835..4168ad8 100644 --- a/plugins/financial.yml +++ b/plugins/financial.yml @@ -1,5 +1,5 @@ id: financial -version: 1.0.1 +version: 1.0.2 extensionVersion: 1.4.12 name: Financial Expert description: With carefully designed Prompts, the translation of financial articles becomes more accurate and professional. @@ -19,6 +19,15 @@ i18n: 該專家專為專業金融領域翻譯而設計,你可以使用它將金融類文章準確翻譯為指定的目標語言。 author: Official homepage: https://immersivetranslate.com/ +matches: + - https://www.bloomberg.com/* + - https://www.wsj.com/* + - https://www.ft.com/* + - https://www.cnbc.com/* + - https://finance.yahoo.com/* + - https://www.investopedia.com/* + - https://www.marketwatch.com/* + env: imt_source_field: text imt_trans_field: text diff --git a/plugins/game.yml b/plugins/game.yml index b85b578..a6816c2 100644 --- a/plugins/game.yml +++ b/plugins/game.yml @@ -33,6 +33,8 @@ matches: - https://gameinformer.com/* - https://escapistmagazine.com/* - https://vg247.com/* + - https://www.nexusmods.com/* + - https://steamcommunity.com/* env: imt_source_field: text imt_trans_field: text diff --git a/plugins/legal.yml b/plugins/legal.yml index 2cd6d6e..52728ad 100644 --- a/plugins/legal.yml +++ b/plugins/legal.yml @@ -1,5 +1,5 @@ id: legal -version: 1.0.1 +version: 1.0.2 extensionVersion: 1.4.10 name: Legal Expert description: With meticulously crafted Prompts, translations in the legal field become more accurate and professional. @@ -17,6 +17,16 @@ i18n: 該專家專為專業法律領域翻譯而設計,你可以使用它將法律類文章準確翻譯為指定的目標語言。 author: Official homepage: https://immersivetranslate.com/ +matches: + - https://www.law.com/* + - https://www.abajournal.com/* + - https://www.law360.com/* + - https://www.jurist.org/* + - https://www.law.cornell.edu/* + - https://www.lawyers.com/* + - https://www.findlaw.com/* + - https://www.justia.com/* + - https://www.nolo.com/* env: imt_source_field: text imt_trans_field: text diff --git a/plugins/medical.yml b/plugins/medical.yml index 6a9be85..89f3bbe 100644 --- a/plugins/medical.yml +++ b/plugins/medical.yml @@ -1,5 +1,5 @@ id: medical -version: 1.0.1 +version: 1.0.2 extensionVersion: 1.4.10 name: Medical Expert avatar: https://s.immersivetranslate.com/assets/uploads/medi-dgFkFG.png @@ -19,6 +19,11 @@ i18n: 透過精心設計的 Prompt,使得醫學領域的翻譯更加準確和專業,你可以在醫學類網站中使用該專家。 author: Official homepage: https://immersivetranslate.com/ +matches: + - https://www.mayoclinic.org/* + - https://www.webmd.com/* + - https://www.medicinenet.com/* + - https://www.ncbi.nlm.nih.gov/* env: imt_source_field: text imt_trans_field: text diff --git a/plugins/music.yml b/plugins/music.yml index 44bef83..f3e0acc 100644 --- a/plugins/music.yml +++ b/plugins/music.yml @@ -1,5 +1,5 @@ id: music -version: 1.0.1 +version: 1.0.2 extensionVersion: 1.4.12 name: Music Expert description: This expert is designed for professional music field translation. You can use it to accurately translate music-related articles into the target language specified. @@ -21,6 +21,18 @@ author: Official homepage: https://immersivetranslate.com/ maxTextLengthPerRequest: 1200 maxTextGroupLengthPerRequest: 1 +matches: + - https://www.billboard.com/* + - https://www.rollingstone.com/* + - https://www.nme.com/* + - https://pitchfork.com/* + - https://www.stereogum.com/* + - https://www.spin.com/* + - https://www.thefader.com/* + - https://www.xxlmag.com/* + - https://open.spotify.com/* + - https://genius.com/* + - https://www.allmusic.com/* env: imt_source_field: text imt_trans_field: text @@ -29,7 +41,7 @@ env: imt_yaml_item: |- - id: {{id}} {{imt_source_field}}: {{text}} -systemPrompt: You are a highly skilled translation engine specializing in the music industry. +systemPrompt: You are a highly skilled translation engine specializing in the music industry. Your function is to accurately translate music-related articles into the target language specified, maintaining the original context and meaning. Ensure that musical terms, artist names, and song titles are accurately translated. Do not add any explanations or annotations to the translated text. prompt: |- Translate the following source text to {{to}}, Output translation directly without any additional text. Source Text: {{text}} diff --git a/plugins/paper.yml b/plugins/paper.yml index 4d02410..fd0b5d9 100644 --- a/plugins/paper.yml +++ b/plugins/paper.yml @@ -29,6 +29,9 @@ matches: - https://www.cambridge.org/* - https://www.oxfordjournals.org/* - https://arxiv.org/* + - https://kns.cnki.net/* + - https://ieeexplore.ieee.org/* + - https://www.tandfonline.com/* env: imt_source_field: text imt_trans_field: text diff --git a/plugins/reddit.yml b/plugins/reddit.yml new file mode 100644 index 0000000..7e2c217 --- /dev/null +++ b/plugins/reddit.yml @@ -0,0 +1,72 @@ +id: reddit +version: 1.0.1 +extensionVersion: 1.4.10 +name: Reddit Translation Enhancer +description: Optimized for translating Reddit posts and comments, ensuring community slang, subreddit-specific terminology, and internet jargon are accurately conveyed. +avatar: https://s.immersivetranslate.com/assets/uploads/reddit-JItzMo.png +author: Official +homepage: https://immersivetranslate.com/ +details: |- + This expert specializes in translating Reddit content, ensuring that community slang, subreddit-specific terminology, internet jargon, and platform-specific language are preserved and accurately translated into the target language. Suitable for various types of Reddit content, including posts, comments, and subreddit descriptions. +i18n: + zh-CN: + name: Reddit 翻译增强器 + description: 专为 Reddit 上的帖子和评论翻译优化,确保社区俚语、特定于子版块的术语和互联网行话的准确传达 + details: |- + 该专家专门翻译 Reddit 上的内容,确保社区俚语、特定于子版块的术语、互联网行话和平台特定语言得到保留并准确翻译成目标语言。适用于各种类型的 Reddit 内容,包括帖子、评论和子版块描述。 + zh-TW: + name: Reddit 翻譯增強器 + description: 專為 Reddit 上的帖子和評論翻譯優化,確保社區俚語、特定於子版塊的術語和互聯網行話的準確傳達 + details: |- + 該專家專門翻譯 Reddit 上的內容,確保社區俚語、特定於子版塊的術語、互聯網行話和平台特定語言得到保留並準確翻譯成目標語言。適用於各種類型的 Reddit 內容,包括帖子、評論和子版塊描述。 +matches: + - https://reddit.com/* + - https://www.reddit.com/* + - https://old.reddit.com/* + - https://m.reddit.com/* + - https://reddit.app.link/* +env: + imt_source_field: text + imt_trans_field: text + imt_sub_source_field: source + imt_sub_trans_field: translation + imt_yaml_item: |- + - id: {{id}} + {{imt_source_field}}: "{{text}}" + imt_subtitle_yaml_item: |- + - id: {{id}} + {{imt_sub_source_field}}: "{{text}}" + normal_result_yaml_example: |- + Example request: + - id: 1 + {{imt_source_field}}: "Source Reddit post" + Example result: + - id: 1 + {{imt_trans_field}}: "Translated Reddit post" + subtitle_result_yaml_example: |- + Example request: + - id: 1 + {{imt_sub_source_field}}: "Source comment" + - id: 2 + {{imt_sub_source_field}}: "Another source comment" + Example response: + - id: 1 + {{imt_sub_trans_field}}: "Translated comment" + {{imt_sub_source_field}}: "Source comment" + - id: 2 + {{imt_sub_trans_field}}: "Another translated comment" + {{imt_sub_source_field}}: "Another source comment" +systemPrompt: You are a sophisticated translation engine with expertise in Reddit content, capable of translating texts accurately into the specified target language, preserving community slang, subreddit-specific terminology, internet jargon, and platform-specific language. Do not add any explanations or annotations to the translated text. + +prompt: |- + Translate the following source Reddit content to {{to}}, Output translation directly without any additional text. + Source Text: {{text}} + Translated Text: +multiplePrompt: |- + Translate all instances of text in Reddit content within the YAML-formatted document below into {{to}}. Insert the translation in the corresponding {{imt_trans_field}} for each entry. Ensure the original community slang, subreddit-specific terminology, internet jargon, and platform-specific language are accurately translated and retain their original formatting. Do not include explanations or annotations. + + {{normal_result_yaml_example}} + + Start: + + {{yaml}} diff --git a/plugins/tech.yml b/plugins/tech.yml index 255fe3d..bcba771 100644 --- a/plugins/tech.yml +++ b/plugins/tech.yml @@ -42,6 +42,7 @@ matches: - https://techcrunch.com/* - https://techrepublic.com/* - https://technet.com/* + - https://stackoverflow.com/* env: imt_source_field: text imt_trans_field: text diff --git a/plugins/twitter.yml b/plugins/twitter.yml index aafc837..55e13d4 100644 --- a/plugins/twitter.yml +++ b/plugins/twitter.yml @@ -1,5 +1,5 @@ id: twitter -version: 1.0.0 +version: 1.0.1 extensionVersion: 1.4.10 name: Twitter Translation Enhancer description: Optimized for translating tweets, ensuring slang, hashtags, and platform-specific language are accurately conveyed. @@ -21,6 +21,9 @@ i18n: 該專家專門翻譯 Twitter 上的推文,確保俚語、成語表達、話題標籤和平台特定語言得到保留並準確翻譯成目標語言。適用於各種類型的推文,包括個人更新、新聞和娛樂。 matches: - https://twitter.com/* + - https://mobile.twitter.com/* + - https://x.com/* + - https://mobile.x.com/* env: imt_source_field: text imt_trans_field: text diff --git a/plugins/web3.yml b/plugins/web3.yml index f92a415..940a8ca 100644 --- a/plugins/web3.yml +++ b/plugins/web3.yml @@ -1,5 +1,5 @@ id: web3 -version: 1.0.1 +version: 1.0.2 extensionVersion: 1.4.10 name: Web3 Translation Expert description: Excelling in Web3 domain translations, this expert ensures your articles are translated with precision and professionalism. @@ -20,6 +20,26 @@ i18n: description: 專為Web3領域設計,提供更準確、專業的Web3領域翻譯 details: |- 該專家專為專業Web3領域翻譯而設計,你可以使用它將Web3領域的文章準確翻譯為指定的目標語言。適合的網站包括:CoinDesk, Cointelegraph, CryptoSlate, Decrypt, The Block, Bitcoin Magazine, Ethereum World News, Blockchain News, CoinMarketCap, CoinGecko, Bitcointalk, Ethereum.org, Crypto.com, Binance Academy, Uniswap.org, etc. +matches: + - https://coindesk.com/* + - https://cointelegraph.com/* + - https://cryptoslate.com/* + - https://decrypt.co/* + - https://www.theblockcrypto.com/* + - https://bitcoinmagazine.com/* + - https://ethereumworldnews.com/* + - https://www.theblockchainnews.com/* + - https://coinmarketcap.com/* + - https://www.coingecko.com/* + - https://bitcointalk.org/* + - https://ethereum.org/* + - https://crypto.com/* + - https://academy.binance.com/* + - https://uniswap.org/* + - https://www.nft.com/* + - https://www.defi.com/* + - https://www.metamask.io/* + - https://www.opensea.io/* env: imt_source_field: text imt_trans_field: text