forked from amazingfate/loongoffice
U+E... does not have the same spacing as U+0... So can't copy them. Plus and less signs are now less wide. Change-Id: I761a6a37e3130e5425148a5a102b7e6343217985 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108526 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Extra Modules
Contains templates, clipart galleries, palettes, symbol font, autocorrections, autotexts etc.
-
How-to add a new gallery:
- create a directory
extras/source/gallery/foo/ - create a
.strfileextras/source/gallery/foo/foo.str - add a
foosection toextras/source/gallery/share/gallery_names.ulf - add a
Gallery_foo.mkat the top-level (and mention inModule_extra.mk) - add a new
GALLERY_FILELISTstatement inscp2/
- create a directory
-
How-to add a new autotext category
- create a directory
extras/source/autotext/lang/xx/foo/wherexxis your lang code.xxmust exactly fit with an UI lang code. - unzip your
foo.bauautotext file in this directory (including an empty mimetype file) - add
xx/foo.bauinextras/AllLangPackage_autotextshare.mk - in
extras/CustomTarget_autotextshare.mk:- add
xx/fooinextras_AUTOTEXTSHARE_AUTOTEXTS - add all files contained in
foo.bau(except mimetype) inextras_AUTOTEXTSHARE_XMLFILES - if
foo.baucontains files with other extension than.xml,.rdf,.svmand.png- add a
CPYcall at the end of the file
- add a
- add
- create a directory
-
How-to add a new autotext to an existing category
- create a directory
extras/source/autotext/lang/xx/standard/FOO/to add it in category standard of langxx - add files of the autotext (at least
FOO.xmlfor an unformatted autotext) - add autotext name in
extras/source/autotext/lang/xx/standard/BlockList.xml - add all files of autotext in
extras/source/autotext/lang/xx/standard/META-INF/manifest.xml - in
extras/CustomTarget_autotextshare.mk:- add all files of autotext in
extras_AUTOTEXTSHARE_XMLFILES - if some files have different extension from
.xml,.rdf,.svmand.png- add a
CPYcall at the end of the file
- add a
- add all files of autotext in
- create a directory
-
How-to add a new Impress template
- clean-up template file as indicated on wiki https://wiki.documentfoundation.org/Documentation/HowTo/Impress/Make_template_language_independent
- add
<dc:title>Foo</dc:title>inmeta.xmlto make presentation name translatable - unzip
Foo.otpfile inextras/source/templates/presnt/Foo(no space allowed in any file names) - add
Foo.otpinPackage_tplpresnt.mk - in
CustomTarget_tplpresnt.mk:- add
Foo /inextras_TEMPLATES_PRESENTATIONS - add files names contained in
Foo.otp(except mimetype) inextras_PRESENTATIONS_XMLFILES - if
Foo.otpcontains files with other extension than.xml,.svm,.svg,.pngand.jpg- add a
CPYcall at the end of file
- add a
- add
-
How-to add a new Writer template
- clean-up template file as much as possible, and choose a template category
<Category> - unzip
Foo.ottinextras/source/templates/<Category>/Foo(no space allowed in any file names) - add
Foo.ottinPackage_<tplCategory>.mk - in
CustomTarget_<tplCategory>.mk:- add
Foo /inextras_TEMPLATES_<CATEGORY> - add files names contained in
Foo.otp(except mimetype) inextras_<CATEGORY>_XMLFILES - if
Foo.ottcontains files with other extension than.xml,.rdf,.svm,.svg,.pngand.jpg- add a
CPYcall at the end of file
- add a
- add
- clean-up template file as much as possible, and choose a template category
-
How-to add a new template category
- create a directory
extras/source/templates/foo/ - unzip your foo0.ott template files in
extras/source/templates/foo/foo0 - add
Package_tplfooandCustomTarget_tplfooinModule_extras.mk - use other category
Package_tplcategory.mkto createPackage_tplfoo.mk - use other category
CustomTarget_tplcategory.mkto createCustomTarget_tplfoo.mk- replace all category by foo and
CATEGORYbyFOO - add all files contained in
foo0.ott(except mimetype) inextras_FOO_XMLFILES - if
foo0.ottcontains files with other extension than.xml,.rdf,.svm,.svg,.pngand.jpg- add a
CPYcall at the end of the file
- add a
- optionally, replace extension ott (4 places)
- replace all category by foo and
- create a directory