<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by takahashihideki on Medium]]></title>
        <description><![CDATA[Stories by takahashihideki on Medium]]></description>
        <link>https://medium.com/@takahashihideki?source=rss-f14549615476------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*tn1CXdphpwJV7Y2k.gif</url>
            <title>Stories by takahashihideki on Medium</title>
            <link>https://medium.com/@takahashihideki?source=rss-f14549615476------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 07:44:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@takahashihideki/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[書いてあることの意味がさっぱりわからない]]></title>
            <link>https://medium.com/@takahashihideki/%E6%9B%B8%E3%81%84%E3%81%A6%E3%81%82%E3%82%8B%E3%81%93%E3%81%A8%E3%81%AE%E6%84%8F%E5%91%B3%E3%81%8C%E3%81%95%E3%81%A3%E3%81%B1%E3%82%8A%E3%82%8F%E3%81%8B%E3%82%89%E3%81%AA%E3%81%84-cd914ef7bd35?source=rss-f14549615476------2</link>
            <guid isPermaLink="false">https://medium.com/p/cd914ef7bd35</guid>
            <dc:creator><![CDATA[takahashihideki]]></dc:creator>
            <pubDate>Thu, 28 Oct 2021 17:19:41 GMT</pubDate>
            <atom:updated>2021-10-28T17:47:39.808Z</atom:updated>
            <content:encoded><![CDATA[<p>あるときから、UIWebView を内蔵したアプリは App Store でリジェクトされることになった。<br>WKWebView では、アプリの /var/mobile/Applications/&lt;UUID&gt;/tmp/ などにダウンロードしたファイルにアクセスできないということで、都度都度リモートから読まざるをえなくなった。<br>eラーニングで、音声だの動画だのを一度にたくさん再生するゴージャスなつくりのアプリだったのでたいへんな不評を買った。<br>そのうち、Xcode12 でビルドしないとリジェクトされるということになりそうしてみたら、こんどは多数の音声ファイルを連続して再生するとエラーが頻発するようになった。<br>そこで、いったんダウンロードしたファイルを File プラグインで読み込んで、それを blob に変換して audio や video 要素 の src に指定することにしてみたところ安定した。<br>しかし、iOS15 で、それもだめになった。音声と動画の同時再生ができない。動画を再生中、重ねて音声を再生しようとすると、decode できない codec といった旨のエラーが発生する。だから、動画と音声を同時に再生するのをあきらめた。<br>iOS の将来のバージョンではきっと解決されるはずだからという願いを込めた過渡的な対応のつもりだったが、今度の 15.1 では動画に重ねられた音声だけではなく、単独で再生される動画にも同じエラーが発生するようになった。<br>ためしに、都度都度リモートからロードする方式に戻してみたら、動画と音声の同時再生は相変わらず音声側にエラーが出るものの、動画の再生は安定した。今日。というか、ここ2年。<br>ろくに飲みにも行けず、煙草を80年代の中学生のようにこそこそ吸いながら、いい歳こいて、書いてあることの意味がさっぱりわからない本を読みながら。</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cd914ef7bd35" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Markdown で自分専用の英単語学習アプリを作る Textwell アクション]]></title>
            <link>https://medium.com/@takahashihideki/markdown-%E3%81%A7%E8%87%AA%E5%88%86%E5%B0%82%E7%94%A8%E3%81%AE%E8%8B%B1%E5%8D%98%E8%AA%9E%E5%AD%A6%E7%BF%92%E3%82%A2%E3%83%97%E3%83%AA%E3%82%92%E4%BD%9C%E3%82%8B-textwell-%E3%82%A2%E3%82%AF%E3%82%B7%E3%83%A7%E3%83%B3-efa675640668?source=rss-f14549615476------2</link>
            <guid isPermaLink="false">https://medium.com/p/efa675640668</guid>
            <category><![CDATA[textwell]]></category>
            <dc:creator><![CDATA[takahashihideki]]></dc:creator>
            <pubDate>Tue, 22 Mar 2016 18:51:49 GMT</pubDate>
            <atom:updated>2018-02-20T19:31:21.531Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="http://sociomedia.com/textwell/jp/">Textwell</a> のメイン画面に、たとえば次のテキストを入力してみます。</p><pre>Here’s to the **crazy** ones.</pre><pre>クレージーな人たちに乾杯。</pre><pre>----</pre><pre>The **misfits**. The **rebels**. The **troublemakers**.</pre><pre>不適合者。反逆者。厄介者。</pre><pre>----</pre><pre>The round **pegs** in the square hole.</pre><pre>四角い穴に打ち込まれた丸い杭。</pre><pre>----</pre><pre>The ones who see things **differently**.</pre><pre>物事の見方がちがう人たち。</pre><pre>----</pre><pre>They’re not **fond** of rules.</pre><pre>彼らは規則を嫌う。</pre><pre>----</pre><pre>And they have no respect for the **status** **quo**.</pre><pre>彼らは現状を肯定しない。</pre><pre>----</pre><pre>You can quote them, disagree with them, **glorify** or **vilify** them.</pre><pre>あなたは、彼らを引き合いに出したり、彼らに反対したり、彼らを賞賛したり中傷することができる。</pre><pre>----</pre><pre>About the only thing you can’t do is **ignore** them.</pre><pre>あなたにはできないたったひとつのことは、彼らを無視すること。</pre><pre>----</pre><pre>Because they **change** things.</pre><pre>なぜなら、彼らは物事を変えるから。</pre><pre>----</pre><pre>They push the human **race** forward.</pre><pre>彼らは人類を前進させる。</pre><pre>----</pre><pre>And while some may see them as the crazy ones, we see **genius**.</pre><pre>彼らはクレージーと言われるが、私たちは天才だと思う。</pre><pre>----</pre><pre>Because the people who are crazy **enough** to think they can change the world are the ones who do.</pre><pre>世界は変えられると思っているクレイジーな人たちが、世界を変えているのだから。</pre><p>このテキストは、Markdown 記法にしたがっているので、入力後、公式アクションの 「<a href="https://www.google.co.jp/webhp?sourceid=chrome-instant&amp;ion=1&amp;espv=2&amp;ie=UTF-8#safe=off&amp;q=textwell+markdown+preview">Markdown Preview</a>」 を実行すると、次のように表示することができます。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*Jlg1OxNMlbQnibRk_WDNfg.png" /><figcaption>… 以下省略。</figcaption></figure><p>** 記号で囲んだ部分が強調表示になっています。</p><p>このテキストを入力した後、「Markdown Preview」ではなく、「Word Cards (<a href="http://sociomedia.com/textwell/sa/?id=r5">Textwellにインポート</a>)」アクションを実行すると、下記のデモページのような”英単語学習アプリ”が Textwell の内蔵ブラウザで動作します。</p><blockquote><a href="http://www.takahashihideki.net/dev/wordCards/demo.html">デモページ</a> (SafariなどのWebブラウザで表示できます。)</blockquote><p>行頭から連続する四つの半角ハイフン（「Markdown Preview」では水平線で表示されます）で区切られたブロックを一枚のカードとみなし、カードをランダムに選択して一枚ずつ表示します。next ボタンをタップすると、再度カードをランダムに選択して表示します。</p><p>** 記号で囲んだ単語は、青い付箋で隠されたように表示されます。</p><p>ヘッドフォンマークのボタンをタップすると、隠された部分も含めて英文全体を読み上げる音声が再生されます。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*4_-M8ElMkVkYviyafLzcsw.png" /></figure><p>青い付箋の部分はテキスト入力欄になっており、隠されている単語と一致する文字列を入力すると、青い付箋が剥がされたような表示に切り替わります。同時に、英文に続いて入力されていた日本語訳が表示されます。</p><p>青い付箋で隠された単語が聞き取れなかったり、正確なスペルがどうしてもわからないときは、青い付箋をダブルタップします。付箋が剥がれ、隠されていた単語が表示されます。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*XTKA4oDRnets3ywimWyihQ.png" /></figure><p>このように、「Word Cards」アクションを使えば、Textwell に入力した英文のディクテーションを行うことができます。</p><h4>学習の進め方</h4><p>カードには、一枚ずつ、学習段階、学習回数、学習日時が記録されていきます。</p><p>学習段階は、unknown, learned, know, definitely know の4段階です。</p><p>はじめて表示されたカードに文字列を正しく入力して付箋を剥がすと、学習段階は、learned になります。正解できず、付箋をダブルタップして剥がすと unknown になります。複数の単語が付箋で隠されている場合は、ひとつでもダブルタップしてしまうと unknown になります。</p><p>unknown のカードが再び表示され、隠された単語を正しく入力できれば、learned になります。learned のカードが再び表示され、隠された単語を正しく入力できれば、学習段階は know になります。</p><p>カードは、最終段階である definitely know になるまで、繰り返しランダムな順番で表示されます。learned、know のカードの付箋をダブルタップしてしまうと、学習段階は unknown に戻ります。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/899/1*AR0wxhK07ceWehS08G9lvw.png" /><figcaption>学習段階は、unknown, learned, know, definitely know の4段階です。</figcaption></figure><p>画面の最上部には、definitely know に到達したカード数の割合を示すプログレスバーが表示されています。</p><p>端末を横に倒してランドスケープモードにすると、学習済みのカードに隠されていた単語の一覧を表示します。画面最上部のタブをタップして、学習段階ごとに絞り込んで表示を行うこともできます。学習回数が多い単語は大きな文字サイズで表示されます。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M5YAPZz0nFFFGS2dxDNXLw.png" /></figure><h4>学習の中断、再開</h4><p>exit ボタンをタップすると、学習段階、学習回数、学習日時を反映して、Textwell のメイン画面に入力したテキストを更新します。学習済みのカードの部分には、”複数行のコード”を整形するMarkdown 記法（各行の先頭に4つのスペース）で、次のようなテキストが挿入されます。</p><pre>　　　　status: definitely know<br>　　　　times: 4<br>　　　　date: Mon Mar 21 2016 16:25:34 GMT+0900 (JST)</pre><p>更新されたテキストを、たとえば <a href="https://www.google.co.jp/webhp?sourceid=chrome-instant&amp;ion=1&amp;espv=2&amp;ie=UTF-8#safe=off&amp;q=textwell+snap">Snap</a> してとっておき、あとで Textwell のメイン画面に呼び出して「Word Cards」アクションを実行すれば、続きから学習を再開することができます。</p><h4>単語の意味を調べる</h4><p>カードの英文部分に含まれる単語や、ランドスケープモードで表示される単語をタップすると、単語を読み上げる音声が再生されます。また、単語が選択状態になるので、コンテクストメニューから iOS の内蔵辞書で意味を調べることができます。</p><p>iOS の内蔵辞書には、使用したい辞書の選択が記憶されないバグがあります。この問題を回避するためには、下記の記事が参考になります。</p><blockquote>Apple サポートコミュニティ / iPhoneの内蔵辞書を毎回ダウンロードしなくてはならない状態。バグ？ <a href="https://discussionsjapan.apple.com/thread/10147862?start=0&amp;tstart=0">https://discussionsjapan.apple.com/thread/10147862?start=0&amp;tstart=0</a></blockquote><h4>解答時に表示するテキスト</h4><p>Textwell のメイン画面に入力するデータのうち、英文から1行空けて入力されたテキストは、青い付箋が剥がされるときに同時に表示されます。複数行を入力することができ、1行空けるごとに、段落になります。日本語訳のほか、解説やその他のメモを自由に入力しておくことができます。</p><h4>音声再生オプション</h4><p>アクションのソースで、読み上げ音声の再生に関するオプションを設定することができます。</p><pre>rate: 1.0, // 0.1 .. 10<br>pitch: 1.5 // 0 .. 2</pre><p>読み上げ速度を、rate の値で設定します。0.1 から 10 までの値を設定することができます。デフォルトの速度は 1.0 です。</p><p>音声の声の高さを、pitch の値で設定します。0 から 2 までの値を設定することができます。デフォルトの高さは 1.0 です。</p><h4>アクションのインポートとソースコード</h4><ul><li><a href="http://sociomedia.com/textwell/sa/?id=r5">「Word Cards」アクションをTextwellにインポート</a></li><li><a href="https://gist.github.com/takahashihideki-git/12dd48e73d51b2ac652b">ソースコードはこちらです</a>。</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=efa675640668" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Textwellでダイアグラムを描く]]></title>
            <link>https://medium.com/@takahashihideki/textwell%E3%81%A7%E3%83%80%E3%82%A4%E3%82%A2%E3%82%B0%E3%83%A9%E3%83%A0%E3%82%92%E6%8F%8F%E3%81%8F-3ab52094d481?source=rss-f14549615476------2</link>
            <guid isPermaLink="false">https://medium.com/p/3ab52094d481</guid>
            <dc:creator><![CDATA[takahashihideki]]></dc:creator>
            <pubDate>Mon, 06 Apr 2015 09:55:23 GMT</pubDate>
            <atom:updated>2015-04-06T09:55:23.786Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="http://sociomedia.com/textwell/jp/">Textwell</a>に入力したテキストを元に簡単なダイアグラムを描くアクションをつくりました。</p><p>作成したダイアグラムは画像として保存することができます。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/894/1*WuuUrfv3SaUKbwJSxjYY4A.png" /></figure><p><a href="http://sociomedia.com/textwell/jp/">Textwell</a> にたとえば次のようにテキストを入力して、</p><blockquote>1.Search Wikipedia</blockquote><blockquote>2.Is It<br>found?</blockquote><blockquote>3.Is there a<br>related term?</blockquote><blockquote>4.Think of<br>another<br>term</blockquote><blockquote>5.Create<br>a new<br>article</blockquote><blockquote>6.Create<br>a<br>redirect</blockquote><blockquote>1-&gt;2.</blockquote><blockquote>2-&gt;3.No</blockquote><blockquote>2-&gt;4.Yes</blockquote><blockquote>3-&gt;5.No</blockquote><blockquote>3-&gt;6.Yes</blockquote><blockquote>4-&gt;1.</blockquote><p>入力したテキストを選択して起動すると …</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/882/1*OYwqi6kv5HIvn-w15v50jQ.png" /></figure><p>アクション画面に矩形や線が表示されるので、矩形をドラッグして表示位置を調整したり、矩形を長押しして設定ダイアログを開き、色や形状やサイズを調整すると …</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/946/1*jMutWv_mYuPVat_JJyjVFg.png" /></figure><p>こんなかんじに仕上げることができます。</p><p>これは、Wikipedia の「<a href="http://ja.wikipedia.org/wiki/%E3%83%80%E3%82%A4%E3%82%A2%E3%82%B0%E3%83%A9%E3%83%A0">ダイアグラム</a>」の項の冒頭に登場する<a href="http://ja.wikipedia.org/wiki/%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB:Wikipedia_article-creation-2.svg">「ウィキペディアに新しい記事を追加するための意思決定プロセス」の図</a>を見ながら描いてみたものです。</p><p>描画エリアの下にある「Convert to PNG」ボタンを押下すると、ダイアグラムをPNG形式の画像に変換します。 iPhone の場合、ダイアグラムを長押しすると画像として保存することができます。Mac の場合はドラッグや副ボタンクリックで保存することができます。</p><p>アクション画面を閉じる際、「Replace Diagram Data」を選択すると、ダイアグラムの表示スタイルに関する定義を元の選択テキストに追加します。表示スタイルに関する定義も含めてテキストを選択してアクションを起動すると、スタイルが適用された状態でダイアグラムが表示されます。</p><p><a href="http://sociomedia.com/textwell/sa/?id=ft"><strong>アクションをTextwellにインポート</strong></a></p><p><a href="https://gist.github.com/takahashihideki-git/cd2b2f8ce5df75fe94ea">ソースコードはこちらに公開されています。</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ab52094d481" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Textwellでチャートを描く]]></title>
            <link>https://medium.com/@takahashihideki/textwell%E3%81%A7%E3%83%81%E3%83%A3%E3%83%BC%E3%83%88%E3%82%92%E6%8F%8F%E3%81%8F-f4f6e439b559?source=rss-f14549615476------2</link>
            <guid isPermaLink="false">https://medium.com/p/f4f6e439b559</guid>
            <dc:creator><![CDATA[takahashihideki]]></dc:creator>
            <pubDate>Sat, 21 Mar 2015 08:26:20 GMT</pubDate>
            <atom:updated>2015-03-21T15:14:47.335Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://github.com/FVANCOP/ChartNew.js">ChartNew.js</a> という Javascript ライブラリを使って、<a href="http://sociomedia.com/textwell/jp/">Textwell</a> に入力したデータをチャート化するアクションをつくりました。</p><p>作成したチャートは画像として保存することができます。</p><p><a href="http://sociomedia.com/textwell/jp/">Textwell</a> にたとえば次のようにテキストを入力して、</p><blockquote><em>国語 算数 理科 社会<br>78 80 75 40</em></blockquote><p>入力したテキストを選択して起動すると …</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*mbNOW7_yyyO2VcJ5kINWDA.png" /></figure><p>このような円グラフや、</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*htPssP22NbuUs20wXFtMjg.png" /></figure><p>折れ線グラフ、</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*09mrNuG0U2bvV0dMxRChqQ.png" /></figure><p>レーダーチャートなどをアクション画面に描画します。</p><p>iPhone の場合、描画されたチャートを長押しすると、画像として保存することができます。Mac の場合はドラッグや副ボタンクリックで保存することができます。</p><p>アクション画面のヘッダメニューで、9種類のチャートに切り替えることができます。</p><ol><li>Line （折れ線グラフ）</li><li>Bar（棒グラフ）</li><li>HorizontalBar （横棒グラフ）</li><li>StackedBar（帯グラフ）</li><li>HorizontalStackedBar（横帯グラフ）</li><li>Radar（レーダーチャート）</li><li>Pie（円グラフ）</li><li>Doughnut（ドーナツグラフ）</li><li>PolarArea（極座標グラフ）</li></ol><p>また、次のように複数のデータ行を入力して</p><blockquote>国語 算数 理科 社会<br>太郎 76 56 65 43<br>花子 23 45 65 76</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*fwDqLUxT_K9yaaLpuOi_IQ.png" /></figure><p>このように、複数のデータ行を重ね合わせたチャートを描画することもできます。</p><p>ただし、円、ドーナツ、極座標グラフでは複数のデータ列を重ねることはできません（複数のデータ行に対して選択された場合は、1行目のデータをグラフ化します）。</p><p><a href="http://sociomedia.com/textwell/sa/?id=ep"><strong>アクションを Textwell にインポート</strong></a></p><p><a href="https://gist.github.com/takahashihideki-git/5a7b27a8914d083d8927">ソースコードはこちらに公開されています</a>。</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f4f6e439b559" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>