InDesign GREP Styles for Multilingual Typography
InDesign GREP styles are the most reliable way to keep typography consistent across a multilingual document, because they apply character formatting to patterns — not to specific words. A GREP rule that italicizes any text inside quotation marks, or that switches numbers to a tabular-figure font, re-applies itself automatically to translated text. The rule does not care whether the surrounding copy is English, German, or Japanese; it cares whether the pattern matches. That is what makes InDesign GREP styles multilingual workflows so powerful: the formatting travels with the style definition, not the text, and it survives an IDML translation round-trip intact.
What GREP Styles Do in InDesign
A GREP style is a rule attached to a paragraph style. It pairs a GREP (regular-expression) search pattern with a character style. Whenever InDesign encounters text inside that paragraph that matches the pattern, it applies the character style automatically — no manual selection, no local override.
For example, you can set a GREP style that:
- Applies an italic character style to any text wrapped in straight or curly quotes:
("|\x{201C}).+?("|\x{201D}) - Switches digits to a tabular-lining-figures variant for aligned columns:
\d+ - Bold-faces the first sentence of every paragraph:
^.+?\.(?=\s) - Styles currency symbols so they sit at a consistent weight:
[$€£¥]
Because the rule lives inside the paragraph style definition, every paragraph using that style gets the formatting for free. You do not have to select text and apply a character style by hand. Adobe documents this feature as part of its paragraph formatting guide under GREP styles.
The payoff for multilingual work is structural: the formatting is decoupled from the specific words. When the words change language, the pattern still matches the same structures — numbers, quotes, symbols — and the typography stays consistent.
Why GREP Styles Survive IDML Translation
IDML (InDesign Markup Language) is Adobe's open, XML-based export of an InDesign document, produced via File → Export → InDesign Markup (IDML) inside Adobe InDesign. We accept IDML only — INDD, the proprietary binary InDesign format, cannot be parsed. We return a translated IDML file, ready to re-open in InDesign. For the format background, see IDML vs INDD for translation.
When you export to IDML, every paragraph style is serialized as a ParagraphStyle element in the style resources. The GREP rules attached to that style are stored as GREPStyle child nodes — each one carrying the GREP expression string and a reference to the character style to apply. This is why IDML GREP styles round-trip cleanly: the rule is metadata, not text.
A translation tool that processes the IDML translates the story text — the Story_*.xml nodes — and leaves the style definitions, including the GREPStyle nodes, untouched. When you re-open the translated IDML in InDesign:
- The paragraph style definitions load with their GREP rules intact.
- The translated text is poured into paragraphs that reference those styles.
- InDesign evaluates the GREP patterns against the translated text and applies the character styles automatically.
The result: numbers are still in tabular figures, quoted text is still italic, currency symbols are still styled — in every target language, with zero manual restyling. This is the same structural-preservation principle that protects paragraph styles during translation: the formatting contract lives in the style, and the style survives the round-trip.
GREP Patterns That Work Across Languages
Some patterns are language-agnostic. They match structural elements that exist in every language, so the GREP rule fires identically on translated text:
- Digits and numbers.
\d+or[0-9.,]+matches numerals in any language. A GREP style that applies tabular lining figures to digits will work whether the surrounding text is English, French, or Arabic numerals in a Western-context layout. - Quotation marks. If your source uses consistent quote characters — straight
"or curly\x{201C}/\x{201D}— and the translation preserves those characters, the italic-on-quotes rule survives. Be aware that some languages conventionally use different quote characters (German uses „…", French uses « … »); confirm with your translator whether the quote style will be localized or kept as-is. - Currency and unit symbols.
[$€£¥%°]matches symbols that do not change with language. A GREP style that normalizes their weight or size is safe across translations. - Emphasis markers. If your source uses a consistent emphasis convention — bold lead-ins, all-caps acronyms styled with a specific character style — and the translation preserves that convention, the GREP rule continues to fire.
The common thread: the pattern targets a structure that is identical across languages. For a deeper look at how typography decisions interact with multilingual layout, see our guide to multilingual typography in InDesign.
GREP Patterns That Break in Translation
Not every GREP rule is language-agnostic. Patterns that match English-specific text structures will silently stop working when the text becomes German, French, or Japanese. These are the ones to audit before you export:
- English contractions. A GREP rule that styles contractions like
\w+'\w+(don't, can't, it's) matches nothing in German or French, which do not use apostrophe contractions. The character style simply does not fire — not a crash, but a silent formatting loss. - English word boundaries for acronyms. A pattern like
\b[A-Z]{2,}\bthat styles all-caps acronyms works in English. In German, all nouns are capitalized, so the pattern over-matches. In languages without casing (Japanese, Chinese, Thai), it matches nothing. - Hyphenation and compound rules. German compounds can be very long and may use hyphens differently. A GREP rule tuned to English hyphenation patterns will behave unpredictably.
- Date and address formats. A pattern matching
MM/DD/YYYYwill not match theDD.MM.YYYYformat a German translator might use.
The fix is not to abandon GREP styles — it is to separate language-agnostic rules (keep them in the paragraph style) from language-specific rules (move them to a per-language character style applied manually or via a language-specific paragraph style variant). When you plan for text expansion across languages, build the same foresight into your GREP rules.
Setting Up GREP Styles Before IDML Export
- Audit existing GREP rules. Open each paragraph style, go to the GREP Style tab, and review every pattern. Ask: will this pattern still match in the target language? If yes, keep it. If no, decide whether to remove it or move it to a language-specific variant.
- Prefer language-agnostic patterns. Numbers, symbols, and structural markers are safe. Word-level patterns tied to English morphology are not.
- Use named character styles for GREP targets. Each GREP rule should reference a named character style, not local formatting. Named styles survive the IDML round-trip; local overrides are fragile. This mirrors the rule for non-Latin font handling in InDesign: style by name, not by manual application.
- Test with a sample translation. Export your IDML, run a short sample through TranslateInDesign, re-open the result in InDesign, and check whether the GREP-applied character styles are firing on the translated text. If a rule is silent, the pattern is language-specific and needs a per-language variant.
- Export IDML.
File → Export → InDesign Markup (IDML). Do not export INDD — it cannot be parsed. Do not export PDF or DOCX — they flatten the style structure entirely. For the full export walkthrough, see our IDML translation guide.
Keep Typography Consistent Without Manual Restyling
The pattern is the same as every other structural-preservation rule in InDesign translation: put the formatting in the style, export IDML, translate the text, re-open, and let InDesign regenerate. InDesign GREP styles follow this exactly — the GREP rule is metadata in the paragraph style, the IDML preserves it, and InDesign re-evaluates it against translated text automatically.
Auditing which GREP patterns are language-agnostic and which are English-specific takes about 20 minutes per document. Re-applying character styles by hand to every target language takes hours — and breaks the next time content changes.
Upload your IDML file — get a translated IDML back with paragraph styles, GREP rules, and character styles intact, ready to regenerate in InDesign.