mgmeyers / obsidian-smart-typography

Converts quotes to curly quotes, dashes to em dashes, and periods to ellipses
GNU General Public License v3.0
241 stars 11 forks source link

[Feature Request] Allow multiple sets of quote marks & per-file settings #27

Open twio142 opened 2 years ago

twio142 commented 2 years ago

I personally would need two sets of quotes, “quote”, ‘subquote’ in English texts and „quote“, ‚subquote‘ in German texts.

It'd be nice to be able to store and switch between several sets and also, to have individual settings for each file, for example by defining a specific property in the frontmatter.

The ideal solution would be automatically switching based on the current input language. But as far as I know, plugins can only execute shell commands using child_process which reacts quite slowly. I don't know if there is a better way to access system input method information besides that.

It is a very practical and neat written plugin, though. :) Thanks for developing it!

ildorn commented 2 years ago

I'd like that. Maybe add a language property to the frontmatter. That could also be used for other plugins. Then allow for a set of typography replacements for any language you want - defaulting to the standard "us" set currently available.