summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/fontspec/fontspec-keyval.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/fontspec/fontspec-keyval.dtx')
-rw-r--r--Master/texmf-dist/source/latex/fontspec/fontspec-keyval.dtx12
1 files changed, 4 insertions, 8 deletions
diff --git a/Master/texmf-dist/source/latex/fontspec/fontspec-keyval.dtx b/Master/texmf-dist/source/latex/fontspec/fontspec-keyval.dtx
index 079713020fd..8f790533a7c 100644
--- a/Master/texmf-dist/source/latex/fontspec/fontspec-keyval.dtx
+++ b/Master/texmf-dist/source/latex/fontspec/fontspec-keyval.dtx
@@ -580,29 +580,25 @@
% \begin{macrocode}
\@@_keys_define_code:nnn {fontspec} {HyphenChar}
{
+ \@@_warning:nx {only-xetex-feature} {HyphenChar}
\str_if_eq:nnTF {#1} {None}
{
\tl_put_right:Nn \l_@@_postadjust_tl
{ \hyphenchar \font = -1 \relax }
}
{
+
\tl_if_single:nTF {#1}
{ \tl_set:Nn \l_fontspec_hyphenchar_tl {`#1} }
{ \tl_set:Nn \l_fontspec_hyphenchar_tl { #1} }
+
\@@_primitive_font_glyph_if_exist:NnTF \l_fontspec_font {\l_fontspec_hyphenchar_tl}
{
\tl_put_right:Nn \l_@@_postadjust_tl
-%<*xetexx>
{ \hyphenchar \font = \l_fontspec_hyphenchar_tl \scan_stop: }
-%</xetexx>
-%<*luatex>
- {
- \hyphenchar \font = \c_zero
- \int_set:Nn \luatex_prehyphenchar:D { \l_fontspec_hyphenchar_tl }
- }
-%</luatex>
}
{ \@@_error:nx {no-glyph}{#1} }
+
}
}
\@@_aff_error:n {HyphenChar}