* issue with custom hyphenator
@ 2023-02-10 19:02 Pablo Rodriguez via ntg-context
0 siblings, 0 replies; only message in thread
From: Pablo Rodriguez via ntg-context @ 2023-02-10 19:02 UTC (permalink / raw)
To: ConTeXt users; +Cc: Pablo Rodriguez
Dear list,
I have just copied this from
https://www.pragma-ade.com/general/manuals/languages-mkiv.pdf#page=23:
\startluacode
local subset = {
a = true,
e = true,
i = true,
o = true,
u = true,
y = true,
}
languages.hyphenators.traditional.installmethod("test",
function(dictionary,word,n)
local t = { }
for i=1,#word do
local w = word[i]
if subset[w] then
t[i] = {
before = "<" .. w,
after = w .. ">",
left = false,
right = false,
}
else
t[i] = false
end
end
return t
end
)
\stopluacode
\definehyphenationfeatures
[demo]
[alternative=test]
\setuphyphenation[method=traditional]
\starttext
%\righthyphenmin=-1
\sethyphenationfeatures[demo]
\hsize\zeropoint
coming anaback
\stoptext
Using current latest (from 2023.02.07 19:06), I get:
c<o
o>ing
an<a
a>ack
I’m missing m and b in the hyphenated words.
I’m afraid that the hyphenator is all Greek to me.
Is there any reason why letters are lost in hyphenation?
I’m afraid (I think) I might have hit a bug.
Many thanks for your help,
Pablo
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-02-10 19:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-10 19:02 issue with custom hyphenator Pablo Rodriguez via ntg-context
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).