* Word-wrap/hyphenation with very large font size not working consistently
@ 2011-12-03 15:31 Pavneet Arora
2011-12-03 15:43 ` Wolfgang Schuster
0 siblings, 1 reply; 5+ messages in thread
From: Pavneet Arora @ 2011-12-03 15:31 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1: Type: text/plain, Size: 1392 bytes --]
I am trying to typeset some signs for a construction site. I enclose a
(somewhat contrived) for consideration.
What I am having difficulty with is to get word wrap and interline spacing to
work consistently. I am using \framed, but if there is a better way please let
me know. The trouble I am having is getting lines to break consistently.
Sometimes they do, but as in this case the second word `through' continues
beyond the frame width. You may also try to substitute the text ``Enter this
way today'', another contrived example to see the effect. The symbol font that
I am using is Symbol-Signs from:
http://www.fontsquirrel.com/fonts/Symbol-Signs
but I shouldn't think that is pertinent to the problem.
Any guidance on what is the issue here? Or if there is a better way to go about
doing this type of signage.
I am also interested in learning how to do vertical centering of blocks of text,
i.e., in a formal letter or in this case of setting text for signs. I have read
and tried to understand Wolfgang's response to Jaroslav's earlier enquiry:
http://archive.contextgarden.net/message/20100702.112805.07aa71e2.en.html
but I really don't understand it and how to make it work for my applications.
Is there a simple template---say for a block of text---that someone might be
able to offer for the ConTeXt challenged?
advTHANKSance
--
-----
- Pavneet Arora
[-- Attachment #2: parking.pdf --]
[-- Type: application/pdf, Size: 7405 bytes --]
[-- Attachment #3: parking.tex --]
[-- Type: text/x-tex, Size: 638 bytes --]
\setuppapersize[legal,landscape]
\setuplayout[header=0in,footer=0in,topspace=0.75in,bottomspace=0.75in,backspace=1in,width=12in]
\setuppagenumbering[location=]
\usemodule[simplefonts]
\setmainfont[texgyreschola]
\definebodyfont [10pt,11pt,12pt][rm]
[tfe=Serif at 128pt,
ite=SerifItalic at 128pt]
\setupbodyfont[12pt]
\setupinterlinespace[line=1.2\bodyfontsize]
\starttext
%\showlayout[pt,in]
%\showbodyfont
\dontleavehmode\framed[width=7in,align={flushright,nothyphenated,verytolerant},frame=on]{%
\tfe Enter through here for parking
}
\dontleavehmode\framed[width=5in,frame=off]{%
{\simplefont[symbol-signs][size=500pt] K}
}
\stoptext
[-- Attachment #4: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Word-wrap/hyphenation with very large font size not working consistently
2011-12-03 15:31 Word-wrap/hyphenation with very large font size not working consistently Pavneet Arora
@ 2011-12-03 15:43 ` Wolfgang Schuster
2011-12-03 16:55 ` Pavneet Arora
0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2011-12-03 15:43 UTC (permalink / raw)
To: pavneet_arora, mailing list for ConTeXt users
Am 03.12.2011 um 16:31 schrieb Pavneet Arora:
> I am trying to typeset some signs for a construction site. I enclose a (somewhat contrived) for consideration.
>
> What I am having difficulty with is to get word wrap and interline spacing to work consistently. I am using \framed, but if there is a better way please let me know. The trouble I am having is getting lines to break consistently. Sometimes they do, but as in this case the second word `through' continues beyond the frame width. You may also try to substitute the text ``Enter this way today'', another contrived example to see the effect. The symbol font that I am using is Symbol-Signs from:
>
> http://www.fontsquirrel.com/fonts/Symbol-Signs
>
> but I shouldn't think that is pertinent to the problem.
>
> Any guidance on what is the issue here? Or if there is a better way to go about doing this type of signage.
>
> I am also interested in learning how to do vertical centering of blocks of text, i.e., in a formal letter or in this case of setting text for signs. I have read and tried to understand Wolfgang's response to Jaroslav's earlier enquiry:
>
> http://archive.contextgarden.net/message/20100702.112805.07aa71e2.en.html
>
> but I really don't understand it and how to make it work for my applications. Is there a simple template---say for a block of text---that someone might be able to offer for the ConTeXt challenged?
\setuppapersize[legal,landscape]
\setuplayout
[header=0in,
footer=0in,
topspace=0.75in,
bottomspace=0.75in,
backspace=1in,
width=12in]
\setuppagenumbering
[location=]
\usemodule[simplefonts]
\setmainfont[TeX Gyre Schola]
%\setupinterlinespace[line=1.2\bodyfontsize]
\setupinterlinespace[line=2.2ex]
\starttext
\dontleavehmode
\framed
[width=7in,align={flushright,nothyphenated,broad},frame=on]
{\definedfont[Serif at 128pt]\setupinterlinespace Enter through here for parking\par}%
\framed
[width=5in,frame=off]
% {\definedfont[name:symbolsigns at 500pt]K}
{\definedfont[Sans at 500pt]K}
\stoptext
Wolfgang
___________________________________________________________________________________
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Word-wrap/hyphenation with very large font size not working consistently
2011-12-03 15:43 ` Wolfgang Schuster
@ 2011-12-03 16:55 ` Pavneet Arora
2011-12-03 17:14 ` Wolfgang Schuster
0 siblings, 1 reply; 5+ messages in thread
From: Pavneet Arora @ 2011-12-03 16:55 UTC (permalink / raw)
To: Wolfgang Schuster; +Cc: mailing list for ConTeXt users
Thanks Wolfgang,
I see that the main change was align=broad as an option to \framed. Could you
tell me what that does, or point me to where it is described? I see broad
described in terms of width and height but not align under the description for
framed.
Thanks.
On 11-12-03 10:43 AM, Wolfgang Schuster wrote:
>
> Am 03.12.2011 um 16:31 schrieb Pavneet Arora:
>
>> I am trying to typeset some signs for a construction site. I enclose a (somewhat contrived) for consideration.
>>
>> What I am having difficulty with is to get word wrap and interline spacing to work consistently. I am using \framed, but if there is a better way please let me know. The trouble I am having is getting lines to break consistently. Sometimes they do, but as in this case the second word `through' continues beyond the frame width. You may also try to substitute the text ``Enter this way today'', another contrived example to see the effect. The symbol font that I am using is Symbol-Signs from:
>>
>> http://www.fontsquirrel.com/fonts/Symbol-Signs
>>
>> but I shouldn't think that is pertinent to the problem.
>>
>> Any guidance on what is the issue here? Or if there is a better way to go about doing this type of signage.
>>
>> I am also interested in learning how to do vertical centering of blocks of text, i.e., in a formal letter or in this case of setting text for signs. I have read and tried to understand Wolfgang's response to Jaroslav's earlier enquiry:
>>
>> http://archive.contextgarden.net/message/20100702.112805.07aa71e2.en.html
>>
>> but I really don't understand it and how to make it work for my applications. Is there a simple template---say for a block of text---that someone might be able to offer for the ConTeXt challenged?
>
> \setuppapersize[legal,landscape]
>
> \setuplayout
> [header=0in,
> footer=0in,
> topspace=0.75in,
> bottomspace=0.75in,
> backspace=1in,
> width=12in]
>
> \setuppagenumbering
> [location=]
>
> \usemodule[simplefonts]
>
> \setmainfont[TeX Gyre Schola]
>
> %\setupinterlinespace[line=1.2\bodyfontsize]
> \setupinterlinespace[line=2.2ex]
>
> \starttext
> \dontleavehmode
> \framed
> [width=7in,align={flushright,nothyphenated,broad},frame=on]
> {\definedfont[Serif at 128pt]\setupinterlinespace Enter through here for parking\par}%
> \framed
> [width=5in,frame=off]
> % {\definedfont[name:symbolsigns at 500pt]K}
> {\definedfont[Sans at 500pt]K}
> \stoptext
>
> Wolfgang
--
-----
- Pavneet Arora
Waroc Fine Audio + Custom Home Cinema
www.waroc.com 416.937.WAROC (9276)
___________________________________________________________________________________
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Word-wrap/hyphenation with very large font size not working consistently
2011-12-03 16:55 ` Pavneet Arora
@ 2011-12-03 17:14 ` Wolfgang Schuster
2011-12-03 20:08 ` Pavneet Arora
0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2011-12-03 17:14 UTC (permalink / raw)
To: pavneet_arora; +Cc: mailing list for ConTeXt users
Am 03.12.2011 um 17:55 schrieb Pavneet Arora:
> Thanks Wolfgang,
>
> I see that the main change was align=broad as an option to \framed. Could you tell me what that does, or point me to where it is described? I see broad described in terms of width and height but not align under the description for framed.
With the “broad” key you can increase the tolerance for ragged (left, middle and right) text as you can see in the example below.
\starttext
\startalignment[flushleft]
\input ward
\stopalignment
\blank
\startalignment[flushleft,broad]
\input ward
\stopalignment
\stoptext
Wolfgang
___________________________________________________________________________________
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Word-wrap/hyphenation with very large font size not working consistently
2011-12-03 17:14 ` Wolfgang Schuster
@ 2011-12-03 20:08 ` Pavneet Arora
0 siblings, 0 replies; 5+ messages in thread
From: Pavneet Arora @ 2011-12-03 20:08 UTC (permalink / raw)
Cc: mailing list for ConTeXt users
Thanks for the clarification! I'll keep that in mind.
On 11-12-03 12:14 PM, Wolfgang Schuster wrote:
>
> Am 03.12.2011 um 17:55 schrieb Pavneet Arora:
>
>> Thanks Wolfgang,
>>
>> I see that the main change was align=broad as an option to \framed. Could you tell me what that does, or point me to where it is described? I see broad described in terms of width and height but not align under the description for framed.
>
> With the “broad” key you can increase the tolerance for ragged (left, middle and right) text as you can see in the example below.
>
> \starttext
>
> \startalignment[flushleft]
> \input ward
> \stopalignment
>
> \blank
>
> \startalignment[flushleft,broad]
> \input ward
> \stopalignment
>
> \stoptext
>
> Wolfgang
--
-----
- Pavneet Arora
Waroc Fine Audio + Custom Home Cinema
www.waroc.com 416.937.WAROC (9276)
___________________________________________________________________________________
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-12-03 20:08 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-03 15:31 Word-wrap/hyphenation with very large font size not working consistently Pavneet Arora
2011-12-03 15:43 ` Wolfgang Schuster
2011-12-03 16:55 ` Pavneet Arora
2011-12-03 17:14 ` Wolfgang Schuster
2011-12-03 20:08 ` Pavneet Arora
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).