fix-smart-quotes 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,26 +4,28 @@ Convert straight quotes to proper typographic ("smart") quotes in Markdown files
|
|
|
4
4
|
|
|
5
5
|
| Language | Before | After |
|
|
6
6
|
|----------|--------|-------|
|
|
7
|
-
| German | `"text"` | `„text
|
|
8
|
-
| English | `"text"` |
|
|
7
|
+
| German | `"text"` | `„text“` (U+201E / U+201C) |
|
|
8
|
+
| English | `"text"` | `“text”` (U+201C / U+201D) |
|
|
9
9
|
|
|
10
10
|
## Why?
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
Claude (including Claude.ai, Claude Desktop, and Claude Code) consistently uses straight quotes (`"`) instead of typographic quotes. This applies to both generated text and edits to existing content. The reason: straight quotes are universally compatible. They work in code, terminals, and forms, avoiding encoding issues that can turn smart quotes into question marks.
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
Other AI assistants behave differently: ChatGPT and DeepSeek typically output smart quotes, while Claude and Gemini use straight quotes.
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
For prose and documentation, proper typography matters. German and English have distinct quote styles that convey professionalism and readability.
|
|
17
|
+
|
|
18
|
+
**Example - text with proper German quotes:**
|
|
17
19
|
```
|
|
18
|
-
Sie sagte: „Das ist wichtig
|
|
20
|
+
Sie sagte: „Das ist wichtig.“
|
|
19
21
|
```
|
|
20
22
|
|
|
21
|
-
**After
|
|
23
|
+
**After Claude edits or generates text:**
|
|
22
24
|
```
|
|
23
25
|
Sie sagte: "Das ist wichtig."
|
|
24
26
|
```
|
|
25
27
|
|
|
26
|
-
This tool restores the correct quotes
|
|
28
|
+
This tool restores the correct quotes: either manually via CLI or automatically after each Claude edit via hook.
|
|
27
29
|
|
|
28
30
|
## Installation
|
|
29
31
|
|
|
@@ -49,7 +51,7 @@ fix-smart-quotes docs/*.md
|
|
|
49
51
|
|
|
50
52
|
## Claude Code Hook
|
|
51
53
|
|
|
52
|
-
The primary use case: automatically fix quotes in files that Claude Code just edited. The hook runs **only** on files modified by Claude's Write or Edit tools—not on your entire project.
|
|
54
|
+
The primary use case: automatically fix quotes in files that Claude Code just edited or wrote. The hook runs **only** on files modified by Claude's Write or Edit tools—not on your entire project.
|
|
53
55
|
|
|
54
56
|
Add to `~/.claude/settings.json`:
|
|
55
57
|
|