Text Region Utilities

Text Region Utilities - Helps to set some Text Region properties - Messages

#21 Posted: 9/4/2014 9:03:21 AM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

Wrote

How about using the Document title property from the file header as (possibly multilingual) text in the link regions?


Good idea, I'll explore it.

edit: updated to fix a visualization bug of selected smath file icon in the tree view
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#22 Posted: 2/6/2016 3:39:45 PM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

PLUGIN UPDATED SMath Studio 0.97.5737

- Toolbox: added Text to Writer batch converter (*); Text to Writer.sm (11 KiB) downloaded 89 time(s).
- Toolbox: edded Search and Replace (**);
- Dialogs: multiline text of TextRegions shown inline;

(*) to unlock this feature, WriterRegion > 0.3.5800 is needed;
(**) to unlock search and replace inside WriterRegions, WriterRegion > 0.3.5800 is needed;

WriterRegion > 0.3.5800 is available since today in the Extensions Manager; you can still use TextRegionUtilities without WriterRegion.

Notes on search & replace:

Quote

Math:
- math search and math replace is made "by placeholders"; this means that you cannot replace an item with an expression;
- math units will be replaced with units, math strings with math strings;

Descriptions, titles of Area and Separators:
- Here it is not possible to highlight a portion of the text, hence search shows a single result ("search all" shows a result for each match, but the feedback will be the same for any hit); replace will be made in a single action for the whole text;

Find All:
- results can be sorted by clicking on the columns;
- results will be marked as outdated and made unavailable since a change is made on the region;

Settings:
- Last used settings kept in memory; 10 values of search target and replacement are stored too (SHIFT+CANC to delete one of these items);

Regular expressions:
- Look here if you are interested in regular expressions: quick reference , examples



File not found. File not found.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
4 users liked this post
ioan92 2/6/2016 4:36:00 PM, Martin Kraska 2/7/2016 10:39:00 AM, Lorenzo 2/8/2016 8:02:00 AM, IVR 2/12/2016 6:34:00 AM
#23 Posted: 2/7/2016 7:26:54 AM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

Hello Ioan

Wrote

In my Extentsions Manager, I found Writer Region 0.3.5880.18795 not 0.3.5800 as you mention here.


0.3.5800 is the minimal requirement (it is just a number easy to remember), any version greater than this is ok.

Wrote

Also, I'm not able to find Search and Replace Toolbox.


There's not a dedicated toolbox, both the new features are in the context menu of the TextRegionUtilities toolbox.

2016-02-07 11_18_09-SMath Studio Desktop - [SR.sm].png
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 2/7/2016 7:32:00 AM
#24 Posted: 2/7/2016 11:41:43 AM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

Hello Ioan,

Thank you very much, in my notebook I cannot show the exception (probably some setting somewhere ) but I confirm there is a a problem with the settings manager... I've removed the plugin from the Gallery, will be back ASAP.
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 2/7/2016 12:13:00 PM
#25 Posted: 2/7/2016 1:14:37 PM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

Found a couple of issues, try now. Let me know if there are other problems.
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 2/7/2016 1:40:00 PM
#26 Posted: 2/7/2016 7:52:37 PM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

Wrote

* to have a checkbox to see all findings as selected; this would allow a better global look.


That's a nice idea, I'll see what I can do. DELIVERED
2016-02-08 00_16_45-SMath Studio Desktop - [SR.sm].png
Wrote

* to search also in the disabled regions (it seems that as now, only the active regions are examined); eventually by checking a box.


This option already exists, doesn't work?
2016-02-07 23_51_07-.png
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#27 Posted: 2/8/2016 12:58:01 PM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

PLUGIN UPDATED

- Search & Replace: FIXED text selection in TextRegion when multiple words are involved;
- Search & Replace: FIXED exception in the "Matches" tab;

Wrote

Thanks Davide,


Thank you for the feedback Ioan!

Wrote

1. It's fine. The "Select all" button operate. It selects the whole regions where the search match.
I'm not sure, but I think it woud be preferable to keep the selection of only matched name as for individual name, but to get them all.


The "multiple selection" is available only when a single region is focused, and only for MathRegions (the grey selection you can see using F8).

Wrote

2. I saw an error by clicking (twice?) on this zone:


Thank you, another "ghost exception". hope it is fixed now.

Wrote

4. I'm not quite sure to understand the difference you mean between "Normal search" and "Regular expressions".


Regular expressions are used to process the text by patterns (Regular expressions in .NET Framework)
Wrote

Regular expressions:
- Look here if you are interested in regular expressions: quick reference , examples



Wrote

And also why "Match whole word only" box is greyed when "Regular expressions" is selected.


Because it may produce odd results (it depends on the regular expression) use \b{your_own_regular_expression}\b in your regular expression if it is consistent.

Wrote

5. I shoud prefer (of course if it is possible) that when an occurance is selected that to be centered in the middle of the screen, to avoid to catch it in a far place.


