Get AI summaries of any video or article — Sign up free
[[Zettlr HowTo]] #004: AutoCorrect and Magic Quotes thumbnail

[[Zettlr HowTo]] #004: AutoCorrect and Magic Quotes

Zettlr·
5 min read

Based on Zettlr's video on YouTube. If you like this content, support the original creators by watching, liking and subscribing to their content.

TL;DR

AutoCorrect and Magic Quotes are enabled by default in Zettlr, and both can be managed from the AutoCorrect tab in General preferences.

Briefing

Zettlr’s AutoCorrect and Magic Quotes features automatically convert plain keystrokes into typographically correct characters—fractions, currency symbols, ellipses, and properly styled quotation marks—while giving users control over how aggressively replacements trigger. The practical payoff is less manual formatting and fewer “wrong characters” slipping into documents, especially for writers who need consistent typography across long sessions.

AutoCorrect is enabled by default in Zettlr. It works by scanning what’s typed for predefined character sequences and replacing them with typographic equivalents. Zettlr ships with a large set of built-in replacements, including arrows and typographic fractions, plus conversions for units like square millimeters and square centimeters into their correct symbols. Currency symbols are also handled, and a standout convenience is the automatic replacement of three dots (“...”) with the ellipsis character.

Users can extend this system by adding their own replacements in the AutoCorrect table: they enter the character sequence to look for on the left and the replacement text on the right. This matters because many typographic characters aren’t on standard keyboard layouts. The transcript highlights a Windows-specific pain point: producing characters like ellipsis or trademark often requires holding Alt and typing obscure numbers on the numpad. AutoCorrect sidesteps that by letting users type a simple sequence and have Zettlr insert the correct character automatically.

AutoCorrect can also function like a lightweight abbreviation system. Writers can create shortcuts for long names or frequently repeated terms so a short input expands into the full word or phrase.

Magic Quotes builds on the same mechanism, replacing straight quote marks with typographically correct opening and closing quotes. In the Magic Quotes settings, users choose among researched combinations for primary and secondary quote styles—English, German, French, Japanese, or “none.” Selecting a default language resets other choices back to their defaults; choosing “none” effectively disables quote replacement.

A key decision is the replacement style: “LibreOffice style” versus “Word style.” Word style is more aggressive, replacing immediately once a sequence is completed. LibreOffice style waits until the user presses space or enter, which can reduce accidental replacements. The transcript also notes a practical workflow: with LibreOffice style, pressing Shift+Space or Shift+Enter prevents the replacement from triggering, letting users undo or avoid a single unwanted conversion.

Magic Quotes is tied to AutoCorrect. Turning AutoCorrect off disables Magic Quotes regardless of quote settings, while turning AutoCorrect on enables Magic Quotes—except when the selected quote option is “none.” In use, French Magic Quotes insert the correct opening/closing marks and include the required typographic spacing around them.

Finally, both AutoCorrect and Magic Quotes intentionally do not operate inside code blocks. By using Markdown code blocks, users can write code naturally without ellipses or quote conversions interfering with programming text—useful for documents that mix prose, front matter, and quoted code-like terms.

Cornell Notes

Zettlr’s AutoCorrect and Magic Quotes turn plain typing into typographically correct characters. AutoCorrect is on by default and replaces predefined sequences—like “...” into an ellipsis, fractions into typographic forms, and various symbols into correct equivalents. Users can add custom replacements (including shortcuts for long names) to avoid manual insertion of characters that require special keyboard input. Magic Quotes swaps straight quotes for opening/closing typographic quotes based on a chosen language style (English, German, French, Japanese, or none). Replacement timing depends on the selected style: Word style triggers immediately, while LibreOffice style waits for space or enter and can be bypassed with Shift+Space or Shift+Enter. Both features skip code blocks to keep code intact.

What kinds of text transformations does Zettlr’s AutoCorrect perform out of the box?

