From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/37564 Path: news.gmane.org!not-for-mail From: "Santy, Michael" Newsgroups: gmane.comp.tex.context Subject: line breaking hints? Date: Mon, 26 Nov 2007 15:08:40 -0600 Message-ID: <6703815B292B664DBAEC55EE3192386A20BCD0@poseidon.in.dynetics.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0784295150==" X-Trace: ger.gmane.org 1196111369 1288 80.91.229.12 (26 Nov 2007 21:09:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 26 Nov 2007 21:09:29 +0000 (UTC) To: Original-X-From: ntg-context-bounces@ntg.nl Mon Nov 26 22:09:34 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1IwlCt-0007Gy-92 for gctc-ntg-context-518@m.gmane.org; Mon, 26 Nov 2007 22:09:31 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B82C91FB49; Mon, 26 Nov 2007 22:09:14 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 22745-04; Mon, 26 Nov 2007 22:09:04 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E762E1FA5A; Mon, 26 Nov 2007 22:09:03 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1267E1FA5A for ; Mon, 26 Nov 2007 22:09:01 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 29721-01 for ; Mon, 26 Nov 2007 22:08:45 +0100 (CET) Original-Received: from myrddin.dynetics.com (myrddin.dynetics.com [204.154.192.33]) by ronja.ntg.nl (Postfix) with ESMTP id 921381FA4A for ; Mon, 26 Nov 2007 22:08:40 +0100 (CET) Original-Received: from poseidon.in.dynetics.com ([10.1.15.106]) by myrddin.dynetics.com (8.13.1/8.13.1) with ESMTP id lAQL3xiA006300 for ; Mon, 26 Nov 2007 15:04:00 -0600 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: line breaking hints? Thread-Index: AcgwcISUOoDYo4BdTRGWaXQtaPzIwA== X-dynetics.com-MailScanner-Information: Please contact the ISP for more information X-dynetics.com-MailScanner: Found to be clean X-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-1.439, required 2, autolearn=disabled, ALL_TRUSTED -1.44, HTML_MESSAGE 0.00) X-MailScanner-From: michael.santy@dynetics.com X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:37564 Archived-At: This is a multi-part message in MIME format. --===============0784295150== Content-class: urn:content-classes:message Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C83070.84A77753" This is a multi-part message in MIME format. ------_=_NextPart_001_01C83070.84A77753 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, I'm looking for a way to give ConTeXt's line breaking algorithm a hint = on where it is allowed to break a line. For example, I want ConTeXt to = break lines, if necessary, when it encounters '//' in a string. I don't = want to force a line break there, but if context needs to break the = line, I want it to be after a "//". =20 A contrived example of some input text is: THE QUICK BROWN FOX JUMPED OVER THE LAZY DOG//NOW IS THE TIME FOR ALL = GOOD MEN TO COME TO THE AID OF THEIR COUNTRY. When this text is rendered by ConTeXt, and it is too big to fit on a = single line, I would like it to break like this: THE QUICK BROWN FOX JUMPED OVER THE LAZY DOG// NOW IS THE TIME FOR ALL GOOD MEN TO COME TO THE AID OF THEIR COUNTRY. I can preprocess the source to change spaces into non-breaking spaces = and can replace '//' with anything else that I need to, but don't know = how to suggest where to break the line. Also note that I do not want = any words to be hyphenated nor broken on hyphens. Does anyone have any ideas on how I might accomplish this? Cheers, Mike ------_=_NextPart_001_01C83070.84A77753 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable line breaking hints?

Hello,

I'm looking for a way to give ConTeXt's line breaking algorithm a hint = on where it is allowed to break a line.  For example, I want = ConTeXt to break lines, if necessary, when it encounters '//' in a = string.  I don't want to force a line break there, but if context = needs to break the line, I want it to be after a = "//". 

A contrived example of some input text is:
THE QUICK BROWN FOX JUMPED OVER THE LAZY DOG//NOW IS THE TIME FOR ALL = GOOD MEN TO COME TO THE AID OF THEIR COUNTRY.

When this text is rendered by ConTeXt, and it is too big to fit on a = single line, I would like it to break like this:
THE QUICK BROWN FOX JUMPED OVER THE LAZY DOG//
NOW IS THE TIME FOR ALL GOOD MEN TO COME TO THE AID OF THEIR = COUNTRY.

I can preprocess the source to change spaces into non-breaking spaces = and can replace '//' with anything else that I need to, but don't know = how to suggest where to break the line.  Also note that I do not = want any words to be hyphenated nor broken on hyphens.

Does anyone have any ideas on how I might accomplish this?

Cheers,
Mike

------_=_NextPart_001_01C83070.84A77753-- --===============0784295150== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============0784295150==--