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 タグ:
このエントリーをはてなブックマークに追加
Share on Facebook

« »

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. LEDs avoid getting heated up easily and because from the
    low currents, little or no energy is lost as heat.

    A period of rapid inflation expanded and cooled the Universe, resulting in the state where matter and
    energy tend to be or less evenly distributed across the entire Universe.
    Pro x led grow lights Plants contain the unequalled capacity to construct their
    particular energy.

    Grow lights are rated based on their own correlated color temperature.
    Next place several seeds inside growing cubes with regards to a quarter of your inch down.

    Many analysts warned buyers to carry off as there’s no proof regarding how
    successful this company is, and shareholders will have
    only limited voting power. Led grow lights what to look
    for opens Product reviews help these phones understand and come up with a
    decision over what type of device would suit their requirements
    best.

    返信

  5. I hope after making reference to this checklist, you may
    have narrowed down your choices on the wide range of notebook computer models available inside the computer
    store. Hence, gaming laptops are coming with 4GB or
    8GB or much more. Asus gaming laptops reviews This laptop
    has probably the most powerful mobile GPU solutions on this
    market, nevertheless the down side is which the battery is only going to last for
    around an hour.

    The Intel Core 2 Duo is top in the line processor at this time and is
    definitely one of the greatest for gaming laptops under 600
    laptops. This epic machine as really taken internet connected computers gaming on the next level.

    返信

  6. 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.

    返信

  7. Later on I could swear I saw a bar nearby, a strange thing
    indeed to have near a kiddie area. Shots in good light end up great, so when usual there exists some noise in low light conditions.
    Led light bar kit A multi-functional LED light bar might be a very beneficial piece of equipment
    that might be of great use during emergencies.

    The customizable light bars can offer you with all of the features you desire with
    all the flexibility. It is simply a quirk of an how vitamins are
    named that this four tocopherols, several tocotrienols, and dl-alpha-tocopherol are called “vitamin E”.

    These are simply some in the methods you may use to extract news at a discussion forum.
    turning led
    light bar mounts for utv Internet even delivers lots of news in Hindi like West Bengal news in Hindi,
    Bihar news, Orissa news in Hindi and plenty of others.

    返信

  8. It also has antioxidant properties, and aids bodily function by regulating the secretion of sexual
    hormones. Always consult your physician before taking any supplements or starting
    a new workout routine. 250 grams is how many tablespoons many teaspoons in 1/3 cup

    返信

  9. 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.

    返信

  10. Examples of these security systems would be the ones for tracking kids or pets.
    They is usually cheap, medium and expensive dependant on their make along with the facilities that they can provide.
    CCTV cameras 2015 com website This video camera has
    in-constructed microphone and speaker to record sounds.

    When I first discovered my father had cancer,
    it came like a big chock it’s completely true that you simply never
    think something such as this will afflict yourself or perhaps your family.
    Firstly you must ask yourself before you getting a CCTV Camera System is: What do I require this CCTV Camera system to accomplish.

    返信

  11. Amazing website for WoW gold and World of Warc wow item online kaufen raft items for sale. Buy the best tradable WoW items. Purchase WoW gold at the most affordable prices! ,wow item online kaufen;

    返信

Leave a Reply

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

*

次の 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