This is the StyledTextEditor project for Cuis, brought to you by Bernhard Pieber and Juan Vuletich. The design of the Styled Text Editor toolbar and scrollbars was done by Sabine Gasper-Mautes.
Steps to install:
If you have Git installed and configured you can use the following in a shell. (Disclaimer: I only tested it on OS X. I appreciate pull requests for other platforms.)
mkdir STE cd STE git clone https://github.com/bpieber/Cuis-Smalltalk-Dev.git Cuis-Smalltalk-Dev/bin/newImage.sh STE git clone https://github.com/bpieber/Cuis-Smalltalk-StyledTextEditor.git Cuis-Smalltalk-StyledTextEditor/bin/prepareImage.sh STE
The above script creates a new image named STE and downloads a current Cog VM. It also adds the ClipboardExtendedPlugin to the VM.
- Start the image by dragging the STE.image and drop it on the VM.
- Execute the following Smalltalk code in a Workspace:
Feature require: 'StyledTextInstaller'
The Styled Text Editor is a framework for rich text editing using styles as known from popular word processors like Apple Pages or Microsoft Word. It features paragraph and character styles, allowing easy text formatting using styles only. It is intended for applications where users need to work with good looking rich text in a simple and fast way.
Rich text commonly refers to text with formatting information like different fonts, sizes, alignments, and emphasis. To make editing as simple as possible instead of individual formatting information end users apply styles to parts of the text. Editing is made fast by keyboard shortcuts for text navigation, selection, and styles selection. Where possible the feel of widely used rich text editors is supported.
The editor includes features like
- numbered and bulleted list paragraph styles
- support for images
- multiple level undo and redo
- text completion using various glossaries including a dictionary of English with about 166.000 words
- RTF clipboard (on OS X VMs with the ClipboardExtendedPlugin)
The Styled Text Editor is developed in Cuis with the plan to eventually port it to Squeak and Pharo. The development of the Styled Text Editor inspired many changes to Cuis itself, and It is the first package to use the brand new DVCS based development process for external packages for Cuis 4.0.
The idea and funding was provided Bernhard Pieber and his company Software Generation. The implementation was done by Juan Vuletich, the mastermind behind Cuis. Thanks Juan for the close cooperation. It was and still is great fun to work with you.
Bernhard and Juan are looking forward to feedback from you. Fork it, create issues and send pull requests. ;-)