0 票
802 次浏览

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?

较早的帖子 - 以原始语言显示
Paratext 中 由 (448 分) 发布
已重新显示 | 802 次浏览

3 个回答

0 票
最佳答案

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?”

较早的帖子 - 以原始语言显示
由 (264 分) 发布

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.

较早的帖子 - 以原始语言显示
0 票

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).

较早的帖子 - 以原始语言显示
由 (874 分) 发布

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

较早的帖子 - 以原始语言显示

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.

较早的帖子 - 以原始语言显示
0 票

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.

较早的帖子 - 以原始语言显示
由 [Expert]
(10.0k 分) 发布

相关问题

0 票
2 个回答 1.0k 次浏览
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 发布 提问于 九月 4, 2017
0 票
1 个回答 351 次浏览
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 673 发布 提问于 四月 26, 2017
+1 票
1 个回答 130 次浏览
在我的文本集合中,我有多种语言的文本。如果不同的语言能以不同的字体颜色显示,那将非常有帮助,例如英语为黑色,德语为蓝色等。 有办法实现这一点吗?
Roland 245 发布 提问于 九月 23, 2025
+2 票
1 个回答 354 次浏览
我为 custom.sty 文件创建了一个编辑器 您可以从我的 Paratext_Plugins 文件夹 下载 customstyeditor.zip 来安装该插件 关 ... Editor Custom Stylesheet Editor Custom Versification Editor 和 Parallel Passages Editor
[Expert]
Phil_Leckrone
10.0k 发布
提问于 十月 2
0 票
1 个回答 214 次浏览
跟进之前的问题: https://support.bible/6030/utility-to-generate-a-custom-vrs-file 我制作了一个工具,用于帮助编写或编辑 custom.vrs 文件 这是该工具的简短演示视频 您可以从我的 Dropbox ... ++++++++++++++++++++++++++++++++++++++++
[Expert]
Phil_Leckrone
10.0k 发布
提问于 七月 23
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
They all joined together constantly in prayer, along with the women and Mary the mother of Jesus, and with his brothers.
Acts 1:14
3,079 个问题
6,045 个回答
5,708 条评论
2,045 位用户