[XeTeX] Case changing for Greek

Joseph Wright joseph.wright at morningstar2.co.uk
Thu May 7 16:08:55 CEST 2015


On 07/05/2015 15:02, Jonathan Kew wrote:
> On 7/5/15 13:22, Joseph Wright wrote:
>> Included in that 'standard' set up is the final sigma rule for Greek
>> text. For performance reasons that code has been set up to assume that a
>> sigma is final if it is followed by a space, a control sequence or a
>> character from the list
>>
>>      ) ] } . : ; , ! ? ' "
> 
> Would it be feasible to define this negatively instead -- something like
> "a sigma is final if it is NOT followed by another letter"?

Possibly yes: I guess in the TeX context a catcode-based test would work
reasonably well. I'll explore that.

> A possible refinement is that a lone sigma, neither preceded nor
> followed by another letter, should probably be lowercased as σ rather
> than ς.

One that needs input from a Greek speaker!

> To see the result of what we implemented for Firefox, you can try
> loading a testcase such as
> 
>   data:text/html;charset=utf-8,
>     <p style="text-transform:lowercase">ΣΑΒ ΑΣΒ ΑΒΣ Σ ΣΣΣ (Σ)
> 
> in the browser, which displays it as "σαβ ασβ αβς σ σσς (σ)". (And I
> notice Chrome and Safari have the same behavior, too.)

Much the same as we do.
--
Joseph Wright




More information about the XeTeX mailing list