Do you often mix Latin letters and Chinese, Japanese or Korean (CJK) characters in the same post or in the title? Did you find it difficult to style both types of characters satisfactorily using the same CSS style?
CJK-AutoTagger Automatically wraps CJK characters in your site with <span lang=””></span> tags, so that you can style them separately. You can choose what to <span>-wrap (refer to the screen shot) and what language code to use.
To style CJK and non-CJK (usually Latin) characters separately, follow the example below:
For more information on styling with language codes, check out this reference from W3C.
For advanced users: to auto-detect and <span>-wrap your custom strings in templates, use the following function:
- Upload the directory cjk-autotagger to the /wp-content/plugins/ directory
- Activate the plugin through the ‘Plugins’ menu in WordPress
- Configure your plugin on the CJK-AutoTagger setting page under Settings
CJK-AutoTagger Setting page.
Download (46 downloads)