Commit graph

7 commits

Author SHA1 Message Date
Andreas Heinisch
3772f18266 tdf#53023 - Remove last empty paragraph from auto text
Remove the last empty paragraph before inserting an auto text.
The carriage return at the end of it is appended in
SwXMLTextBlockParContext::~SwXMLTextBlockParContext()
which can't be removed without introducing side effects.

In order to compensate for the change, a paragraph has been
added to the existing only text auto texts.

Patch was reverted due to a hang of the ui test. It seems that
selecting an entire text using mkPropertyValues({"KEYCODE":"CTRL+A"}))
does not work anymore.

Change-Id: I08f612d50f496c8d7f891c773ddedf27c3d80864
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143781
Tested-by: Jenkins
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
2022-12-07 14:43:31 +00:00
Andreas Heinisch
36a554e1f1 Revert "tdf#53023 - Remove last empty paragraph from auto text"
This reverts commit ce64398653.

Reason for revert: UI-Tests hang

Change-Id: Ib4b576e66da8642f3ffe8774e92a7e7c2c527b08
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143717
Tested-by: Jenkins
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
2022-12-07 12:21:47 +00:00
Andreas Heinisch
ce64398653 tdf#53023 - Remove last empty paragraph from auto text
Remove the last empty paragraph before inserting an auto text.
The carriage return at the end of it is appended in
SwXMLTextBlockParContext::~SwXMLTextBlockParContext()
which can't be removed without introducing side effects.

In order to compensate for the change, a paragraph has been
added to the existing only text auto texts.

Change-Id: Ie098f23d7bdc70798197e5714e041c8fd79f0439
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143353
Tested-by: Jenkins
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
2022-12-06 08:43:56 +00:00
Christian Lohmaier
f5ce765d56 simplify autotextshare makefile/only build what's packaged
The multiple indirections/complex nested constructs don't really provide
any benefit here, they certainly don't make the makefile easier to read.

It was building the autotext .bau files for all languages, despite being
packaged only for the requested UI langauges (via AllLagPackage) and the
long list of autotext files was duplicated (even if all .bau files
should be built, the list could be reused from the other makefile)

Also remove the empty mimetype files and just touch them instead of
copying them.

The xml, mimetype and other files are now intermediates and are removed by
make once the .bau is built. (if that's not desired, they can be flagged as
.SECONDARY)

The list of individual files (3.6k lines) could also be cut down if
using e.g. make's wildcard function

Change-Id: I223a49d26d1de1435d62a68a04b3713278a8320c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129696
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2022-02-10 11:35:04 +01:00
Justin Luth
23ec2a6912 remove unnecessary settings.xml from autotext
I don't think that anyone wants their document settings adjusted
just by entering some autotext.
[Now, it didn't seem to be doing that because I suppose that since
the value already exists, the import won't overwrite it.]

find extras/source  -name settings.xml | md5sum | sort
   //shows only a few unique entries. Visual comparing with "Meld"
   //didn't reveal any reason why the files are useful.

I also removed ./autotext/lang/bg/standard/FN/Obj0012D655/settings.xml
based on Laurent's advice, even though it contains
<config:config-item config:name="Formula" E=mc^2

Otherwise, the other 7 versions were almost identical, differening
only in OOo version .9, or 1.1 and show redline changes on/off.

cd exttras/source
find . -name settings.xml  -exec rm {} \;
git grep -l \/settings.xml *.xml | xargs sed -i /\/settings.xml/d
git grep -l \/settings.xml ../CustomTarget_autotextshare.mk \
       | xargs sed -i "/\/settings.xml/d"

Change-Id: I9c148bdff55e6757e6fa98401486bc7c41ebf25d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121605
Tested-by: Jenkins
Reviewed-by: Justin Luth <justin_luth@sil.org>
2021-09-06 17:52:54 +02:00
Laurent BP
cc65651a04 Improve FN AutoText for xh
Translate names which appear in Navigator

Change-Id: I398b69954b4b810ec340e430753f4e669f4e9944
Reviewed-on: https://gerrit.libreoffice.org/78966
Tested-by: Jenkins
Reviewed-by: Laurent BP <laurent.balland-poirier@laposte.net>
2019-09-24 21:57:33 +02:00
Laurent BP
89e5af0b69 tdf#81436 Add default Autotext to all l10n
For l10n that do not have yet Autotext, add:
FN: Formula Numbering
LOREM: Lorem Ipsum dummy text

Change-Id: Ife882cdc70758ccbbc3fa8e185eca10fab005e4a
Reviewed-on: https://gerrit.libreoffice.org/78353
Tested-by: Jenkins
Reviewed-by: Laurent BP <laurent.balland-poirier@laposte.net>
2019-09-08 15:14:03 +02:00