Commit Graph

121 Commits

Author SHA1 Message Date
Daniel James
a2b3c3aa04 Quickbook: Merge from trunk to quickbook-dev.
[SVN r73365]
2011-07-25 21:41:36 +00:00
Daniel James
bf1d753dba Merge tools directory from trunk.
[SVN r72698]
2011-06-20 19:19:56 +00:00
Daniel James
de2fc3754c Quickbook: Overwrite duplicate macros in 1.6
[SVN r70977]
2011-04-04 22:10:45 +00:00
Daniel James
85e8c03d70 Quickbook: Include code file in 1.6.
[SVN r70960]
2011-04-03 19:19:07 +00:00
Daniel James
100766d570 Quickbook: New tests. Mostly state tracking.
[SVN r70868]
2011-04-02 17:43:52 +00:00
Daniel James
f6c565eddb Quickbook: explicit list markup. Refs #1193.
[SVN r70232]
2011-03-20 21:46:10 +00:00
Daniel James
86d40a07a9 Quickbook: Rewrite relative path.
- Do the normalization ourselves, so we don't use a deprecated function.
  Refs #2923
- Move more of the logic into `path_difference` and try to make it
  easier to read, because I found it a bit difficult.

[SVN r70231]
2011-03-20 21:41:42 +00:00
Daniel James
345f0a2648 Quickbook: pass-thru comments.
[SVN r70207]
2011-03-19 19:22:45 +00:00
Daniel James
ec6300c841 Quickbook: further improvements for simple markup.
[SVN r70196]
2011-03-19 16:28:49 +00:00
Daniel James
3b09b15f55 Quickbook: A couple of hidden flags for testing.
[SVN r70187]
2011-03-19 15:09:54 +00:00
Daniel James
de6a388a35 Quickbook: merge 'values' from quickbook-filenames branch.
[SVN r70177]
2011-03-19 11:45:49 +00:00
Daniel James
1ffd3ed233 Quickbook: doc info improvements.
- Fix handling empty category attributes.
- Quickbook 1.6: Scope source mode changes to the file they're made in.



[SVN r70176]
2011-03-19 10:47:02 +00:00
Daniel James
6500170f49 Pass-thru comments.
[SVN r70018]
2011-03-16 09:12:01 +00:00
Daniel James
ffade9f2bb Cherry pick quickbook test improvements.
- Encode the full paths into `quickbook-testing.jam` so it can be used from
  other locations.
- Turn off debug symbols on Visual C++, they cause the build system to do
  something odd to the tests.


[SVN r69823]
2011-03-10 18:41:20 +00:00
Daniel James
fddc8c896c Explicit list markup. Refs #1193
I don't think paragraph markup would be very useful right now, because
it wouldn't be usable in a phrase context.

These can't be templates because templates are implicitly wrapped in
paragraphs.

[SVN r69438]
2011-03-01 09:15:09 +00:00
Daniel James
a4b2852551 Fail if boostbook escape isn't closed.
[SVN r69309]
2011-02-26 18:31:58 +00:00
Daniel James
f8635bcb41 Another testing flag to allow testing xinclude.
Not ideal, since not testing normal use. But at least it would have
caught the error fixed in [68308].

[SVN r69181]
2011-02-22 20:47:15 +00:00
Daniel James
e4bddcebe5 Flag for testing errors.
quickbook-fail-test couldn't distinguish between correctly handled
errors and bugs, so add quickbook-error-test which will only succeed for
quickbook errors.

[SVN r69180]
2011-02-22 20:45:26 +00:00
Daniel James
a336eda585 Only use debug-symbols=off for msvc.
[SVN r68942]
2011-02-16 08:28:16 +00:00
Daniel James
d92609023f A value type for quickbook data.
[SVN r68882]
2011-02-15 00:20:10 +00:00
Daniel James
d24e78acac Move other doc-info tests into subdirectory.
[SVN r68879]
2011-02-15 00:17:45 +00:00
Daniel James
adece17fc6 Turn debug symbols off when testing quickbook.
Fixes an odd error with the Boost Build Visual C++ tool.

[SVN r68562]
2011-01-30 11:36:07 +00:00
Daniel James
c51e3add8f Smarter anchor support.
[SVN r67324]
2010-12-19 13:26:55 +00:00
Daniel James
d55ea7699b Use a different feature name for quickbook-define in the tests.
Something was going wrong, this is the easiest fix.

