Skip to content

is_noop calls a :ref: with display text markup, so its prose is never translated #54

Description

@tamnd

is_noop strips the markup and asks whether anything is left. For a role with display text there is prose inside the markup, and stripping takes it away with everything else.

Found while narrowing human_segments to skip code. One entry in the mirror is:

:ref:`Documentation on attributes and methods on classes <class-attrs-and-methods>`.

A person translated it correctly, rendering the display text and leaving the target alone:

:ref:`Tài liệu về các thuộc tính và phương thức trên lớp <class-attrs-and-methods>`.

The classifier calls it noop, which means two things. batch never queues it, so no model is ever asked. And Corpus.prose() skips it, so no check that reads a translation looks at it. It is only visible at all because it happens to be the one non-prose entry a human translated to something other than a copy of the source.

This is the failure the is_version_marker docstring describes, in a different rule: an entry that wants translating, classified as one that does not, invisible from every angle that would report it.

:ref:targetwith no display text is a genuine no-op and should stay one. The distinction is whether the role carries text a reader sees, which is text <target> `` inside the backticks, and P03 and `P06` already parse exactly that shape.

Not urgent on its own, one entry. Worth measuring first: the count of noop entries whose markup contains display text is the real size of this, and it is a lower bound on entries the pipeline will never translate and never report.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is wrong

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions