Style issues for conventions page
Style issues for conventions page
От:
Greg Smith <greg@2ndQuadrant.com>
Дата:
A documentation comment came in that highlights a weird situation with the web version of the documentation. Check out http://www.postgresql.org/docs/current/static/notation.html for a moment. In the PDF documentation, this example looks just like it reads. There are a few problems with the web version though: -The word italics in "emphasized in italics" is actually bold. The source code for that is italics</>. -"emphasized in bold face (example)" shows an example that is neither bold or italics. Source for that one is (example</></>) I don't know that anything in the source needs to change, but something in the HTML generation pipeline seems off here. -- Greg Smith 2ndQuadrant US greg@2ndQuadrant.com Baltimore, MD PostgreSQL Training, Services, and 24x7 Support www.2ndQuadrant.com
Re: Style issues for conventions page
От:
Thom Brown <thom@linux.com>
Дата:
On 21 May 2013 09:18, Greg Smith wrote: > A documentation comment came in that highlights a weird situation with the > web version of the documentation. Check out > http://www.postgresql.org/docs/current/static/notation.html for a moment. > In the PDF documentation, this example looks just like it reads. > > There are a few problems with the web version though: > > -The word italics in "emphasized in italics" is actually bold. The source > code for that is italics</>. > > -"emphasized in bold face (example)" shows an example that is neither bold > or italics. Source for that one is ( role="bold">example</></>) > > I don't know that anything in the source needs to change, but something in > the HTML generation pipeline seems off here. The terms that are supposed to be "emphasized in italics" need different HTML rendering. In the documentation they appear as: term This markup is no longer welcome in today's world of descriptive markup and separate CSS styles. And the text on the conventions page uses: italics Both of these should be using HTML tags, with no need for classes (unless that "c2" is supposed to mean something?) This would give descriptive context to the text and would automatically render it correctly as renders in italics as per the HTML spec. So the SGML should simply convert to in HTML, which is clearly a more natural and equivalent markup. And with: "On occasion, parts of program code are emphasized in bold face (example), if they have been added or changed since the preceding example." with "example" using: example I can't find any evidence that such formatting is used in this way. I've looked through many pages where I might expect to see this in action, but there's no attempt to use such formatting anywhere that I can find. Is anyone able to show where this is actually used? Bold text is certainly used for replaceable text in syntax definitions, but such text is also in italic. The boldness of such text is acquired through the non-descriptive "c2" class, and the italic through the "REPLACEABLE" class, but only the italic aspect is covered by the conventions page with regard to placeholder text. And those examples use the HTML tag, which is deprecated as of HTML5 anyway, so ideally should be changed to something with more of a future, such as which wouldn't need any accompanying CSS modification. In any case, to format the bold example text as bold on the conventions page, we could just add a CSS rule in docs.css: .bold { font-weight: bold; } But I'm not convinced that the description of when bold text occurs is true. -- Thom
Re: Style issues for conventions page
От:
Peter Eisentraut <peter_e@gmx.net>
Дата:
On 5/21/13 9:18 AM, Greg Smith wrote: > A documentation comment came in that highlights a weird situation with > the web version of the documentation. Check out > http://www.postgresql.org/docs/current/static/notation.html for a > moment. In the PDF documentation, this example looks just like it reads. > > There are a few problems with the web version though: > > -The word italics in "emphasized in italics" is actually bold. The > source code for that is italics</>. > > -"emphasized in bold face (example)" shows an example that is neither > bold or italics. Source for that one is ( role="bold">example</></>) > > I don't know that anything in the source needs to change, but something > in the HTML generation pipeline seems off here. This comes out "correctly" if you use the non-website stylesheets, but the website has adopted different format conventions. It would probably be best if we removed the first paragraph in the Conventions section, because the potential for confusion in a CSS-like world is too big.
Re: Style issues for conventions page
От:
Peter Eisentraut <peter_e@gmx.net>
Дата:
On Wed, 2013-05-29 at 12:46 -0400, Peter Eisentraut wrote: > This comes out "correctly" if you use the non-website stylesheets, but > the website has adopted different format conventions. It would > probably > be best if we removed the first paragraph in the Conventions section, > because the potential for confusion in a CSS-like world is too big. done