0 suara
479 tampilan

I’m having trouble using RGB color values in a custom stylesheet. I would like to use a color not listed under Commonly Use Color Values (under Help). For example, dark blue composed of R: 43, G: 48, B: 145, comes out as orange when I enter \Color 4348145. What am I doing wrong?

Postingan lama - ditampilkan dalam bahasa aslinya
Paratext oleh (448 poin)
ditampilkan kembali | 479 tampilan

3 Jawaban

0 suara
Jawaban terbaik

drwww, the answers others have given are correct for Paratext 8.0 and earlier. (I also appreciated the formula.) However, before you spend too much time on this, you might want to be aware that Paratext 8.1 introduces two additional options which I hope are both better than using the old OLE numbers.

  1. Use one of the color aliases which ships with Paratext, such as “$blue_text”. This is recommended because different themes can then supply the shade of blue which works best within that theme. Currently, the only themes are for Light and Bright highlighting, but in the future we’d like to provide high-contrast and colorblind-friendly themes. High-contrast would use light text on a dark background.

  2. Use a standard RGB hexcode, prefixed by an “x”. For example, x005404 represents a dark green. This is the option anon848905 mentioned. (BTW, I like using colorizer.org to fiddle with colors.)

Paratext 8.1 Help covers the new codes via this help topic: “How do I implement a custom stylesheet for my project?”

Postingan lama - ditampilkan dalam bahasa aslinya
oleh (264 poin)

I feel pretty confident saying that Paratext 8.1 is still at least a few months from a general release. Waiting may not be a good option.

Postingan lama - ditampilkan dalam bahasa aslinya
0 suara

Paratext does not use RGB color codes, it uses something called “Windows colors” or “OLE colors”. There are websites where you can look these codes up, e.g. https://www.htmlcsscolor.com/hex/00008B. There you can find the info by searching for “OLE color”. Unfortunately, it seems that you can only enter hexadecimal values at this website to search for colors, so you would need to convert your decimal numbers to hex first (or use another tool/website to do it).

Postingan lama - ditampilkan dalam bahasa aslinya
oleh (872 poin)

Thank you for the clarification. No wonder RGB colors weren’t working! That being the case, it might be a good idea to update the following in Help:

2018-08-09%2010_11_27-Help

Postingan lama - ditampilkan dalam bahasa aslinya

It is not hard to set up a conversion tool in a spreadsheet to go from decimal RGB to OLE. Here is my example
in Google sheets using anon848905’s formula:
image

drwww, that dark blue you want is OLE [Phone Removed]
I’ve passed your report onto the help file team.

Postingan lama - ditampilkan dalam bahasa aslinya
0 suara

Paratext does use RBG colors, but they are identified using the OLE system which follows a formula of:
OLE = red + (green * 256) + (blue * 256 * 256)

According to my sources on the development team PT8.1 will allow for entering the code using the RGB Hex value.

Postingan lama - ditampilkan dalam bahasa aslinya
oleh (9,9k poin)

Pertanyaan terkait

0 suara
2 jawaban 523 tampilan
I've had a user ask about using an ICU custom tailoring sort order, one that is used in Fieldworks, in ... cannot handle the sort order necessary for this particular language.
MSEAIT_LT 478 bertanya Sep 4, 2017
0 suara
1 jawaban 250 tampilan
A translation team is using a UBS OT Selections list, and they are wondering whether a Paratext custom versification exists ... of a custom.vrs for this, please? Thank you, KimB
KimB 670 bertanya Apr 26, 2017
+1 suara
1 jawaban 21 tampilan
Di koleksi teks saya, ada teks dalam beberapa bahasa. Sekarang, akan sangat membantu jika bahasa yang berbeda ditampilkan ... biru, dll. Apakah ada cara untuk melakukan itu?
Roland 245 bertanya Sep 23, 2025
0 suara
1 jawaban 72 tampilan
Melanjutkan pertanyaan sebelumnya: https://support.bible/6030/utility-to-generate-a-custom-vrs-file Saya ... mengunduh alat ini dari file Dropbox saya: Custom_Versification_Editor
Phil_Leckrone 9,9k bertanya Jul 23
0 suara
1 jawaban 432 tampilan
Di proyek yang sedang kami kerjakan, untuk menghindari pemeriksaan ulang yang tidak perlu atau menjaga daftar terpisah, ... .sty, tetapi itu tampaknya tidak membantu sama sekali
DG 1,1k bertanya Sep 11, 2024
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
For where two or three gather in my name, there am I with them.
Matthew 18:20
3,045 pertanyaan
6,005 jawaban
5,671 komentar
2,026 pengguna