ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* extended ascii characters
@ 2004-01-03  0:29 Gonçalo Morais
  2004-01-03  8:05 ` Pawel Jackowski na Onet
  2004-01-03 18:51 ` extended ascii characters Hans Hagen
  0 siblings, 2 replies; 29+ messages in thread
From: Gonçalo Morais @ 2004-01-03  0:29 UTC (permalink / raw)



I would like to know how I may use extended ascii characters in context, for 
example character number 167. 

Thanks in advance 

Gonçalo
 --------------------------------------------
IPLNet WebMail http://www.mail.ipl.pt
 --------------------------------------------
   "Campus Virtual" do IPL - Já Aceite !
 http://www.net.ipl.pt/index.html#WIRELESS
 --------------------------------------------

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: extended ascii characters
  2004-01-03  0:29 extended ascii characters Gonçalo Morais
@ 2004-01-03  8:05 ` Pawel Jackowski na Onet
  2004-01-03 11:59   ` Gonçalo Morais
  2004-01-03 18:51 ` extended ascii characters Hans Hagen
  1 sibling, 1 reply; 29+ messages in thread
From: Pawel Jackowski na Onet @ 2004-01-03  8:05 UTC (permalink / raw)


Hi all!


> I would like to know how I may use extended ascii characters in context,
for
> example character number 167.

I'm sure Hans has made a lot of extensions for ,,strange'' character
support. But also plain TeX offers \char167 instruction, which returns
character 167 according to given font encoding. Is that what You looking
for?

Regards, Pawe/l

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: extended ascii characters
  2004-01-03  8:05 ` Pawel Jackowski na Onet
@ 2004-01-03 11:59   ` Gonçalo Morais
  2004-01-03 12:04     ` Patrick Gundlach
  2004-01-03 17:32     ` Adam Lindsay
  0 siblings, 2 replies; 29+ messages in thread
From: Gonçalo Morais @ 2004-01-03 11:59 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 959 bytes --]

Thanks for your help... 

I am aware of \char167 isntruction but in the next example nothing seems to 
happen!! 

Gonçalo 


Pawel Jackowski na Onet writes: 

> Hi all! 
> 
> 
>> I would like to know how I may use extended ascii characters in context,
> for
>> example character number 167.
> 
> I'm sure Hans has made a lot of extensions for ,,strange'' character
> support. But also plain TeX offers \char167 instruction, which returns
> character 167 according to given font encoding. Is that what You looking
> for? 
> 
> Regards, Pawe/l 
> 
> 
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
 

 --------------------------------------------
IPLNet WebMail http://www.mail.ipl.pt
 --------------------------------------------
   "Campus Virtual" do IPL - Já Aceite !
 http://www.net.ipl.pt/index.html#WIRELESS
 --------------------------------------------

[-- Attachment #2: cara.tex --]
[-- Type: application/x-tex, Size: 104 bytes --]

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: extended ascii characters
  2004-01-03 11:59   ` Gonçalo Morais
@ 2004-01-03 12:04     ` Patrick Gundlach
  2004-01-03 18:06       ` Pawel Jackowski na Onet
  2004-01-03 17:32     ` Adam Lindsay
  1 sibling, 1 reply; 29+ messages in thread
From: Patrick Gundlach @ 2004-01-03 12:04 UTC (permalink / raw)


"Gonçalo Morais" <gmorais@deea.isel.ipl.pt> writes:

> Thanks for your help... I am aware of \char167 isntruction but in the
> next example nothing seems to happen!! 

It surely depends on the fonts you use. Default is cmr, which has, as
far as I know, only 7bit encoding. So \char167 will lead to nothing.
Switch to another font.

Patrick
-- 
Es wird kein Wunder geschehen

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: Re: extended ascii characters
  2004-01-03 11:59   ` Gonçalo Morais
  2004-01-03 12:04     ` Patrick Gundlach
@ 2004-01-03 17:32     ` Adam Lindsay
  2004-01-04 18:09       ` Peter Münster
  1 sibling, 1 reply; 29+ messages in thread
From: Adam Lindsay @ 2004-01-03 17:32 UTC (permalink / raw)


Gonçalo,

"Extended ASCII" is relatively uninformative without some information on
which encoding you're actually using (ASCII is normative from 0-127).
I'll guess you mean '§' (Section mark), which, judging from regi-win and
regi-il1, is my guess for the character you mean. (On the mac, it's 'ß'
or the eszett, which is less likely judging from your email address.)

ConTeXt makes this easy: just use the macro \sectionmark .

If the original document uses an "extended ascii" encoding for characters
like this, you might find it easier to use this at the beginning of your
document:
\enableregime[il1]  %    ...or...
\enableregime[windows] % as appropriate.

Patrick is very right, and alludes to a (potentially) confusing topic,
with font encodings and input regimes. They're actually a very nice,
powerful aspect of ConTeXt, where you enter text using your most familiar
method, and don't have to worry where each glyph is located on a day-to-
day basis.

Hope that's some help...
adam

Gonçalo Morais said this at Sat, 3 Jan 2004 11:59:21 +0000:

>Thanks for your help...
>
>I am aware of \char167 isntruction but in the next example nothing seems to
>happen!!
>
>Gonçalo
>
>
>Pawel Jackowski na Onet writes:
>
>> Hi all!
>>
>>
>>> I would like to know how I may use extended ascii characters in context,
>> for
>>> example character number 167.
>>
>> I'm sure Hans has made a lot of extensions for ,,strange'' character
>> support. But also plain TeX offers \char167 instruction, which returns
>> character 167 according to given font encoding. Is that what You looking
>> for?
>>
>> Regards, Pawe/l
>>
>>
>> _______________________________________________
>> ntg-context mailing list
>> ntg-context@ntg.nl
>> http://www.ntg.nl/mailman/listinfo/ntg-context
>
>
> --------------------------------------------
>IPLNet WebMail http://www.mail.ipl.pt
> --------------------------------------------
>   "Campus Virtual" do IPL - Já Aceite !
> http://www.net.ipl.pt/index.html#WIRELESS
> --------------------------------------------

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay                      atl@comp.lancs.ac.uk
 Computing Dept, Lancaster University   +44(0)1524/594.537
 Lancaster, LA1 4YR, UK             Fax:+44(0)1524/593.608
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: Re: extended ascii characters
  2004-01-03 12:04     ` Patrick Gundlach
@ 2004-01-03 18:06       ` Pawel Jackowski na Onet
  0 siblings, 0 replies; 29+ messages in thread
From: Pawel Jackowski na Onet @ 2004-01-03 18:06 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 496 bytes --]


e: extended ascii characters


>>"Gonçalo Morais" <gmorais@deea.isel.ipl.pt> writes:
>> Thanks for your help... I am aware of \char167 isntruction but in the
>> next example nothing seems to happen!!

>It surely depends on the fonts you use. Default is cmr, which has, as
>far as I know, only 7bit encoding. So \char167 will lead to nothing.
>Switch to another font.

>Patrick

Attached file contains all characters available in cmr10. Indeed, there is
no character coded 167.

Regards, Pawe/l


[-- Attachment #2: sf.ps --]
[-- Type: application/postscript, Size: 71764 bytes --]

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: extended ascii characters
  2004-01-03  0:29 extended ascii characters Gonçalo Morais
  2004-01-03  8:05 ` Pawel Jackowski na Onet
@ 2004-01-03 18:51 ` Hans Hagen
  2004-01-04 23:10   ` Gonçalo Morais
  1 sibling, 1 reply; 29+ messages in thread
From: Hans Hagen @ 2004-01-03 18:51 UTC (permalink / raw)


At 01:29 03/01/2004, you wrote:

>I would like to know how I may use extended ascii characters in context, 
>for example character number 167.
>Thanks in advance

normally this is handled by font encoding and input regimes

if you want to directly access a char, how about:

\definesymbol[whatever][\getglyph{...}{167}]

see symb-*.tex for examples

Hans

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: Re: extended ascii characters
  2004-01-03 17:32     ` Adam Lindsay
@ 2004-01-04 18:09       ` Peter Münster
  2004-01-04 18:58         ` Adam Lindsay
  0 siblings, 1 reply; 29+ messages in thread
From: Peter Münster @ 2004-01-04 18:09 UTC (permalink / raw)


On Sat, 3 Jan 2004, Adam Lindsay wrote:

> like this, you might find it easier to use this at the beginning of your
> document:
> \enableregime[il1]  %    ...or...
> \enableregime[windows] % as appropriate.

Hello,
since I didn't find any documentation about this command, here 2 questions:

* What should I do to use the latin9 encoding?
I copied regi-il1.tex with the appropriate changes to regi-il9.tex but it
does not work. Anyway: when I get a working il9-file in my private ConTeXt
directory, how should I name it?

* How do you get hyphenation with accented characters?
In LaTeX I used to switch to the EC fonts by issuing \usepackage[T1]{fontenc}
I tried the following, but it didn't work:
\fr
\useencoding[ec]
\enableregime[il1]
\starttext
évolution évolution évolution évolution évolution évolution évolution
évolution évolution

evolution evolution evolution evolution evolution evolution evolution
evolution evolution
\stoptext

Thanks in advance for any help!

Happy new year, Peter

-- 
http://pmrb.free.fr/contact/
------------------------------------
Film Search site: http://f-s.sf.net/

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: Re: extended ascii characters
  2004-01-04 18:09       ` Peter Münster
@ 2004-01-04 18:58         ` Adam Lindsay
  2004-01-06  7:26           ` Peter Münster
  0 siblings, 1 reply; 29+ messages in thread
From: Adam Lindsay @ 2004-01-04 18:58 UTC (permalink / raw)


Peter Münster said this at Sun, 4 Jan 2004 19:09:38 +0100:

>* What should I do to use the latin9 encoding?
>I copied regi-il1.tex with the appropriate changes to regi-il9.tex but it
>does not work. Anyway: when I get a working il9-file in my private ConTeXt
>directory, how should I name it?

Peter, off the top of my head, I think you would do:
\input regi-il9     % read the file in
\useregime [il9]    % make sure the regime is loaded
\enableregime [il9] % activate it.

I'm pretty clueless about hyphenation, though.

adam
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay                      atl@comp.lancs.ac.uk
 Computing Dept, Lancaster University   +44(0)1524/594.537
 Lancaster, LA1 4YR, UK             Fax:+44(0)1524/593.608
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: extended ascii characters
  2004-01-03 18:51 ` extended ascii characters Hans Hagen
@ 2004-01-04 23:10   ` Gonçalo Morais
  0 siblings, 0 replies; 29+ messages in thread
From: Gonçalo Morais @ 2004-01-04 23:10 UTC (permalink / raw)


I will, thank you all for your support. 

Gonçalo 

Hans Hagen writes: 

> At 01:29 03/01/2004, you wrote: 
> 
>> I would like to know how I may use extended ascii characters in context, 
>> for example character number 167.
>> Thanks in advance
> 
> normally this is handled by font encoding and input regimes 
> 
> if you want to directly access a char, how about: 
> 
> \definesymbol[whatever][\getglyph{...}{167}] 
> 
> see symb-*.tex for examples 
> 
> Hans 
> 
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
 

 --------------------------------------------
IPLNet WebMail http://www.mail.ipl.pt
 --------------------------------------------
   "Campus Virtual" do IPL - Já Aceite !
 http://www.net.ipl.pt/index.html#WIRELESS
 --------------------------------------------

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: Re: extended ascii characters
  2004-01-04 18:58         ` Adam Lindsay
@ 2004-01-06  7:26           ` Peter Münster
  2004-01-06 14:12             ` Henning Hraban Ramm
  0 siblings, 1 reply; 29+ messages in thread
From: Peter Münster @ 2004-01-06  7:26 UTC (permalink / raw)


On Sun, 4 Jan 2004, Adam Lindsay wrote:

> Peter Münster said this at Sun, 4 Jan 2004 19:09:38 +0100:
>
> >* What should I do to use the latin9 encoding?
> >I copied regi-il1.tex with the appropriate changes to regi-il9.tex but it
> >does not work. Anyway: when I get a working il9-file in my private ConTeXt
> >directory, how should I name it?
>
> Peter, off the top of my head, I think you would do:
> \input regi-il9     % read the file in
> \useregime [il9]    % make sure the regime is loaded
> \enableregime [il9] % activate it.

Thanks, my mistake was not to use the \useregime command.

> I'm pretty clueless about hyphenation, though.

Oh, too bad... :(
I'll ask this question perhaps another day, if I don't get it.

Cheers, Peter

-- 
http://pmrb.free.fr/contact/
------------------------------------
Film Search site: http://f-s.sf.net/

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: Re: extended ascii characters
  2004-01-06  7:26           ` Peter Münster
@ 2004-01-06 14:12             ` Henning Hraban Ramm
  2004-01-06 16:58               ` hyphenation (was: Re: extended ascii characters) Peter Münster
  0 siblings, 1 reply; 29+ messages in thread
From: Henning Hraban Ramm @ 2004-01-06 14:12 UTC (permalink / raw)



Am Dienstag, 06.01.04, um 08:26 Uhr (Europe/Zurich) schrieb Peter 
Münster:
>> I'm pretty clueless about hyphenation, though.
> Oh, too bad... :(
> I'll ask this question perhaps another day, if I don't get it.

For correct hyphenation and some other details you need to declare your 
language:
\mainlanguage[fr] or \language[fr]

HTH

Grüßlis vom Hraban!
-- 
http://www.fiee.net/texnique/

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: hyphenation (was: Re: extended ascii characters)
  2004-01-06 14:12             ` Henning Hraban Ramm
@ 2004-01-06 16:58               ` Peter Münster
  2004-01-06 21:37                 ` hyphenation Henning Hraban Ramm
  0 siblings, 1 reply; 29+ messages in thread
From: Peter Münster @ 2004-01-06 16:58 UTC (permalink / raw)


On Tue, 6 Jan 2004, Henning Hraban Ramm wrote:

> For correct hyphenation and some other details you need to declare your
> language:
> \mainlanguage[fr] or \language[fr]

The original posted example began with \fr, which should be the same as
\language[fr].

Here again the example, where you can see the problem.

\fr
\useencoding[ec]
\enableregime[il1]
\starttext
évolution évolution évolution évolution évolution évolution évolution
évolution évolution

evolution evolution evolution evolution evolution evolution evolution
evolution evolution
\stoptext

Cheers, Peter

-- 
http://pmrb.free.fr/contact/
------------------------------------
Film Search site: http://f-s.sf.net/

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: hyphenation
  2004-01-06 16:58               ` hyphenation (was: Re: extended ascii characters) Peter Münster
@ 2004-01-06 21:37                 ` Henning Hraban Ramm
  2004-01-07  6:21                   ` hyphenation Peter Münster
  0 siblings, 1 reply; 29+ messages in thread
From: Henning Hraban Ramm @ 2004-01-06 21:37 UTC (permalink / raw)



Am Dienstag, 06.01.04, um 17:58 Uhr (Europe/Zurich) schrieb Peter 
Münster:
> The original posted example began with \fr, which should be the same as
> \language[fr].

right.

> Here again the example, where you can see the problem.

Here's no problem - I get hyphenation.

Grüßlis vom Hraban!
-- 
http://www.fiee.net/texnique/

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: hyphenation
  2004-01-06 21:37                 ` hyphenation Henning Hraban Ramm
@ 2004-01-07  6:21                   ` Peter Münster
  2004-01-07 17:39                     ` hyphenation: latin modern fonts Helmut Schwertner
  0 siblings, 1 reply; 29+ messages in thread
From: Peter Münster @ 2004-01-07  6:21 UTC (permalink / raw)


On Tue, 6 Jan 2004, Henning Hraban Ramm wrote:

> > Here again the example, where you can see the problem.
>
> Here's no problem - I get hyphenation.

Ok, then there must be a problem with my installation. I only get "evolution"
hyphenated, but not "évolution"... :(
Cheers, Peter

-- 
http://pmrb.free.fr/contact/
------------------------------------
Film Search site: http://f-s.sf.net/

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: hyphenation: latin modern fonts
  2004-01-07  6:21                   ` hyphenation Peter Münster
@ 2004-01-07 17:39                     ` Helmut Schwertner
  2004-01-08 18:46                       ` Peter Münster
  0 siblings, 1 reply; 29+ messages in thread
From: Helmut Schwertner @ 2004-01-07 17:39 UTC (permalink / raw)


Hello Peter,

Peter Münster schrieb:
>>>Here again the example, where you can see the problem.
>>Here's no problem - I get hyphenation.

> Ok, then there must be a problem with my installation. I only get "evolution"
> hyphenated, but not "évolution"... :(
> Cheers, Peter
> 

take the  latin modern fonts. This example works with winxp and miktex:

*************************************************************

\language[fr]
% \useencoding[ec]
\enableregime[il1]

% latin modern fonts
\usetypescript [all] [latin-modern] [texnansi]
\setupbodyfont[reset]
\setupbodyfont[cmr]

\starttext

évolution évolution évolution évolution évolution évolution évolution
évolution évolution

evolution evolution evolution evolution evolution evolution evolution
evolution evolution

\stoptext

************************************************************************




-- 

******************************
Helmut Schwertner
Schülperbaum 4
24103 K i e l

phone: 0431 58 78 502
eMail: schwertner@t-online.de

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: hyphenation: latin modern fonts
  2004-01-07 17:39                     ` hyphenation: latin modern fonts Helmut Schwertner
@ 2004-01-08 18:46                       ` Peter Münster
  2004-01-08 19:10                         ` Willi Egger
  0 siblings, 1 reply; 29+ messages in thread
From: Peter Münster @ 2004-01-08 18:46 UTC (permalink / raw)


On Wed, 7 Jan 2004, Helmut Schwertner wrote:

> Peter Münster schrieb:

> >>>Here again the example, where you can see the problem.

> >>Here's no problem - I get hyphenation.

> > Ok, then there must be a problem with my installation. I only get "evolution"
> > hyphenated, but not "évolution"... :(

> take the  latin modern fonts. This example works with winxp and miktex:

Thanks for this hint. But as I read in newsgroup d.c.t.t aren't there still
bugs with the kerning etc?

Strange: I don't have Latin Modern installed, but your example file
compiled here with texexec without any error nor warning message...

Under LaTeX I used the EC fonts. Will it be difficult to get them work with
ConTeXt?

So, there is no problem with my installation?

Thanks for your help, Peter

-- 
http://pmrb.free.fr/contact/
------------------------------------
Film Search site: http://f-s.sf.net/

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: hyphenation: latin modern fonts
  2004-01-08 18:46                       ` Peter Münster
@ 2004-01-08 19:10                         ` Willi Egger
  2004-01-09 21:30                           ` Peter Münster
  0 siblings, 1 reply; 29+ messages in thread
From: Willi Egger @ 2004-01-08 19:10 UTC (permalink / raw)


Peter Münster wrote:

>On Wed, 7 Jan 2004, Helmut Schwertner wrote:
>
>  
>
>>Peter Münster schrieb:
>>    
>>
>
>  
>
>>>>>Here again the example, where you can see the problem.
>>>>>          
>>>>>
>
>  
>
>>>>Here's no problem - I get hyphenation.
>>>>        
>>>>
>
>  
>
>>>Ok, then there must be a problem with my installation. I only get "evolution"
>>>hyphenated, but not "évolution"... :(
>>>      
>>>
>
>  
>
>>take the  latin modern fonts. This example works with winxp and miktex:
>>    
>>
>
>Thanks for this hint. But as I read in newsgroup d.c.t.t aren't there still
>bugs with the kerning etc?
>
>Strange: I don't have Latin Modern installed, but your example file
>compiled here with texexec without any error nor warning message...
>
>Under LaTeX I used the EC fonts. Will it be difficult to get them work with
>ConTeXt?
>
>So, there is no problem with my installation?
>
>Thanks for your help, Peter
>
>  
>
Hi Peter,

Provided that you use a recent CONTEXT, everything should be there. Get 
the fonts from CTAN or from the TEXlive Collection (directory is outside 
the texmf-tree).
Within CONTEXT:

\usetypescript[modern][texnansi] %or whatever you like
\setupbodyfont[modern,rms,11pt]

I stand corrected, but because of the matching mechanism, you will get 
CMR if the Latin Modern fonts are not available - Check the pdf file's 
font properties

Kind regards

Willi

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: hyphenation: latin modern fonts
  2004-01-08 19:10                         ` Willi Egger
@ 2004-01-09 21:30                           ` Peter Münster
  0 siblings, 0 replies; 29+ messages in thread
From: Peter Münster @ 2004-01-09 21:30 UTC (permalink / raw)


On Thu, 8 Jan 2004, Willi Egger wrote:

> Provided that you use a recent CONTEXT, everything should be there. Get
> the fonts from CTAN or from the TEXlive Collection (directory is outside
> the texmf-tree).
> Within CONTEXT:
>
> \usetypescript[modern][texnansi] %or whatever you like
> \setupbodyfont[modern,rms,11pt]

Ok, I installed the newest ConTeXt and the lm fonts. Hyphenation is good
now. The only thing I had to do, was adding lm.map to the files config.ps,
xdvi.cfg and pdftex.cfg.
Thanks, Peter

-- 
http://pmrb.free.fr/contact/
------------------------------------
Film Search site: http://f-s.sf.net/

^ permalink raw reply	[flat|nested] 29+ messages in thread

* hyphenation
@ 2021-10-13  7:49 Hans Hagen via ntg-context
  0 siblings, 0 replies; 29+ messages in thread
From: Hans Hagen via ntg-context @ 2021-10-13  7:49 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Hans Hagen

Hi,

Here is a nice trick to show all possible (within the constraints of 
fonts and languages) hyphenations in a paragraoh:

     \bgroup
         \setupalign[flushright]
         \hyphenpenalty-100000
         \input tufte
         \par % force hyphenation
     \egroup

This one does the same for last lines on a page with a hyphen:

\bgroup
   % \interlinepenalty10000
     \brokenpenalty-10000
     \input tufte
\egroup

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: hyphenation
  2018-10-26 11:38 hyphenation Hans van der Meer
  2018-10-26 11:54 ` hyphenation Hans Hagen
@ 2018-10-26 11:57 ` Wolfgang Schuster
  1 sibling, 0 replies; 29+ messages in thread
From: Wolfgang Schuster @ 2018-10-26 11:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Hans van der Meer


[-- Attachment #1.1: Type: text/plain, Size: 963 bytes --]

Untested:

\setupreferenceformat[style=\nohyphens]

Wolfgang


Hans van der Meer schrieb am 26.10.18 um 13:38:
> Using roman numbers in figures I encountered a case where XIII.9 was 
> hyphenated into XI-II.9. A bit unclear, in my opinion.
>
> Easily repairable with something 
> like \def\myfigure[#1]{{\nohyphens\in{figure}[#1]}}
> Just an observation, not really a problem but maybe something waiting 
> to be fixed.
>
> dr. Hans van der Meer
>
>
>
>
> ___________________________________________________________________________________
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________


[-- Attachment #1.2: Type: text/html, Size: 2985 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: hyphenation
  2018-10-26 11:38 hyphenation Hans van der Meer
@ 2018-10-26 11:54 ` Hans Hagen
  2018-10-26 11:57 ` hyphenation Wolfgang Schuster
  1 sibling, 0 replies; 29+ messages in thread
From: Hans Hagen @ 2018-10-26 11:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Hans van der Meer

On 10/26/2018 1:38 PM, Hans van der Meer wrote:
> Using roman numbers in figures I encountered a case where XIII.9 was 
> hyphenated into XI-II.9. A bit unclear, in my opinion.
> 
> Easily repairable with something 
> like \def\myfigure[#1]{{\nohyphens\in{figure}[#1]}}
> Just an observation, not really a problem but maybe something waiting to 
> be fixed.

\nl \hyphenation{XIII}


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 29+ messages in thread

* hyphenation
@ 2018-10-26 11:38 Hans van der Meer
  2018-10-26 11:54 ` hyphenation Hans Hagen
  2018-10-26 11:57 ` hyphenation Wolfgang Schuster
  0 siblings, 2 replies; 29+ messages in thread
From: Hans van der Meer @ 2018-10-26 11:38 UTC (permalink / raw)
  To: NTG ConTeXt


[-- Attachment #1.1: Type: text/plain, Size: 327 bytes --]

Using roman numbers in figures I encountered a case where XIII.9 was hyphenated into XI-II.9. A bit unclear, in my opinion. 

Easily repairable with something like \def\myfigure[#1]{{\nohyphens\in{figure}[#1]}}
Just an observation, not really a problem but maybe something waiting to be fixed.

dr. Hans van der Meer



[-- Attachment #1.2: Type: text/html, Size: 1541 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: hyphenation
  2009-05-24 21:12 hyphenation Henning Hraban Ramm
@ 2009-05-25  7:07 ` Taco Hoekwater
  0 siblings, 0 replies; 29+ messages in thread
From: Taco Hoekwater @ 2009-05-25  7:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Hi Hraban,

Your questions are more about luatex than about context, I think
(you _are_ talking about mkiv, yes?)

Henning Hraban Ramm wrote:
> Ahoi,
> (1)
> there's an ongoing thread on the German mailing list (TeX-D-L), if it 
> would be possible to implement weighted(?) hyphenation, i.e. that some 
> breaks are better than other, e.g.
> Do-nau---dampf--schiff---fahrt
> Wa-ren---wirt--schaft
> Eu-ro-pa---par-la--ment
> (In InDesign I can suggest such priorities if I add words to the user 
> dictionary.)

There is a tracker item to that effect:

   http://tracker.luatex.org/view.php?id=168

but it has no planned deadline yet.

> (2)
> Uses ConTeXt the same hyphenation algorithm as LaTeX? Or one of the 
> newer projects? (perhaps SiSiSi?)

At the moment, the functionality of \patterns in luatex is the same as
in pdf(tex) except that the hyphenation patterns are fully UTF-8.

> (3)
> Further, I wonder why \hyphenation{} is case dependend - in my last 
> project "Secretary General" was wrongly hyphenated, but 
> \hyphenation{se-cre-ta-ry} didn't fix it, I needed 
> \hyphenation{Se-cre-ta-ry}. Does that make sense?

Not so much. At first sight, this looks like a luatex bug. I will 
investigate.

Best wishes,
Taco

___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 29+ messages in thread

* hyphenation
@ 2009-05-24 21:12 Henning Hraban Ramm
  2009-05-25  7:07 ` hyphenation Taco Hoekwater
  0 siblings, 1 reply; 29+ messages in thread
From: Henning Hraban Ramm @ 2009-05-24 21:12 UTC (permalink / raw)
  To: mailing ConTeXt users list for

Ahoi,
(1)
there's an ongoing thread on the German mailing list (TeX-D-L), if it  
would be possible to implement weighted(?) hyphenation, i.e. that some  
breaks are better than other, e.g.
Do-nau---dampf--schiff---fahrt
Wa-ren---wirt--schaft
Eu-ro-pa---par-la--ment
(In InDesign I can suggest such priorities if I add words to the user  
dictionary.)

(2)
Uses ConTeXt the same hyphenation algorithm as LaTeX? Or one of the  
newer projects? (perhaps SiSiSi?)

(3)
Further, I wonder why \hyphenation{} is case dependend - in my last  
project "Secretary General" was wrongly hyphenated, but  
\hyphenation{se-cre-ta-ry} didn't fix it, I needed \hyphenation{Se-cre- 
ta-ry}. Does that make sense?



Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: hyphenation
       [not found] ` <A1349FE2-7740-4416-A001-7F766506A658@uni-bonn.de>
@ 2009-04-09 15:02   ` Vyatcheslav Yatskovsky
  0 siblings, 0 replies; 29+ messages in thread
From: Vyatcheslav Yatskovsky @ 2009-04-09 15:02 UTC (permalink / raw)
  To: Thomas A. Schmitz, ntg-context

[-- Attachment #1: Type: text/plain, Size: 550 bytes --]

Hello Thomas and everybody,

I've checked hyph patterns for Russian and languages provided by you. I 
discovered that nothing has changed for last month -- the result is 
exactly the same for luatex 0.35 and 0.37, as well as respective ConTeXt 
builds.

Two demo images are attached.

Vyatcheslav

> Hi Vyatcheslav,
>
> I append a file that I have used, can you simply add tests for Russian 
> and Ukrainian? Yes, I'm using mkiv, latest beta, luatex 0.37.
>
> Thanks for your help - I will be offline until Sunday night.
>
> All best
>
> Thomas
>
>


[-- Attachment #2: LuaTeX 0.37.0-2009040118 ConTeXt 2009.04.06.png --]
[-- Type: image/png, Size: 4316 bytes --]

[-- Attachment #3: LuaTeX 0.35.0-2009022423 ConTeXt 2009.03.27.png --]
[-- Type: image/png, Size: 4195 bytes --]

[-- Attachment #4: Type: text/plain, Size: 487 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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: hyphenation
  2003-04-02  6:04 hyphenation Zeljko Vrba
@ 2003-04-08 11:26 ` Hans Hagen
  0 siblings, 0 replies; 29+ messages in thread
From: Hans Hagen @ 2003-04-08 11:26 UTC (permalink / raw)


At 08:04 02/04/2003 +0200, Zeljko Vrba wrote:

>I'm typesetting something in Croatian language. In cont-en.tex I put
>an \installlanguage, and properly configured the hyphenation tables
>(which languages to include/exclude).  In my main project file, I put
>\mainlanguage[hr]. Is this enough for Context to use Croatian hyphenation
>rules? Is there a way to check by which rules does it hyphenate?
>
>(I myself am not too familiar with my own language's hyphenation :),
>but some words do appear hyphenated strangely nevertheless.. so I'd just
>want to check it)

this is also related to the (font) encoding; are you sure that the encoding 
matches the patterns?

(can be set up with installlanguage, see czech)

Hans


-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 29+ messages in thread

* hyphenation
@ 2003-04-02  6:04 Zeljko Vrba
  2003-04-08 11:26 ` hyphenation Hans Hagen
  0 siblings, 1 reply; 29+ messages in thread
From: Zeljko Vrba @ 2003-04-02  6:04 UTC (permalink / raw)



I'm typesetting something in Croatian language. In cont-en.tex I put
an \installlanguage, and properly configured the hyphenation tables
(which languages to include/exclude).  In my main project file, I put
\mainlanguage[hr]. Is this enough for Context to use Croatian hyphenation
rules? Is there a way to check by which rules does it hyphenate?

(I myself am not too familiar with my own language's hyphenation :),
but some words do appear hyphenated strangely nevertheless.. so I'd just
want to check it)

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: Hyphenation
       [not found] ` <3.0.5.32.19990525160807.00a40210@mail.northcoast.com>
@ 1999-05-26  7:35   ` Hans Hagen
  0 siblings, 0 replies; 29+ messages in thread
From: Hans Hagen @ 1999-05-26  7:35 UTC (permalink / raw)


David Arnold wrote:

> (f:\texmf\tex\context\config\cont-usr.tex))
> language       : no patterns en for en (n=0)
> language       : no hyphenations en for en (n=0)
> language       : patterns uk for uk loaded (n=1)

> ConTeXt ver: 1999.5.11 fmt: 1999.5.22 int: english mes: english

> >> It doesn't look like I am getting the hyphenation patterns I need. The
> >> following source generates the attached pdf on my system.

Ah, this is a real problem! I didn't notice that because I use the
lang-* filenames here (those were included in previous distributions).
File mapping is rather recent and was introduced to prevent
duplications. The cont-usr file should have an 'en' entry too! I also
noticed that the uk entry was wrong: should be 'ukhyphen' instead of
'ukhyph'. So much for standards in naming. I don;t think tetex suffers
from this, because Thomas has a system wide mapping system running
there. 

Can you add/change these lines in cont-usr.tex? 

\definefilesynonym [lang-en.pat]  [ushyph1.tex]
\definefilesynonym [lang-us.pat]  [ushyph1.tex]
\definefilesynonym [lang-uk.pat]  [ukhyphen.tex]

Thanks for mentioning the problem, 

Hans

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.nl
-----------------------------------------------------------------


^ permalink raw reply	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2021-10-13  7:49 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-03  0:29 extended ascii characters Gonçalo Morais
2004-01-03  8:05 ` Pawel Jackowski na Onet
2004-01-03 11:59   ` Gonçalo Morais
2004-01-03 12:04     ` Patrick Gundlach
2004-01-03 18:06       ` Pawel Jackowski na Onet
2004-01-03 17:32     ` Adam Lindsay
2004-01-04 18:09       ` Peter Münster
2004-01-04 18:58         ` Adam Lindsay
2004-01-06  7:26           ` Peter Münster
2004-01-06 14:12             ` Henning Hraban Ramm
2004-01-06 16:58               ` hyphenation (was: Re: extended ascii characters) Peter Münster
2004-01-06 21:37                 ` hyphenation Henning Hraban Ramm
2004-01-07  6:21                   ` hyphenation Peter Münster
2004-01-07 17:39                     ` hyphenation: latin modern fonts Helmut Schwertner
2004-01-08 18:46                       ` Peter Münster
2004-01-08 19:10                         ` Willi Egger
2004-01-09 21:30                           ` Peter Münster
2004-01-03 18:51 ` extended ascii characters Hans Hagen
2004-01-04 23:10   ` Gonçalo Morais
  -- strict thread matches above, loose matches on Subject: below --
2021-10-13  7:49 hyphenation Hans Hagen via ntg-context
2018-10-26 11:38 hyphenation Hans van der Meer
2018-10-26 11:54 ` hyphenation Hans Hagen
2018-10-26 11:57 ` hyphenation Wolfgang Schuster
2009-05-24 21:12 hyphenation Henning Hraban Ramm
2009-05-25  7:07 ` hyphenation Taco Hoekwater
     [not found] <873781070904090254u12812a9dr4fd2aca7006a67c@mail.gmail.com>
     [not found] ` <A1349FE2-7740-4416-A001-7F766506A658@uni-bonn.de>
2009-04-09 15:02   ` hyphenation Vyatcheslav Yatskovsky
2003-04-02  6:04 hyphenation Zeljko Vrba
2003-04-08 11:26 ` hyphenation Hans Hagen
     [not found] <3.0.5.32.19990523153816.00a37680@mail.northcoast.com>
     [not found] ` <3.0.5.32.19990525160807.00a40210@mail.northcoast.com>
1999-05-26  7:35   ` Hyphenation Hans Hagen

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).