// // photostream.mac // // author : nzawa // created : 2016-03-23 // modified : - // revision : 1.0 // // ※自分用に作ったものなので汎用性はないが、参考として公開 // InsertPhotostream: menu "figure要素挿入", "カメラ名挿入", "レンズ名挿入"; if (result == 1) { call InsertFigure; } else if (result == 2) { call InsertCamera; } else if (result == 3) { call InsertLens; } endmacro; InsertFigure: $$filename = input("figure要素を挿入します.\nファイル名を入力してください.[省略可]\n(年月自動付加 / 末尾の -large.jpg は入力不要)"); $$prefix = "/" + year + "/" + month + "/" + $$filename; if (result == 0) return; begingroupundo; insert("
\n"); insert("
\n"); insert("

"); insert("\""

\n"); insert("
\n"); insert("
\n"); insert("
撮影データ
\n"); insert("
\n"); insert("
キャプション
\n"); insert("
\n"); insert("
備考
\n"); insert("
\n"); insert("
\n"); insert("
\n"); insert("
\n"); insert("
\n"); endgroupundo; return; InsertCamera: $camera[0] = "Olympus OM-D E-M10 Mark II"; $camera[1] = "Olympus PEN Lite E-PL6"; $camera[2] = "Canon EOS 5D Mark III"; $camera[3] = "Canon PowerShot G9 X (10.2-30.6mm F2.0-F4.9)"; $camera[4] = "Canon PowerShot SX710 HS (4.5-135.0mm F3.2-F6.9)"; $camera[5] = "Olympus PEN mini E-PM2"; $camera[6] = "Olympus XZ-1 (i.ZUIKO DIGITAL 6-24mm F1.8-2.5)"; $camera[7] = "Xperia Z3 (SO-01G)"; menuarray $camera, 7; if (result == 0) { return; } else { insert($camera[result - 1]); } return; InsertLens: $lens[0] = "M.ZUIKO DIGITAL 17mm F1.8"; $lens[1] = "M.ZUIKO DIGITAL 25mm F1.8"; $lens[2] = "M.ZUIKO DIGITAL 45mm F1.8"; $lens[3] = "M.ZUIKO DIGITAL ED 12-40mm ED F2.8 PRO"; $lens[4] = "M.ZUIKO DIGITAL ED 14-42mm F3.5-5.6 EZ"; $lens[5] = "BCL-0980 (9mm F8.0 Fisheye)"; $lens[6] = "EF24-105mm F4L IS USM"; $lens[7] = "SIGMA 50mm F1.4 EX DG HSM"; $lens[8] = "M.ZUIKO DIGITAL 14-42mm F3.5-5.6 II R"; $lens[9] = "M.ZUIKO DIGITAL ED 40-150mm F4.0-5.6 R"; menuarray $lens, 9; if (result == 0) { return; } else { insert($lens[result - 1]); } return;