Writer Region Plugin

Writer Region Plugin - Provides the ability to work with formatted text inside the Worksheet. - Messages

#21 Posted: 9/14/2015 6:40:57 AM
Davide Carpi

Davide Carpi

1416 likes in 2873 posts.

Group: Moderator

PLUGIN UPDATED SMath Studio 0.97.5301 and later

  • Introduced the new "Field" object*;
  • Fixed critical bug on HTML serialization (many thanks to NDTM Amarasekera for pointing out this issue);
  • Fixed detection of hyperlinks placed at the end of lines;
  • Context menu improved on object/hyperlink selection;
  • requirements downgraded to SMath Studio 0.97.5301 (many thanks to Andrey for the work done for developpers in background);
  • minor changes & fixes;



* new items available from toolbar or CTRL+SHIFT+X shortcut; edit via toolbar/double-click/context menu/shortcut.
You can change "Worksheet Info" attributes from the "File" > "Properties..." menu; the update rule is: region language > SMath interface language > english > no update available (light red highlight).
Documentation about date/time format specifiers may be found here;
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
3 users liked this post
ioan92 9/14/2015 4:28:00 PM, sergio 9/14/2015 11:19:00 AM, NDTM Amarasekera 9/14/2015 11:33:00 AM
#22 Posted: 9/18/2015 8:06:40 AM
Davide Carpi

Davide Carpi

1416 likes in 2873 posts.

Group: Moderator

PLUGIN UPDATED SMath Studio 0.97.5301 and later

  • Fixed: load/save non-bold/non-italic/non-underline/non-strikethrough characters vs bold/italic/underline/strikethrough default fonts;
  • Fixed: "set as default" now applies the changes to the parent region;
  • Fields: improved stability;
  • minor fixes;
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#23 Posted: 9/20/2015 4:57:53 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Hi Davide,

when the default wrap is set to custom, then new writer regions are created with nearly no width, thus you always need to adjust it first.

I propose either to set a customizable default width or to use the value of the last interactive width change. Thus, if you create a series of regions, you have to set the width just once.

Martin
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
2 users liked this post
Davide Carpi 9/20/2015 7:02:00 PM, sergio 9/21/2015 4:41:00 AM
#24 Posted: 9/21/2015 5:02:22 AM
Davide Carpi

Davide Carpi

1416 likes in 2873 posts.

Group: Moderator

Hello Martin

I agree with you. I've made a small change, now the default width for custom wrap is half page (plugin updated)

Quote

I propose either to set a customizable default width or to use the value of the last interactive width change. Thus, if you create a series of regions, you have to set the width just once.


I'll see what I can do
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 users liked this post
Martin Kraska 9/22/2015 5:58:00 AM
#25 Posted: 9/22/2015 5:17:48 AM
Davide Carpi

Davide Carpi

1416 likes in 2873 posts.

Group: Moderator

It's a problem of APIs, not about the OS... Rebuilt for the latest SMath Studio stable, it should works now.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
2 users liked this post
ioan92 9/22/2015 5:23:00 AM, sergio 9/22/2015 6:34:00 AM
#26 Posted: 9/24/2015 1:37:34 AM
Ciro

Ciro

3 likes in 5 posts.

Group: User

Thank you a million times over, I have only been using SMath for a couple weeks and the lack of word wrap was a huge point of frustration. It took me a minute to figure how to toggle that with this extension. Is there some place that has a basic tutorial or access guide for features this extension enables? Would it be possible to include a spell checker as well? Thanks for putting this together and out there.
#27 Posted: 9/24/2015 7:48:01 AM
Davide Carpi

Davide Carpi

1416 likes in 2873 posts.

Group: Moderator

Wrote

Thank you a million times over, I have only been using SMath for a couple weeks and the lack of word wrap was a huge point of frustration. It took me a minute to figure how to toggle that with this extension.


You are welcome

Wrote

Is there some place that has a basic tutorial or access guide for features this extension enables?


In the first post of this thread there is a basic guide for this plugin. Most of the features are the same of any WYSIWYG editor, let me know if there is something missing or to better explain.

Wrote

Would it be possible to include a spell checker as well? Thanks for putting this together and out there.


This is planned
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#28 Posted: 10/13/2015 7:56:02 AM
Davide Carpi

Davide Carpi

1416 likes in 2873 posts.

Group: Moderator

PLUGIN UPDATED SMath Studio 0.97.5737 and later

  • New: Spelling check (see instructions attached in the first post to enable it);
  • Width of new regions on custom wrap now can be set as percent of the page width;
  • Fixed: font-size changes on selection vs toolbar;
  • minor fixes;

