ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "luigi scarso" <luigi.scarso@gmail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: line breaking hints?
Date: Tue, 27 Nov 2007 09:50:30 +0100	[thread overview]
Message-ID: <fe8d59da0711270050y28eba4f3qa7f3c5a35603c904@mail.gmail.com> (raw)
In-Reply-To: <6703815B292B664DBAEC55EE3192386A20BCD0@poseidon.in.dynetics.com>

On Nov 26, 2007 10:08 PM, Santy, Michael <Michael.Santy@dynetics.com> wrote:
>
>
>
>
> 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.
>
maybe this can give you more ideas
http://wiki.contextgarden.net/User:Luigi.scarso/autosize
-- 
luigi
...
it's new .
it's powerful .
it's luatex .
http://www.luatex.org
___________________________________________________________________________________
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
___________________________________________________________________________________


      parent reply	other threads:[~2007-11-27  8:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-26 21:08 Santy, Michael
2007-11-27  8:40 ` Taco Hoekwater
2007-11-27 13:39   ` Santy, Michael
2007-11-27  8:50 ` luigi scarso [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fe8d59da0711270050y28eba4f3qa7f3c5a35603c904@mail.gmail.com \
    --to=luigi.scarso@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).