{"id":17656478,"url":"https://github.com/mjakeman/lasem","last_synced_at":"2025-03-11T03:30:47.063Z","repository":{"id":43408076,"uuid":"419305989","full_name":"mjakeman/lasem","owner":"mjakeman","description":"A rendering library for MathML-based mathematical equations.","archived":true,"fork":false,"pushed_at":"2023-07-05T09:20:03.000Z","size":61903,"stargazers_count":3,"open_issues_count":4,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-07T18:13:04.393Z","etag":null,"topics":["c","equation","gobject","mathml","maths"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mjakeman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-10-20T11:44:11.000Z","updated_at":"2023-11-29T22:43:15.000Z","dependencies_parsed_at":"2023-01-20T07:33:55.320Z","dependency_job_id":null,"html_url":"https://github.com/mjakeman/lasem","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjakeman%2Flasem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjakeman%2Flasem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjakeman%2Flasem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjakeman%2Flasem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mjakeman","download_url":"https://codeload.github.com/mjakeman/lasem/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242967640,"owners_count":20214280,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","equation","gobject","mathml","maths"],"created_at":"2024-10-23T14:32:59.240Z","updated_at":"2025-03-11T03:30:42.055Z","avatar_url":"https://github.com/mjakeman.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Superseded by: https://github.com/LasemProject/lasem.\nThis fork has discontinued in favour of the new, upstream Lasem project.\n\nAll changes have been upstreamed, including the GTK4 demo.\n\nThank you everyone for your support.\n\nSee: https://github.com/LasemProject/lasem.\n\n# Lasem\n[![CI](https://github.com/mjakeman/lasem/actions/workflows/main.yml/badge.svg)](https://github.com/mjakeman/lasem/actions/workflows/main.yml)\n[![Docs](https://img.shields.io/badge/documentation-visit-success)](https://www.mattjakeman.com/lasem/)\n\nA SVG and MathML rendering library for mathematical equations.\n\n## Status\nDevelopment on the upstream lasem library has been halted and the repository\nis now read-only. This is an attempt at resurrecting lasem as a general purpose\nlibrary for rendering mathematical equations.\n\nThe current roadmap is:\n - [X] Port the build system to meson (in progress)\n    - [X] Currently `lasem-render` can be built using meson\n    - [X] Introspection, Locale, and Headers are installed correctly\n - [X] Deprecate and remove the old autotools build system\n - [X] Port the test suite\n - [X] Create a sample program demonstrating integration with GTK 4\n - [ ] Release \"version 0.7\"\n\n## Documentation\nThe documentation for the `master` branch can be found\n[here](https://www.mattjakeman.com/lasem/).\n\n## Build\nLasem can be built using meson. Run the following commands:\n\n```bash\n# configure (see below for options)\nmeson _build\n\n# build\nmeson compile -C _build\n\n# install\nmeson install -C _build\n\n# run tests (if enabled)\nmeson test -C _build -v\n```\n\nGObject Introspection data can be generated with `-Dintrospection=enabled`.\n\nThe API Reference can be generated with `-Ddocs=enabled`.\n\nTests can be built with `-Dtests=enabled`.\n\nThe demo viewer can be built with `-Ddemo=enabled`.\n\n## Summary\nLasem aims to be a C/GObject based SVG/Mathml renderer and editor, supporting CSS\nstyle sheets (only rendering is implemented for now). It uses cairo and pango as\nit's rendering abstraction layer, and then support numerous output formats: xlib,\nPNG, SVG, PDF, PS, EPS...\n\nThe API tries to follow the SVG and MathML DOM.\n\nIt currently includes two simple applications:\n\nlasem-render, which takes a filename as argument and generates either a SVG, a PDF\nor a PS file, depending on the output file extension. There's a debug mode option\n(-d) that displays the bounding boxes of elements as blue rectangles, the logical\nextents of text as red boxes and the ink extents of text as green boxes. It accepts\neither MathML, Latex maths and SVG input. For the latex input, lasemrender uses\nthe embedded itex2mml library for the conversion to MathML.\n\nlsm-test, which, if launched without argument, renders recursively all svg and mml\nfiles in a directory, and generate an html file which displays the browser\nrendering, lasem rendering, and if present the reference output. The html\nfilename is lasemtest.xml. It's main use is the rendering of the sample files\nin the samples directory, by invoking \"cd test \u0026\u0026 ./lsm-test data\".\n\nRequirements:\n\ngobject, glib, gio, gdk-pixbuf, gdk, cairo, pangocairo, libxml, bison, flex\n\nFor the runtime, the following ttf fonts should be installed: cmr10, cmmi10, cmex10 and cmsy10.\nThey are provided by the lyx-fonts package in fedora, and the ttf-lyx package in debian/ubuntu.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmjakeman%2Flasem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmjakeman%2Flasem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmjakeman%2Flasem/lists"}