- When strip=True in code/text, then text steps line are rstripped
- "typst" extension for writing mathematical expressions
- Migrate to parley 0.7
- Line revelaing DSL
- Fixed managed layout detection
- No real changes, just for sake of fixing release process.
- Most of Nelsie is rewritten from scratch. Render is now faster and produce smaller PDFs (especialy with repeated texts and fragmented SVGs).
StepVal(previouslyInSteps) could be used much more places, including paramters ofTextStyleorStroke, etc.- Class
Pointintroduced as shortcut for two layout expressions for x and y. - Method of
.pthat returnsPointin the box - Layout expressions now supports multiplication, subtraction and max operator
line_boxnow has an optinal parametern_lines- Box can be created as stand-alone object later added into slide via .add(box)
RectandOvalclasses for simpler creating simple shapesz_levelcan be also set not only for boxes but also forPath,Rect, andOval- Added postprocesing callback to make final modification of slides
.drawis removed. Use.addto add shapes into boxInStepsreplaced with new classStepValtext_anchor_*renamed toinline_*Pathmethods like*_tonow takesPointinstead of two parametersxandyTextStyle.font_familyrenamed toTextStyle.font- Inserting video into slides is now disabled
- Step removal method is now ".ignore_steps" and takes the same format of argument as "show"/"active"
- "next" and "last" keywords were removed. Use
StepCounter. parse_countersremoved, use postprocessing function instead
- Support embedding videos into slides
.image()can now take directly image data (e.g..image((blob, "png")))- Better progressbar computing
- Introduce
system_fonts_for_svginResources. It is enabled by default and loads system fonts only for SVG. It is a compromise for slower loading system fonts for non SVG parts and confusions like #72.
- By default, Nelsie no longer loads system fonts, but loads the fonts built into Nelsie instead.
You can revert to the original behavior by creating resources as
follows:
Resources(system_fonts=True, builtin_fonts=False). - Removed
TextStylefeatures: overline and stroke
- Dejavu fonts shipped in Nelsie package
- Faster rendering especially if you are using lots of texts
- Allow to specify the compression level via
.render(..., compression_level=...) - You may use generic font families strings: "sans-serif", "monospace", "serif" as font names
- You may set generic font families in resources via:
resources.set_sans_serif("FontName")resources.set_monospace("FontName")resources.set_serif("FontName")
- New rendering engine fixes some inconsistencies in line spacing
- Migrated to
parleyfor text rendering - Implemented direct text rendering into PDF (without internally going through SVG)
- Dependencies updated; slightly faster rendering and smaller PDFs
set_stepsmethod- TextStyle(bold=True) added
- Smaller binaries (debug info stripped)
.move_byand.line_byin Path- Watching on more Python files
- Grid layout
- Fixed printing "total time" twice when verbose mode is enabled
pathin.image()acceptsInSteps
.code()type annotation fixed (textargument is allowed to beInSteps)
- Migrated to new version of resvg and svg2pdf
- Parsing of next/last keywords moved to Rust
- Hierarchical steps (e.g. step 1.2.3 is allowed)
initial_counter_valueadded intoListBox
- Semantics of steps are now different, but it should be backward compatible with reasonable use cases.
The only real breaking change is removal of
.set_n_stepsand.get_n_steps. They have to be replaced by.insert_step,.remove_step, and.get_steps.
- No actual changes, created to fix incomplete deployment to PyPI
- Clickable links in PDF output
- Font decorations: underline, overline, line-through
- Watching a slide file and automatic rebuild via
python3 -m nelsie watch SLIDES.PY
- GIF support was officially removed, as it was not working in the new renderer released in 0.8
- Fixed problem when ListBuilder is used together with steps
- Fixed loading SVG files with DTD
- New PDF renderer. Nelsie now produce smaller slides faster when raster images are used
- Rendering slides & image preprocessing in parallel
- Fixed #19
- Subslides insertion (
.slide_at()) - Custom code syntaxes and code color themes
- text itself can be
InSteps ListBoxhelper addeddefault_code_languageadded (by @fgelm01)default_themerenamed todefault_code_theme
- verbose level & progress bar