Pablo Rodriguez
2018-12-02 19:38:15 UTC
Dear list,
diving into the Lua code from MkIV, I found a way to add ligatures.
But I have a problem with the following sample:
\startluacode
fonts.handlers.otf.addfeature {
name = "linearb",
type = "ligature",
data = {
𐁃 = { "d", "w", "e" },
Y = { "d", "a" },
b = { "P", "Q" },
}
}
\stopluacode
\definefontfeature[default][default][linearb=yes]
\definefallbackfamily
[mainface]
[rm]
[Noto Sans Linear B]
[range={linearbideograms, linearbsyllabary}]
\definefontfamily
[mainface]
[rm]
[Noto Sans]
\setupbodyfont[mainface]
\starttext
\startTEXpage
da dwe PQ 𐁃
\stopTEXpage
\stoptext
What am I missing to get the "dwe" ligature?
Many thanks for your help,
Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-***@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
___________________________
diving into the Lua code from MkIV, I found a way to add ligatures.
But I have a problem with the following sample:
\startluacode
fonts.handlers.otf.addfeature {
name = "linearb",
type = "ligature",
data = {
𐁃 = { "d", "w", "e" },
Y = { "d", "a" },
b = { "P", "Q" },
}
}
\stopluacode
\definefontfeature[default][default][linearb=yes]
\definefallbackfamily
[mainface]
[rm]
[Noto Sans Linear B]
[range={linearbideograms, linearbsyllabary}]
\definefontfamily
[mainface]
[rm]
[Noto Sans]
\setupbodyfont[mainface]
\starttext
\startTEXpage
da dwe PQ 𐁃
\stopTEXpage
\stoptext
What am I missing to get the "dwe" ligature?
Many thanks for your help,
Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-***@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
___________________________