If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
2 users liked this post
Вячеслав Мезенцев 10/13/2015 8:39:00 AM, ioan92 10/13/2015 8:29:00 AM
#29 Posted: 1/14/2016 12:59:05 PM
Alexander O. Melnik

Alexander O. Melnik

127 likes in 494 posts.

Group: Moderator

Davide, do you think it might be possible to merge your settings toolbar into the main SMath toolbar? Not the most important change, but it will make the use of plugin a little bit more convenient.

Thanks!
#30 Posted: 1/15/2016 5:55:20 AM
Davide Carpi

Davide Carpi

1416 likes in 2873 posts.

Group: Moderator

Hello Alex,

Wrote

Davide, do you think it might be possible to merge your settings toolbar into the main SMath toolbar? Not the most important change, but it will make the use of plugin a little bit more convenient.



As for now we can't do it from plugins, I've asked Andrey some time ago to make it possible. I've added the request in the BTS so the community can vote it (SS-2290).
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#31 Posted: 2/9/2016 3:46:42 PM
Davide Carpi

Davide Carpi

1416 likes in 2873 posts.

Group: Moderator

PLUGIN UPDATED SMath Studio 0.97.5346 and SMath Studio 0.97.5737

  • Context menu: changes in Page alignment/Wrap/Spacing now are applied to multiple selections;
  • Context menu: Settings' toolbar now can be opened also when the region is selected (also when there is a multiple selection);
  • Context menu: Custom line spacing (Multiple) numeric up down fixed;
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
3 users liked this post
frapuano 3/4/2016 7:00:00 AM, ioan92 2/9/2016 4:25:00 PM, Вячеслав Мезенцев 2/9/2016 4:00:00 PM
#32 Posted: 3/4/2016 6:30:02 AM
Ciro

Ciro

3 likes in 5 posts.

Group: User

I love your plugin and the improvements you have added(Spell checker is great!).

I do have a request though. Although I can hold down Ctrl + arrow key to skip across words, but when I attempt to use Shift + Ctrl + arrow it only highlights a single letter!
Additionally, home and end keys work to go to the end or beginning of the current line(as does shift + Home or End to highlight), I would like to press Ctrl + End to go to the end of the current writer region(or Ctrl + Home to go to the start), and also Shift + Ctrl + End to highlight all of them.
This would make editing quite a bit faster.
Thanks
#33 Posted: 3/4/2016 3:26:13 PM
Davide Carpi

Davide Carpi

1416 likes in 2873 posts.

Group: Moderator

Wrote

I love your plugin and the improvements you have added(Spell checker is great!).


You're welcome, thank you for using the plugin

Wrote

I do have a request though. Although I can hold down Ctrl + arrow key to skip across words, but when I attempt to use Shift + Ctrl + arrow it only highlights a single letter!
Additionally, home and end keys work to go to the end or beginning of the current line(as does shift + Home or End to highlight), I would like to press Ctrl + End to go to the end of the current writer region(or Ctrl + Home to go to the start), and also Shift + Ctrl + End to highlight all of them.
This would make editing quite a bit faster.
Thanks


Agreed. Will be available in the next relase, as well as other improvements in keyboard shortcuts.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 users liked this post
ioan92 3/4/2016 3:32:00 PM
#34 Posted: 3/8/2016 7:44:06 PM
Davide Carpi

Davide Carpi

1416 likes in 2873 posts.

Group: Moderator

