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
Thibaut Cuvelier
8d115413c1
DocBook: fix delimitation of bibliographies.
2020-08-02 04:03:39 +02:00
Thibaut Cuvelier
5324566013
DocBook: use the right key when generating bibiomixed.
2020-08-01 03:39:53 +02:00
Thibaut Cuvelier
44ef3fadee
DocBook: fix encoding issues with complex ERT.
2020-07-31 20:17:38 +02:00
Thibaut Cuvelier
acdead0487
DocBook: better condition for abstracts.
2020-07-31 01:20:08 +02:00
Thibaut Cuvelier
6434b666bf
DocBook: don't output abstract if it would have no content.
...
Restore a change from e709a662
(reverted by d75ff993
) that was mixed into another commit.
Also, add a TODO for InsetIndex.
2020-07-31 00:55:00 +02:00
Thibaut Cuvelier
e153477bca
DocBook: Kornel's patch to get rid of many assertions
2020-07-30 23:22:41 +02:00
Thibaut Cuvelier
d75ff9931d
Revert "Support the mathbbm font."
...
This reverts commit e709a6626e
.
2020-07-28 18:01:38 +02:00