Closed turky closed 7 years ago
以下、review-initで作成したルートのRe:VIEWファイルで確認した結果です。
$ cat test.re
= Loomings.
Call me Ishmael. Some years ago—never mind how long precisely—having
little or no money in my purse, and nothing particular to interest me on
shore, I thought I would sail about a little and see the watery part of
the world. It is a way I have of driving off the spleen and regulating
the circulation. Whenever I find myself growing grim about the mouth;
whenever it is a damp, drizzly November in my soul; whenever I find
myself involuntarily pausing before coffin warehouses, and bringing up
the rear of every funeral I meet; and especially whenever my hypos get
such an upper hand of me, that it requires a strong moral principle to
prevent me from deliberately stepping into the street, and methodically
knocking people’s hats off—then, I account it high time to get to
sea as soon as I can. This is my substitute for pistol and ball. With
a philosophical flourish Cato throws himself upon his sword; I quietly
take to the ship. There is nothing surprising in this. If they but knew
it, almost all men in their degree, some time or other, cherish very
nearly the same feelings towards the ocean with me.
There now is your insular city of the Manhattoes, belted round by
wharves as Indian isles by coral reefs—commerce surrounds it with
her surf. Right and left, the streets take you waterward. Its extreme
downtown is the battery, where that noble mole is washed by waves, and
cooled by breezes, which a few hours previous were out of sight of land.
Look at the crowds of water-gazers there.
$ review-compile --target=idgxml test.re
<?xml version="1.0" encoding="UTF-8"?>
<doc xmlns:aid="http://ns.adobe.com/AdobeInDesign/4.0/"><title aid:pstyle="h1">第1章 Loomings.</title><?dtp level="1" section="第1章 Loomings."?><p>Call me Ishmael. Some years ago—never mind how long precisely—havinglittle or no money in my purse, and nothing particular to interest me onshore, I thought I would sail about a little and see the watery part ofthe world. It is a way I have of driving off the spleen and regulatingthe circulation. Whenever I find myself growing grim about the mouth;whenever it is a damp, drizzly November in my soul; whenever I findmyself involuntarily pausing before coffin warehouses, and bringing upthe rear of every funeral I meet; and especially whenever my hypos getsuch an upper hand of me, that it requires a strong moral principle toprevent me from deliberately stepping into the street, and methodicallyknocking people’s hats off—then, I account it high time to get tosea as soon as I can. This is my substitute for pistol and ball. Witha philosophical flourish Cato throws himself upon his sword; I quietlytake to the ship. There is nothing surprising in this. If they but knewit, almost all men in their degree, some time or other, cherish verynearly the same feelings towards the ocean with me.</p><p>There now is your insular city of the Manhattoes, belted round bywharves as Indian isles by coral reefs—commerce surrounds it withher surf. Right and left, the streets take you waterward. Its extremedowntown is the battery, where that noble mole is washed by waves, andcooled by breezes, which a few hours previous were out of sight of land.Look at the crowds of water-gazers there.</p></doc>
$ review-compile --target=idgxml --nolfinxml test.re
<?xml version="1.0" encoding="UTF-8"?>
<doc xmlns:aid="http://ns.adobe.com/AdobeInDesign/4.0/"><title aid:pstyle="h1">第1章 Loomings.</title><?dtp level="1" section="第1章 Loomings."?><p>Call me Ishmael. Some years ago—never mind how long precisely—havinglittle or no money in my purse, and nothing particular to interest me onshore, I thought I would sail about a little and see the watery part ofthe world. It is a way I have of driving off the spleen and regulatingthe circulation. Whenever I find myself growing grim about the mouth;whenever it is a damp, drizzly November in my soul; whenever I findmyself involuntarily pausing before coffin warehouses, and bringing upthe rear of every funeral I meet; and especially whenever my hypos getsuch an upper hand of me, that it requires a strong moral principle toprevent me from deliberately stepping into the street, and methodicallyknocking people’s hats off—then, I account it high time to get tosea as soon as I can. This is my substitute for pistol and ball. Witha philosophical flourish Cato throws himself upon his sword; I quietlytake to the ship. There is nothing surprising in this. If they but knewit, almost all men in their degree, some time or other, cherish verynearly the same feelings towards the ocean with me.</p><p>There now is your insular city of the Manhattoes, belted round bywharves as Indian isles by coral reefs—commerce surrounds it withher surf. Right and left, the streets take you waterward. Its extremedowntown is the battery, where that noble mole is washed by waves, andcooled by breezes, which a few hours previous were out of sight of land.Look at the crowds of water-gazers there.</p></doc>
4/15変更 ( 6b1fb7d52986df0658a011a81d4b0699de4dc70e )で、IDGXMLでは改行なしをデフォルトにしたのでした(InDesign用途的に改行があるといろいろダメだったため)。
設定ファイルのほうで
nolf: null
とすれば一応改行ありで動きます。
@kmuto --nolfinxml
はdeprecatedにしますか?
そうしましょう!
--nolfinxml
がなくなると、上記の方法で改行の入ったXMLを得ることはできなくなるのでしょうか?それとも --lfinxml
のような機能的に代替となるオプションが用意されるのでしょうか?
コマンドオプションではなくYAML設定ファイルのほうでの設定は継続利用可能です。--yaml=YAMLファイル
で指定するかデフォルトのconfig.ymlに
nolf: null
と入れておけば旧来動作になるはずですが、いかがでしょう?
コマンドオプションではなくYAML設定ファイルのほうでの設定は継続利用可能です。
ご回答ありがとうございます。config.yamlでの動作は確認しています。 コメントの文脈が理解できていませんでした。
review-compile --target=idgxml でXMLを出力する際、--nolfinxmlがあってもなくても改行なしのXMLが出力されます。