InDesignの表(Table)って少し変態的な存在で扱いに困る。 テキストストーリー内の Tableオブジェクトの位置を取得するのに “0×22″の箇所でアンカーされているので、これを findGrep() などで見つければいける。DOMの上から攻める場合。 逆に Tableオブジェクトから(DOMの下から攻めて)親の挿入点を取得するのどうするんだろうと思って TableObject.properties 眺めてたら storyOffset:resolve("/document[@id=1]//story[@id=235]/insertion-point[0]") ってあったので、InsertionPoint オブジェクト取得できるっぽい。 これで、一時的に表をどっかに退避してまたもどすのとか、表をアンカー付オブジェクトにぶち込むとかいろいろ出来そう。 ちなみに、 ふつうUnicod
支給スクリプト(例. supplied_script.js)に手を加えることなくパラサイトしたい。 普通、自分で書いたスクリプト(my_script.js)の中に #include "supplied_script.js" を挿入したらいい。 my_script.jsを実行時にsupplied_script.jsも実行してくれる、関数ならそれを実行すればいい。 でも、同じような内容のスクリプトがバージョンごとに(sup4.js, sup5.js, sup6.js, sup7.js)なんてなっていると、この内容ならバージョン分岐してくれよという場合もあったりするわけですが(CS用は別格として)、支給品にそんなことをいっても仕方がないので、がんばってバージョン分岐させた自分のスクリプトの中でインクルードのバージョン分岐をしてみようと、何も考えずにswitch〜case 式、if 式などで s
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く