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
bfc67c59b4
XML: use the new mechanisms for CR detection with errors.
...
This helps tracking down line problems even in the presence of errors.
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
bdea21a87e
DocBook: improve comments.
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
27a44f8e48
XML: memorise if the last thing that is getting output is a line feed.
2020-09-19 20:43:37 +02:00
Thibaut Cuvelier
360139a091
DocBook: documentation for the new tags.
2020-09-19 20:43:37 +02:00
Thibaut Cuvelier
6998e76495
DocBook: define new arguments in layouts to configure new-line behaviour.
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
9184ae14f0
A few more constants to avoid copies
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
c92e0bc5e7
DocBook: fix for ordering.
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
ad18c19492
DocBook: add new layout parameter DocBookWrapperMergeWithPrevious.
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
Juergen Spitzmueller
7470305720
de.po
2020-09-19 08:58:35 +02:00
Yuriy Skalko
6b85dd5ac0
Separate string for translation
2020-09-19 08:47:35 +02:00
Daniel Ramoeller
9a1f732664
Show slanted caret (cursor) when text style emphasis/italics/slanted.
...
Fixes for bug #11428 . Emphasis is used regularly and it is helpful to
see whether the next text will be written emphasized directly from the
cursor.
This is also implemented in MS Word and Google docs but not in
LibreWriter.
Also fixes the caret for RTL languages whose width was previously
extended into the wrong direction.
2020-09-18 13:27:06 +02:00
José Matos
5154400b64
Avoid crash when string only has one char
2020-09-18 01:09:36 +01:00
José Matos
d0a27e3afc
Whitespace cleanup
2020-09-18 01:07:39 +01:00
Yuriy Skalko
e36fda8375
Update UserGuide
2020-09-17 17:24:14 +02:00
Yuriy Skalko
cd933534bd
Increment preferences format to 34: rename Cyrillic *.kmap files
2020-09-17 15:05:31 +02:00
Juergen Spitzmueller
40159fd2ab
Fixup graphics height conversion when special is non-empty
2020-09-17 08:43:04 +02:00
Juergen Spitzmueller
6ad1c359fc
Fix Makefile.am after 821603def3
2020-09-17 08:00:54 +02:00
Yuriy Skalko
821603def3
Fix Cyrillic keyboard map files
2020-09-17 07:50:05 +02:00
Yuriy Skalko
06aed96f34
Update Russian localization
2020-09-17 07:21:02 +02:00
Juergen Spitzmueller
cfc3b3675b
Account for Windows paths ( #11975 )
2020-09-17 07:17:36 +02:00
Jean-Marc Lasgouttes
b96b876403
Revert "Show toolbar context menu only when clicking on the toolbar"
...
Something is wrong.
This reverts commit f25253f89a
.
2020-09-16 16:54:33 +02:00
Daniel Ramoeller
f25253f89a
Show toolbar context menu only when clicking on the toolbar
...
Previsouly it was on the whole application window, except on disabled toolbar
buttons.
Fix for bug #11949
2020-09-16 11:18:57 +02:00
Scott Kostyshak
5542ccd3f9
ctests: invert 'wontfix' failing lyx2lyx tests
...
We decided looking into it wasn't worth the time. Note that the
tests are only about formats 2.0.x and 1.6.x. For discussion, see:
https://www.mail-archive.com/search?l=mid&q=20200915233446.atwbyulny5gsbtyi%40tallinn
2020-09-15 19:38:25 -04:00
Jean-Marc Lasgouttes
ae37caacdd
Add method FontMetrics::italic()
...
This can be useful for ticket #11428 .
2020-09-14 16:26:19 +02:00
Yuriy Skalko
b0db575dc1
Show custom text styles in status bar
...
Fixes bug #11951 .
2020-09-14 11:38:29 +02:00
Scott Kostyshak
06855a66ca
Fix ru Beamer_Article polyglossia exports
...
Set fonts to DejaVu to avoid the following error:
! Package polyglossia Error: The current latin font does not
contain the "Cyrillic" script!
This choice of font is consistent with the Russian intro and
tutorial manuals.
2020-09-13 01:31:00 -04:00
Scott Kostyshak
670da1817e
Fix documentation for LFUN_LAYOUT
...
The argument 'ignorenests' was renamed to 'ignoreautonests' at
d6fb2abb
.
2020-09-12 19:31:42 -04:00
Stephan Witt
320b6b6656
#6401 correct cursor movement for word forward/backward with enabled Mac style (mac_like_cursor_movement)
...
The change includes a rewrite of the cursor movement when „mac style“ is enabled and don’t change anything otherwise.
The new code for mac uses the document iterator to go forward or backward. The traversal stops at word boundaries.
If going forward the position increments until a word is reached (if not already inside) and stops at the end of the word.
If going backward it does the same in opposite direction. The cursor jumps over non-editable insets and math.
Editable (open) insets are entered and the cursor move detects word boundaries inside them.
2020-09-12 14:34:56 +02:00
Scott Kostyshak
b4f3963ab2
Uninvert two Hebrew pdf5 systemF tests
...
These exports now pass, and the output looks reasonable to me
(although I do not know Hebrew). I believe they work now because of
Jürgen's fixes at a7ad0747
and d7b64b8e
.
2020-09-11 14:10:12 -04:00
Yuriy Skalko
fb7b7e5223
Refactor runCommand
2020-09-11 16:13:23 +02:00
Jean-Marc Lasgouttes
c1f8c6c26d
Fixup 5202d44e
: make caret geometry update lazy
...
Instead of working around crashes in update of caret geometry, only
request it as needed. The actual computation will take place just
before painting the caret.
It might be that this is overkill and that caret geometry should be
updated unconditionally. One would have to to some timing while idle to
ascertain that.
Fixes bug #11912 .
2020-09-11 11:48:12 +02:00