JavaFX で英語力を補う

JavaFX

このエントリーは、JavaFX Advent Calendar 2014, 11日目のおまけです。

昨日は @toruwest さんの「JavaFXのTreeViewでアニメーションしてみる」でした。

明日は @skrb さんの「Java Advent Calendarと一緒になにか書きます」です。

JavaFX Advent Calendar 2014、6日目の Katsumi Kokuzawa さんの「JavaFXでMarkdownエディタを作る」を読んで

リアルタイムに入力されたテキストが変換され表示されるのって格好いいなぁって思ったので自分もチャレンジしてみた。

私は英語が駄目な残念な人間なので Google さんと JavaFX さんに助けてもらうことにしました。

翻訳と音声は java-google-translate-text-to-speech を利用させていただきました。

翻訳は下記 FXMLDocumentController クラスのソースコード 145 行目から 152 行目までのところで処理をしています。

文字を一部置き換えているのはエラーが出るためのその場しのぎの適当な対応です。

それと長文になるとエラーが出ます。

そういう仕様なのかバグなのか、使い方が悪いのかは解りません。(^_^;)

とりあえず的な(使い物にならない)翻訳機を作ったよというお話しでした。

動画とプログラムのコードを貼っておきます。

 

これで英語力が上がるとうれしいけど努力しないでってのは完全に無理な話しですね。

JavaFX 楽しい!

Hatena タグ:

« »

Comment

  1. good job!
    It’s a useful sample.
    But,your blog is difficult to understand for me,because I never learned Japanese.so,I can understand the code only.
    It’s great if your blog could be write in English.

    返信

  2. Laptop computers make great Christmas gifts, but there are
    so many to choose from today and often times it can be hard to decide which ones are
    the very best. To begin with, the price of the laptops ought to be reasonable because
    most from the students do not have access to enough savings
    to get one. best laptops for college pc laptops for college Because of this, laptops are now being put in smaller and smaller casing, which enhances the threat of overheating,
    as there is less room for air to circulate.

    Toshiba Satellite M645- S4055 costs about $1,050 and is considered to be the most
    effective choice for gamers. Anyone trying to find a laptop that needs to
    last several years would be best served by buying an ASUS or
    Toshiba laptop.

    返信

  3. And it truely does work well when using either a desktop or laptop computer that
    comes with a S-video port. s demands as well as their needs
    always are considered and satisfied from the company
    by giving them with the appliance that leaves them fully
    contented of purchasing the right machine. hdmi cable with rca jacks cable cord best
    buy

    返信

  4. Such reasons tend to make a long distinct consumers in a very
    store that posts cheap laptops available signs for their
    windows. This can make it possible to savor games but additionally use the M11x for approximately five hours on battery (your
    exact life cycle of battery will depend around the processor you decide on).

    Gaming laptop vs regular laptop If you’re looking to the cheaper option, you might need a HP laptop.

    To ensure the most beneficial possible and enhanced gaming experience you have to
    select high quality Laptops. From my make sure reviews I think
    that one of the most dominate make of best gaming laptop under 800 headsets will be the Turtle Beach Ear – Force brand.

    返信

  5. The users never got used towards the system of pressing
    Up and Down buttons for changeing frequencies or channels, this also model promised to handle this issue.
    Actually these modern manufacturers allow those services to meet emerging
    the needs in the customers. Baofeng cross mode As the word goes, music can soothe even the most
    savage beast.

    Finally, hack the computer outside Vera’s room to shut around the speakers.
    baofeng repeater uv-5r
    ht You obtain the facility of downloading the favorite new music or other applications for upcoming listening.

    Everybody inside media understood that time that it is very serious,
    not a sort of joke.

    返信

Leave a Reply to hdmi cable with rca jacks (or Cancel)

* が付いている項目は、必須項目です!

次の HTML タグと属性を利用できます: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

*

Trackback URL