Commit Graph

639 Commits

Author SHA1 Message Date
Daniel James
ec22c9d052 Quickbook: Fix a test.
[SVN r74347]
2011-09-11 16:58:45 +00:00
Daniel James
bf0a45d4cb Quickbook: Change the anchor markup for headers.
Use a phrase with an id inside the header.

Using an anchor before the heading was causing problems when the heading
wasn't inside a section.

We can't use an anchor inside the header when it links to itself, as it
messes up getting the title for the link. Using an empty phrase means
that it will just get the empty title for the phrase. Thanks to John
Maddock for the idea.

This does generate slightly odd markup. We could possibly use the old
style markup whenever section depth > 0, since we would know that we're
inside a section, but that seems like an unnecessary complication.

[SVN r74346]
2011-09-11 16:58:14 +00:00
Daniel James
62a69acf85 Quickbook: Close any open sections at end of document.
[SVN r74345]
2011-09-11 16:57:23 +00:00
Daniel James
d59a0ccc3b Quickbook: Fully qualify footnote and callout ids.
[SVN r74344]
2011-09-11 16:56:49 +00:00
Daniel James
8e2707b9d4 Quickbook: Heading tests for quickbook 1.1
[SVN r74209]
2011-09-03 15:52:13 +00:00
Daniel James
ec6eb85ee2 Quickbook: Avoid a Visual C++ warning.
[SVN r74172]
2011-08-30 22:02:14 +00:00
Daniel James
62268552b7 Quickbook: Use boost::unordered::piecewise_construct.
[SVN r74144]
2011-08-29 17:14:48 +00:00
Daniel James
418b4ff3f5 Quickbook: Remove accidental commit.
[SVN r74107]
2011-08-28 15:37:32 +00:00
Daniel James
2abf117c95 Unordered: Don't 'pass thru' comment if = is repeated.
[SVN r73982]
2011-08-21 13:19:08 +00:00
Daniel James
9cd67492dc Quickbook: Don't normalize parent ids.
[SVN r73981]
2011-08-21 11:57:42 +00:00
Daniel James
4ab9f46757 Quickbook: Prioritize different generated ids.
[SVN r73980]
2011-08-21 11:56:49 +00:00
Daniel James
bd4de66c67 Quickbook: Better id generation for duplicates.
- Replaces repeated underscores with single underscores
- Truncates if they're too long.
- If the result ends with if a number, adds an underscore to separate
  that from the duplicate number.

Only doing this for the duplicate ids, so that the main generated id
doesn't change for existing documentation. Will do something similar for
all generated ids in quickbook 1.6.

[SVN r73974]
2011-08-20 23:35:20 +00:00
Daniel James
9728ef4980 Quickbook: Fix encoding of filename in include and import.
[SVN r73682]
2011-08-11 21:19:24 +00:00
Daniel James
9a97c0fe91 Quickbook: Fix C style pass-thru comments.
[SVN r73571]
2011-08-06 12:42:52 +00:00
Daniel James
4ec6f56314 Quickbook: Simplify table a bit more.
Was crashing on darwin 4.0 in release mode.

[SVN r73418]
2011-07-28 22:34:32 +00:00
Daniel James
85fa462ef1 Quickbook: Clean id placeholder replacement.
And fix some bugs.

[SVN r73407]
2011-07-27 23:50:41 +00:00
Daniel James
2b07403f19 Quickbook: Use struct consistently.
Visual C++ likes consistency, the easiest way to do that is to always use
one or the other.

[SVN r73387]
2011-07-26 20:20:59 +00:00
Daniel James
526bba19da Defined id_generator::placeholder in header.
[SVN r73386]
2011-07-26 20:20:05 +00:00
Daniel James
f0b9a3c9ff Quickbook: Make id_generator noncopyable.
[SVN r73372]
2011-07-26 07:16:46 +00:00
Daniel James
36e788ec84 Quickbook: Use an id generator to aviod collisions.
[SVN r73337]
2011-07-24 20:40:38 +00:00
Daniel James
a11dca63e1 Quickbook: Remove use of if_p/else_p.
Darwin-4.2 seems to have problems with it in release mode.


[SVN r73329]
2011-07-24 13:36:45 +00:00
Daniel James
9512f752cb Quickbook: Fix for gcc release mode.
Fixes what might be an optimization bug in gcc.