AutoCorrect scans typed character sequences and replaces them with typographic equivalents. Built-in examples include arrows, typographic fractions, and unit symbols such as square millimeters and square centimeters. It also converts currency symbols and automatically replaces three dots (“...”) with the ellipsis character. These replacements are managed in the AutoCorrect tab under General preferences.

How can a user add their own AutoCorrect behavior?

In the AutoCorrect table, users add new rules using the plus button. They specify the character sequence to detect on the left and the replacement text on the right. This lets writers create custom shortcuts for characters that are hard to type on their keyboard layout and for repeated long terms or names that they want to expand from abbreviations.

Why does AutoCorrect matter for Windows users who need special characters?

The transcript points out that on Windows, producing characters like ellipsis or trademark often requires holding Alt and entering cryptic numbers on the numpad—something many people avoid. AutoCorrect provides a convenience by letting users type a simpler sequence and having Zettlr insert the correct typographic character automatically.

What does Magic Quotes do, and how is its behavior configured?

Magic Quotes replaces straight quote marks with typographically correct opening and closing quotes. Users choose among researched combinations for primary and secondary quotes: English, German, French, Japanese, or none. Selecting a language resets other quote settings back to their defaults; choosing “none” disables quote replacement.

How do “Word style” and “LibreOffice style” differ for AutoCorrect triggering?

Word style is more aggressive: once a typed sequence matches a rule, it replaces immediately. LibreOffice style is less aggressive: it waits until the user presses space or enter before triggering the replacement. The transcript also notes a bypass: Shift+Space or Shift+Enter prevents the replacement from triggering, which helps avoid one-off mistakes.

Where do AutoCorrect and Magic Quotes not apply?

They do not work inside code blocks. Using Markdown code blocks keeps quotes and sequences like “...” from being converted (so normal quotes and the literal three dots remain intact). This is especially useful for documents that include code snippets or quoted front-matter text.

Review Questions

  1. How would you decide between Word style and LibreOffice style when setting up AutoCorrect for a writing workflow?
  2. Give two examples of built-in AutoCorrect replacements mentioned in the transcript and explain why custom rules might still be useful.
  3. What happens to Magic Quotes when AutoCorrect is turned off, and what setting effectively disables quote replacement even if AutoCorrect is enabled?

Key Points

  1. 1

    AutoCorrect and Magic Quotes are enabled by default in Zettlr, and both can be managed from the AutoCorrect tab in General preferences.

  2. 2

    AutoCorrect replaces predefined character sequences with typographically correct characters such as ellipses, fractions, unit symbols, and currency symbols.

  3. 3

    Users can add custom AutoCorrect rules to insert hard-to-type characters and to expand abbreviations into long names or repeated terms.

  4. 4

    Magic Quotes converts straight quotes into opening/closing typographic quotes, with language-specific options including English, German, French, Japanese, and none.

  5. 5

    Replacement timing differs by style: Word style triggers immediately, while LibreOffice style waits for space or enter and can be bypassed with Shift+Space or Shift+Enter.

  6. 6

    Magic Quotes depends on AutoCorrect: disabling AutoCorrect disables Magic Quotes, while selecting “none” for quote style prevents quote replacement.

  7. 7

    AutoCorrect and Magic Quotes do not run inside code blocks, preserving literal text like three dots and straight quotes for programming or quoted material.

Highlights

Typing “...” can automatically become a single ellipsis character, reducing manual typographic cleanup.
AutoCorrect rules can be extended to avoid Windows Alt+Numpad character entry for symbols like ellipsis and trademark.
LibreOffice style delays replacements until space or enter, and Shift+Space/Shift+Enter can prevent a single unwanted conversion.
Magic Quotes supports language-specific opening/closing quote behavior, including French spacing requirements.
Code blocks are protected from both AutoCorrect and Magic Quotes so code and quoted terms remain literal.

Topics

  • AutoCorrect
  • Magic Quotes
  • Typographic Symbols
  • Custom Replacements
  • Quote Styles