On Sat, Jul 26, 2014 at 9:40 PM, <oui(a)mailoo.org> wrote:
Hi Jose
Your answer is in my view very important and very good for all user being operating with texts! Thank you very much! Probably it is also included in the manual but it is very difficult to find the item of manual...
For people willing to treat linguistic problems and making them attractive for other people, two or three things can help a lot:
- show a jpeg picture of the object of the word or fact being related by the
sentence
- send a wave file (or mp3), to show or check how to pronounce.
How to send both to the standard output and
- clear the screen (as far as probably needed)
before to continue the dialogue?
Thanks for your kind comments!
Regarding your suggestion for linguistic applications, I am not sure if I understand well the context. Clearly, playing sounds and showing images is possible when writing full graphical user interfaces (where one of the most portable ways is using the browser as a backend with the HTML libraries).
Sound and images are a bit different to handle. Sounds are easy to play using external libraries or programs (e.g., system('afplay hello.mp3') in Mac OS X). Images can be displayed in new windows in a similar way. Some useful commands are:
- afplay : play sounds on Mac OS X - mpg123 : equivalent for Linux (may not be installed by default) - open : open documents on Mac OS X (useful for images) - xdg-open : equivalent for Linux - say : text-to-speech on Mac OS X - festival : equivalent for Linux (may not be installed by default)
Displaying images inline in the Ciao toplevel is more difficult, but possible with some elisp magic.