Not possible, the page scroll is driven by SMath (here you can see some limitations when you have an expression with a line() longer than the screen height; in these cases you can't scroll on the description region above the definition or in placeholder below the screen height)

Wrote

6. I tryied to put a character on the "Search this:" TextBox using Palette characters, and it seems as not allowed. I can only to introduce content by keyboard or by copy/paste.


Probably I can catch values from the palettes but only if the toolbox is focused. Since the search and replace functions plays a lot with focus and selection, would be a little tricky (you have to scroll the page to the toolbox and click on it, then click on the palette). If one day we will have toolstrips from plugins probably will be more easier and consistent.
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 2/8/2016 1:38:00 PM
#28 Posted: 2/11/2016 8:51:31 PM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

PLUGIN UPDATED

- Search & Replace: added new tab "Find by optimization";

2016-02-12 01_19_51-.png
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 2/12/2016 5:12:00 AM
#29 Posted: 2/11/2016 10:25:58 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Hello Davide,

Actually [5346], the text region collects: parameters, functions for the work sheet project.
My understanding is that by typing a number reference and "Find by optimisation"
you have the posibility to change that particular item in the text box from in-situ anywhwere
in the work sheet... to update the entire project or part of it a applicable.

Do I understand correct ?

Jean
#30 Posted: 2/12/2016 5:17:24 AM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

Wrote

Hello Davide,

Actually [5346], the text region collects: parameters, functions for the work sheet project.
My understanding is that by typing a number reference and "Find by optimisation"
you have the posibility to change that particular item in the text box from in-situ anywhwere
in the work sheet... to update the entire project or part of it a applicable.

Do I understand correct ?

Jean



Hello Jean

Not exactly, the "Find by optimization" tool scan the math regions in worksheet looking for the choosen optimization.

If you click on a single result, the worksheet scrolls to that region and select it
2016-02-12 09_11_55-SMath Studio Desktop - [Bearing Capacity_2013.00.01.sm_].png

If you click on the "select all" button, all the found regions are selected
2016-02-12 09_13_44-SMath Studio Desktop - [Bearing Capacity_2013.00.01.sm_].png

Any further action on the optimization can be done on the canvas (right click > optimization)

Obviously you don't need this if you want a worksheet with an omogenous optimization (CTRL+A -> context menu on a math region -> optimization), however a sanity check is always good practice.

As principle it is possible to do the same from the tool (if it is useful, needs just some code and a reorganization of the GUI)

BTW I've tried to build the recent updates also for SMath Studio 5346 but I get some errors, I have to check them.
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/12/2016 12:03:35 PM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

PLUGIN UPDATED SMath Studio 0.97.5346 and SMath Studio 0.97.5737

- Latest plugin tools made available for SMath Studio 0.97.5346;
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
sergio 2/12/2016 2:46:00 PM
#32 Posted: 2/15/2016 3:05:07 PM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

PLUGIN UPDATED

Wrote

How about using the Document title property from the file header as (possibly multilingual) text in the link regions?



Done. Metadata title or description can be used as text of the hyperlinks (on *.sm files, if available, otherwise the filename is used)

2016-02-15 19_04_20-Overwolf Quick Launcher.png
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
IVR 2/16/2016 5:53:00 PM
#33 Posted: 3/30/2019 9:24:18 AM
sergio

sergio

115 likes in 329 posts.

Group: User

The Text to Writer Converter function of the plugin Text Region Utilities (Insert Tolbox), is not working. It opens its window but does not identify the regions of text.
SMath 0.99 build 7016 - Win7 64 PRO

sergio

#34 Posted: 3/30/2019 1:48:36 PM
NDTM Amarasekera

NDTM Amarasekera

130 likes in 352 posts.

Group: User

Hello!
It works in my system.
SS:0.99.7016.41052 - Win 10 64 Home Edition.
Look within!... The secret is inside you. Best Regards Eng. NDTM Amarasekera - Sri Lanka
1 users liked this post
sergio 3/30/2019 1:58:00 PM
#35 Posted: 3/30/2019 1:57:43 PM
sergio

sergio

115 likes in 329 posts.

Group: User

NDTM,
Thanks for the feedback
Now It's back to work. Strange. I had done many tests including restart Smath, restart the PC etc...

sergio
#36 Posted: 3/30/2019 3:04:00 PM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

Sometimes the toolbox needs to be refreshed (page recalculation or mouse click on the toolbox)
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
sergio 3/30/2019 3:18:00 PM, NDTM Amarasekera 3/30/2019 11:10:00 PM
#37 Posted: 4/20/2019 3:23:11 PM
Engr

Engr

8 likes in 24 posts.

Group: User

I seem not to be able to install the TextRegionUtilities plug-in with the latest version of Smath Studio. I get the following message when I try to install the plug-in:

Field not found: 'Smath.Controls.TextRegion.watch'.

appVersion(4)="0.99.7045.23606"
Windows 7

Thanks in advance for any help.

#38 Posted: 4/24/2019 10:23:31 AM

Farja

1 likes in 7 posts.

Group: User

Hi,

With the last version of Smath (0.99.7053.26276), the error is still present.

text plug.png

Regards
#39 Posted: 4/25/2019 6:36:59 AM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

Thank you, confirmed. That property in the API is no more available, I'll check what can be done.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#40 Posted: 11/3/2022 12:53:52 PM
Arie

Arie

93 likes in 285 posts.

Group: User

Is this plugin expected to work with 8253?

I can get links to files to work in Writer region, but being able to auto generate would be great. I can't quite figure it out.
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
  • New Posts New Posts
  • No New Posts No New Posts