how to colored vowels in text

Paweł's Avatar

Paweł

19 Sep, 2015 12:46 PM

How to colored volwes in text. Is there any automatic function in "Anki"?

  1. 1 Posted by Soren Bjornstad on 19 Sep, 2015 12:50 PM

    Soren Bjornstad's Avatar

    Hi Pawel,

    The closest thing I know of is Pinyin Toolkit, but that will be of very limited use if you're not studying Chinese.

  2. 2 Posted by Paweł on 19 Sep, 2015 07:14 PM

    Paweł's Avatar

    I find some exapels in http://johndyer.name/coloring-hebrew-vowels-and-accents-in-htmlcss/
    but i dont have idea how to use it in anki.
    I wont use it for english text only

  3. 3 Posted by itraveller on 19 Sep, 2015 09:59 PM

    itraveller's Avatar

    Hi Paweł,

    Here script for English vowels:

    <div id=mark>Example</div>
    
    <script> // Mark vowels with color
      var text = document.getElementById('mark').innerHTML;
      function marker(letter) {return '<font color=red>' + letter + '</font>';}
      document.getElementById('mark').innerHTML = text.replace(/[aeiouy]/g, marker);
    </script>
    
  4. Support Staff 4 Posted by Damien Elmes on 20 Sep, 2015 10:08 AM

    Damien Elmes's Avatar

    Thanks itraveller! Moving this to the community forum.

  5. System closed this discussion on 23 Feb, 2016 12:02 AM.

  6. Damien Elmes re-opened this discussion on 23 Feb, 2016 10:50 PM

Comments are closed, but you can start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac