ApiaryActiveLive
Try: pause · settings · learn · wipe
← Community / Reading Room
MA
editorial-practice · 24 min read

Mark a Language Change Without Rewriting the Quotation

!Editorial illustration of bilingual pocket notebooks without text. (generated illustration)

Editorial illustration of bilingual pocket notebooks without text. (generated illustration)
Editorial illustration of bilingual pocket notebooks without text. (generated illustration)
Unmarked intended language changes (illustrative; data table below)
Unmarked intended language changes (illustrative; data table below)
CategoryValue (items)
Draft9
Partial review5
Checked0

Constructed checklist scenario for this brief, not measurements, ratings, or results from cited sources. Each displayed count represents checked items in the named example.

An editor is about to publish an English article about a neighborhood archive. In the middle, a volunteer recalls exactly what she told the first visitor: “La puerta siempre está abierta.” The words matter in part because these are the words she actually used. A translator supplies an English gloss for readers who need one. Then the team listens to the preview. The English prose sounds like English; so does the reader's attempt at Spanish. Nothing visible on screen warned the editor that the software had not been told where the change occurred.

There is no need to rewrite the Spanish in English to fix the underlying problem. Keep the original where it belongs, mark its language in the delivered document, and place the translation in its own language context. The quotation, translation, and language metadata do different jobs. Moving the words into an image, replacing them with phonetic English, or changing the language of the entire page would all sacrifice something the editor meant to preserve. A small boundary in the markup can preserve it instead.

This guide follows quotations through ordinary publishing systems, from the editorial decision to the rendered page and the listening test. It also shows what to do when the likely language does not merit a switch, when the words survive but their tags do not, and when the tags are correct but one screen reader still does something unexpected. None of those cases can be resolved just by counting how many language tags appear in the source.

Establish the default before marking an exception

A page first needs an identifiable default human language. In HTML an English article usually has an English language tag on its root html element. Where the main document is in Spanish the default ordinarily reflects that instead. That information can be inherited through headings, paragraphs, links, captions and other descendants. It gives the reader's software something reliable to use when it does not encounter a more specific declaration. An English translation does not make a document's unrelated Spanish text inherently English, and a Spanish quotation does not displace the language of the English article around it.

The W3C Internationalization guidance on declaring language in HTML explains where to declare the document language and where to change the language for a part. The W3C Understanding Language of Parts guidance discusses how identifying passages helps software apply their language's presentation and pronunciation rules. As a practical division of work, make the template responsible for the default document language and give editors a clear way to identify changes in content. This division is an implementation recommendation, not a requirement that the author use a particular template or editor.

A common regression comes from treating the locale of the site interface as the language of all articles. A Spanish-language navigation shell can surround an English article, or an English shell can host a complete Spanish story. Identify the page's predominant language and identify significant passages in another language according to the product's actual structure. Do not select a root value only because the current editor logged in with that locale. If a template serves editions using one shared component tree, the root setting and article fields must come from the edition being delivered, independently of a staff person's editing preferences.

Check the default when the page has hardly any prose too. A small profile page may contain buttons, credits, an image description and a linked title. Someone who listens to the controls before reading a quotation has already encountered language-bearing content. A root language is still useful. A translation widget, geographic location, URL suffix or navigation selector is not a substitute for declaring the language of the delivered text. Those are clues to human readers or systems managing editions, but they do not accurately describe every node by themselves.

If an article is genuinely mixed, choose boundaries that reflect the writing rather than pursuing a mathematically exact word count. An English introduction to a full Spanish document might be better served by distinct sections or separate editions with clear navigation. On an editorial comparison page, alternating passages may make sense, while a reader searching for one continuous translation might prefer an independently marked full version. These are information architecture choices. Root and local language declarations support whichever choice you make, but do not resolve the choice by themselves.

Mark the phrase, not the idea of translation

In an English passage, a Spanish sentence can be placed in a span with lang set to es. An English gloss can follow outside it and inherit the surrounding English. Keeping these as distinct runs is important: if the editor puts both the quoted sentence and its explanatory English text inside an es wrapper, the change is detectable but its boundary is wrong. The HTML marks the language actually present, not the part of the article whose subject is Spain or a person who speaks Spanish.

