fishjar / kiss-rules

Ingest and generate subscription rules for [KISS-Translator]. 收录并生成用于 [KISS-Translator] 的订阅规则。
MIT License
22 stars 11 forks source link

steam 创意工坊页面,部分文本无法翻译 #41

Closed lethargicScribe closed 3 months ago

lethargicScribe commented 3 months ago

示例页面 https://steamcommunity.com/workshop/filedetails/?id=3231731155 图片 如图所示, 基本上,描述部分的标题和正文都无法翻译,

lethargicScribe commented 3 months ago

参考 #19 后,正文可以翻译,如下图 图片 但是仍有结尾部分和评论区无法翻译, 如下 图片 图片 现在的规则设置如下:

  {
    "pattern": "steamcommunity.com",
    "selector": ":is(li, p, h1, h2, h3, h4, h5, h6, dd, blockquote, .kiss-p)",
    "keepSelector": "code, img, svg, pre",
    "terms": "",
    "translator": "Microsoft",
    "fromLang": "auto",
    "toLang": "zh-CN",
    "textStyle": "dash_line",
    "transOpen": "true",
    "bgColor": "",
    "textDiyStyle": "",
    "selectStyle": "-webkit-line-clamp: unset; max-height: none; height: auto;",
    "parentStyle": "-webkit-line-clamp: unset; max-height: none; height: auto;",
    "injectJs": "",
    "injectCss": "",
    "transOnly": "false",
    "transTiming": "mk_pagescroll",
    "transTag": "span",
    "transTitle": "false",
    "detectRemote": "false",
    "skipLangs": [],
    "fixerSelector": "#highlightContent",
    "fixerFunc": "br",
    "transStartHook": "",
    "transEndHook": "",
    "transRemoveHook": ""
  }
fishjar commented 3 months ago

参考:

:is(li, p, h1, h2, h3, h4, h5, h6, dd, blockquote, .kiss-p), .workshopItemTitle
.workshopItemDescription, .bb_ul, .commentthread_comment_text

Screenshot from 2024-05-30 13-34-52

lethargicScribe commented 3 months ago

大佬, 厉害了