<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shangtian</author_name>
  <author_url>https://blog.hatena.ne.jp/shangtian/</author_url>
  <blog_title>shangtian’s blog</blog_title>
  <blog_url>https://www.shangtian.tokyo/</blog_url>
  <categories>
    <anon>中国語</anon>
    <anon>html</anon>
  </categories>
  <description>はじめに htmlで中国語を書く時に、ピンインをどうやって漢字の上に振るのかわからなかったのでメモ。 ついでにpythonでピンイン変換して、htmlを出力してみた。 コード htmlは以下のとおり。 www.shangtian.tokyo &lt;html&gt; &lt;head&gt; &lt;/head&gt; &lt;body&gt; &lt;ruby&gt;你好&lt;rt&gt;nihao&lt;/rt&gt;&lt;/ruby&gt; &lt;/body&gt; &lt;/html&gt; pythonでピンイン変換して出力した。 import pypinyin def pinyin(word): s = '' #for i in pypinyin.pinyin(word, style=pypi…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.shangtian.tokyo%2Fentry%2F2022%2F02%2F17%2F132758&quot; title=&quot;htmlでピンイン(拼音)を振る方法 - shangtian’s blog&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>https://cdn-ak.f.st-hatena.com/images/fotolife/s/shangtian/20211010/20211010174351.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-02-17 13:27:58</published>
  <title>htmlでピンイン(拼音)を振る方法</title>
  <type>rich</type>
  <url>https://www.shangtian.tokyo/entry/2022/02/17/132758</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