PLUGIN UPDATED SMath Studio 0.97.5346 and later

  • Paste editable math in MS Word: added more functions [vectorize(1), at(2), at(3), Ceil(1), Floor(1), Conjugate(1)];
  • Toolbar: swapped positions of indent increase/indent decrease buttons to reflect positions in common word processors;
  • Added new hotkeys: CTRL+UP, CTRL+DOWN, CTRL+HOME, CTRL+END, SHIFT+UP, SHIFT+DOWN, CTRL+SHIFT+HOME, CTRL+SHIFT+END, CTRL+SHIFT+UP, CTRL+SHIFT+DOWN, CTRL+SHIFT+LEFT, CTRL+SHIFT+RIGHT, ALT+SHIFT+LEFT, ALT+SHIFT+RIGHT, ALT+SHIFT+M;
  • fixed some hotkeys issues related to selected objects;
  • fixed problems pasting diacritical marks from clipboard;
  • fixed problems related to indent changes on wrapped regions;
  • fixed fields issues vs indent;
  • minor improvements;
  • WriterRegion documentation updated (see post #1);
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 users liked this post
frapuano 3/9/2016 3:08:00 AM
#35 Posted: 3/13/2016 2:42:02 PM
Alexander O. Melnik

Alexander O. Melnik

127 likes in 494 posts.

Group: Moderator

Davide,

Wanted to bring to your attention the following peculiarity of printing .sm file with a writer region to PDF. Not all text is recognized as text in the resulting PDF file (makes the PDF file non-searchable). There is a patter to the madness, so there is hope that something can be done.

Many thanks for the region! I use it all the time.

WriterRegionPrintToPDF.sm (2 KiB) downloaded 69 time(s).
WriterRegionPrintToPDF.png
WriterRegionPrintToPDF.pdf (20 KiB) downloaded 68 time(s).
#36 Posted: 3/13/2016 3:48:28 PM
Davide Carpi

Davide Carpi

1416 likes in 2873 posts.

Group: Moderator

Hello Alex

I'm aware of that; there's not transfer of characters or text between plugins and the pdf printer, the worksheet is processed as an image and the OCR of the printer you use it may produce a better or worst result. Part of the problem however is in the plugin itself because the text is not rendered at "full quality" (because issues in GDI+ vs text measurements); this is something very complex to address, recently I've seen a possible solution/improvement that involves the use of unmanaged code from the OS (namely the technique used by this project:HTML renderer), but I don't know if this may break the plug-in compatibility in some OS (and how much work would be needed to replace the part of code involved).
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#37 Posted: 3/13/2016 3:56:02 PM
Alexander O. Melnik

Alexander O. Melnik

127 likes in 494 posts.

Group: Moderator

Wrote

Hello Alex

I'm aware of that; there's not transfer of characters or text between plugins and the pdf printer, the worksheet is processed as an image and the OCR of the printer you use it may produce a better or worst result. Part of the problem however is in the plugin itself because the text is not rendered at "full quality" (because issues in GDI+ vs text measurements); this is something very complex to address, recently I've seen a possible solution/improvement that involves the use of unmanaged code from the OS (namely the technique used by this project:HTML renderer), but I don't know if this may break the plug-in compatibility in some OS (and how much work would be needed to replace the part of code involved).



From the sounds of it, the benefit would not justify the difficulty of the tweak.
#38 Posted: 4/4/2016 5:13:37 PM
Ruben Sidranski

Ruben Sidranski

17 likes in 463 posts.

Group: User

Thanks for this plugin.
Questions:
  1. Is there a way to have the "toolbar" pop-up automatically? maybe override the standard smath tools?
  2. In order to open, I need to type CTRL+SHFT+W; however, for the toolbar to open, I need to press CTRL+SHIFT+S at least 3 times for the tool bar to pop-up. Is this normal?
  3. With the included formatting, would a bullet point or list object (like this ) be something that can be implemented?
#39 Posted: 4/4/2016 7:55:13 PM
Davide Carpi

Davide Carpi

1416 likes in 2873 posts.

Group: Moderator

Wrote

Thanks for this plugin.


You're welcome

Wrote

Questions:
Is there a way to have the "toolbar" pop-up automatically?


Maybe, I'll inspect this possibility.

Wrote

maybe override the standard smath tools?


You can support (vote) this BTS request.

Wrote

for the toolbar to open, I need to press CTRL+SHIFT+S at least 3 times for the tool bar to pop-up.


I cannot reproduce (tested both with my Win7 laptop and an old WinXP PC). The first time you open the toolbar it is a little bit slower than further times because some things have to be initialized, a single CTRL+SHIFT+S should works (however I'll inspect if there are "interferences").

Wrote

With the included formatting, would a bullet point or list object (like this ) be something that can be implemented?


Maybe. As for the truth you have WriterRegion because in the very beginning I was working on a plugin to create enumerated text regions (to use as chapters' titles or simple lists), and I was looking for a way to write the text on the canvas instead of using a form; because the origins, the original plan was to have lists only via that plugin. To have full-functional lists natively in WriterRegion there are several things to do, I'll see what I can do (but because the complexity it will not be in short times).
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#40 Posted: 4/15/2016 3:21:09 PM
Ciro

Ciro

3 likes in 5 posts.

Group: User

Davide, as always, your add-in is awesome and really an integral part of my use of smath studio. Thanks for creating it and the recent updates you have performed. I had two ideas for features I would like to suggest you think about incorporating some day:
  • Rotated text(like rotating the whole writer region box, 90° intervals works for me)
  • Emojis!!! :d basic static ones would be great!


Thanks Again!
1 users liked this post
Davide Carpi 4/16/2016 12:41:00 PM
  • New Posts New Posts
  • No New Posts No New Posts