Re: [NTG-context] Using ConTeXt with LuaTeX variants

2019-12-06 Thread Ulrike Fischer
Am Wed, 4 Dec 2019 20:10:13 -0500 schrieb Jairo A. del Rio:

> I want to know if it's possible use HarfTeX/LuaHBTeX with ConTeXt (MKIV),
...
> Although this is pretty easy with LaTeX:
> 
> \usepackage{harfload}
> \setmainfont{font}[RawFeature={mode=harf}]

unrelated to your question but this is no longer the recommended way
to use harf mode in latex. 

After some discussion the latex team decided to build lualatex next
year over luahbtex. For testing purpose lualatex-dev already now
uses luahbtex. harftex has been archived and its development has
stopped. The harfload code has been integrated into luaotfload.
Also fontspec has been updated and offers keys to activate harf
mode.

So your document should look like this:

\documentclass{article}
\usepackage{fontspec}
\setmainfont{font}[Renderer=Harfbuzz] 
...

This requires a current luaotfload and you should use lualatex-dev
to compile it. 



-- 
Ulrike Fischer 
https://www.troubleshooting-tex.de/

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@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
___


[NTG-context] Using ConTeXt with LuaTeX variants

2019-12-05 Thread Jairo A. del Rio
Hi. How do I build the format? I try

context --make

ANd nothing special happens. How do I set up the new engine. Thank you in
advance.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@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
___


Re: [NTG-context] Using ConTeXt with LuaTeX variants

2019-12-04 Thread Henri Menke

On 12/5/19 2:10 PM, Jairo A. del Rio wrote:

I want to know if it's possible use HarfTeX/LuaHBTeX with ConTeXt (MKIV),
mainly for what can be done with them (the "mode=harf" feature and Lua
language features).
Although this is pretty easy with LaTeX:

\usepackage{harfload}
\setmainfont{font}[RawFeature={mode=harf}]

I have no idea of how to make it work with context. I've tried the
following with a test file (a simple \starttext .. \stoptext document):

context tests.tex --engine=luahbtex

And this happens:

mtx-context | run 1: luahbtex
--fmt="/home/coragyps/.texlive2019/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex/cont-en"
--jobname="tests"
--lua="/home/coragyps/.texlive2019/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex/cont-en.lui"
--c:currentrun=1 --c:engine="luahbtex" --c:fulljobname="./tests.tex"
--c:input="./tests.tex" --c:kindofrun=1 --c:maxnofruns=9
--c:texmfbinpath="/usr/local/texlive/2019/bin/x86_64-linux" "cont-yes.mkiv"

This is LuaHBTeX, Version 1.11.2 (TeX Live 2020/dev)
  system commands enabled.

(Fatal format file error; I'm stymied)mtx-context | fatal error: return
code: 256

What should I do? Thank you in advance


First of all you should rebuild the format with the new engine.

context --make

Then you will have to write backend code that exposes the mode=harf
to the ConTeXt font loader.




___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@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
___


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@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
___


[NTG-context] Using ConTeXt with LuaTeX variants

2019-12-04 Thread Jairo A. del Rio
I want to know if it's possible use HarfTeX/LuaHBTeX with ConTeXt (MKIV),
mainly for what can be done with them (the "mode=harf" feature and Lua
language features).
Although this is pretty easy with LaTeX:

\usepackage{harfload}
\setmainfont{font}[RawFeature={mode=harf}]

I have no idea of how to make it work with context. I've tried the
following with a test file (a simple \starttext .. \stoptext document):

context tests.tex --engine=luahbtex

And this happens:

mtx-context | run 1: luahbtex
--fmt="/home/coragyps/.texlive2019/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex/cont-en"
--jobname="tests"
--lua="/home/coragyps/.texlive2019/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex/cont-en.lui"
--c:currentrun=1 --c:engine="luahbtex" --c:fulljobname="./tests.tex"
--c:input="./tests.tex" --c:kindofrun=1 --c:maxnofruns=9
--c:texmfbinpath="/usr/local/texlive/2019/bin/x86_64-linux" "cont-yes.mkiv"

This is LuaHBTeX, Version 1.11.2 (TeX Live 2020/dev)
 system commands enabled.

(Fatal format file error; I'm stymied)mtx-context | fatal error: return
code: 256

What should I do? Thank you in advance
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@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
___