For a full quotation using a blockquote, the block itself can carry the language when all its content is in that language. If the attribution and editorial gloss use English, put them outside that language scope or give them their own appropriate declaration. In another layout an English introduction and Spanish quotation might share a figure: the presence of a figure element is not the deciding factor. The relevant boundary is the smallest convenient container that accurately covers the different language without swallowing unrelated text. A long quotation with its own code-switching can contain more specific language scopes inside the first.

Placement can reduce both false switches and brittle markup. An editor need not wrap every single word of a two-sentence French quotation in its own span. One language declaration on an appropriate shared container is easier to maintain. At the same time, attaching French to the whole multi-paragraph English discussion just because it contains that quotation is too broad. Review the rendered document around the actual boundaries: some converters put attribution in the same container, or insert other text that inherits a declaration meant for the quotation alone.

Spacing and punctuation deserve a check, but do not make them do the work of language metadata. Quotation marks, italics or a colon can communicate a change of speaker or text type to human readers. They do not identify the language of the enclosed words for assistive technology. Where punctuation belongs to the quotation, preserve the publisher's faithful quotation and layout conventions. Where punctuation belongs to the English narrative around it, do not move unrelated phrases or punctuation just to produce a shallow markup tree. Practical validation is whether language metadata reaches the intended text without distorting its meaning or presentation.

A language declaration is not a translation, transliteration or pronunciation guide. It preserves the wording and provides a machine-readable language context. If a reader will benefit from a gloss, openly mark it as a translation or explanatory paraphrase. If a speaker specifically requests a transliteration, retain its status as such rather than silently substituting it for the quotation. Editorial integrity and pronunciation support can coexist: preserving the original does not require withholding a translation, and providing a translation does not justify removing the original.

Choose a language identifier that expresses what you know

The language attribute uses language tags, not arbitrary names copied from the editorial label. A common tag may be enough for a modest language shift. For example, es identifies Spanish in the short example. More specific tags can describe a script or regional variation when that distinction is known and useful. Do not guess a region based solely on the speaker's location or surname. A person can speak several languages and can quote a text from a different variety than the one they normally use. A well-supported less-specific tag is preferable to a precise-looking wrong one.

It is helpful to distinguish validity from accuracy. A syntactically valid tag can still describe the wrong language. A spelling that looks natural to an English editor can be invalid as an HTML language tag. The W3C language declaration guidance links the underlying choices about tags and describes correct placement in HTML. An editor choosing from a controlled list can avoid some typing errors, but needs an escape route for uncommon well-documented tags. A bulk conversion of old shorthand labels should be reviewed, especially where the original word could have described a region or writing system rather than a human language.

A declaration on the correct element may affect more than the visible text. An element's accessible name or textual attributes may participate in how it is announced. If a link's entire text is French, consider attaching the language to the link rather than only to a nested inline object, when this accurately describes that link. If the link also includes substantive English text, it is not truthful to mark the whole thing French just to chase a specific voice behavior. The question is what the available markup says about each piece, not how to optimize the first sound of one demonstration at the expense of readers on other combinations.

Language and text direction are separate decisions. A right-to-left quotation in an otherwise left-to-right article can need an appropriate direction boundary as well as its language declaration. One piece of metadata does not automatically solve the other job, particularly when numbers, punctuation or names of another script appear inside the example. Use the document and component's supported direction mechanisms deliberately. Test the visual reading order, not just the screen reader voice. If the word order looks reversed when the page is copied or narrowed, adding a more detailed language tag is not a complete fix for that layout problem.

A page may quote language where the editor cannot confidently identify the tag. Send the label to a qualified reviewer when feasible, noting exactly which words are uncertain. Do not silently invent a language because the script is familiar. A script can serve multiple languages, and some text is genuinely indeterminate or mixed. Keep what the editor knows distinct from what the template defaults would otherwise imply. Where the source itself gives valuable attribution, retain it instead of expecting the technical tag to carry the whole explanation.

Use exceptions as judgment, not a reason to skip everything

W3C's Language of Parts guidance describes exceptions for proper names, technical terms, words whose language is indeterminate, and words or phrases that have become part of surrounding usage. It also explains that a passage or phrase can consist of a single word. Length alone is not a reliable rule. A single-word quotation can be an intentional language switch, while a long proper name need not automatically create one. The task is to identify the language function of the words in context, not to annotate every word with an origin story.