[SVN r73298]
2011-07-22 08:35:04 +00:00
Daniel James
a8205369c6 Quickbook: Use release version of quickbook.
[SVN r73297]
2011-07-22 08:34:07 +00:00
Daniel James
143bef8987 Quickbook: Add ids to tables for 1.4-.
[SVN r73263]
2011-07-20 20:28:15 +00:00
Daniel James
9b65b96e29 Quickbook: Add id to legalnotice.
[SVN r73223]
2011-07-18 23:49:27 +00:00
Daniel James
a02a3f687b Quickbook: Add ids to footnotes.
[SVN r73222]
2011-07-18 23:48:53 +00:00
Daniel James
ecc535ed3f Quickbook: Move the callout id state into actions_class.
[SVN r73221]
2011-07-18 23:48:07 +00:00
Daniel James
f81dc542d6 Quickbook: Avoid expanding __FILENAME__.
[SVN r72823]
2011-06-30 20:27:02 +00:00
Daniel James
c72d4029c0 Quickbook: xml encode escaped punctuation.
[SVN r72760]
2011-06-26 10:44:00 +00:00
Daniel James
e1a01abe02 Quickbook: start new version.
[SVN r72759]
2011-06-26 10:41:58 +00:00
Daniel James
2811b30b7b Quickbook: remove escape character support from simple markup.
It breaks the regex documentation. Will probably implement this for quickbook
1.6.


[SVN r72695]
2011-06-20 18:52:03 +00:00
Daniel James
a453b80628 Quickbook: remove odd whitespace from warning.
There was meant to be a newline there, but on second thoughts it looks
better as a single line.

[SVN r72522]
2011-06-09 19:48:16 +00:00
Daniel James
d1db6e23f1 Quickbook: don't need to store the quickbook source of simple markup anymore.
[SVN r72394]
2011-06-04 16:19:17 +00:00
Daniel James
6d126acb44 Quickbook: Don't use double marks for simple markup.
[SVN r72393]
2011-06-04 16:18:14 +00:00
Daniel James
3f3fe90bc6 Quickbook: Match macros in simple markup in the grammar.
[SVN r72392]
2011-06-04 16:17:51 +00:00
Daniel James
43486c773a Quickbook: End file with newline.
[SVN r72389]
2011-06-04 16:12:15 +00:00
Daniel James
4e654322cb Quickbook: Change log entry for syntax highlighter changes.
[SVN r71601]
2011-04-29 11:02:55 +00:00
Daniel James
21436b0415 Quickbook: Nest escapes in syntax highlighted comments.
[SVN r71144]
2011-04-09 11:29:22 +00:00
Daniel James
6f29aa5213 Quickbook: Move the syntax grammar into the implementation file.
[SVN r71143]
2011-04-09 11:29:04 +00:00
Daniel James
de17d28eda Quickbook: Detemplate the syntax highlighters.
[SVN r71142]
2011-04-09 11:28:20 +00:00
Daniel James
b403a2434d Quickbook: update tests.
[SVN r71111]
2011-04-08 06:16:00 +00:00
Daniel James
4713c1e211 Quickbook: Escapes in syntax highlighted comments.
Not great since it closes the comments around the escaped code. But to
nest it properly will require a bigger change. Would also be nice to
deal with escape in other contexts - such as strings.

[SVN r71098]
2011-04-08 00:09:59 +00:00
Daniel James
3de8d6b4f3 Quickbook: Don't add whitespace after anchors.
Tends to push anchors to the following word.

[SVN r71088]
2011-04-07 19:51:26 +00:00
Daniel James
0fe014b9ed Quickbook: Detab
[SVN r71087]
2011-04-07 19:50:50 +00:00
Daniel James
99b81b1fbf Quickbook: Avoid empty simple markups.
[SVN r71057]
2011-04-06 23:42:51 +00:00
Daniel James
d31276a383 Quickbook: Write out blocks smuggled into phrases.
Pretty clumsy, but it's a dodgy thing for the user to do. Maybe the
values could include whether they're blocks or phrases and actions could
react accordingly.

[SVN r71056]
2011-04-06 23:42:31 +00:00
Daniel James
9cb1f04aeb Quickbook: If a phrase template turns out to be a block template, treat it as a complete block.
[SVN r71055]
2011-04-06 23:42:09 +00:00
Daniel James
0079ba5981 Quickbook: turn off compile warnings.
[SVN r71009]
2011-04-05 19:37:12 +00:00
Daniel James
e601ca9979 Quickbook: Fix a few places where strings are used for filenames.
[SVN r70973]
2011-04-04 19:31:38 +00:00
Daniel James
d53ac4b7e5 Quickbook: Clean up pass_thru tests.
[SVN r70926]
2011-04-03 10:56:56 +00:00