Commit Graph

1191 Commits

Author SHA1 Message Date
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
a8862fe8a5 Quickbook: Merge from trunk.
- Add ids to more elements.
- Try to avoid generating duplicate ids.
- Simplify the grammar a little to avoid what I assume are optimization bugs in
  older versions of gcc.


[SVN r73445]
2011-07-30 16:45:08 +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
a2b3c3aa04 Quickbook: Merge from trunk to quickbook-dev.
[SVN r73365]
2011-07-25 21:41:36 +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
9b1eed66f4 Quickbook: Merge from trunk to quickbook-dev.
[SVN r73239]
2011-07-19 07:35:49 +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
34d6ee0da0 Quickbook: XML encode escaped punctuation.
[SVN r73110]
2011-07-14 19:22:57 +00:00
Daniel James
d41b4c398d Quickbook: Merge documentation fix.
Authorized by Beman.


[SVN r72860]
2011-07-02 20:25:10 +00:00
Daniel James
f81dc542d6 Quickbook: Avoid expanding __FILENAME__.
[SVN r72823]
2011-06-30 20:27:02 +00:00
Daniel James
4e631c6237 Quickbook: remove escape character support from simple markup.
Authorized by Beman Dawes.


[SVN r72775]
2011-06-27 14:02:28 +00:00
Daniel James
09165188f1 Quickbook: merge from trunk to dev.
[SVN r72762]
2011-06-26 11:07:04 +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
2f3d468aa6 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 r72723]
2011-06-23 17:46:05 +00:00
Daniel James
bf1d753dba Merge tools directory from trunk.
[SVN r72698]
2011-06-20 19:19:56 +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
a7af466135 Quickbook: Don't match double marks in simple markup.
[SVN r72545]
2011-06-11 16:57:01 +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
15ad3c2e14 Quickbook: Trying to write a gentler intro to quickbook.
[SVN r72081]
2011-05-22 15:36:07 +00:00
Daniel James
72a250506f Quickbook: fix incorrect apostrophe.
[SVN r72080]
2011-05-22 15:35:41 +00:00
Daniel James
19e0188456 Quickbook: separate structure from syntax.
The structure information will get more complex with differences
between 1.5 and 1.6, and full attribute documentation. The syntax
section could be expanded to be a more useful introduction and to link
to the various parts of the reference documentation.

[SVN r72079]
2011-05-22 15:35:09 +00:00
Daniel James
967e283496 Quickbook: Remove some dead, bad code from the tst.
[SVN r72078]
2011-05-22 15:34:48 +00:00
Daniel James
387e473e01 Quickbook: merge to release.
Includes:

- Detemplate syntax highlighter.
- Allow escaped markup in comments in highlighter.
- Remove whitespace hat was inserted after anchors.
- Use fs::path in a couple more places.
- Handle blocks inside phrases better (can happen with templates).


[SVN r71862]
2011-05-10 18:39:38 +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