0
480 次瀏覽

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 點) 提出
已重新顯示 | 480 次瀏覽

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

舊文章 - 以原文顯示
(872 點) 提出

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.

舊文章 - 以原文顯示
(9.9k 點) 提出

相關問題

0
2 個回答 523 次瀏覽
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 提出 已提問 9月 4, 2017
0
1 個回答 250 次瀏覽
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 提出 已提問 4月 26, 2017
+1
1 個回答 21 次瀏覽
在我的文本集合中,我有數種語言的文本。如果不同的語言能以不同的字體顏色顯示,例如英文為黑色、德文為藍色等,那將非常有帮助。 有辦法做到這一點嗎?
Roland 245 提出 已提問 9月 23, 2025
0
1 個回答 72 次瀏覽
延續之前的問題: https://support.bible/6030/utility-to-generate-a-custom-vrs-file 我製作了一個工具,協助撰寫或編輯自訂的 .vrs 檔案。這是該工具的簡短影片。 您可以從我的 Dropbox 檔案下載該工具:Custom_Versification_Editor
Phil_Leckrone 9.9k 提出 已提問 7月 23
0
1 個回答 432 次瀏覽
在我們正在處理的專案中,為了避免不必要的重複檢查或維護獨立的清單,我們使用獨立的里程碑(stand-alone milestones)來標記已經過團隊檢查 測試和顧問檢查的詞彙表項目,例如: \p \v 2 \k phivli\k ... 所以我並不希望屏蔽所有訊息 我嘗試在 custom.sty 中指定 "\Endmarker *",但這似乎完全沒有幫助
DG 1.1k 提出 已提問 9月 11, 2024
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
Live in harmony with one another. Do not be proud, but be willing to associate with people of low position. Do not be conceited.
Romans 12:16
3,045 個問題
6,005 個回答
5,671 則評論
2,026 位使用者