lout-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: hyphenation of programming language identifiers


From: KHMan
Subject: Re: hyphenation of programming language identifiers
Date: Mon, 18 Aug 2008 17:28:32 +0800
User-agent: Thunderbird 2.0.0.16 (Windows/20080708)

Ludovic Courtès wrote:
Hi,

address@hidden (Jeff Kingston) writes:

Are there problems with allowing hyphenation of programming
language identifiers at all?  What if the *default* behaviour
is altered to allow hyphenation, with an option to turn it off?

It may be the case that some documents rely on the fact that programs
are not hyphenated and get automatically scaled down if they don't fit
on the page (although this could arguably be considered bad practice, as
the document may end up containing code fragments that all have a
different scale factor).

The other kind of failure I recall is of code lines that run past page boundaries, sometimes seen in TeX output.

Besides, some languages, like Python, are indentation-sensitive.  Thus,
a hyphenated Python program is not valid Python code (which may be OK if
the reader is warned about hyphenation).

I remember at least one PDF document which was a book I believe that added a special line continuation character and broke lines at whitespace. Breaking lines at whitespace sounds better, but special line continuation markers sounds like a pretty specific solution that might not be everyone's cup of tea.

--
Cheers,
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia


reply via email to

[Prev in Thread] Current Thread [Next in Thread]