- marked as enhancement
- changed title to Markdown: Quoted paragraph shouldn't have placeholders for ">"
Markdown: Quoted paragraph shouldn't have placeholders for ">"
When a quoted paragraph like:
> This is a
> quoted
> paragraph.
and tikal.sh -x is used to extract translatable text, the resulting XLIFF file looks like:
<source xml:lang="en">This is a
<x id="1"/>quoted
<x id="2"/> paragraph</source>
The place holder x tags should not be there because the quoted marker ">" is not an inline modifiers.
Having these is error prone; if the translator moves the tag with the word following, for example, then the quote markers would be moved somewhere not beginning of the line.
Handling of paragraphs is also inconsistent with other elements in the block quote. The list items within a block quote doesn't have the placeholders like this.
I think the desirable behavior is not to have those tags and the XLIFF should look like:
<source xml:lang="en">This is a
quoted
paragraph</source>
The translator can translates this to as many lines as they wish (or to just one line) this way.
This can be done by using a customized SkeletonWriter. (I have a prototype implementation.)
Comments (3)
-
reporter -
This looks like it was fixed at some point; trying this in tikal with
okf_markdown
in 1.40 now produces:
<trans-unit id="tu1" xml:space="preserve"> <source xml:lang="en">This is a quoted paragraph.</source> <target xml:lang="fr"></target> </trans-unit>
-
- changed status to resolved
- Log in to comment