[[Zettlr HowTo]] #004: AutoCorrect and Magic Quotes
Based on Zettlr's video on YouTube. If you like this content, support the original creators by watching, liking and subscribing to their content.
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?
How can a user add their own AutoCorrect behavior?
Why does AutoCorrect matter for Windows users who need special characters?
What does Magic Quotes do, and how is its behavior configured?
How do “Word style” and “LibreOffice style” differ for AutoCorrect triggering?
Where do AutoCorrect and Magic Quotes not apply?
Review Questions
- How would you decide between Word style and LibreOffice style when setting up AutoCorrect for a writing workflow?
- Give two examples of built-in AutoCorrect replacements mentioned in the transcript and explain why custom rules might still be useful.
- 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
AutoCorrect and Magic Quotes are enabled by default in Zettlr, and both can be managed from the AutoCorrect tab in General preferences.
- 2
AutoCorrect replaces predefined character sequences with typographically correct characters such as ellipses, fractions, unit symbols, and currency symbols.
- 3
Users can add custom AutoCorrect rules to insert hard-to-type characters and to expand abbreviations into long names or repeated terms.
- 4
Magic Quotes converts straight quotes into opening/closing typographic quotes, with language-specific options including English, German, French, Japanese, and none.
- 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
Magic Quotes depends on AutoCorrect: disabling AutoCorrect disables Magic Quotes, while selecting “none” for quote style prevents quote replacement.
- 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.