Boost C++ Libraries: Ticket #5860: Coloring text in Quickbook https://svn.boost.org/trac10/ticket/5860 <p> It would be rather nice to be able to color specified text items (like [*bold]) when writing layout in Quickbook. Perhaps some syntax like </p> <p> <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5860?red" title="#5860: Feature Requests: Coloring text in Quickbook (closed: fixed)">This should be in red.</a> </p> <p> where ? is some squiggle, and the color names are in the list of HTML colors. </p> <p> or <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5860?#FF00FF" title="#5860: Feature Requests: Coloring text in Quickbook (closed: fixed)">This should be in purple.</a> </p> <p> where ? is some squiggle, and the hex values is the RGB color. </p> <p> (But though I can't really see a real need for the full gamut of colors, hex format RGB might be simpler to implement?) </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5860 Trac 1.4.3 Daniel James Sat, 03 Sep 2011 14:59:23 GMT <link>https://svn.boost.org/trac10/ticket/5860#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5860#comment:1</guid> <description> <p> Docbook has no support for colours, see: </p> <p> <a class="ext-link" href="http://cygwin.com/ml/docbook/2005-05/msg00040.html"><span class="icon">​</span>http://cygwin.com/ml/docbook/2005-05/msg00040.html</a> </p> <p> A possiblity is to have a tag to allow text to be marked up with a role (as we do for syntax highlighting). That can be coloured for web pages in css, but you'd have to work out how to colour that for pdfs, which appears to be done in <code>tools/boostbook/xsl/fo.xsl</code>. I'd prefer to have semantic roles rather than presentational. Any additions to the roles supported in that file should probably be mentioned on the list first. </p> <p> <code>?</code> isn't available as it's already used for conditional phrases. I wouldn't want to use up an punctuation for this. There are only so many characters available, I don't want to waste them. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Paul A. Bristow</dc:creator> <pubDate>Mon, 05 Sep 2011 11:16:31 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5860#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5860#comment:2</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/5860#comment:1" title="Comment 1">danieljames</a>: </p> <blockquote class="citation"> <p> Docbook has no support for colours, see: </p> <p> <a class="ext-link" href="http://cygwin.com/ml/docbook/2005-05/msg00040.html"><span class="icon">​</span>http://cygwin.com/ml/docbook/2005-05/msg00040.html</a> </p> <p> A possiblity is to have a tag to allow text to be marked up with a role (as we do for syntax highlighting). That can be coloured for web pages in css, but you'd have to work out how to colour that for pdfs, which appears to be done in <code>tools/boostbook/xsl/fo.xsl</code>. I'd prefer to have semantic roles rather than presentational. Any additions to the roles supported in that file should probably be mentioned on the list first. </p> </blockquote> <p> I'd image many users would be quite happy with a small set (9?)of 'color highlighting' sematic roles? Even just one (red?) could be useful. </p> <p> Perhaps something like the six (five) [h1 headings]? Or color admonitions? </p> <p> Or is injection of XML to set color for a text item possible? </p> <p> But I have too little understanding of how things are processed to make sensible suggestions. </p> <blockquote class="citation"> <p> <code>?</code> isn't available as it's already used for conditional phrases. I wouldn't want to use up an punctuation for this. There are only so many characters available, I don't want to waste them. </p> </blockquote> <p> Of course, sadly, squiggles are in critically short supply, so I only put ? as a marker for any one chosen. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Eric Niebler</dc:creator> <pubDate>Tue, 20 Sep 2011 02:18:02 GMT</pubDate> <title>owner changed https://svn.boost.org/trac10/ticket/5860#comment:3 https://svn.boost.org/trac10/ticket/5860#comment:3 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Eric Niebler</span> to <span class="trac-author">Daniel James</span> </li> </ul> <p> I don't own quickbook. Daniel, if you're not the owner, do you know who is? </p> Ticket Daniel James Tue, 20 Sep 2011 10:49:35 GMT status changed https://svn.boost.org/trac10/ticket/5860#comment:4 https://svn.boost.org/trac10/ticket/5860#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/5860#comment:3" title="Comment 3">eric_niebler</a>: </p> <blockquote class="citation"> <p> I don't own quickbook. Daniel, if you're not the owner, do you know who is? </p> </blockquote> <p> It's Joel in trac, but it probably should be me. I don't know why this was assigned to you. </p> Ticket Daniel James Wed, 02 Nov 2011 07:58:36 GMT <link>https://svn.boost.org/trac10/ticket/5860#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5860#comment:5</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/75255" title="Quickbook: `role` tag for 1.6. Refs #5860. This implements the markup ...">[75255]</a>) Quickbook: <code>role</code> tag for 1.6. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5860" title="#5860: Feature Requests: Coloring text in Quickbook (closed: fixed)">#5860</a>. </p> <p> This implements the markup <code>[role red Some red text]</code>. Although I'm not sure I like it that much. It would be pretty easy to use a template for the same effect. </p> <p> This is just the quickbook part of supporting coloured text, to complete the ticket there needs to be css support for html pages and xsl support for pdfs. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Paul A. Bristow</dc:creator> <pubDate>Thu, 03 Nov 2011 10:12:55 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5860#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5860#comment:6</guid> <description> <p> I've rebuilt using Quickbook in trunk (after 75255) changed the header to 1.6 and tried </p> <p> [role red Some red text] </p> <p> but it seems to be passed straight thru to the docbook and html as </p> <p> &lt;p&gt; </p> <blockquote> <p> [role red Some red text] </p> </blockquote> <p> &lt;/p&gt; </p> <p> What am I missing? (apart from changes to .css to use this to redden) </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Thu, 03 Nov 2011 10:15:38 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5860#comment:7 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5860#comment:7</guid> <description> <p> It's on the quickbook-dev branch. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Paul A. Bristow</dc:creator> <pubDate>Thu, 03 Nov 2011 12:13:48 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5860#comment:8 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5860#comment:8</guid> <description> <p> OK - but I get a compile error in id_manager.cpp </p> <p> Perhaps you are still working on this and I'm jumping the gun? </p> <p> Not urgent, but red would be sexy ;-) </p> <p> Wait until you put into trunk? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Thu, 03 Nov 2011 12:31:07 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5860#comment:9 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5860#comment:9</guid> <description> <p> Maybe a bit longer. I'm going to try to get the 1.6 stuff finished within the next release cycle, and ask for feedback. If it's positive, then I'll make 1.6 final and it'll be fine to use. Alternatively I could move the more controversial features to a later version number, so that some of the simpler things are ready earlier. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Daniel James</dc:creator> <pubDate>Sun, 29 Sep 2013 11:33:09 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/5860#comment:10 https://svn.boost.org/trac10/ticket/5860#comment:10 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> 1.6 is finally being released in 1.55. So this will be fixed then. </p> Ticket Paul A. Bristow Thu, 10 Oct 2013 15:56:01 GMT <link>https://svn.boost.org/trac10/ticket/5860#comment:11 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5860#comment:11</guid> <description> <p> Added to boostbook.css to enable both color and align roles for html. </p> <p> Revision: 86229 Author: pbristow Date: 10 October 2013 16:40:07 Message: Additions to implement colors from Quickbook 1.6. </p> <p> But align feature (done in boostbook.css for html) is still not implemented. </p> <hr /> <p> Modified : /trunk/tools/boostbook/xsl/fo.xsl </p> <p> for color feature for pdf (not done the align feature yet). </p> <p> This file provides some helpful defs and templates for tick, cross etc </p> <p> <a class="ext-link" href="https://svn.boost.org/svn/boost/sandbox/guild/mylibrary/libs/mylibrary/doc/html4_symbols.qbk"><span class="icon">​</span>https://svn.boost.org/svn/boost/sandbox/guild/mylibrary/libs/mylibrary/doc/html4_symbols.qbk</a> </p> <p> and some very contrived demos at </p> <p> <a class="ext-link" href="https://svn.boost.org/svn/boost/sandbox/guild/mylibrary/libs/mylibrary/doc/mylibrary.qbk"><span class="icon">​</span>https://svn.boost.org/svn/boost/sandbox/guild/mylibrary/libs/mylibrary/doc/mylibrary.qbk</a> </p> <p> For example... </p> <p> [role red Some red text] </p> <p> [*[role magenta [role aligncenter This is bold magenta and centered.]]] </p> <p> ['[*[role blue Some italic bold blue text]]] </p> </description> <category>Ticket</category> </item> </channel> </rss>