ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Using ConTeXt with LuaTeX variants
@ 2019-12-05  1:10 Jairo A. del Rio
  2019-12-05  2:01 ` Henri Menke
  2019-12-06 14:26 ` Ulrike Fischer
  0 siblings, 2 replies; 4+ messages in thread
From: Jairo A. del Rio @ 2019-12-05  1:10 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 1180 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 1516 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Using ConTeXt with LuaTeX variants
  2019-12-05  1:10 Using ConTeXt with LuaTeX variants Jairo A. del Rio
@ 2019-12-05  2:01 ` Henri Menke
  2019-12-06 14:26 ` Ulrike Fischer
  1 sibling, 0 replies; 4+ messages in thread
From: Henri Menke @ 2019-12-05  2:01 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Using ConTeXt with LuaTeX variants
  2019-12-05  1:10 Using ConTeXt with LuaTeX variants Jairo A. del Rio
  2019-12-05  2:01 ` Henri Menke
@ 2019-12-06 14:26 ` Ulrike Fischer
  1 sibling, 0 replies; 4+ messages in thread
From: Ulrike Fischer @ 2019-12-06 14:26 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Using ConTeXt with LuaTeX variants
@ 2019-12-05 12:17 Jairo A. del Rio
  0 siblings, 0 replies; 4+ messages in thread
From: Jairo A. del Rio @ 2019-12-05 12:17 UTC (permalink / raw)
  To: henrimenke, ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 137 bytes --]

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.

[-- Attachment #1.2: Type: text/html, Size: 214 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-12-06 14:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-05  1:10 Using ConTeXt with LuaTeX variants Jairo A. del Rio
2019-12-05  2:01 ` Henri Menke
2019-12-06 14:26 ` Ulrike Fischer
2019-12-05 12:17 Jairo A. del Rio

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).