Commit Graph

20 Commits

Author SHA1 Message Date
Daniel James
73fb7e02de Make include file order more consistent on different machines.
Sometimes when including files on the path the same glob will match the
same relative path from different include paths. In this case the paths
were ordered by their absolute paths. Instead use the order they occur
in the include path, which is a little more independent of the local
machine.

[SVN r86708]
2013-11-14 20:00:24 +00:00
Daniel James
103cf67e08 Support source code tagging for sections.
[SVN r86667]
2013-11-12 20:35:14 +00:00
Daniel James
4dcb1f3e21 Support source code tagging for lists.
[SVN r86665]
2013-11-12 20:34:23 +00:00
Daniel James
8939758300 Stack tagged source modes.
For when one tagged element is inside another.

[SVN r86664]
2013-11-12 20:33:59 +00:00
Daniel James
56d1ffd246 Track the order of source mode tags.
So if there are two clashing source mode tags, then the latter one can
be used.

[SVN r86663]
2013-11-12 20:33:36 +00:00
Daniel James
c70fb3ed5e Rename input_path.?pp to native_text.
[SVN r86645]
2013-11-12 09:16:18 +00:00
Daniel James
c9a92586bb Rename structs and variables for include paths.
[SVN r86644]
2013-11-12 09:15:40 +00:00
Daniel James
50f84a32ad Store source mode as tag rather than string.
[SVN r86640]
2013-11-12 09:14:07 +00:00
Daniel James
0b72cf60d8 Rename id_manager to document_state.
[SVN r86635]
2013-11-12 09:12:17 +00:00
Daniel James
ba9e2ed772 Encode the filename macro.
Also tweak the utils string functions.

[SVN r85807]
2013-09-20 19:52:38 +00:00
Daniel James
8e8635dc79 Make list generation state part of the output state.
Which sounds obvious when it's put like that. But I originally did this
in the parser because the parser was tracking lists anyway. But that
made a mess of handling `[ordered_list]` and `[itemized_list]`, I tried
fixing that but made a pig's ear of it.

The code for handling 'explicit lists' will still be a bit messy because
the generator is currently oblivious to what type of block element it's
generating markup for, and it needs to be aware for lists.

[SVN r85339]
2013-08-13 22:21:39 +00:00
Daniel James
850458074a Stop saving phrase and block output separately.
[SVN r85338]
2013-08-13 22:21:17 +00:00
Daniel James
25e37cd618 Generate simpara for ordered_list and itemized_list.
Also fixes block elements nested in lists.

[SVN r85326]
2013-08-12 21:35:29 +00:00
Daniel James
e75a070a0a Attempt at better list markup.
Doesn't work for: templates in lists or explicit list block elements
(because it detects when it's in a list based on the parser), but it is
usually at least as good as the older version.

This kind of thing would be much easier if I represented the lists in
data rather than translating them as they are parsed. Not sure if I'll
do that soon though.

[SVN r85247]
2013-08-08 21:22:52 +00:00
Daniel James
c5e77194c0 Single state saver.
It's always okay to save `template_depth` and `min_section_level`
because they only change at template calls, and template calls are
always cleanly nested.

[SVN r85129]
2013-07-23 08:23:07 +00:00
Daniel James
7fb3d706e1 Move dependency tracking into a separate class.
[SVN r83124]
2013-02-24 11:23:35 +00:00
Daniel James
80e65f66fe Quickbook: Deal with checked paths that aren't present. Refs #6691.
I think that the dependencies should just be files that were loaded, so
I changed it to do that, but added an extra (hidden for now) option to
list all paths that were checked, staring with a `+` for files that are
present, and `-` for files that are absent.

Also fixed a bug with the path resolver.

[SVN r77973]
2012-04-14 17:33:14 +00:00
Daniel James
23fbf1a714 Quickbook: Further dependencies development. Refs #6691
- Include relevant locations on path where file wasn't found.
- Improve `include_search` while I'm at it.
- Normalize paths for non-existent files.
- Tests, not integrated with Boost.Build yet. Needs to check that
  python is available then run the script with the location of the
  quickbook executable.

[SVN r77598]
2012-03-27 23:00:48 +00:00
Daniel James
a17fd624c7 Quickbook: Track dependencies in state. Refs #6691
- Use cananoical filenames where possible.
- Remove duplicates.
- Include SVG files.
- Less hacky.

[SVN r77490]
2012-03-22 23:19:30 +00:00
Daniel James
bcd3ca2aa5 Quickbook: Rename actions to state.
[SVN r76644]
2012-01-22 23:06:56 +00:00