Thibaut Cuvelier
e995414917
DocBook: avoid generating fonts for "special cases" like equations.
2020-09-19 20:43:39 +02:00
Thibaut Cuvelier
654559feb8
DocBook: fix line issues around programlisting.
2020-09-19 20:43:39 +02:00
Thibaut Cuvelier
6688b076cc
DocBook: fixes in lists.
...
Actually output something when list item is empty. XMLStream discarded the sequence StartTag/EndTag (nothing in between).
New-line behaviour around term in description lists.
2020-09-19 20:43:39 +02:00
Thibaut Cuvelier
5b01c80635
DocBook: fix titles in KOMA Script.
2020-09-19 20:43:39 +02:00
Thibaut Cuvelier
976bd91fc2
DocBook: bug fixing with wrapper merging.
2020-09-19 20:43:39 +02:00
Thibaut Cuvelier
ec0f4885a7
DocBook: fix bibliographies (end of <bibliography> and sections).
2020-09-19 20:43:39 +02:00
Thibaut Cuvelier
642b18aad0
DocBook: generate <partintro> when required.
2020-09-19 20:43:38 +02:00
Thibaut Cuvelier
17b06f5336
DocBook: streamline code to handle sections.
2020-09-19 20:43:38 +02:00
Thibaut Cuvelier
f219fe1cd7
DocBook: streamline code to handle abstracts.
2020-09-19 20:43:38 +02:00
Thibaut Cuvelier
39ad6e84f0
DocBook: improve equation formatting (new lines for block equations).
2020-09-19 20:43:38 +02:00
Thibaut Cuvelier
fc2c36289b
DocBook: rewrite makeListEnvironment.
2020-09-19 20:43:38 +02:00
Thibaut Cuvelier
8656fbd520
DocBook: start splitting environment handling in two, to have proper things for lists.
2020-09-19 20:43:38 +02:00
Thibaut Cuvelier
1bd49f9c39
DocBook: make all make* functions have the same argument order.
2020-09-19 20:43:38 +02:00
Thibaut Cuvelier
fc0999a422
DocBook: partially remove use of bpit/epit in docbookParagraphs and docbookSimpleAllParagraphs.
...
This will help with the next refactoring to be much cleaner (only work with iterators, don't maintain twice the same information).
2020-09-19 20:43:38 +02:00
Thibaut Cuvelier
52b2d3f683
DocBook: make Paragraph::simpleDocBookOnePar return a list of paragraphs.
...
Before, it directly wrote to the XMLStream, but it made implementation of new lines tricky. Now, it returns the XML for each sub-paragraph (delimited by new lines) as a string, so that the caller can adopt a more precise behaviour (such as in lists).
2020-09-19 20:43:38 +02:00
Thibaut Cuvelier
faaf780bed
DocBook: fix compilation issues.
2020-09-19 20:43:38 +02:00
Thibaut Cuvelier
3d348818e0
DocBook: Coverity potential problem for precooked bibliographies.
2020-09-19 20:43:38 +02:00
Thibaut Cuvelier
ac46456b28
DocBook: simplify precooked bibliography code.
2020-09-19 20:43:38 +02:00
Thibaut Cuvelier
6a4d3dbef7
DocBook: remove useless includes.
2020-09-19 20:43:38 +02:00
Thibaut Cuvelier
d8651cc60b
More functions in anonymous namespace.
2020-09-19 20:43:37 +02:00
Thibaut Cuvelier
25f72d392c
DocBook: fine tuning of new lines.
2020-09-19 20:43:37 +02:00
Thibaut Cuvelier
9393ca74ba
DocBook: new logic to handle the new lines, only used in output_docbook for now.
2020-09-19 20:43:37 +02:00
Thibaut Cuvelier
87dae26e4a
Simplify code to generate only one paragraph at a time.
2020-09-19 20:43:37 +02:00
Thibaut Cuvelier
dab71087cf
DocBook: add a layout tag to tell whether an item is the abstract or not.
2020-09-19 20:43:37 +02:00
Thibaut Cuvelier
7b0f9d9524
DocBook: simplify code to handle abstracts.
2020-09-19 20:43:37 +02:00
Thibaut Cuvelier
0f145c3ef0
DocBook: use DocBookWrapperMergeWithPrevious in the code.
2020-09-19 20:43:37 +02:00
Thibaut Cuvelier
72c304a629
DocBook: make openParTag/closeTag use paragraphs instead of layouts.
...
Not useful per se, but will be next with checking whether the wrapper tags should be opened/closed.
2020-09-19 20:43:37 +02:00
Thibaut Cuvelier
c417253d0b
DocBook: use DocBookItemTag within paragraphs.
...
This is at least helpful for AAS, even though it slightly resembles a repurposition of that parameter.
2020-09-19 20:43:37 +02:00
Thibaut Cuvelier
1a09086ec2
Merge findLastParagraph and findLastBibliographyParagraph to lower code duplication.
...
Maybe these functions should move to ParagraphList.h/cpp?
2020-09-19 20:43:37 +02:00
Thibaut Cuvelier
4d78fe5957
Slight code-consistency improvements.
2020-09-19 20:43:36 +02:00
Thibaut Cuvelier
a852706bf0
DocBook: allow empty paragraphs before the <info> section.
2020-09-19 20:43:36 +02:00
Thibaut Cuvelier
348297520f
Revert "DocBook: allow empty paragraphs before the <info> section."
...
This reverts commit c6937cece9
.
2020-08-03 22:58:15 +02:00
Thibaut Cuvelier
ab4f22beb9
Revert "Slight code-consistency improvements."
...
This reverts commit 6bcc0155b6
.
2020-08-03 22:57:41 +02:00
Thibaut Cuvelier
dedeb885f8
Revert "Merge findLastParagraph and findLastBibliographyParagraph to lower code duplication."
...
This reverts commit 20d65b9d97
.
2020-08-03 22:57:22 +02:00
Thibaut Cuvelier
fe8aff31fd
Revert "DocBook: use DocBookItemTag within paragraphs."
...
This reverts commit 49b998f99b
.
2020-08-03 22:57:11 +02:00
Thibaut Cuvelier
21c92c8a12
Revert "DocBook: make openParTag/closeTag use paragraphs instead of layouts."
...
This reverts commit 3d7c802c22
.
2020-08-03 22:56:55 +02:00
Thibaut Cuvelier
4c01ab9ecf
Revert "DocBook: use DocBookWrapperMergeWithPrevious in the code."
...
This reverts commit 62c9f4332d
.
2020-08-03 22:56:25 +02:00
Thibaut Cuvelier
c2be69187c
Revert "DocBook: eat a bit of that spaghetti code."
...
This reverts commit 25bcbe7666
.
2020-08-03 22:56:16 +02:00
Thibaut Cuvelier
42eca3d8d6
Revert "DocBook: simplify code to handle abstracts."
...
This reverts commit 0199e048ff
.
2020-08-03 22:56:06 +02:00
Thibaut Cuvelier
f025538c95
Revert "DocBook: add a layout tag to tell whether an item is the abstract or not."
...
This reverts commit 5ccd63eff6
.
2020-08-03 22:55:52 +02:00
Thibaut Cuvelier
5ccd63eff6
DocBook: add a layout tag to tell whether an item is the abstract or not.
2020-08-03 16:04:58 +02:00
Thibaut Cuvelier
0199e048ff
DocBook: simplify code to handle abstracts.
2020-08-03 16:04:58 +02:00
Thibaut Cuvelier
25bcbe7666
DocBook: eat a bit of that spaghetti code.
2020-08-03 16:04:58 +02:00
Thibaut Cuvelier
62c9f4332d
DocBook: use DocBookWrapperMergeWithPrevious in the code.
2020-08-03 16:04:58 +02:00
Thibaut Cuvelier
3d7c802c22
DocBook: make openParTag/closeTag use paragraphs instead of layouts.
...
Not useful per se, but will be next with checking whether the wrapper tags should be opened/closed.
2020-08-03 16:04:58 +02:00
Thibaut Cuvelier
49b998f99b
DocBook: use DocBookItemTag within paragraphs.
...
This is at least helpful for AAS, even though it slightly resembles a repurposition of that parameter.
2020-08-03 16:04:58 +02:00
Thibaut Cuvelier
20d65b9d97
Merge findLastParagraph and findLastBibliographyParagraph to lower code duplication.
...
Maybe these functions should move to ParagraphList.h/cpp?
2020-08-03 16:04:58 +02:00
Thibaut Cuvelier
6bcc0155b6
Slight code-consistency improvements.
2020-08-03 16:04:57 +02:00
Thibaut Cuvelier
c6937cece9
DocBook: allow empty paragraphs before the <info> section.
2020-08-03 16:04:57 +02:00
Thibaut Cuvelier
875f7d42e2
DocBook: avoid generating empty paragraphs instead of new pages.
...
As this required to first generate the paragraph before outputting it if necessary, tests like XMLStream::isTagOpen no more worked properly. This also refactors table handling to get rid of that case (and make code easier to read).
2020-08-02 04:03:39 +02:00