md2keyを使った
社内LTでスライド作るのにmd2keyを使った。便利。
太字や取り消し線はまだ使えないらしい
Rich texts · Issue #11 · k0kubun/md2key · GitHub
とのこと。
調べてみた
実装できないかなと思って、applescriptで太字や取り消し線を実現できないか調べてみた。keynote見る限り、文字のスタイルにボールドはあるから案外すぐ見つかるんじゃないかと思った。
結果としては見つけられなかった。リッチテキストのプロパティがcolor, font, size
しかなかったのでそもそもできないんじゃないか(style
みたいなのがあると期待してたがなかった)。ちなみに色やフォントはうまく指定できた。
rich text n, pl rich text : This provides the base rich text class for all iWork applications. elements contains characters, paragraphs, words. properties color (color) : The color of the font. Expressed as an RGB value consisting of a list of three color values from 0 to 65535. ex: Blue = {0, 0, 65535}. font (text) : The name of the font. Can be the PostScript name, such as: “TimesNewRomanPS-ItalicMT”, or display name: “Times New Roman Italic”. TIP: Use the Font Book application get the information about a typeface. size (integer) : The size of the font.
applescriptをあんまり深追いしたくないのでこの辺でやめる。