All Projects → hokkey → Opml2indesign

hokkey / Opml2indesign

The XSLT which convert an OPML file to InDesign importable XML

Labels

Projects that are alternatives of or similar to Opml2indesign

metadatamanagement
Metadatamanagement (MDM) - Data Search for Higher Education Research and Science Studies
Stars: ✭ 21 (+250%)
Mutual labels:  grunt
Pyregex
pyregex is a Python Regular Expression Online Tester
Stars: ✭ 282 (+4600%)
Mutual labels:  grunt
Lein template descjop
A Leiningen template(Clojure/ClojureScript Project) for Web based desktop application with Electron (atom-shell).
Stars: ✭ 394 (+6466.67%)
Mutual labels:  grunt
grunt-retire
Grunt plugin for retire.
Stars: ✭ 89 (+1383.33%)
Mutual labels:  grunt
Grunt Ng Constant
Plugin for dynamic generation of angular constant and value definition modules.
Stars: ✭ 263 (+4283.33%)
Mutual labels:  grunt
Grunt Php
Start a PHP server
Stars: ✭ 291 (+4750%)
Mutual labels:  grunt
grunt-search
Grunt plugin that searches a list of files and logs all findings in various formats.
Stars: ✭ 15 (+150%)
Mutual labels:  grunt
Grunt Responsive Images
Produce images at different sizes for responsive websites.
Stars: ✭ 726 (+12000%)
Mutual labels:  grunt
Almace Scaffolding
AMSF, a.k.a. Almace Scaffolding, a super-fast Jekyll framework fighting against the website obesity.
Stars: ✭ 275 (+4483.33%)
Mutual labels:  grunt
Kc3kai
Kantai Collection Game Viewer and Tools
Stars: ✭ 387 (+6350%)
Mutual labels:  grunt
grunt-tv4
Use Grunt and Tiny Validator tv4 to validate files against json-schema draft v4
Stars: ✭ 13 (+116.67%)
Mutual labels:  grunt
Grunt Cache Bust
Cache bust static assets using content hashing
Stars: ✭ 262 (+4266.67%)
Mutual labels:  grunt
Grunt Ts
A grunt task to manage your complete typescript development to production workflow
Stars: ✭ 317 (+5183.33%)
Mutual labels:  grunt
Angular
web项目Demo,前端采用Angular+Grunt+bower+Requirejs+Bootstrap,后台使用SpringMVC框架
Stars: ✭ 16 (+166.67%)
Mutual labels:  grunt
Assemble
Community
Stars: ✭ 3,995 (+66483.33%)
Mutual labels:  grunt
wp-mail-catcher
A fast, lightweight plugin that saves emails sent by your WordPress website.
Stars: ✭ 16 (+166.67%)
Mutual labels:  grunt
Grunt Email Workflow
A Grunt workflow for designing and testing responsive HTML email templates with SCSS.
Stars: ✭ 3,010 (+50066.67%)
Mutual labels:  grunt
Instantbootstrap
Instant Bootstrap is a quick and easy way to start creating bootstrap themes using LESS, SASS, GRUNT, and BOWER.
Stars: ✭ 5 (-16.67%)
Mutual labels:  grunt
Time Grunt
Display the elapsed execution time of grunt tasks
Stars: ✭ 531 (+8750%)
Mutual labels:  grunt
Awesome Cms Core
Awesome CMS Core is an open source CMS built using ASP.Net Core & ReactJS with module seperation concern in mind and provide lastest trend of technology like .Net Core, React, Webpack, SASS, Background Job, Message Queue.
Stars: ✭ 352 (+5766.67%)
Mutual labels:  grunt

opml2indesign

イメージ画像

opml2indexignは、OPML形式をInDesign用に整形するXMLスタイルシート(XSL)と、便利なタスクを設定したGruntfile、セッティング済みのInDesignテンプレートでできたツールです。OmniOutlinerTreeMindNodeScapple等の人気のエディタから出力したOPML形式のデータを、InDesignのドキュメントへ自動組版することができます。

デモ

実際の自動組版サンプルをPDFで閲覧できます。

上記サンプルは resources/DEMO.indd から出力しています。

使い方

クイックスタート

InDesignを使ってXSLTを適用する使い方です。最もシンプルな手順で流し込みが行えます。

OPML書類を作成

任意のソフトウェアを使い、OPML形式のファイルを作成します。Tree、MindNodePro、Scappleなどのマインドマッピングツールや、各種アウトラインエディタが対応しています。

OPMLファイルの拡張子を.xmlに変更

拡張子を書き換えると、InDesignがXMLとして解釈できるようになります。

InDesignテンプレートを

resources/ 以下のInDesignテンプレートには、8〜12レベルの見出しと本文用のスタイルがXML構造にマップ済みです。CS4のINDD形式か、CS4以降のすべてのバージョンで互換性のあるIDML形式のいずれかを使用できます。

  • a4_eng_cs4.indd, a4_eng_cs4-cc.idml - 英語用のテンプレートです。
  • a4_jpn_cs4.indd, a4_eng_cs4-dd.idml - 日本語用のテンプレートです。

InDesignでXMLを読み込む

「ファイル > XMLを読み込み...」から、先程拡張子を書き換えたXMLファイルを選択します。この時に「XSLTを適用」をチェックし、opml2indesign.xslをスタイルシートとして適用します。

Grunt.jsを使う方法

Grunt.jsを使うことで、拡張子の置き換えやXSLの適用をInDesignの外部で自動処理できます。OPMLを直接エディタで編集しながらInDesignに反映できるため、より原稿の執筆に集中できるワークフローが実現可能です。

grunt.jsとxsltprocを使用可能にする

$npm install を実行し、依存するnodeモジュールが利用可能な状態にしてください。xsltprocは、MacOSXの場合は標準でインストールされています。

ディレクトリ src/opml 直下にOPML書類を作成

gruntを実行

以下のタスクが実行されます。

  • src/opml 以下のファイルを監視
  • 変更があった場合は、XSLTを適用して build 以下へ出力

build内に出力されたXMLファイルをInDesignで読み込む

この場合では、XSLTを適用せずにそのまま読み込みを行なってください。Gruntが走り続けている間は、OPMLファイルに変更がある度にXMLファイルが再生成されます。このファイルにInDesignからリンクを設定することで、情報のリロードを簡単に行うことができるようになります。

トラブルシューティング

流し込んだテキストのスタイルがオーバーライド状態になってしまう場合

InDesignの仕様上、フレームグリッドへタグ付きテキストを流し込んだ際、フレームブリッド 自体のスタイルが優先的に適用されてしまうようです。以下の対処方法があります。

オーバーライドを全消去する場合

テキストフレーム内のテキストを「コマンド+A」ですべて選択し、段落スタイルパレットのメニューから「オーバーライドの消去」を実行します。

同じXMLファイルを2回読み込む場合

テキストが流し込まれた後、もう一度同じファイルを同じ手順で読み込み直します。2回目の読み込み時に、正しいスタイルが適用されます。

クレジット

ライセンス

opml2indexignはMITライセンスで配布されます。改変・再配布・商用利用は自由です。

Copyright (c) 2014 y_hokkey
Released under the MIT license
http://opensource.org/licenses/mit-license.php

著者

y_hokkey

1988年生まれ。多摩グラ中退のグラフィックデザイナー。印刷物/Web/電子書籍/モバイルアプリ/業務用アプリケーションといった分野のデザインに携わっています。

こんなのも作ってます。 http://metroexits.nobody.jp/

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].