Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sharing common block notations with all builder #396

Closed
takahashim opened this issue Feb 26, 2015 · 6 comments
Closed

sharing common block notations with all builder #396

takahashim opened this issue Feb 26, 2015 · 6 comments
Milestone

Comments

@takahashim
Copy link
Collaborator

HTMLBuilderの以下のブロック記法について、他のビルダーと揃えたい。

https://github.com/kmuto/review/blob/master/lib/review/htmlbuilder.rb#L25-L35

    Compiler.defblock(:memo, 0..1)
    Compiler.defblock(:tip, 0..1)
    Compiler.defblock(:info, 0..1)
    Compiler.defblock(:planning, 0..1)
    Compiler.defblock(:best, 0..1)
    Compiler.defblock(:important, 0..1)
    Compiler.defblock(:security, 0..1)
    Compiler.defblock(:caution, 0..1)
    Compiler.defblock(:notice, 0..1)
    Compiler.defblock(:point, 0..1)
    Compiler.defblock(:shoot, 0..1)

具体的には、必要そうな記法を決めて、それを(builderではなく)compilerに持っていく。

@takahashim takahashim added this to the 1.6.0 milestone Feb 26, 2015
@takahashim
Copy link
Collaborator Author

AsciiDocでは以下のparagraphがあるらしいです。

TIP, NOTE, IMPORTANT, WARNING, CAUTION

それも踏まえて、

memo, tip, info, important, caustion, notice

辺りは標準に持ってきてもといいんじゃないでしょうか。

@kdmsnr
Copy link
Collaborator

kdmsnr commented Mar 1, 2015

asciidocと合わせるとか?

@takahashim
Copy link
Collaborator Author

共通部分については合わせる方向でも良いかと思います。
AsciiDocにあるものの中ではwarningがないので付け加えますか?

@kmuto
Copy link
Owner

kmuto commented Mar 2, 2015

warning追加、いいと思います。

(ただ、InDesignだと本によってタグの扱いをいじくってるので、このあたりのブロック表現は紙面ごとにわりと適当に決めていたり。memoとかnoteを疑似的な情報格納場所にしたりすることもある)

@kdmsnr kdmsnr modified the milestones: 1.7.0, 1.6.0 Jul 2, 2015
@kdmsnr kdmsnr modified the milestones: 1.8.0, 1.7.0 Jan 3, 2016
@kmuto
Copy link
Owner

kmuto commented Apr 17, 2016

#561 にてまとめてみました。

@kmuto
Copy link
Owner

kmuto commented Apr 18, 2016

マージしました

@kmuto kmuto closed this as completed Apr 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants