Our components were updated: TRichView 19.2, ScaleRichView 10.1.1, Report Workshop 3.1
Trial versions are available: https://www.trichview.com/download
A full version can be found in the protected section of this forum (or old setups can check for updates and download new versions).
In this update:
Units of the free version of Adit Math Engine (that are included in TRichView setup) were renamed, so I highly recommend to uninstall the old version of TRichView before installing this update.
Markdown
Markdown import
Markdown is a lightweight markup language for creating formatted text.
We implemented Markdown export in TRichView 18.x, and now we implemented Markdown import.
TRichView has the following new methods:
The following content can be imported:
Paragraphs may contain the following formatting: emphasis, strong emphasis, code spans.
Documents may contain images (from external sources) and hyperlinks.
TRichView follows CommonMark Markdown Specification.
All Markdown syntax is supported, except for HTML tags. Only two of them are processed: <br> creates a line break, <!– HTML comments –> are discarded (well, there are undocumented events to process other HTML tags, contact me if you are interested).
Document appearance
Appearance of the imported document depends on the mode of using styles (StyleTemplates).
If named styles (StyleTemplates) are used, they are applied. For example, block quote paragraphs are formatted using “Quote” style, emphasized text is formatted using “Emphasis” style, etc.
Otherwise, some default formatting is used (such as italic for emphasized text).
Tables
Tables are not included in the standard Markdown specification, however, there is a widely used Markdown extension (for example, it is used in GitHub Flavored Markdown).
TRichView supports both import and export of tables in Markdown.
Differences between Markdown import and export in TRichView
Not every Markdown content can be represented in TRichView as it is.
For example, in TRichView, list items are paragraphs, while in Markdown they may contain subdocuments.
When importing, TRichView uses indents to show level of nesting of list items and block quotes. As a result, everything looks like it was designed, but the internal structure is different. On export, only single paragraphs belong to each list item, and only a single level of block quotes can be exported.
Also, the current version of TRichView does not support export of code blocks and code spans (it will be implemented in future updates).
Also, a footnote Markdown extension is currently supported only on export (import will be implemented in future updates)
Other methods supporting Markdown
LoadFromStream is the method that detects a format for loading. It can detect RTF, RVF, DocX. Now, if none of these formats is detected, you can choose from loading the stream as a text or as a Markdown.
Markdown in additional components
Markdown in RichViewActions
Previously, Markdown was supported only in File Export action.
Since this version, it is supported in Open and Save As actions, as well as in Insert File action.
Markdown in ReportWorkshop
A new type of data fields is added: “markdown”.
The syntax for insertion of Markdown field in the document is {FIELDNAME markdown}
New list styles
New list styles are available for bullets and numbering:
RichViewActions support new list types in the list dialog.
Lower Greek numbering is supported in HTML, decimal with leading zero is supported in HTML, RTF, DocX.
New format of integer values in ReportWorkshop
ReportWorkshop supports lower Greek as a format string for integer values:
{VALUE “greek”}
ReportWorkshop does not need a special type for decimal with leading zero, it already can specify it as “decimal2”
Equation objects
TRichView includes a special document item type: Mathematical expressions
Previously, this item used a free version of Adit Math Engine.
Now, it supports both the free and the commercial version (which API now differs from the free version).
The following changes were made:
TRichView does not use a full power of the commercial version of AME yet.
It has very interesting features that will be integrated in future TRichView releases:
The demos that use AME were modified: RVBasicMathWrapper was added to “uses”.
This change includes: ActionTest_MultiRes demos for TRichView and ScaleRichView, ReportEditor_MultiRes demos for Report Workshop.
HTML improvements
Lists
Previously, when exporting and importing paragraph numbering in HTML, TRichView always specified list counter values, such as:
<ol>
<li value="1">one</li>
<li value="2">two</li>
</ol> It was done because HTML and TRichView use different models of paragraph lists (TRichView uses multilevel lists in Microsoft Word style, HTML uses single level nested lists), so counters may be calculated differently.
Since this version, counter values are exported and imported only when it is really necessary.
Embedded images
The code for reading HTMLs containing images embedded directly in <img src> is improved. Now it supports HTML entities (sometimes, line breaks may be encoded using them) and %-encoded plus characters.
This improvement was added both in TrvHtmlImporter and TrvHtmlViewImporter.
HTML entities
Since this version, TrvHtmlImporter (as well as Markdown import methods) understands all HTML5 named character entities (more than 2000 of them).
Table columns
TrvHtmlImporter supports <colgroup> and <col> tags (for assigning width of columns in pixels or percent, and for assigning background colors)
There are some other tweaks in TrvHtmlImporter.
DocX improvements
The code for saving bi-directional text in DocX was improved.
Bi-directional overrides are supported both in DocX saving and loading methods.
New functions for expressions in ReportWorkshop
We added the following new functions in Report Workshop expressions:
The following two examples display the current day of week:
{=DayOfWeekName(GetDayOfWeek(CurDate()))}
{=CurDate() "dddd"} New ReportWorkshop demo projects: ReportEditor for AbsoluteDB
A new ReportEditor demo was added.
It allows building reports on data from Absolute Database.
The demo is in <TRichView Dir>\ReportWorkshop\Demos\Delphi\AbsoluteDB\ folder.
There are two main sets of demo projects:
The demos have the following versions:
Localization
UI translation: Spanish ScaleRichView translation is updated (thanks to Raúl Izquierdo)
Ctrl+Up and Ctrl+Down
When the user presses Ctrl+Up or Ctrl+Down, the editor is scrolled, while the caret remains at the same position in text. Delphi code editor works in the same way.
Since this version, you can change this behavior, and move the caret to the beginning of the current/next paragraph (like Microsoft Word does).
RichViewCtrlUpDownScroll variable controls this behavior.
RichView 24.0.3 includes a new set of images for dialog boxes of RichViewActions and ScaleRichView…
This update completes the work on the new background definition system (well, almost).The new properties…
We are pleased to announce a new release of RVMedia. RVMedia now supports RAD Studio…
We are pleased to announce new releases of TRichView, ScaleRichView, and ReportWorkshop. All components now…
The next ADUG Symposium will take place on Friday, 9th May. You can attend in…