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

FLIF Spec #2

Open
hrj opened this issue Dec 2, 2016 · 10 comments
Open

FLIF Spec #2

hrj opened this issue Dec 2, 2016 · 10 comments

Comments

@hrj
Copy link
Member

hrj commented Dec 2, 2016

Creating an issue here for further discussions.

I was planning to write the spec in AsciiDoctor format. It seems to produce pretty nice output, in HTML as well as PDF.

It also has support for specifying diagrams.

@jonsneyers
Copy link
Member

AsciiDoctor looks interesting, but let's start with markdown for now. We can convert later if it turns out we need additional features. Markdown is convenient because it can be viewed directly from github.

@hrj
Copy link
Member Author

hrj commented Dec 2, 2016

Oh yes, markdown is fine for now. Forgot to mention that.

AsciiDoc is also fully supported by Github.. see these examples

@jonsneyers
Copy link
Member

We might want to use something that allows includes (dunno if Markdown or AsciiDoc support that), so we can split the spec into multiple files (to keep it manageable) while we can still generate a single (long) document that contains the full spec.

I've been working a bit on the spec; it's going to take some effort to fully describe everything, and I get tired of it after a while, so I'm hoping others will help flesh it out :)

@panicbit
Copy link
Contributor

panicbit commented Dec 3, 2016

We might want to use something that allows includes

In that case AsciiDoc it is. AsciiDoc supports includes (and a lot of other cool stuff) and Markdown does not. http://asciidoctor.org/docs/asciidoc-syntax-quick-reference/#include-files

@jonsneyers
Copy link
Member

OK. Anyone feels like converting to AsciiDoc? I'm done editing for today...

@panicbit
Copy link
Contributor

panicbit commented Dec 3, 2016

The conversion should be trivial when relying on AsciiDoctor's Markdown compatability, i.e. simply renaming it to .adoc or .asciidoc might work.

PS: Tables need some tweaks.

@panicbit
Copy link
Contributor

panicbit commented Dec 3, 2016

Do we want to keep the Markdown-style formatting of tables i.e.

| c1 r1 | c2 r1 | c3 r1
| c1 r2 | c2 r2 | c3 r2
| c1 r3 | c2 r4 | c3 r4

or format them like in the AsciiDoctor syntax quickref shows i.e.

| c1 r1
| c2 r1
| c3 r1

| c1 r2
| c2 r2
| c3 r2

| c1 r3
| c2 r4
| c3 r4

The former has the advantage to be more compact, but is more annyoing to keep nice looking. The latter is easier to maintain but uses a lot of vertical space. (The only difference is in the raw format, the rendered view is identical.)

PS: I suppose it makes sense to use the Markdown style for tables with short text and the AsciiDoc style for tables with long text.

@hrj
Copy link
Member Author

hrj commented Dec 4, 2016

I suppose it makes sense to use the Markdown style for tables with short text and the AsciiDoc style for tables with long text.

I like that idea!

@hrj
Copy link
Member Author

hrj commented Dec 4, 2016

The former has the advantage to be more compact, but is more annyoing to keep nice looking.

BTW, if you use VimWiki, it automatically aligns tables and columns as you edit them. (Need to copy-paste between buffers when editing an AsciiDoc). There are other, dedicated plugins too.

@panicbit
Copy link
Contributor

panicbit commented Dec 4, 2016

BTW, if you use VimWiki, it automatically aligns tables and columns as you edit them. (Need to copy-paste between buffers when editing an AsciiDoc). There are other, dedicated plugins too.

Doesn't look like there's a plugin for sublime :/

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