On Tue, 21 Apr 2020 23:07:48 +0200
Pablo Rodriguez
This works for me with LMTX in Fedora.
Add to ~/.bashrc "export OSFONTDIR=~/.fonts/:/usr/share/fonts/" (log out and log in)
I'm using fish shell, but here is my env: $ env | grep OSFONTDIR OSFONTDIR=/home/gour/.fonts/ /usr/share/fonts/ Now I changed local one to ~/.local/share/fonts, but it is empty and my fonts are in: $ fc-cache -v | grep google-noto /usr/share/fonts/google-noto /usr/share/fonts/google-noto-cjk /usr/share/fonts/google-noto-emoji /usr/share/fonts/google-noto-vf /usr/share/fonts/google-noto: skipping, existing cache is valid: 76 fonts, 0 dirs /usr/share/fonts/google-noto-cjk: skipping, existing cache is valid: 45 fonts, 0 dirs /usr/share/fonts/google-noto-emoji: skipping, existing cache is valid: 1 fonts, 0 dirs /usr/share/fonts/google-noto-vf: skipping, existing cache is valid: 146 fonts, 0 dirs /usr/share/fonts/google-noto: skipping, looped directory detected /usr/share/fonts/google-noto-cjk: skipping, looped directory detected /usr/share/fonts/google-noto-emoji: skipping, looped directory detected /usr/share/fonts/google-noto-vf: skipping, looped directory detected /usr/share/fonts/google-noto /usr/share/fonts/google-noto-cjk /usr/share/fonts/google-noto-emoji /usr/share/fonts/google-noto-vf /usr/share/fonts/google-noto: skipping, existing cache is valid: 76 fonts, 0 dirs /usr/share/fonts/google-noto-cjk: skipping, existing cache is valid: 45 fonts, 0 dirs /usr/share/fonts/google-noto-emoji: skipping, existing cache is valid: 1 fonts, 0 dirs /usr/share/fonts/google-noto-vf: skipping, existing cache is valid: 146 fonts, 0 dirs /usr/share/fonts/google-noto: skipping, looped directory detected /usr/share/fonts/google-noto-cjk: skipping, looped directory detected /usr/share/fonts/google-noto-emoji: skipping, looped directory detected /usr/share/fonts/google-noto-vf: skipping, looped directory detected
and repeat the three other steps from my previous message.
Here they are:
1. Remove "/home/gour/opt/lmtx/tex/texmf-cache/luatex-cache/".
$ rm -rf /home/gour/opt/lmtx/tex/texmf-cache/luatex-cache
2. Run "mtxrun --generate".
$ mtxrun --generate resolvers | resolving | variable 'SELFAUTOLOC' set to '/home/gour/opt/lmtx/bin' resolvers | resolving | variable 'SELFAUTODIR' set to '/home/gour/opt/lmtx' resolvers | resolving | variable 'SELFAUTOPARENT' set to '/home/gour/opt' resolvers | resolving | variable 'TEXMFCNF' set to '' resolvers | resolving | variable 'TEXMF' set to '' resolvers | resolving | variable 'TEXOS' set to 'lmtx' resolvers | resolving | resolvers | resolving | using configuration specification 'home:texmf/web2c;selfautoparent:/texmf-local/web2c;selfautoparent:/texmf-context/web2c;selfautoparent:/texmf-dist/web2c;selfautoparent:/texmf/web2c' resolvers | resolving | resolvers | resolving | looking for regular 'texmfcnf.lua' on given path '/home/gour/texmf/web2c' from specification 'home:texmf/web2c' resolvers | resolving | looking for regular 'texmfcnf.lua' on given path '/home/gour/opt/texmf-local/web2c' from specification 'selfautoparent:/texmf-local/web2c' resolvers | resolving | looking for regular 'texmfcnf.lua' on given path '/home/gour/opt/texmf-context/web2c' from specification 'selfautoparent:/texmf-context/web2c' resolvers | resolving | looking for regular 'texmfcnf.lua' on given path '/home/gour/opt/texmf-dist/web2c' from specification 'selfautoparent:/texmf-dist/web2c' resolvers | resolving | looking for regular 'texmfcnf.lua' on given path '/home/gour/opt/texmf/web2c' from specification 'selfautoparent:/texmf/web2c' resolvers | resolving | looking for fallback 'contextcnf.lua' on given path '/home/gour/texmf/web2c' from specification 'home:texmf/web2c' resolvers | resolving | looking for fallback 'contextcnf.lua' on given path '/home/gour/opt/texmf-local/web2c' from specification 'selfautoparent:/texmf-local/web2c' resolvers | resolving | looking for fallback 'contextcnf.lua' on given path '/home/gour/opt/texmf-context/web2c' from specification 'selfautoparent:/texmf-context/web2c' resolvers | resolving | looking for fallback 'contextcnf.lua' on given path '/home/gour/opt/texmf-dist/web2c' from specification 'selfautoparent:/texmf-dist/web2c' resolvers | resolving | looking for fallback 'contextcnf.lua' on given path '/home/gour/opt/texmf/web2c' from specification 'selfautoparent:/texmf/web2c' resolvers | resolving | resolvers | resolving | warning: no lua configuration files found resolvers | resolving | no texmf paths are defined (using TEXMF) resolvers | resolving | mtxrun | mtxrun | elapsed lua time: 0.019 seconds and I notice that after that /home/gour/opt/lmtx/tex/texmf-cache/luatex-cache/ is empty? My $PATH is: $ env | grep PATH PATH=/home/gour/opt/lmtx/bin:/home/gour/opt/lmtx/tex/texmf-linux-64/bin:/home/gour/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin
3. Run "context t.tex"
I use the following t.tex \definefallbackfamily [mainface] [ss] [Noto Sans Devanagari] [range={devanagari,devanagariextended}, features=devanagari-two] \definefontfamily [mainface] [ss] [Noto Sans] \setupbodyfont[mainface] \starttext ध्यायतो विषयान्पुंसः सङ्गस्तेषूपजायते । सङ्गात्सञ्जायते कामः कामात्क्रोधोऽभिजायते ॥ ६२ ॥ dhyāyato viṣayān puṁsaḥ saṅgas teṣūpajāyate saṅgāt sañjāyate kāmaḥ kāmāt krodho ’bhijāyate \stoptext as sugested by Wofgang, but it fails: $ context t.tex mtxrun | unknown script 'mtx-context.lua' or 'mtx-mtx-context.lua' Do I need to setup some other envvar as it is suggested in the link posted by Wolfgang? Sincerely, Gour -- As a blazing fire turns firewood to ashes, O Arjuna, so does the fire of knowledge burn to ashes all reactions to material activities.