MuiseDestiny / zotero-attanger

Attachment Manager for Zotero
GNU Affero General Public License v3.0
742 stars 13 forks source link

重命名问题 #201

Open iubuling opened 2 weeks ago

iubuling commented 2 weeks ago

按此规则: {{ if language == "en" }} {{ if firstCreator == creators }}{{ firstCreator }}{{ else }} {{ creators join=" & " max="2" suffix=" et al." }}{{ endif }} {{elseif language == "en-US" }} {{ if firstCreator == creators }}{{ firstCreator }}{{ else }} {{ creators join=" & " max="2" suffix=" et al." }}{{ endif }} {{ elseif language == "zh-CN" }}{{ if firstCreator == creators }}{{ firstCreator }}{{ else }}{{ creators join=" 和 " max="2" suffix=" 等"}}{{ endif }} {{ elseif language == "zh" }}{{ if firstCreator == creators }}{{ firstCreator }}{{ else }}{{ creators join=" 和 " max="2" suffix=" 等"}}{{ endif }} {{ endif }}{{year}}{{ title truncate="50" }} 重命名后,英文文献的名称最前面会有空格,一直不知道怎么删除,在ONedrive上同步会报错,说是有无效字符

smallFF commented 1 week ago

哥们,感谢你提供的这个命名规则。我试了一下,通过删除空格(这种形式:}} {{应该改成无空格的形式}}{{)可以解决这个问题。下面是我修改后的,你可以试一下。

{{ if language == "en" }}{{ if firstCreator == creators }}{{ firstCreator }}{{ else }}{{ creators join=" & " max="2" suffix=" et al." }}{{ endif }} {{elseif language == "en-US" }}{{ if firstCreator == creators }}{{ firstCreator }}{{ else }}{{ creators join=" & " max="2" suffix=" et al." }}{{ endif }} {{ elseif language == "zh-CN" }}{{ if firstCreator == creators }}{{ firstCreator }}{{ else }}{{ creators join=" 和 " max="2" suffix=" 等"}}{{ endif }} {{ elseif language == "zh" }}{{ if firstCreator == creators }}{{ firstCreator }}{{ else }}{{ creators join=" 和 " max="2" suffix=" 等"}}{{ endif }} {{ endif }}{{year}}{{ title truncate="50" }}