[SVN r67089]
2010-12-07 20:42:59 +00:00
Daniel James
6c3f05ca9d Restore \n support to quickbook.
[SVN r66292]
2010-10-30 23:16:21 +00:00
Daniel James
17adae094e More link tests.
[SVN r65422]
2010-09-14 20:50:51 +00:00
Daniel James
c2b5212d49 Only stack macros when necessary.
Pushing and popping symbol containers is pretty expensive, so try to do
it less.

[SVN r65102]
2010-08-29 11:18:51 +00:00
Daniel James
4b41d22c87 Merge multiple listitems in varlistentry.
Docbook only allows a single `listitem` in a `varlistentry` so combine
multiple items into a single item.

[SVN r64831]
2010-08-15 16:48:10 +00:00
Daniel James
e641698536 Better parser for code blocks.
* A line containing a comment with no identation will now end a code
  block.
* Code blocks no longer need to be followed by a blank line.

[SVN r64829]
2010-08-15 16:46:18 +00:00
Daniel James
6b6aad78a6 Ids for headings.
[SVN r64826]
2010-08-15 16:43:40 +00:00
Daniel James
8fe8e33699 Fix command line macros in quickbook.
[SVN r64825]
2010-08-15 16:41:54 +00:00
Daniel James
230a211767 Check the quickbook version is valid.
[SVN r63814]
2010-07-10 15:03:45 +00:00
Daniel James
c6d769cf0d Make repeated quickbook image attributes a warning rather than an error.
[SVN r63813]
2010-07-10 15:03:07 +00:00
Daniel James
f3a52f99ee Fix duplicate image attribute detection.
[SVN r63735]
2010-07-08 07:14:03 +00:00
Daniel James
9d9721f79e Fix xml encoding in a few places.
[SVN r63734]
2010-07-08 07:13:26 +00:00
Daniel James
db2cfd0d79 Fix documentation info handling in included files. Refs #3907.
[SVN r63733]
2010-07-08 07:12:43 +00:00
Daniel James
3127d2fd1b Fix identifier generation for headings. Refs #1436.
[SVN r63732]
2010-07-08 07:11:58 +00:00
Daniel James
a47a09e259 Clear template_info before parsing a template.
Sometimes template_info contains values from a previous failed parse. I
think this makes the last change unnecessary, but I'm going to leave it
in as I feel like it improved the grammar.

[SVN r63609]
2010-07-04 16:54:44 +00:00
Daniel James
f4834d5c6a Make author parsing a little stricter.
[SVN r63607]
2010-07-04 16:53:25 +00:00
Daniel James
38275cb119 Fix paragraph mark up.
* Require an eol after comments, so that an eol with content after it is
  interpreted as a paragraph.
* 'eol >> eol' => 'eol >> *blank_p >> eol_p' so that lines containing
  only a comment aren't interpreted as paragraph breaks.
* +eol after 'inside paragraphs' so that all the whitespace following
  a paragraph is swallowed up. If it wasn't then it'd create lots of
  empty paragraphs when there's a lot of whitespace.

