GithubHelp home page GithubHelp logo

oudommeas / rnote Goto Github PK

View Code? Open in Web Editor NEW

This project forked from flxzt/rnote

0.0 1.0 0.0 24.9 MB

A simple drawing application to create handwritten notes.

License: GNU General Public License v3.0

Rust 98.43% Shell 0.12% Python 0.08% Meson 1.16% CSS 0.21%

rnote's Introduction





Rnote

A simple drawing application to create handwritten notes.
Written in Rust and GTK4.

Rnote aims to be a simple but functional note taking application for freehand drawing or annotating pictures or documents. It eventually should be able to import / export various media file formats.
One main consideration is that it is vector based, which should make it very flexible in editing and altering the contents.

Disclaimer
This is my first Rust and GTK project and I am learning as I go along. Expect some bugs and crashes. Also, the file format is still unstable and will change between versions!

Installation

Rnote is available as a flatpak on Flathub:


Download on Flathub


Downgrading

Because the file format still is unstable, downgrading to a specific version might be necessary and can be done with:

version command
v0.2.5 sudo flatpak update --commit=2036a51c8118a30eb4ceb2e16ba2f84fa8ca4dc814fb88d9424709380093a6c6 com.github.flxzt.rnote
v0.1.6 sudo flatpak update --commit=ffb9781989704f3eb28910437bb26709357566a977178d5fb4ef1a2926edae8b com.github.flxzt.rnote

After downgrading, the version can be pinned or unpinned with:

$ flatpak mask com.github.flxzt.rnote
$ flatpak mask --remove com.github.flxzt.rnote

Then the sheets can be exported as an SVG or PDF and can be re-imported into the newest version of Rnote.

Screenshots

If you have drawn something cool in Rnote and want to share it, let me know so I can include it as a screenshot. :)

main_window_dark main_window_light pdf_annotation multiple_pages selection

Images drawn with Rnote

tree

Pitfalls

  • Drag & Drop: Make sure Rnote has permissions to the locations you are dragging files from. Can be granted in Flatseal (a Flatpak permissions manager)

To-Do

  • switch geometry to nalgebra wherever possible. It can operate on f64 and has much more features than graphene.
  • printing & PDF export
  • PDF import ( as vector & bitmap )
  • vector & bitmap picture import
  • implement bezier curve stroke with variable stroke width (see Quadratic bezier offsetting with selective subdivision, Precise offsetting of bezier curves)
  • Textured brush strokes with tweakable parameters
  • Stroke elements drag tool: drag along parts of the selected strokes based on the proximity of a round pen tool
  • parallelizing rendering and actions which affect many strokes.
  • asychronous rendering
  • cancellable rendering
  • strokes rotation
  • (implemented: lines, rectangles, ellipses) drawing rough shapes by porting rough.js to Rust (see ./src/rough-rs)
  • export as bitmap picture
  • implement text fields (Plain, Markdown)
  • implement optional stroke smoothing

Feature Ideas:

  • Stroke Layers
  • History list
    • with the ability to move them up and down the history
  • Stroke trash restorer
    • with a preview of the deleted strokes
  • Stylus buttons configuration to map them to different actions and / or pen types
  • Locked strokes: mode to toggle the mutability of strokes
  • Multiple sheet tabs
  • Share and synchronize sheets with others ( via e.g. the peer-2-peer protocol libp2p ).

File Format

The .rnote file format is a gzipped json file. It is (de)compressed with the flate2 crate and (de)serialized with the Serde crate.

So far the first breaking change in the format happened between v0.1.6 and v0.2.0.

To be able to open and export older files that are incompatible with the newest version, look under Installation /Downgrading to install older versions of Rnote.

Building, contributing

Build instructions and guidelines how to contribute are outlined in CONTRIBUTING.md

rnote's People

Contributors

flxzt avatar nbenitez avatar oscfdezdz avatar vistaus avatar

Watchers

 avatar

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.