Imagine an English paragraph about a historian called Étienne. The name is a proper name, not by itself a new French passage. A rendering can nevertheless benefit from marking a name's source language when known, if testing shows that doing so improves intelligibility without falsely changing the scope of nearby English. That possible editorial choice is different from saying that failing to mark every person, place, product and organization name has the same status as failing to identify a deliberate foreign-language quotation. The distinction matters when an audit counts intended changes.

A common loan word used as ordinary English does not need to be made foreign again because a dictionary lists its origin. For example, “rendezvous” used naturally in an English sentence is normally part of the surrounding text in the sense discussed by W3C. The same string could appear in a French sentence, where French would follow from the sentence context. Editors should make the decision based on the role of the words in the actual sentence. A sitewide search for accents or historically borrowed words will find both useful candidates and a great deal of noise.

Technical terms deserve the same care. A scientific binomial, a unit name, and a phrase quoted verbatim from a Spanish methodology can all appear in the same article, but they are not necessarily equivalent language changes. A taxonomy term may fall under the technical-term exception, while the Spanish passage remains intentionally Spanish. It is reasonable to include guidance for recurrent terms in a style note, but do not put them on a permanent exemption list regardless of context. The same character sequence may function as a name in one use and as part of a separate-language quotation in another.

When there is genuine disagreement about intent, ask a reviewer who understands the material. Does the author want the quotation treated as language distinct from the surrounding prose? Would the local audience normally read that word using its surrounding language conventions? Could tagging it improve pronunciation without misrepresenting the text? This is useful evidence for an editorial decision, not a rule that an approximately correct voice in one recording makes all structural markup unnecessary. Retain a decision note for consequential or recurring cases so different editors do not “fix” each other's work in circles.

Trace the quotation from the editor to the actual page

A common editorial tool saves quotes as a block with a body and a separate attribution. If the field captures no language for the quote, there is no reliable reason to expect the renderer to guess it. Give the editing form a clear language field which distinguishes a deliberate change from the default. It may also need a way to label mixed inline runs when individual phrases use different languages. Do not make authors paste HTML solely because the content model has no place for the information. Store the editor's intent in a form the transformation pipeline can carry forward.

Determine what happens at every conversion. An imported word processing document can include internal information about proofing language that is not exported to Markdown. An HTML sanitizer can allow harmless spans while removing attributes. A component can accept an object with a locale and then render only its text or move the attribution inside the wrong container. A translation workflow can copy the text but replace the original language settings with the translation's defaults. All of those changes may leave the article looking identical. The best test fixture puts a controlled foreign-language example through the production route rather than relying only on a demonstration component.

Inspect the delivered markup after the final transformation. Use the browser's element inspector or a downloaded copy that reflects the actual page, and check which language is inherited by the intended text. A static code search for occurrences of lang is not enough: it would pass a root tag even if every quotation lacks its boundary. An editor preview may differ from the public rendering, and a page assembled by script may add or change the relevant elements. Verify selective checkpoints that mirror the way readers get the finished edition rather than treating a template file as the result.

Keep the meaning attached to the content when changing the visual style. A team may decide to flatten two styled spans into one visual line, or move a translation into a disclosure panel. That is a layout change, not a decision that the original is suddenly in another language. Mark the texts according to what each contains and verify that both are reachable in their new context. A collapsed translation that cannot be opened by keyboard is a problem separate from whether the language inheritance is right. Testing language metadata need not wait until every other feature is perfect, but it should not take the place of those other checks.

Reusable fragments can be especially tricky. A fully Spanish passage may inherit Spanish on its originating page and then appear in an English listing as an excerpt. The inherited value from the original page does not travel by magic into the copy. If the excerpt generator carries known language metadata, it can describe the fragment accurately in its new setting. If the generated excerpt combines an English preface with part of a Spanish quote, its model may need boundaries within the excerpt. Treat inherited default and content-level identity as different metadata when designing what publication extracts should retain.

Read the round trip before relying on recordings

There are two distinct checks: structural verification and practical presentation. Structural verification asks whether the root language and local language changes are present in the delivered document at the correct boundaries. A presentation check asks what a given browser, assistive technology and voice actually do with that information. A strong acceptance test includes both, but reports them separately. A sentence can sound plausible in one environment while being unmarked in the document. Correct markup cannot promise that every installed voice knows how to pronounce every name or language variety.

