From: Pablo Rodriguez via ntg-context <ntg-context@ntg.nl>
To: ConTeXt users <ntg-context@ntg.nl>
Cc: Pablo Rodriguez <oinos@gmx.es>
Subject: issue with custom hyphenator
Date: Fri, 10 Feb 2023 20:02:00 +0100 [thread overview]
Message-ID: <eb266a42-31b3-ac72-d601-0dcb55a4813e@gmx.es> (raw)
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
___________________________________________________________________________________
reply other threads:[~2023-02-10 19:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=eb266a42-31b3-ac72-d601-0dcb55a4813e@gmx.es \
--to=ntg-context@ntg.nl \
--cc=oinos@gmx.es \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).