help with standard.soc file color defining

I am having trouble adding the Resene color palette to the "standard.soc" file.

The colors in that file are listed in HEX - #FFFFFF

but the Resene list is in the RGB decimal format - RGB(255,255,255)

The Renese "people" will allow the use of their color names, as long as you include the copyright info.

My problem is the .soc files I have are all in HEX format, and when I add a color in RGB format, that color and the next HEX color are skipped and the color's space shows single White space/box.

I really want to use their palette for a additional palette called "Renese.soc" with the basic and LO colors in the palette as the first colors seen.

So can any one help me with this issue? Below is the first few colors in the default palette. After that is the first colors in the Renese list [downloaded as a text file]

Can I replace the 'draw:color="#008000"/>' with 'draw:color="rgb(0,128,0)"/>'

<draw:color draw:name="Black" draw:color="#000000"/>
<draw:color draw:name="Blue" draw:color="#000080"/>
<draw:color draw:name="Green" draw:color="#008000"/>
<draw:color draw:name="Turquoise" draw:color="#008080"/>
<draw:color draw:name="Red" draw:color="#800000"/>
<draw:color draw:name="Magenta" draw:color="#800080"/>

"R" "G" "B" "Colour Name"

   1 54 28 cardingreen
   9 54 36 bottlegreen
   2 64 44 sherwoodgreen
   2 64 44 zydeco
   7 58 80 tarawera

Hello,

You can use the "BASE" function of CALC to convert the numbers to
hexadecimal notation. The syntax is BASE(number, base, #digits); for
instance, converting the 44 of the zydeco color would be someting like
=BASE(44,16,2) which gives 2C.

And if you want, you can use a combination of CONCATENATE and BASE to
re-create the XML of the colors which you could then easily cut/paste
to the destination file.

I hope this helps.

Rémy Gauthier.

I am having trouble adding the Resene color palette to the 
"standard.soc" file.

The colors in that file are listed in HEX - #FFFFFF

but the Resene list is in the RGB decimal format - RGB(255,255,255)

> The Renese "people" will allow the use of their color names, as long

as

you include the copyright info.

> My problem is the .soc files I have are all in HEX format, and when

I

> add a color in RGB format, that color and the next HEX color are

skipped

and the color's space shows single White space/box.

I really want to use their palette for a additional palette called 
> "Renese.soc" with the basic and LO colors in the palette as the

first

colors seen.

> So can any one help me with this issue?  Below is the first few

colors

> in the default palette.  After that is the first colors in the

Renese

Does not help much. There are over 1500 named colors in the text file. Actually Renese colors are actually their line of paint colors. It was nice of Renese to share their colors as long as you add their copyright text in the .soc file "somewhere".

If anyone has a C++ or Python script that would do this, it would be nice. I just do not remember how to do this in either language anymore.

Two different Resene Palettes can be found at
https://groups.io/g/ODF_Templates/files/ColourPalettes .

For some reason, I'm under the impression that LibO can utilize adobe
*.ase palettes, but a quick search on the LibO site doesn't confirm it.
I've got 45 *.ase palettes from Resene,

jonathon

I found the Resene color palette from a site that discussed color palettes. Here is the site's URL.

http://people.csail.mit.edu/jaffer/Color/CSDR

The site has several different PDF files for the different color sorting options.

The link you provided at the "groups.io" requires a user/password to access the site. So I do not know what they offer. The .soc file[s] I want to create will be offered at the LO Extension site as a .soc file. If someone knows how to create an extension that automatically installs the file in the proper config folder, please let me know. Since I use Linux, I know where the the .soc files are located. It would be better to have extension do the work for you.

For those who look at the link I provided here, there are over 1300 colors in the Renese palette. There are other versions of there palette. Renese colors is a paint palette. I have an older PDF file that has a MIT.edu link to a Renese-2010 PDF file. The link I provided to the MIT side has several Renese files that are color sorted by different methods. I like the following version.

http://swiss.csail.mit.edu/~jaffer/CSDR/resene-s.pdf

Thanks to Rémy Gauthier, I now have the Renese text file RGB color list to one that is a HEX version. Now I just need to finish the needed parts of the .soc file, including the Renese copyright that must included with the color coding to make the .soc file. After that, I will upload it to a folder and provide the link so others can test it on their systems. Then, hopefully, I will place the .soc file with the LO Extension site.

Hai Jonathon,

You are correct concerning ase palettes. Chris Laplante added this feature on
request of Philipp Weissenbacher about one and a half years ago (I sponsored
this feature through freedomsponsors.org back then). However, the feature is not
complete yet, because you have to add the palettes by hand at the moment.

See https://bugs.documentfoundation.org/show_bug.cgi?id=92354

Hopefully this can be finished sometime in the (near?) future.

Grx HdV

You are correct concerning ase palettes.
However, the feature is not complete yet, because you have to add the

palettes by hand at the moment.

I just dumped my ASE palettes into /opt/Libreoffice5/share/palettes,
then tested it, by opening a file to change the colour of font. It worked!

See https://bugs.documentfoundation.org/show_bug.cgi?id=92354

Assuming permission to distribute can be obtained, it might
easier/simpler to distribute them using an extension --- perhaps the
same one as proposed for the .soc etc. files.

The "hard" part is knowing where that appropriate place is.

jonathon