Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConTeXt support #86

Open
EliseyP opened this issue Nov 6, 2024 · 3 comments
Open

ConTeXt support #86

EliseyP opened this issue Nov 6, 2024 · 3 comments

Comments

@EliseyP
Copy link

EliseyP commented Nov 6, 2024

Are there plans to support ConTeXt?

I am trying to compile such a simple document:

\definefontfeature[body]
[
mode=node,
%calt=yes,
%itlc=yes,
liga=yes,
clig=yes,
%dist=yes,
dlig=yes,
hlig=yes,
rlig=yes,
tlig=yes,
salt=yes,
kern=yes,
%swsh=yes,
onum=yes,
%size=yes,
%script=latn,% ???
pnum=yes,
mark=yes,
%mkmk=yes
ccmp=yes,
ss01=yes,
]

%\definefontfamily[CSL][regular][Triodion Unicode][features=body]
%\definefontfamily[CSL][regular][Ponomar Unicode][features=body]
%\definefontfamily[CSL][regular][Fedorovsk Unicode][features=body]
%\definefontfamily[CSL][regular][Vilnius][features=body]
\definefontfamily[CSL][regular][Acathist][features=body]

\setupbodyfont[CSL]

\starttext

\startchapter[title=А҆ка́ѳїстъ прест҃ѣ́й влⷣчцѣ на́шей бцⷣѣ]
\startsection[title={І҆́косъ~а҃}]
А҆́гг҃лъ предста́тель съ нб҃сѐ по́сланъ бы́сть, рещѝ бцⷣѣ: ра́дꙋйсѧ! и҆ со безпло́тнымъ гла́сомъ воплоща́ема тѧ̀ зрѧ̀ гдⷭ҇и, ᲂу҆жаса́шесѧ и҆ стоѧ́ше, зовы́й къ не́й такѡва́ѧ: Ра́дꙋйсѧ, є҆́юже ра́дость возсїѧ́етъ: Ра́дꙋйсѧ, є҆́юже клѧ́тва и҆сче́знетъ. 
\stopsection

\stopchapter

\stoptext

Only Acathist font gives correct kerning.

$ context --version
mtx-context     | ConTeXt Process Management 1.06
mtx-context     |
mtx-context     | main context file: /home/user/texlive/2024/texmf-dist/tex/context/base/mkiv/context.mkiv
mtx-context     | current version: 2024.02.27 09:18
mtx-context     | main context file: /home/user/texlive/2024/texmf-dist/tex/context/base/mkxl/context.mkxl
mtx-context     | current version: 2024.02.27 09:18

@typiconman
Copy link
Owner

typiconman commented Nov 7, 2024

I've never used Context, and trying to run it on my machine (Linux Mint 20, TeX Live 2023) just throws an error:

mtxrun          | forcing cache reload
resolvers       | resolving | looking for regular 'texmfcnf.lua' on given path '/home/sasha/texmf/web2c' from specification 'home:texmf/web2c'
resolvers       | resolving | looking for regular 'texmfcnf.lua' on given path '/etc/texmf/web2c' from specification '/etc/texmf/web2c'
resolvers       | resolving | looking for regular 'texmfcnf.lua' on given path '/usr/share/texmf/web2c' from specification 'selfautodir:/share/texmf/web2c'
resolvers       | resolving | looking for fallback 'contextcnf.lua' on given path '/home/sasha/texmf/web2c' from specification 'home:texmf/web2c'
resolvers       | resolving | looking for fallback 'contextcnf.lua' on given path '/etc/texmf/web2c' from specification '/etc/texmf/web2c'
resolvers       | resolving | looking for fallback 'contextcnf.lua' on given path '/usr/share/texmf/web2c' from specification 'selfautodir:/share/texmf/web2c'
resolvers       | resolving |
resolvers       | resolving | warning: no lua configuration files found
resolvers       | resolving | no texmf paths are defined (using TEXMF)
resolvers       | resolving |
mtxrun          | the resolver databases are not present or outdated
resolvers       | resolving | using suffix based filetype 'scripts'
resolvers       | resolving | remembering file 'mtx-context.lua' using hash 'lua::mtx-context.lua'
resolvers       | resolving | using suffix based filetype 'scripts'
resolvers       | resolving | remembering file 'mtx-contexts.lua' using hash 'lua::mtx-contexts.lua'
resolvers       | resolving | remembered file 'mtx-context.lua'
resolvers       | resolving | using suffix based filetype 'scripts'
resolvers       | resolving | remembering file 'mtx-t-mtx-context.lua' using hash 'lua::mtx-t-mtx-context.lua'
resolvers       | resolving | using suffix based filetype 'scripts'
resolvers       | resolving | remembering file 'mtx-t-mtx-contexts.lua' using hash 'lua::mtx-t-mtx-contexts.lua'
resolvers       | resolving | remembered file 'mtx-t-mtx-context.lua'
resolvers       | resolving | remembered file 'mtx-context.lua'
mtxrun          | unknown script 'mtx-context.lua' or 'mtx-mtx-context.lua'

Maybe @pgmmpk has some experience?

@EliseyP
Copy link
Author

EliseyP commented Nov 7, 2024

  1. What output for:
    $ context --version ?

  2. Before first using context I need run:
    $ mtxrun --generate

TeXLive 2024 (standalone installation) on Debian 12.

@typiconman
Copy link
Owner

typiconman commented Nov 7, 2024

mtxrun --generate does not help and context --version gives the same set of messages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants