[NTG-context] Catalan especial character (l·l) in ConTeXt

Keith J. Schultz keithjschultz at web.de
Thu Jan 8 17:34:02 CET 2015


Hi Hans, All,

Your solution is naturaly better, but I was trying to use \topaccent to solve
the problem. 

Yet, in my test I noticed that there maybe a bug in the spacing of the Middle Dot in the 
default font of ConTeXt, as you can see using my MWE.

Depending on the font used, the result looks likes 19cat’s LaTeX example!

Of course using \topaccent causes a character spacing to the preceding character!
Here again the result is the worst for the default font of ConTeXt!

Here my test MWE!?

\mainlanguage[ca]

%\definefontfeature[default][default][char-ligatures=yes,mode=node]
%\definefontfeature[default][default][compat-ligatures=yes,mode=node]

\definefontfamily [mainface] [serif] [Avenir]
%\definefontfamily [mainface] [serif] [TeX Gyre Schola]
\setupbodyfont[mainface]

%\setupbodyfont[cambria]
%\setupbodyfont[pagella]

\def\LdotL{\topaccent{0pt}{0.5}{0}{·}{L}L}
\def\ldotl{\topaccent{0pt}{1.2}{0}{·}{l}l}

\def\Ldot{\topaccent{0pt}{0.5}{0}{·}{L}}
\def\ldot{\topaccent{0pt}{1.2}{0}{·}{l}}

\starttext
	% With flow point
	\section{PEL·LÍCULES}
	Vull veure pel·lícules al col·legi
	affike
	% With utf-8 character
	\section{PEĿLÍCULES}
	Vull veure peŀlícules al coŀlegi

	\section{PE\LdotL ÍCULES}
	Vull veure pe\ldotl ícules al co\ldotl egi

	\section{PE\Ldot LÍCULES}
	Vull veure pe\ldot lícules al co\ldot legi	
\stoptext

> Am 08.01.2015 um 15:07 schrieb Hans Hagen <pragma at wxs.nl>:
> 
> 
> This is kind of tricky as in unicode they are not composed characters (char vs compat) so they are not dealt with in the collapser.
> 
> I've added this to the beta:
> 
> \definefontfeature[default][default][char-ligatures=yes,mode=node]
> \definefontfeature[default][default][compat-ligatures=yes,mode=node]
> 
> % \setupbodyfont[cambria]
> % \setupbodyfont[pagella]
> 
> \starttext
> 
> \startTEXpage[offset=10pt]
>    PEL·LÍCULES pel·lícules col·legi \par
>    PEĿLÍCULES  peŀlícules  coŀlegi  \par
> \stopTEXpage
> 
> \stoptext
> 
> I'm not sure about the names of these pseudo features (pl01 and pl02 might make more sense or maybe xlig (extra) and plig (pseudo) ... so maybe the names will change.
> 
> (Not all fonts support this properly so it always needs checking.)
> 
> Hans
> 
> 
> -----------------------------------------------------------------
>                                          Hans Hagen | PRAGMA ADE
>              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>    tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com <http://www.pragma-ade.com/>
>                                             | www.pragma-pod.nl <http://www.pragma-pod.nl/>
> -----------------------------------------------------------------
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context at 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
> ___________________________________________________________________________________

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20150108/79c203e6/attachment-0001.html>


More information about the ntg-context mailing list