Hagen - Pragma ADE
Hagen - Pragma ADE
Hagen - Pragma ADE
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
}<br />
name = "lm-compose-test",<br />
version = "1.00",<br />
comment = "Goodies that demonstrate composition.",<br />
author = "Hans and Mojca",<br />
copyright = "ConTeXt development team",<br />
compositions = {<br />
["lmroman12-regular"] = compose,<br />
}<br />
As this is an experimental feature there are several ways to deal with this. For instance:<br />
local defaultfraction = 10.0<br />
local compose = {<br />
dy = defaultfraction,<br />
[0x1E02] = { -- B dot above<br />
dy = 150<br />
},<br />
[0x1E04] = { -- B dot below<br />
dy = 150<br />
},<br />
}<br />
Here the fraction is relative to the difference between the height of the accentee and<br />
the accent. A better solution is the following:<br />
local compose = {<br />
[0x1E02] = { -- B dot above<br />
anchored = "top",<br />
},<br />
[0x1E04] = { -- B dot below<br />
anchored = "bottom",<br />
},<br />
[0x0042] = { -- B<br />
anchors = {<br />
top = {<br />
x = 300, y = 700,<br />
},<br />
bottom = {<br />
x = 300, y = -30,<br />
},<br />
},<br />
},<br />
[0x0307] = {<br />
anchors = {<br />
141<br />
Extensions