<body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener('load', function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <div id="navbar-iframe-container"></div> <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script> <script type="text/javascript"> gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() { if (gapi.iframes && gapi.iframes.getContext) { gapi.iframes.getContext().openChild({ url: 'https://www.blogger.com/navbar.g?targetBlogID\x3d8211560\x26blogName\x3dTech+Tips,+Tricks+%26+Trivia\x26publishMode\x3dPUBLISH_MODE_BLOGSPOT\x26navbarType\x3dBLUE\x26layoutType\x3dCLASSIC\x26searchRoot\x3dhttp://mvark.blogspot.com/search\x26blogLocale\x3den\x26v\x3d2\x26homepageUrl\x3dhttp://mvark.blogspot.com/\x26vt\x3d-5147029996388199615', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe" }); } }); </script>

Tech Tips, Tricks & Trivia

by 'Anil' Radhakrishna
An architect's notes, experiments, discoveries and annotated bookmarks.

Search from over a hundred HOW TO articles, Tips and Tricks


Track & learn about Aphonetic Words

Aphonetic is a term a member of the English Stack Exchange forum uses to describe words whose pronunciation bears no relationship to their spelling.  These strangely pronounced aphonetic words can be troublesome as those unfamiliar with these words would be unable to guess how to pronounce them just by looking at the spelling. For example, "colonel" is pronounced as ker-nil while "gaol" is pronounced  as jeyl.
Using the trick of having Google Spreadsheet act as a read-only database, I re-used the AngularJS script I wrote to show off my book collection to track aphonetic words. Check it out to know what I'm talking about, contribute more such words in the comments section below or adapt the code to track the aphonetic words that you find strange.

I linked the words to the fastest online dictionary, Vocabulary.com to aid those who want to learn more about that word.

The source code is shared as a Github Gist. Read the instructions on how to get data stored in a Google Spreadsheet as a JSON feed in the article I wrote earlier and just modify the Google Spreadsheet key of the file where you'll add the words to track.

It currently works only in Chrome (tested in version 39). Firefox doesn't support mp3 files and I've to figure to why it doesn't work on IE 11.

StackOverflow helped me with the issues that arose with AngularJS:

* The audio file related to the pronunciation is generated dynamically & served from a Google domain. AngularJS 1.2 ships with Strict Contextual Escaping (SCE) enabled by default. As a result, URLs generated dynamically through AngularJS code throw an error. So I'm using AngularJS version 1.0.3.

* The ngCloak directive was used to prevent the Angular html template from being briefly displayed by the browser in its raw (uncompiled) form while the application is loading.

Labels: , , ,

Tweet this | Google+ it | Share on FB

« Home | Next »
| Next »
| Next »
| Next »
| Next »
| Next »
| Next »
| Next »
| Next »
| Next »

»

Post a Comment