[SOLVED] location for custom bullet graphics

5 replies [Last post]
oweng
oweng's picture
Offline
Last seen: 13 hours 15 min ago
Title: ==Moderator==
Joined: 26 Jan 2012
Posts: 2607

In Writer I am having difficulty getting custom bullet point graphics (that I have created) to show up in either the Tools / Gallery / Bullets or, when modifying a list style, on the Graphics tab. I am running LibreOffice 3.3.2, OOO330m19 (Build:202), under Ubuntu 10.04 LTS.

I can see the default set of graphics under /usr/lib/libreoffice/basis3.3/share/gallery/bullets and the logical place to put my own created bullets (either GIF or PNG) would seem to be /home/<user>/.libreoffice/3/user/gallery/bullets. Nothing I have tried, with respect to changing permissions, ownership, or placement of the GIF/PNG seems to work. If I move the default root:root owned GIFs under /usr to the /home directory they are seen in that location OK (and the mouse over path indicates this). Any additional files I place here though are ignored. I have also tried placing my files in the /usr directory with no luck.

Is it possible to add to the default set of bullet graphics? Where are custom bullet graphics placed, such that Writer can make use of them? I have attached the bullet graphics I am using. They are a standard 12x12 px PNG exported from Inkscape and a GIF of this exported via GIMP.

Any guidance appreciated, thanks. Owen.

AttachmentSize
grey_1.png270 bytes
grey_1.gif844 bytes
Robert Tucker
Offline
Last seen: 2 years 3 weeks ago
Title: ★★★★★
Joined: 20 Feb 2011
Posts: 116
Only as root

It's only possible (as a general user) running LibreOffice as root as far as I can see.

Quote:
1) Open the Gallery.
2) Select the theme where you want to add images, or you can
create a new theme. Note that you can add images only to “My
Theme” or to any other theme that you have created

0200WG3WriterGuideOOo3-2.pdf

oweng
oweng's picture
Offline
Last seen: 13 hours 15 min ago
Title: ==Moderator==
Joined: 26 Jan 2012
Posts: 2607
location for custom bullet graphics

Many thanks Robert. I eventually worked out that I could add my own themes, as you suggest, however I can not get Writer to allow me to select my custom bullet graphics from such a theme. For example, I have created a Bullets grey theme, but there appears no way to select from this theme when modifying a list style.

By initiating Writer from the command line as root:

$ sudo libreoffice -writer

I was able to alter the default Bullets theme, however I am having difficulty creating custom graphics that reproduce in PDF at a reasonable quality. LibreOffice (Writer) appears to treat PNG and GIF graphics differently. I would prefer to use PNG if possible, due to the better format, however the apparent rescaling of the graphic is problematic. I have attached a PDF (generated with lossless compression) showing various samples, along with an archive of the employed PNG / GIF files, and source Inkscape SVG.

The default graphics under /usr/lib/libreoffice/basis3.3/share/gallery/bullets are all in the 12x12 to 35x35 range (apart from the three larger popcorn ones.) I would have expected the samples attached to be sized about right. From my sample PDF only grey_p1a4_80x80 and grey_p1b7_60x60_bkgd90x90 are of a quality I would consider acceptable.

I had a look through the Writer guide you mention (0200WG3WriterGuideOOo3-2.pdf), however apart from instructions on adding images to a gallery (pp.302-303) I could not locate anything relating to using these graphics in list styles.

Is there a guide on how (size, background size, resolution, format, etc.) to create custom bullet graphics, such that they will reproduce at a suitable quality in a Writer-generated PDF? Most of the samples I would consider too large. Something the size of grey_g1b1_6x6_bkgd12x12 or grey_g1b2_8x8_bkgd12x12 is what I am after, only with higher quality.

AttachmentSize
Writer_custom_bullet_graphics_sample.pdf 32.48 KB
bullet_graphics.zip 19.85 KB
Robert Tucker
Offline
Last seen: 2 years 3 weeks ago
Title: ★★★★★
Joined: 20 Feb 2011
Posts: 116
Possibilities – run as root or apply manually
oweng wrote:
I have created a Bullets grey theme, but there appears no way to select from this theme when modifying a list style.

Of course, if you create a new List style you can select your .gif as a bullet by selecting "From file..." in the Graphics drop-down list on the Options tab. You can apply it by selecting any text where you have a bullet and double clicking whatever name you gave it in the "Styles and Formatting" dialogue.

oweng wrote:
I had a look through the Writer guide you mention (0200WG3WriterGuideOOo3-2.pdf), however apart from instructions on adding images to a gallery (pp.302-303) I could not locate anything relating to using these graphics in list styles

I doubt you can as a general user. But if you run LibreOffice as root it will allow you to slide an image from a Writer document into the Bullets gallery (as per the instructions for a non-root user for the My Theme gallery or any other they have created) and to use it like any of the others in the Bullets gallery.

oweng
oweng's picture
Offline
Last seen: 13 hours 15 min ago
Title: ==Moderator==
Joined: 26 Jan 2012
Posts: 2607
Work around

Thanks again Robert. I will marked this thread as [SOLVED] due to your assistance. As you suggest, via the Format > Bullets and Numbering... > Options tab I can get what I need either by:

  1. Numbering > Graphics
  2. Graphics > Select (From file...) OR
  3. Graphics > Gallery

OR (as graphically demonstrated here)

  1. Character > ...
  2. and then choosing an appropriate font symbol.

It is a shame that my separately created Bullets grey theme does not appear to be selectable (at least when running as a normal user) via the first method. The Select (From file...) option, as you point out though, does get around this.

The second method (using a character from a font) gets around the fidelity issue I was having, as illustrated in the previous PDF sample.

lid6j86
Offline
Last seen: 47 weeks 1 day ago
Title:
Joined: 4 Dec 2013
Posts: 1
Direct Location

I know this is a little late, but you should be able to access it directly.

sudo nautilus

save the image under /usr/lib/libreoffice/share/gallery/bullets

I think that will work

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.