<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>takeda25</author_name>
  <author_url>https://blog.hatena.ne.jp/takeda25/</author_url>
  <blog_title>アスペ日記</blog_title>
  <blog_url>https://takeda25.hatenablog.jp/</blog_url>
  <categories>
  </categories>
  <description>小ネタ。Perl で日本語の簡単な処理をするやり方（こういうことが簡単にできるという例で、具体的なオプションの意味等は解説していない）。コマンドラインでちゃちゃっと日本語の処理をしたい時、Perl はけっこう役に立つ。日本語の一文字を一文字として扱えるから。特に、コマンドラインやファイルのエンコーディングを UTF-8 で統一しておくといい。例えば、ひらがなの単語リストを読み込んでカタカナにするには、次のようにすればいい（「ヴ」は扱い方によって変わるので省略）。 perl -CS -Mutf8 -ple 'tr/ぁ-ん/ァ-ン/' &lt; in.txt &gt; out.txt カタカナの単語リストの最…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakeda25.hatenablog.jp%2Fentry%2F20110823%2F1314105549&quot; title=&quot;日本語の自然言語処理には Perl も便利 - アスペ日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2011-08-23 22:19:09</published>
  <title>日本語の自然言語処理には Perl も便利</title>
  <type>rich</type>
  <url>https://takeda25.hatenablog.jp/entry/20110823/1314105549</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
