LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 06-15-2005, 04:53 PM   #1
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
Is C++ a ligature?


Can anyone offer any advice on when I should make ++ into a ligature (outside of code examples) and when I shouldn't?

The C++ standard, Incorporating Technical Corrigendum No. 1 [Wiley] (ISBN 0-470-84674-7) always shows ++ as a ligature in the string C++, except in titles where there is a clear gap between the two plus signs.

Another respected C++ reference book, Exceptional C++ [Addison-Wesley] (ISBN 0-201-61562-2) does not show C++ as a ligature, except in the title for the entire series on the front cover — it's not even a ligature in the series title on the back cover!

I am trying to typeset a book (in Linux) in which I want to use the phrase C++ in the book title, chapter titles, and the text of the book. Anyone have any ideas?
 
Old 06-15-2005, 05:31 PM   #2
JunctaJuvant
Member
 
Registered: May 2003
Location: Wageningen, the Netherlands
Distribution: OS X & Linux Mint
Posts: 488

Rep: Reputation: 31
Perhaps a better reference than the books you mention would be The C++ Programming Language, written by the inventor.
As far as I can tell (from Stroustrup's faq) the name "C++" does not have any spaces as the "++" is inspired by the post-increment operator.
 
Old 06-15-2005, 06:19 PM   #3
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Original Poster
Rep: Reputation: 76
Quote:
Originally posted by JunctaJuvant
As far as I can tell (from Stroustrup's faq) the name "C++" does not have any spaces as the "++" is inspired by the post-increment operator.
…but the screenshots on that link don't only show ++ as a ligature; there is a clear gap between the two + signs in some places. A ligature is when two letters are run together (like this character, if your character-set will cope with it: ć).

Here's a larger form of the book cover scan on your link:
http://www.amazon.com/gp/reader/0201...724#readerpage

You will note that the big 3D title puts a gap between the two + signs, while “The Creator of C++” text at the bottom does not. The former is not a ligature, the latter is.

And the second:
http://www.amazon.com/gp/reader/0201...724#readerpage

This doesn't show anything as a ligature on the title page. Going through the table of contents on Amazon, it looks to me like part titles are shown as ligatures while chapter titles aren't.

I'm still confused.

Last edited by rjlee; 06-15-2005 at 06:20 PM.
 
Old 06-15-2005, 08:46 PM   #4
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
My : Since it is "based" on the increment operator, and C++ programmers seldom (if ever) use a ligature in their code, using it in a book seems overly pedantic, and, basically, wrong.
 
Old 06-16-2005, 04:57 AM   #5
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Original Poster
Rep: Reputation: 76
Quote:
Originally posted by PTrenholme
My : Since it is "based" on the increment operator, and C++ programmers seldom (if ever) use a ligature in their code, using it in a book seems overly pedantic, and, basically, wrong.
Thank you! I like that viewpoint.

I suppose the counter-argument would be that C++ code is normally written in a monospaced font, in which ligatures are never used (except perhaps as a special character), whereas books are written in variable-width fonts that do (e.g. “fi” is usually shown as a ligature in words with no dot on the “i”).

I'll leave it unligatured for now unless someone can come up with a reason to do otherwise.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 12:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration