Plugin Directory

Changeset 2179008


Ignore:
Timestamp:
10/24/2019 05:47:55 AM (6 years ago)
Author:
zozuk1
Message:

Release v2.0.0

Location:
wphindi/trunk
Files:
1 added
1 deleted
7 edited

Legend:

Unmodified
Added
Removed
  • wphindi/trunk/assets/js/block.js

    r2155460 r2179008  
    9191    this.Id = "zz-" + props.clientId;
    9292    const editorID = `.${this.Id}`;
    93     this.hindiTyping = new transliterator(editorID);
     93    this.hindiTyping = new WPHindi.writer(editorID);
    9494  }
    9595  render() {
  • wphindi/trunk/assets/js/classic-editor.js

    r2159114 r2179008  
    1 var contentTransliterator       = null;
    2 var contentTextTransliterator   = new transliterator('#content')
    3 var titleTransliterator         = new transliterator('#title');
     1(() => {
     2var contentTransliterator   = null;
     3contentTextTransliterator   = new WPHindi.writer('#content', true)
     4titleTransliterator         = new WPHindi.writer('#title', true);
     5
     6contentTextTransliterator.load();
     7titleTransliterator.load();
    48
    59var transliterationStatus       = true;
    6 
    7 contentTextTransliterator.load(transliterationStatus);
    8 titleTransliterator.load(transliterationStatus);
    910
    1011
     
    3738jQuery( document ).on('tinymce-editor-init',function(){
    3839    if(contentTransliterator === null){
    39         contentTransliterator = new transliterator('#content_ifr');
    40         contentTransliterator.load(transliterationStatus);
     40        contentTransliterator = new WPHindi.writer('#content_ifr', transliterationStatus);
     41        contentTransliterator.load();
    4142    }
    4243});
     
    4647    transliterateToggle.addEventListener('click',toggleTransliterator);
    4748}
     49})()
  • wphindi/trunk/changelog.md

    r2159114 r2179008  
    11# Changelog
    22All notable changes to this project will be documented in this file.
     3
     4## [2.0.0] - 24-Oct-19
     5### Added
     6* URLs, emails and domain names etc will not be transliterated.
     7* Puranviram support at the end of sentence.
     8
     9## Changed
     10* Migrated to WPHindi_Writer from transliterator.
     11
     12## Removed
     13* Transliterator class.
    314
    415## [1.4.1] - 19-Sept-19
  • wphindi/trunk/class/zozuk-transliterator.php

    r2153598 r2179008  
    77            $this->enqueue_style();
    88            $this->enqueue_API_scripts();
     9            $this->enqueue_editor_script();
    910            $this->setup_classic_editor();
    1011            $this->setup_block_editor();
     
    1516
    1617    private function setup_classic_editor(){
    17 
    18         wp_enqueue_script(
    19             'transliterateZozuk',
    20             plugin_dir_url(__DIR__).'assets/js/transliterate.js',
    21             'googleTransliterateAPI',
    22             WPHINDI_VERSION,
    23             true
    24         );
    2518        wp_enqueue_script(
    2619            'transliterateClassicEditor',
    2720            plugin_dir_url(__DIR__).'assets/js/classic-editor.js',
    28             'googleTransliterateAPI',
     21            'wphindi-writer',
    2922            WPHINDI_VERSION,
    3023            true
     
    4639            'transliterateZozukBlock',
    4740            plugin_dir_url(__DIR__).'assets/js/block.js',
    48             ['googleTransliterateAPI','transliterateZozuk','wp-blocks','wp-element','wp-editor'],
     41            ['googleTransliterateAPI','wp-blocks','wp-element','wp-editor'],
    4942            WPHINDI_VERSION,
    5043            true
     
    5649    private function enqueue_API_scripts(){
    5750
    58         wp_enqueue_script(
     51        wp_register_script(
    5952            'googleTransliterateAPI',
    6053            plugin_dir_url(__DIR__).'assets/js/api.js',
    6154            null,
    62             WPHINDI_VERSION,
    63             true
     55            WPHINDI_VERSION
    6456        );
    6557
     
    8274
    8375    }
     76
     77    private function enqueue_editor_script(){
     78        wp_enqueue_script(
     79            'wphindi-writer',
     80            plugin_dir_url(__DIR__).'assets/js/wphindi-writer.js',
     81            'googleTransliterateAPI',
     82            WPHINDI_VERSION
     83        );
     84    }
    8485}
  • wphindi/trunk/constant.php

    r2159114 r2179008  
    55define('WPHINDI_CORE_URL', plugin_dir_url(__FILE__));
    66
    7 define('WPHINDI_VERSION', "1.4.1");
     7define('WPHINDI_VERSION', "2.0.0");
  • wphindi/trunk/readme.txt

    r2159114 r2179008  
    1515== Description ==
    1616WPHindi is a beautiful solution that lets you write in Hindi inside your WordPress editor. It changes the script of the text which means when you type 'Hello' it becomes 'हेलो'. You can easily type in Hindi and when you want to switch language, you can do that with the click of a button. Learn more at [Zozuk.com](https://www.zozuk.com/wphindi/)
     17
     18== What's New ==
     19We've been working very hard to improve the typing experience that WPHindi provides. v2 comes with a revamped core supporting complex expression and intelligently decides which words and expressions should be transliterated. Plus we've added "।" puranviram support.
    1720
    1821= Type effortlessly =
     
    5154
    5255== Changelog ==
     56= 2.0.0 =
     57* ReVamped core.
     58* Improved typing experience.
     59* Emails, Dates, URLs and domain names will not be transliterated.
     60* Added puranviram support.
     61
    5362= 1.4.1 =
    5463* Fixed Classic Editor Toggle button not working.
  • wphindi/trunk/zozuk-translator.php

    r2159114 r2179008  
    66    Author: Zozuk
    77    Author URI: https://www.zozuk.com
    8     Version: 1.4.1
     8    Version: 2.0.0
    99    Requires at least: 5.0
    1010   
Note: See TracChangeset for help on using the changeset viewer.