简体   繁体   English

从语义上标记翻译

[英]Semantically marking up translations

I'm in the process of marking up an historical manuscript which has been translated from German into English. 我正在编写一份从德文翻译成英文的历史手稿。 On the web page I will be providing both languages side by side. 在网页上,我将并排提供两种语言。 Is there an accepted way to markup such a scenario? 是否有可接受的标记这种情况的方法?

I was thinking of splitting the translation blocks using the section tag and providing each with a lang attribute. 我正在考虑使用section标签拆分翻译块,并为每个翻译块提供lang属性。 However semantically this fails at communicating that one section roughly equates to the other. 然而,从语义上讲,这无法传达一个部分大致相当于另一部分。

Any thoughts on this would be greatly appreciated. 对此的任何想法将不胜感激。

Without an example of the data it's hard to say; 没有数据的例子,很难说; but is there a reason that you couldn't section them together, and provide the languages within sibling blockquote s; 但有没有理由你不能将它们分开,并在兄弟section blockquote提供语言; these then carry the context correctly, and can be styled to appear side by side. 然后这些正确地传达上下文,并且可以被设计为并排显示。

<section>
    <blockquote lang="en">English</blockquote>
    <blockquote lang="de">Deutsch</blockquote>
</section>

I think that table could be used here to relate the original text to its translation: 我认为这里可以使用该table将原始文本与其翻译联系起来:

<table lang="en">
  <tr>
    <th>Original/English</th>
    <th>Translation/German</th>
  </tr>
  <tr>
    <td><blockquote>…</blockquote></td>
    <td lang="de"><blockquote>…</blockquote></td>
  </tr>
</table>

(assuming that both versions are actually quoted from a different source) (假设两个版本实际上是从不同的来源引用的

It would be possible to divide the original and the translation into sections or pages or paragraphs (or whatever), if useful, each represented by a separate row ( tr ). 如果有用的话,可以将原始和翻译分成部分或页面或段落(或其他),每个部分由单独的行( tr )表示。


See also my answer to a similar question. 另见对类似问题的回答。


Note that by using blockquote the headings of the manuscript (and the translation) are not part of the document outline . 请注意,通过使用blockquote ,原稿(和翻译)的标题不是文档大纲的一部分。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM