deepakjois / luatex-harfbuzz Goto Github PK
View Code? Open in Web Editor NEWFull BiDi text layout in LuaTeX using luaharfbuzz and luabidi
Full BiDi text layout in LuaTeX using luaharfbuzz and luabidi
One of the problems with using LuaRocks for developing LuaTeX related packages is that the default package loader in LuaTeX uses kpse. kpse overrides the standard Lua package loading behavior that LuaRocks relies on.
It is possible to get around it by overriding the LuaTeX package loader, to revert it to the standard Lua behavior. We already have that functionality in ufy. But ufy
itself is a LuaRocks package and needs to be loaded before anything else, and hence we have a bootstrapping problem when we invoke LuaTeX.
Currently, we get around it by using LuaTeX’s --lua
flag to load a pre-init file that executes before LuaTeX is fully initialized (and hence retains the default package loading behavior), and loads ufy in the global environment. Then we invoke the relevant functions in the TeX file, once LuaTeX is fully initialized. This method however relies on the user invoking LuaTeX with the --lua
flag and having a pre-init file located somewhere.
A more elegant solution to this problem might be to create a CTAN module (maybe something called luapackageloader
) that can encapsulate the package loading functionality. Assuming this CTAN module is properly installed inside the TeX distribution, we can invoke it as:
\input luapackageloader
% Now it should be possible to load a LuaRocks package
\directlua{require("luabidi")}
and then continue loading the rocks.
This is an issue to track enhancements to the LuaTeX example code that uses Harfbuzz to shape text.
TODO
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.