pptype / pandoc-markdown

Simplified Chinese translation of Pandoc Markdown
3 stars 0 forks source link

Translation problems collection #1

Open tarvos21 opened 7 years ago

tarvos21 commented 7 years ago

Fenced code blocks

In addition to standard indented code blocks, pandoc supports fenced code blocks. These begin with a row of three or more tildes (~) and end with a row of tildes that must be at least as long as the starting row. Everything between these lines is treated as code. No indentation is necessary:

在这一段中只说了 tilde 波浪线可作为代码区块的分隔符,没有说 backtick 反引号也可以。但是曾于修的繁体翻译中,有提到同样可以用 backtick 作为分隔符:

除了標準的縮進代碼區塊外,Pandoc 也支援了圍欄 (fenced) 代碼區塊的語法。這區塊需以包含三個以上波浪線 (~) 或反引號 (`) 的一行作為開始,並以同樣符號且至少同樣長度的一行作為結束。所有介於開始與結束之間的文字行都會視為代碼。不需要額外的縮進:

这说明新版的可能去掉了反引号。但是,英文手册接下来的一小段:

If the code itself contains a row of tildes or backticks, just use a longer row of tildes or backticks at the start and end:

又加上了 backticks。 紧接着有一段介绍:

Extension: backtick_code_blocks Same as fenced_code_blocks, but uses backticks (`) instead of tildes (~).

说明后来的改版中,把 backtick 代码区块作为一个 Extension 来用了,而不再属于 fenced_code_block 这个 Extension。所以在新的翻译中,上面的那两段将不提及 backtick。

xiaohanyu commented 7 years ago

简繁翻译的问题,可以试着和曾于修去联系下,看看他是怎么考虑的,以及如果可能的话,也可以提供一些 Patch 给他。

tarvos21 commented 7 years ago

好的