Dhivehi Text – A simple plugin to integrate Thaana text into your WordPress site

For a recent project a client wanted to include a button in the WordPress WYSIWYG editor to easily add Dhivehi text on the otherwise mainly English language website. Instead of adding this as a site specific feature, I thought that many other Maldivians might also find this useful and therefore decided to create it as a WordPress plugin.

I’m happy to announce that my plugin “Dhivehi Text” has been approved and published in the WordPress plugin directory. This plugin adds a button to the WordPress TinyMCE editor which you can use to format text in Dhivehi. For example މިލިޔުންކޮޅު ލިޔެފައިވަނީ  is formatted using the plugin. You simply have to highlight your Thaana text and click the ހށ button.

dhivehi-text

 

The plugin uses MV Waheed font for headings and MV Faseyha font for rest of the text. By default the button would wrap your Thaana text in a  <span class="dhivehi-text">  tag. So if you want extra customization you can simply override the  .dhivehi-text class in your CSS.

The plugin also offers a simple shortcode too for extra flexibility. You can use it the following way:  [dhivehi] މިދޭތެރޭ ތާނައިން ލިޔުއްވާ [/dhivehi]. You can use these parameters to suite your needs.  [dhivehi container="div" class="foo bar" id="myid"] .

I hope you find this plugin useful and please do let me know if there are any issues or suggestions.

 
DOWNLOAD

6 Comments

Leave a Reply