unicode/js/unicode-transform.js
/**
  Shows bold and italic versions of text from the input field.
*/
Shows bold and italic versions of text from the input field.
Shows bold and italic versions of text from the input field .
function experimentFromInput() {
  var input = $('#experiment-input-text').val();
  if (input) {
    var bolded = fonthacks.toggleBold(input);
    var italicized = fonthacks.toggleItalic(input);
    var both = fonthacks.toggleBold(fonthacks.toggleItalic(input));
    var fraktur = frakturTransform(input);
    var cursive = cursiveTransform(input);
    var output = bolded + "\n=====\n" + italicized + "\n=====\n" + both + "\n=====\n" + fraktur + "\n======\n" + cursive;
    $('#experiment-output-text').val(output);
  }
  else {
    $('#experiment-output-text').val("");
  }
}
function experimentFromInput ( ) { var input = $ ( '#experiment-input-text' ) . val ( ) ; if ( input ) { var bolded = fonthacks . toggleBold ( input ) ; var italicized = fonthacks . toggleItalic ( input ) ; var both = fonthacks . toggleBold ( fonthacks . toggleItalic ( input ) ) ; var fraktur = frakturTransform ( input ) ; var cursive = cursiveTransform ( input ) ; var output = bolded + "\n=====\n" + italicized + "\n=====\n" + both + "\n=====\n" + fraktur + "\n======\n" + cursive ; $ ( '#experiment-output-text' ) . val ( output ) ; } else { $ ( '#experiment-output-text' ) . val ( "" ) ; } }
Shows bold and italic versions of text from the input field.
Shows bold and italic versions of text from the input field .
// make a new version of the input but bold, italic, and both (+ special ones) // fancy "old english" type // fancy cursive type