Git Product home page Git Product logo

luatex-harfbuzz's People

Contributors

deepakjois avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

jahewson

luatex-harfbuzz's Issues

Bootstrapping the package loader

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.

Issue imported from luaharfbuzz repo

This is an issue to track enhancements to the LuaTeX example code that uses Harfbuzz to shape text.

Paragraph Handling

  • Fix widths of spacing glue in font loader
  • Refactor upem to sp scaling code
  • Add Devanagari example
  • Add Latin example
  • Set cluster level to HB_BUFFER_CLUSTER_LEVEL_CHARACTERS
  • Add sample PDFs
  • Handle penalty nodes
  • Handle different kinds of glue nodes
  • Handle direction nodes
  • Add ability to load packages using a PATH of some kind
  • Handle font switching (includes switching the font style – like roman to italic or bold)
  • Handle BiDi (look into libraqm and FriBidi code to get a better understanding)
  • Alignment
  • Handle hyphenation and corresponding change to shaping.

Font Loading Callback

  • Add support for handling features

Testing and Control

  • Can we turn Harfbuzz shaping on/off (using an attribute or something)
  • Can we test code with busted or something?

HBox Handling

TODO

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.