When testing speech, write down the browser, assistive technology, context and language or voice availability relevant to the result. Play the passage beginning in the surrounding language, enter the quotation, then listen to the return to the original context. If the reader automatically switches in that configuration, make sure it switches only at the intended boundary. If it does not switch, confirm whether both languages are supported and present, whether the feature is enabled, and whether the structural check passed. Distinguish a configuration that lacks a voice from a production bug that lost an attribute.

Try more than one operating mode when the passage is important. A screen reader reading the article linearly may encounter the text differently from a link list, a heading list, or a focused control. The W3C guidance on Language of Parts notes that some operating modes expose a flattened accessible name. This can discard the structure that conveys language boundaries in the underlying markup. The example is a reminder that listening in one mode is not an official criterion by itself. Check the underlying language declarations before diagnosing a failure to switch voices as an authoring problem.

Consider an isolated link to a Spanish-language record whose entire label is written in Spanish. A declaration on the link element where appropriate may convey the element's language more directly than a nested span. By contrast, a mixed label such as an English action followed by a Spanish title has more than one actual language. Collapsing both into Spanish to improve one screen reader mode would make the metadata inaccurate for the English words. If a simpler link label and surrounding explanation meet the editorial need, a redesign can make the interaction clearer without falsifying the language. Test that the new wording is still an adequate label.

A user who reads Braille or uses another text presentation may not diagnose a problem in the same way as someone listening to a synthesized voice. A caption in a study report should say what was evaluated and what was not. “Verified programmatic markup and tested speech behavior in the listed environment” is a practical statement. “All readers now pronounce every quotation correctly” is not warranted by those checks. Telling the user what a test actually did makes future bugs easier to reproduce rather than requiring them to trust that the preview sounded good to someone else.

Count unmarked changes without inventing a conformance score

The chart in this article is a made-up checklist example. It does not measure a publisher, describe a W3C study, or show comparative accessibility of real releases. Before looking at draft markup, imagine an editor reviewing a fixed text edition and identifying nine intended changes where language metadata should differ from the inherited context. In the draft, all nine lack the needed boundaries. In the partial review, four have been corrected, leaving five unmarked. In the checked example all five remaining are corrected, leaving zero. The chart's sequence is nine, five, zero; it is an outstanding-problems count for this constructed checklist.

Keep the scope constant across the three stages. Assume they concern the same nine changes, the same text, and the same audited pages in this example. Four corrections take the count from nine to five; five more take it from five to zero. If a new quote were added after partial review, you would need to reconcile its effect on the scope instead of implying that all items stayed comparable. If one previously selected candidate turned out to be a proper-name exception, explain the change in classification rather than silently treating it as an implementation fix. Counts only mean what their counting rules say.

In an actual audit, keep statuses such as correctly marked, unmarked, wrongly scoped, exception and unresolved. First define how to count one intended change. A single block that carries two consecutive sentences in the same different language can be one intended scope even though a writer might originally have inserted separate marks for each sentence. A different policy might count particular phrases independently; it can be valid if stated and applied consistently. Do not use the number of HTML tags as a denominator, since one correct attribute can cover several words and several incorrect attributes can fail to cover even one complete quote.

Also keep the checklist's criterion of absence separate from overall correctness. An item where Spanish is explicitly labeled French is not unmarked, but it is still marked incorrectly. An English attribution incorrectly inherited from a French quotation could be a separate scoping defect. This fictional chart assumes that the nine listed items begin without their intended declarations and are progressively fixed correctly; it does not model those other error classes. Real results should show them as separate categories where needed. Zero unmarked intentional switches in a chosen sample is not proof of overall WCAG conformance, even for the pages in the sample.

For a textual alternative, report what the chart shows without forcing the reader to see a bar: Draft, nine unmarked intended changes; Partial review, five; Checked, zero for the fixed example. The values agree with the table rendered alongside the chart. The fiction matters because it shows the arithmetic and reporting structure without inventing evidence that a tool or audit process achieved these results out in the world.

Rehearse a quotation with ordinary editorial complications

