Giter VIP home page Giter VIP logo

blackboard's Introduction

blackboard

This is a (very) unfinished implementation of an OpenType Math layout and rendering engine in Racket.

Some simple example output.

It is almost certainly not directly useful to anyone at the moment, because it is essentially impossible for anyone other than its author to build and run it due to dependencies on upstream patches. In particular, it requires:

  • HarfBuzz >=3.4.0, which includes harfbuzz#3416

  • some minor changes to racket/draw to expose some additional (unsafe) functionality, which are currently not publicly available anywhere (though I could push them if someone is really interested)

  • patched versions of OpenType math fonts to remove the dependency on the OpenType math script for proper shaping (see fonts/eliminate-math-script.py for more details)

Even if one were to go to the hassle of setting up all the necessary dependencies, the system is currently too unfinished to be of any practical use. However, I have decided to make the source code publicly available on the off chance that someone might find it interesting.

blackboard's People

Contributors

lexi-lambda avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

mschwaig

blackboard's Issues

provide usage example

I think it would be nice if the project came with a runable usage example. I'm imagining a source file and/or command invocation for actually producing some rendered output, assuming the dependencies are set up correctly.

Did blackboard produce the example.svg linked in the README?


The rest of this issue is an explanation for why I'm asking this, especially since I don't know anything about racket or font rendering.

I saw you complain on twitter that you project has a number of difficult to deal with dependencies. I have used nix flakes a number of times for packaging software that is very picky about dependencies. Sadly that does not mean that I can actually solve those problems in practice, because that kind of thing quickly turns into a time-sink.

Still I was interested, so I spent about an hour on this to go through the first steps of trying to package this as a flake and at document the many loose ends, based on your README.md. I don't have specific plans to actually finish this but I thought I'd still share my initial attempt. You can find my code here if you are interested: https://github.com/mschwaig/blackboard/blob/add-flake-based-build/flake.nix

Feel free to close/ignore this issue as you see fit. Thanks and be well!

fractional spacing in Pango 1.44

IIRC Racket still ships with Pango 1.42. In July 2019 Pango 1.44 added support for fractional spacing. Roughly, fractional spacing allows glyphs to be positioned at something other than a pixel boundary, which makes the intercharacter spacing much more accurate, especially at small sizes. (This is why any text set with racket/draw looks a little janky and 1990s-ish.)

In this screen grab, the first three lines are drawn with Racket, and the fourth with a Mac OS TextEdit window:

Screen Shot 2017-07-18 at Jul 18  5 12 16 PM

IMHO moving Racket onto Pango 1.44 would have a hugely positive effect on racket/draw and racket/gui etc. (Of course Iโ€™m leaving aside whatever other complications might exist, since I am a one-issue voter.) Given the degree of refinement you're trying to achieve, maybe also blackboard.

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.