Files
obsidian-unicode-formatter/CLAUDE.md
T

34 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Project: Obsidian Unicode Text Formatter Plugin
## Goal
Transform selected text in the Obsidian editor into Unicode Mathematical Alphanumeric
Symbols (Sans-Serif Bold / Italic / Bold-Italic) for use in LinkedIn and Facebook posts.
## Architecture
- TypeScript, Obsidian Plugin API only, zero external dependencies
- Four files to implement: src/unicode-maps.ts, src/formatter.ts, src/commands.ts, main.ts
- Build tool: esbuild (already configured in the sample plugin template)
## Key Unicode Blocks
- Sans-Serif Bold uppercase: U+1D5D4U+1D5ED
- Sans-Serif Bold lowercase: U+1D5EEU+1D607
- Sans-Serif Bold digits: U+1D7ECU+1D7F5
- Sans-Serif Italic uppercase: U+1D608U+1D621
- Sans-Serif Italic lowercase: U+1D622U+1D63B
- Sans-Serif Bold-Italic uppercase: U+1D63CU+1D655
- Sans-Serif Bold-Italic lowercase: U+1D656U+1D66F
## Obsidian API used
- editor.getSelection() / editor.replaceSelection()
- this.addCommand({ id, name, editorCallback })
- this.addRibbonIcon()
## Commands to register
1. unicode-formatter:bold "Format as Unicode Bold"
2. unicode-formatter:italic "Format as Unicode Italic"
3. unicode-formatter:bold-italic "Format as Unicode Bold Italic"
## Testing
Install to: .obsidian/plugins/unicode-text-formatter/ (main.js + manifest.json)
Enable in: Obsidian → Settings → Community Plugins