以下の URL から wmf2eps と windows 7 用の ps プリンタドライバをダウンロード
http://www.wolf-s.homepage.t-online.de/wmf2eps/win7.htm
で、
デバイスとプリンタをクリック
WMF2EPS Color PS L2 を右クリック
印刷設定を選択
詳細設定
(1) グラフィックスの
TrueType フォントをソフトフォンととしてのダウンロードに
(2) 一番下の PostScript オプションで
PostScript 出力オプションを EPS に
TrueType フォントダウンロードオプションを アウトラインに
とすると、wmf2eps がつかえる。
参考文献:
http://yuu.nkjm.info/diary/20091116.html
http://yuu.nkjm.info/diary/20100409.html
mzmttks's blog for my memorandum の略で mzrandum. Topics are: python, book review, and my hobbies.
2011年7月23日土曜日
2011年7月10日日曜日
2011年7月1日金曜日
Could not find encoding file "H"
Ubuntu 10.04 LTS で dvipdfmx で dvi -> pdf に変換しようとすると、
Could not find encoding file "H"
というエラーが出る。
そういうときは、
エンコーディングファイルH があるパス (/usr/share/fonts/cmap/adobe-japan1)
を、 /usr/share/texmf/web2c/texmf.cnf の
CMAPFONTS = の行に追加すればよい。
% CMap files.
CMAPFONTS = .;$TEXMF/fonts/cmap//;/usr/share/fonts/cmap/adobe-japan1/
ちなみに、
find /usr/share/ -name H で、 H があるパスは分かるし、
find /usr/share/ -name texmf.cnf で texmf.cnf があるパスは見つかる。
参考文献
https://groups.google.com/group/fj.comp.texhax/browse_thread/thread/72b421245869931d?hl=ja&pli=1
http://www.massi.mydns.jp/massis_easy_laboratory/2009/08/latexdvipdfmxencoding-file-h.html
Could not find encoding file "H"
というエラーが出る。
そういうときは、
エンコーディングファイルH があるパス (/usr/share/fonts/cmap/adobe-japan1)
を、 /usr/share/texmf/web2c/texmf.cnf の
CMAPFONTS = の行に追加すればよい。
% CMap files.
CMAPFONTS = .;$TEXMF/fonts/cmap//;/usr/share/fonts/cmap/adobe-japan1/
ここの最後。
ちなみに、
find /usr/share/ -name H で、 H があるパスは分かるし、
find /usr/share/ -name texmf.cnf で texmf.cnf があるパスは見つかる。
参考文献
https://groups.google.com/group/fj.comp.texhax/browse_thread/thread/72b421245869931d?hl=ja&pli=1
http://www.massi.mydns.jp/massis_easy_laboratory/2009/08/latexdvipdfmxencoding-file-h.html
ラベル:
tips
2011年6月2日木曜日
zip の引数にアスタリスクをつけるとくっつける順番がかわる。
いわゆる可変長引数の展開の有無です。
zip([range(5), list("abcde")])
[([0, 1, 2, 3, 4],), (['a', 'b', 'c', 'd', 'e'],)]
zip(*[range(5), list("abcde")])
[(0, 'a'), (1, 'b'), (2, 'c'), (3, 'd'), (4, 'e')]
zip([range(5), list("abcde")])
[([0, 1, 2, 3, 4],), (['a', 'b', 'c', 'd', 'e'],)]
zip(*[range(5), list("abcde")])
[(0, 'a'), (1, 'b'), (2, 'c'), (3, 'd'), (4, 'e')]
アスタリスクをつけると展開されるので、下の例は
zip(range(5), list("abcde"))
[([0, 1, 2, 3, 4],), (['a', 'b', 'c', 'd', 'e'],)]
と等価。
ラベル:
python
2011年5月20日金曜日
Ubuntu 10.10 で /dev/dsp が無い問題の解決方法
Ubuntu 10.10 には /dev/dspが標準では存在しません。
参考: http://d.hatena.ne.jp/kakurasan/20110218/p1
どうやら PulseAudio に完全に?移行したようです。
でも、/dev/dsp を使いたい機会はざらにある訳です。
で、どうするか?
padsp
を使います。
コマンドの前にただ padsp とつければ、勝手に OSS のをエミュレートして PulseAudio に送ってくれます。
以上
参考: http://d.hatena.ne.jp/kakurasan/20110218/p1
どうやら PulseAudio に完全に?移行したようです。
でも、/dev/dsp を使いたい機会はざらにある訳です。
で、どうするか?
padsp
を使います。
コマンドの前にただ padsp とつければ、勝手に OSS のをエミュレートして PulseAudio に送ってくれます。
以上
2011年5月17日火曜日
Anime recommendation for foreign people 2011 Spring (2nd)
This is the best of this season.
あの日見た花の名前を僕たちはまだ知らない
(We still do not know the name of the flower we saw these days.)
http://www.anohana.jp/
http://en.wikipedia.org/wiki/Ano_Hi_Mita_Hana_no_Namae_o_Bokutachi_wa_Mada_Shiranai
5 people (3 boys and 2 girls) were best friends in childhood.
However, because of an accident, a girl in the group died.
After a few years, the main character, Jintan, suddenly can see and talk with the girl (ghost?),
and she asks Jintan to grant her request (the request is not known even by the girl herself).
Then, Jintan tries to grant her unknown wish.
This is a tragedy, but not only a sad story.
The characters tries to get over the tragedy.
あの日見た花の名前を僕たちはまだ知らない
(We still do not know the name of the flower we saw these days.)
http://www.anohana.jp/
http://en.wikipedia.org/wiki/Ano_Hi_Mita_Hana_no_Namae_o_Bokutachi_wa_Mada_Shiranai
5 people (3 boys and 2 girls) were best friends in childhood.
However, because of an accident, a girl in the group died.
After a few years, the main character, Jintan, suddenly can see and talk with the girl (ghost?),
and she asks Jintan to grant her request (the request is not known even by the girl herself).
Then, Jintan tries to grant her unknown wish.
This is a tragedy, but not only a sad story.
The characters tries to get over the tragedy.
ラベル:
animation
2011年5月16日月曜日
Anime recommendation for foreign people 2011 Spring
I recommend a few animations in this season.
1. 花咲くいろは Hana-saku Iroha
http://www.hanasakuiroha.jp/
http://en.wikipedia.org/wiki/Hanasaku_Iroha
A female high school student, Iroha, starts working at a ryokan, a Japanese hotel
because her parents escaped from their debts.
They put Iroha in the ryokan whose Okami is Iroha's grandmother.
You can watch the backstage of a Japanese ryokan,
and the growth of Iroha.
2. 日常 Nichijou
http://www.shinonome-lab.com/
http://en.wikipedia.org/wiki/Nichijou#Anime
Comedy animation. A set of short stories.
The same company as Haruhi makes it.
It is easy because each story is short,
but difficult because this is a absurd comedy.
# Understanding comedy is the most difficult task!
Even if you cannot understand the story,
you can enjoy the cute and dynamic animation.
3. 逆境無頼カイジ Gyakkyou Burai Kaiji
http://www.ntv.co.jp/kaiji_hakairoku/
http://en.wikipedia.org/wiki/Kaiji_(manga)
A gamble animation.
The central character カイジ, who is a son of Belial with a lot of debts,
tries a dangerous gamble to clean his debts.
This is the 2nd season of 賭博黙示録カイジ (Tobaku Mokushiroku Kaiji).
I recommend you to watch the 1st season since
you are required some back story about カイジ.
You will hear a lot of slangs.
1. 花咲くいろは Hana-saku Iroha
http://www.hanasakuiroha.jp/
http://en.wikipedia.org/wiki/Hanasaku_Iroha
A female high school student, Iroha, starts working at a ryokan, a Japanese hotel
because her parents escaped from their debts.
They put Iroha in the ryokan whose Okami is Iroha's grandmother.
You can watch the backstage of a Japanese ryokan,
and the growth of Iroha.
2. 日常 Nichijou
http://www.shinonome-lab.com/
http://en.wikipedia.org/wiki/Nichijou#Anime
Comedy animation. A set of short stories.
The same company as Haruhi makes it.
It is easy because each story is short,
but difficult because this is a absurd comedy.
# Understanding comedy is the most difficult task!
Even if you cannot understand the story,
you can enjoy the cute and dynamic animation.
3. 逆境無頼カイジ Gyakkyou Burai Kaiji
http://www.ntv.co.jp/kaiji_hakairoku/
http://en.wikipedia.org/wiki/Kaiji_(manga)
A gamble animation.
The central character カイジ, who is a son of Belial with a lot of debts,
tries a dangerous gamble to clean his debts.
This is the 2nd season of 賭博黙示録カイジ (Tobaku Mokushiroku Kaiji).
I recommend you to watch the 1st season since
you are required some back story about カイジ.
You will hear a lot of slangs.
ラベル:
animation
登録:
投稿 (Atom)