Commit Graph

239 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
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
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
36e788ec84 Quickbook: Use an id generator to aviod collisions.
[SVN r73337]
2011-07-24 20:40:38 +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
c72d4029c0 Quickbook: xml encode escaped punctuation.
[SVN r72760]
2011-06-26 10:44:00 +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
6d126acb44 Quickbook: Don't use double marks for simple markup.
[SVN r72393]
2011-06-04 16:18:14 +00:00
Daniel James
43486c773a Quickbook: End file with newline.
[SVN r72389]
2011-06-04 16:12:15 +00:00
Daniel James
21436b0415 Quickbook: Nest escapes in syntax highlighted comments.
[SVN r71144]
2011-04-09 11:29:22 +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
d53ac4b7e5 Quickbook: Clean up pass_thru tests.
[SVN r70926]
2011-04-03 10:56:56 +00:00
Daniel James
70a29a9fc3 Quickbook: Another missing copyright.
[SVN r70615]
2011-03-27 10:26:37 +00:00
Daniel James
5d465edfe8 Quickbook: Add missing copyright.
[SVN r70614]
2011-03-27 10:24:56 +00:00
Daniel James
abb793e3b6 Quickbook: Iterator tests. Equality operator for values.
The equality operator is pretty inefficient. Just for testing really.

[SVN r70565]
2011-03-26 11:13:07 +00:00
Daniel James
1c9648e21d Quickbook: Clean up anchor stuff.
[SVN r70564]
2011-03-26 11:12:45 +00:00
Daniel James
352a9ca028 Quickbook: Release lists from list builder.
[SVN r70562]
2011-03-26 11:11:58 +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
85cb554400 Quickbook: use relative paths in errors and __FILENAME__.
This is more consistent than it is at the moment. For the __FILENAME__
macro, use the path relative to the original file or the location last
matched on the include path. This ensures that the macro is consistent
no matter which directory you call quickbook from.

Also enable `__FILENAME__` in debug mode - so I can test this.

[SVN r70230]
2011-03-20 21:41:18 +00:00
Daniel James
345f0a2648 Quickbook: pass-thru comments.
[SVN r70207]
2011-03-19 19:22:45 +00:00
Daniel James
4caec51e26 Quickbook: better anchor placement for lists.
[SVN r70206]
2011-03-19 19:18:51 +00:00
Daniel James
35cae039f4 Quickbook: support escapes in simple markup.
[SVN r70204]
2011-03-19 19:13:38 +00:00
Daniel James
ec6300c841 Quickbook: further improvements for simple markup.
[SVN r70196]
2011-03-19 16:28:49 +00:00
Daniel James
88b61e52b2 Quickbook: clean up the value stuff.
[SVN r70192]
2011-03-19 15:42:08 +00:00
Daniel James
96e19b221a Quickbook: Go back to using invalid markup for lists.
[SVN r70191]
2011-03-19 15:27:51 +00:00
Daniel James
97c2a337ea Quickbook: nestable elements. Refs #1193
[SVN r70189]
2011-03-19 15:19:09 +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
7b35846ec8 Quickbook: Tweak doc info for empty attributes.
Maybe these should fail.


[SVN r70186]
2011-03-19 14:53:10 +00:00
Daniel James
f7c5e244e8 Quickbook: merge further 'value' development.
[SVN r70185]
2011-03-19 14:43:12 +00:00
Daniel James
6758230e52 Quickbook: fix simple markup.
[SVN r70184]
2011-03-19 14:33:47 +00:00
Daniel James
f977003c85 Richer copyright syntax.
[SVN r70178]
2011-03-19 11:58:26 +00:00