diff options
author | Laurent Balland-Poirier <laurent.balland-poirier@laposte.net> | 2014-08-12 16:46:14 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2014-08-12 11:38:09 -0500 |
commit | bab2c1be6c7fdd78332d29682947d4ae07d07398 (patch) | |
tree | 8c902025d16d736827aab6294705dfa07593b04c /extras | |
parent | 8791017b0ed7fe47a4367e73e1728ba1d2b15d83 (diff) |
Help on how-to add autotext
Change-Id: Ia41a3478f5a59b4c13f676eb0e21d3b573456c8f
Reviewed-on: https://gerrit.libreoffice.org/10889
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
Diffstat (limited to 'extras')
-rw-r--r-- | extras/README | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/extras/README b/extras/README index a9783f01b9ad..9a5ac26d8f26 100644 --- a/extras/README +++ b/extras/README @@ -1,4 +1,4 @@ -Contains templates, clipart galleries, palettes, symbol font etc. +Contains templates, clipart galleries, palettes, symbol font, autocorrections, autotexts etc. How-to add a new gallery: + create a directory extras/source/gallery/foo/ @@ -6,3 +6,23 @@ How-to add a new gallery: + add a [foo] section to extras/source/gallery/share/gallery_names.ulf + add a Gallery_foo.mk at the top-level (and mention in Module_extra.mk) + add a new GALLERY_FILELIST statement in scp2/ + +How-to add a new autotext category + + create a directory extras/source/autotext/lang/xx/foo/ where xx is your lang code + + unzip your foo.bau autotext file in this directory (including an empty mimetype file) + + add xx/foo.bau in extras/AllLangPackage_autotextshare.mk + + in extras/CustomTarget_autotextshare.mk: + + add xx/foo in extras_AUTOTEXTSHARE_AUTOTEXTS + + add all files contained in foo.bau (except mimetype) in extras_AUTOTEXTSHARE_XMLFILES + + if foo.bau contains files with other extension than .xml, .rdf, .svm and .png + + add a CPY call at the end of the file + +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 lang xx + + add files of the autotext (at least FOO.xml for 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, .svm and .png + + add a CPY call at the end of the file |