[SVN r62700]
2010-06-10 00:14:56 +00:00
Daniel James
796b9eb078 Support multiple categories. Refs #1200.
[SVN r62471]
2010-06-06 07:23:44 +00:00
Daniel James
a2f0b2a06d Avoid extra space around footnotes.
[SVN r62468]
2010-06-06 07:22:08 +00:00
Daniel James
d112cf35e3 Some of the tests from the spirit2 branch.
[SVN r62462]
2010-06-06 07:18:56 +00:00
Daniel James
bd7ab855b3 Add a unicode escape sequence.
[SVN r60053]
2010-03-01 19:40:15 +00:00
Daniel James
a126dcf0fd Don't allow '[' in simple_markup. Fixes #1844.
[SVN r59711]
2010-02-16 22:34:09 +00:00
Daniel James
876c08b3e8 Deal with mismatched section tags in templates.
[SVN r59710]
2010-02-16 22:33:49 +00:00
Daniel James
ea57bed3d3 Support UTF-8 BOM if present.
I'm not sure if the utf-16/32 checks are the right thing to do, but as
quickbook only supports utf-8 for now, they'll work okay. Hopefully if
it ever support other encodings this should be offloaded to an
appropriate library.

[SVN r59677]
2010-02-14 13:09:52 +00:00
Daniel James
34683b6ac9 Change include test to demonstrate quickbook's slightly odd behaviour.
[SVN r59532]
2010-02-06 21:18:15 +00:00
Daniel James
856691d124 Simple include test.
[SVN r59527]
2010-02-06 15:12:55 +00:00
Daniel James
538d75710e Add a newline after callout bodies, to avoid confusing the quickbook parser.
[SVN r58040]
2009-11-29 21:06:23 +00:00
Daniel James
df40ab1e37 Merge some non-spirit 2 changes from the spirit 2 branch.
Mostly administrative, but also disable xinclude test as it fails on some
platforms due to the different paths used by boost build, I'm not sure how to
fix it.


[SVN r58034]
2009-11-29 19:16:42 +00:00
Daniel James
84bcb02298 Use qualified ids in tables, and fix a bug generating ids when there isn't a section.
[SVN r56715]
2009-10-11 16:18:04 +00:00
Daniel James
724da46536 Support image attributes. Refs #1157.
[SVN r55917]
2009-08-31 11:38:47 +00:00
Daniel James
e9e100e881 Table ids. Refs #1194.
[SVN r55913]
2009-08-31 11:37:59 +00:00
Daniel James
3b839f1eb0 Ignore spaces after 'section:' for quickbook 1.5+ Refs #2712
And warn when section id is empty after colon.

[SVN r55911]
2009-08-31 11:37:32 +00:00
Daniel James
b23d6a9de7 In quickbook 1.5 don't mix '..' and whitespace seperators for template arguments. Refs #1174
[SVN r55909]
2009-08-31 11:37:04 +00:00
Daniel James
d2e0488349 Implement static/lexical scoping for 1.5. Refs #2034.
[SVN r55908]
2009-08-31 11:36:47 +00:00
Daniel James
a087316841 Teletype source mode. Refs #1202.
[SVN r54815]
2009-07-08 21:40:46 +00:00
Daniel James
7c7c1a1765 Add a couple of tests for quickbook 1.4 behaviour to try to preserve it.
[SVN r54812]
2009-07-08 21:40:14 +00:00
Daniel James
d86a2fe747 Use our own escape character parser.
We're currently using the spirit escaped character parser. This is a
strict C parser and causes parse errors for code that we probably should
accept, such as any hexadecimal encoded characters with a value greater
than the maximum value of the current platform's 'char'.  This is \x7F
on some platforms so it rejects '\x80' upwards. As well as rejecting
characters that might be valid, it also means that quickbook will act
differently on different platforms.

In python strings, '\xaaa' is equivalent to '\xaa' + 'a', but the spirit
parser interprets this as a character with value '0xaaa'. So we probably
should accept these.

I also think we should be liberal about what we accept. IMO it isn't our
job to enforce correct C++/python, just to create a reasonable
rendering of our input. So rather than write a parser which understands
the various types of escapes, I just wrote one that ignores any
character following a backslash.

Refs #2860.

[SVN r51949]
2009-03-24 08:34:09 +00:00
Daniel James
5d51d43801 Hard fail on quickbook post process errors.
[SVN r50210]
2008-12-08 23:14:23 +00:00
Daniel James
a6b8f8aac4 Fail on a mismatched '' in the python and c++ syntax highlighters. And then ignore the rest of the code block to avoid further errors and warnings.
[SVN r50207]
2008-12-08 21:51:56 +00:00
Daniel James
0c651ef0e1 Fix processing of unmatched escape characters in code - and issue a warning for unexpected characters.
[SVN r50175]
2008-12-07 12:37:07 +00:00
Daniel James
313bd8fcc6 Keep a count of errors in quickbook, and return an error code when appropriate. Refs #1399.
[SVN r50091]
2008-12-03 19:14:42 +00:00
John Maddock
be7b4d637e Added quickbook-fail-test rule and two tests that make use of it: note that these currently fail.
[SVN r50084]
2008-12-03 09:42:52 +00:00
Joel de Guzman
4819a6657e first shot at code "import". more tweaks to come.
[SVN r36467]
2006-12-20 15:41:53 +00:00
Joel de Guzman
0f41df252c fix postprocessor self-closed tag processing
[SVN r36459]
2006-12-19 13:05:08 +00:00
Joel de Guzman
af7a7212a2 Templates!!! :)
[SVN r34054]
2006-05-22 09:00:17 +00:00
Joel de Guzman
6d3e037a59 escaped xml post processing fix + replaceable markup
[SVN r32523]
2006-02-03 09:42:17 +00:00
João Abecasis
cacbb35ffc adding smaller self-contained tests (test1 renamed to quickbook-manual).
[SVN r32437]
2006-01-27 14:03:53 +00:00
João Abecasis
8ea2b63ef3 initial import of regression testing mechanism for quickbook.
(Note: has known annoyances and limitations)


[SVN r30806]
2005-09-05 01:50:41 +00:00