/obsidian-fix-czech-text-from-latex

Fix Czech text generated with LaTeX ("v pˇr´ıpadˇe" → "v případě")

Primary LanguageTypeScript

Fix Czech text generated by LaTeX ("v pˇr´ıpadˇe" → "v případě")

This plugin is designed to correct common encoding issues in Czech texts, particularly those copied from LaTeX presentations. It automatically converts characters like '´a' to 'á', making your text more readable and correctly formatted.

Demo

Features

  1. Fix Selected Text: Convert encoding errors in the selected text.
  2. Fix Entire Document: Apply the fix to the entire current document.
  3. Fix Clipboard Text and Insert: Read text from the clipboard, fix it, and insert it at the current cursor position in the document.

Usage

  • To fix selected text, simply highlight the text in your Obsidian document and activate the 'Fix Selected Czech Text' command.
  • To fix the entire document, use the 'Fix Whole Czech Text' command without selecting any specific text.
  • To fix text from your clipboard and insert it at the cursor position, ensure the text is copied to your clipboard and use the 'Fix Clipboard Text and Insert at Cursor' command. This feature also has a hotkey assigned for quick access:
    • MacOS: Cmd + Shift + V
    • Windows: Ctrl + Shift + V

Installation

  1. Download the latest release from the GitHub repository.
  2. Unzip the release into your .obsidian/plugins directory.
  3. In Obsidian, go to Settings -> Community Plugins and make sure Community Plugins are enabled.
  4. Browse community plugins and enable the Czech Text Fix Plugin.

Development

This plugin was developed using TypeScript. To modify the plugin, ensure you have Node.js installed and set up your development environment according to the Obsidian API documentation.

License

This plugin is released under the MIT License. Feel free to fork, modify, and use it in your projects.

Support

For support, please open an issue on the GitHub repository. Contributions, bug reports, and feature requests are all welcome.

Author

Jakub Andrýsek https://kubaandrysek.cz/