Search notes:

JavaScript Code Snippets - Unicode related

Niqqud

Niqqud apparently count as a letter. Sometimes, they need to be removed:
<!DOCTYPE html>
<html>
<head>
  <meta content="text/html;charset=utf-8" http-equiv="Content-Type">
  <title>Niqqud</title>

  <script type="text/javascript">
    
    function print(t) {
      document.getElementById('out').innerHTML += t + '<br>';
    }
    function do_word(word) {
      print('Length of ' + word + ' = ' + word.length);
    }
    function main() {

        word_german = 'äöü';
        word_hebrew = 'אָדָם';

     //
     // Remove Niqqud
     //
        word_hebrew_without_niqqud = word_hebrew.replace(/[\u0591-\u05C7]/g, '');

        do_word(word_german);
        do_word(word_hebrew);
        do_word(word_hebrew_without_niqqud);

    }

  </script>

</head>
<body onload='main()';>

  <div id='out'>
  </div>
</body>
</html>
Github repository about-javascript, path: /unicode/niqqud.html

See also

Javascript code snippets
Unicode

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1740452595, '3.144.97.63', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/JavaScript/code-snippets/unicode/index(82): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78