Consider a fictional English exhibition note about an archived letter. It includes a heading, one Spanish sentence from the letter, an English translation written by the editor, an English attribution, a borrowed term used in the introduction and an organization named using the spelling from its own materials. Before creating snippets, write a simple expected-boundaries list. English is the fallback for the document. The quoted sentence is intentionally Spanish. The translation and attribution stay English. The borrowed term and name can be reviewed under the contextual exceptions rather than automatically counted as additional mistakes.

Now revise the note so the editor quotes a second sentence from the same Spanish paragraph. If both sentences are contiguous, there may be one Spanish scope encompassing them. If you insert an English comment explaining an omission between them, the comment needs its own English context. The lesson is that the right markup follows the surrounding material. A saved field called spanishQuote cannot automatically know the whole field is Spanish if the editorial system permits an editor to type a remark into it. Model distinct content types where useful, and verify boundaries when the prose requires mixing.

In a bilingual series, the Spanish edition might quote the same letter and give an English translation for historical comparison. The letter quotation would then inherit Spanish. The English translation would need the different language context. Both editions can use the same basic source fragments and still require different visible scoping. Avoid baking the assumption that quotations are always foreign relative to the page into a shared template. Instead keep per-fragment language and the edition's default independently available in the data.

Try a faulty rendition to ensure the workflow would detect it. In a test copy, remove the Spanish declaration without changing the words. A visual comparison may look exactly right; a DOM check of inherited language should flag it. Restore the declaration and intentionally extend the boundary around the English attribution. A test that merely searches for existence of the Spanish tag will still pass, while a correct scope test finds the error. Keep these cases as regression fixtures because they distinguish rendering metadata from vague visual familiarity.

One more fault concerns provenance rather than markup. Replace the Spanish quotation with the English gloss and leave the Spanish tag. That is wrong even if software announces the text convincingly enough to pass a casual listen. Verify the exact visible words and their relation to the source quote, not just the tag. A change in how readers receive a faithful quotation should not silently alter what the speaker or author is reported to have said.

Include the edges readers find outside the main article

Image descriptions and interface labels can be overlooked when an editor focuses on the narrative column. An English photograph description should describe the image in English unless its actual text changes language. If it needs to convey a sign written in another language and a longer explanation, the available output format may not support distinct inline metadata inside a plain string. An adjacent accessible caption or visible transcription with real markup may support the intended distinctions better, provided the image itself still has an appropriate text alternative. Do not expect markup-looking characters typed into an attribute to act like nested HTML.

Glossaries are another revealing case. An English definition of a French term is still English, while a quotation demonstrating natural French usage calls for a French scope. Reusing the same short snippet on a Spanish page changes its surrounding default. Put tests around the glossary's component parts rather than giving every tile the locale of its definition regardless of content. If readers might search for forms with or without particular accents, plan that separately from preserving the actual faithful text. Language markup does not by itself design search normalization or authority records.

Downloadable editions need their own verification. A copied plain-text file cannot retain all the structural metadata of an HTML page. A separate document format may have a way to mark language, but an HTML test does not establish that the conversion carried it across. State which artifact was checked. Publish guides or companion marks if the distribution format limits how the words can be described. Where a quote is frequently reused, preserving original text, translation, and language annotations in the editorial master gives later conversion teams more options than trying to reconstruct scope from screenshots.

Distinct navigation targets may also mix interface language and content language. An English label for an article in Spanish is English at the point where it is read. A Spanish title inside the label may have its own boundary. The destination's language can be described as additional information, but that does not change the language of the link text itself. For a language selector, a short, accurately scoped name of the language can be helpful. Verify what a reader hears and what the link actually opens without confusing two different properties.

Use a short inventory for the nonprose scope. For each chosen item record its visible text, its reading context, the relevant inherited tag and whether an override correctly states a change. Do not count each wrapper and its identical nested language as a separate user-facing transition. When controls reuse the same visible text in several contexts, inspect representative renderings and report how much of the reuse was tested. A test that covers only the body paragraphs can be entirely valid if its scope is disclosed, and entirely misleading if it is described as the whole site.

Make the handoff inspectable without a particular voice

An acceptance note that can survive staff turnover is short and specific. Identify the article edition and route, expected default, intended language changes, open exceptions, and the evidence inspected on the delivered page. State whether listening or other presentation checks were performed, with enough environment detail for someone to repeat them. Put failing and untested cases in separate categories. A feature that could not be exercised on the reviewer's phone did not thereby pass. A structurally correct sentence that sounded wrong in a known limited mode did not necessarily fail the markup test.

Tell an editor what condition warrants reopening an item. A late substitution of the translation, relocation to an excerpt, or change of component is a reason to retest the boundary. A different reviewer preferring a particular regional voice may warrant a conversation about semantics and product behavior rather than a language tag change. Separate high-confidence authoring bugs from device behavior that depends on capabilities outside the site. If users report a recurring problem, gather the exact context instead of telling all of them a passing test settled their experience.

Finally, preserve the visible quotation's integrity throughout repair. Compare names, accents, punctuation and wording with the approved source where applicable. Reapply the right metadata when a revised template accidentally loses it. If the language remains genuinely uncertain, document that instead of giving the words a false identity to make a checklist look good. The sought-after improvement is not nine more attributes or an immaculate recording. It is the ability to deliver the words the editor intended, in their actual language context, with an honest account of what was verified.

Preserve annotation decisions in a small editorial style record

The people preparing the next edition do not need a permanent committee for each ordinary quotation. They do need examples that explain why particular choices were made. Keep a short living style record with an inline change, a full-block change, a contextual exception, an accessibility name limitation, and a known conversion failure. Include the actual scope of each example. “Mark foreign text” is too vague to guide an editor who needs to know whether an English attribution belongs inside a Spanish container. Examples with expected output reduce uncertainty without substituting a rigid language guesser for human review.

For a newly added translation, have the translating editor name what the field contains: a faithful translated quote, an explanatory gloss, or nearby editorial commentary. Then confirm that the visible presentation and language markup reflect that role. This does not require publishing private notes or the identity of everyone involved. It requires a record of which material is authoritative and which material the site added for explanation. When a publication correction later updates one version, the relationship shows whether the other needs a corresponding review or should remain intact as a record of what was originally said.

A pattern library can also carry an example long enough to trigger a line break or wrap around punctuation in a narrow mobile window. Scoping should survive the wrap; it follows the content's language, not the physical lines into which a layout breaks it. Check that copying the original still preserves its visible wording and that the translation is not appended by a hidden styling trick. The language test and the fidelity test reinforce each other without becoming interchangeable. One verifies the metadata. The other verifies that the reader still gets the approved text.

A good final note is specific about evidence. It can say that the intended language scopes in one published template were verified in the delivered document, and that two named reading contexts were inspected without treating them as all possible contexts. It can also identify which exported edition remains untested rather than assuming that compliance transfers with the words. Keep supported behavior and unresolved behavior equally visible so maintenance starts with reality rather than a reassuring old total.

References

Frequently asked
What is Mark a Language Change Without Rewriting the Quotation about?
!Editorial illustration of bilingual pocket notebooks without text. (generated illustration)
What should you know about establish the default before marking an exception?
A page first needs an identifiable default human language. In HTML an English article usually has an English language tag on its root html element. Where the main document is in Spanish the default ordinarily reflects that instead. That information can be inherited through headings, paragraphs, links, captions and…
What should you know about mark the phrase, not the idea of translation?
In an English passage, a Spanish sentence can be placed in a span with lang set to es. An English gloss can follow outside it and inherit the surrounding English. Keeping these as distinct runs is important: if the editor puts both the quoted sentence and its explanatory English text inside an es wrapper, the change…
What should you know about choose a language identifier that expresses what you know?
The language attribute uses language tags, not arbitrary names copied from the editorial label. A common tag may be enough for a modest language shift. For example, es identifies Spanish in the short example. More specific tags can describe a script or regional variation when that distinction is known and useful. Do…
What should you know about use exceptions as judgment, not a reason to skip everything?
W3C's Language of Parts guidance describes exceptions for proper names, technical terms, words whose language is indeterminate, and words or phrases that have become part of surrounding usage. It also explains that a passage or phrase can consist of a single word. Length alone is not a reliable rule. A single-word…
References & sources
  1. Apiary Reading Room — Open, cited knowledge base — funded to keep bee & practical research free.
From the Apiary Reading Room. Opinion & editorial — not financial advice. We don't overclaim.
More from the Reading Room