Text Region Utilities

Text Region Utilities - Helps to set some Text Region properties - Сообщения

#21 Опубликовано: 04.09.2014 09:03:21
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: 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 Опубликовано: 06.02.2016 15:39:45
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: Moderator

PLUGIN UPDATED SMath Studio 0.97.5737

- Toolbox: added Text to Writer batch converter (*); Text to Writer.sm (11 КиБ) скачан 90 раз(а).
- 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:

Цитата

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



Файл не найден. Файл не найден.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
4 пользователям понравился этот пост
ioan92 06.02.2016 16:36:00, Martin Kraska 07.02.2016 10:39:00, Lorenzo 08.02.2016 08:02:00, IVR 12.02.2016 06:34:00
#23 Опубликовано: 07.02.2016 07:26:54
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: 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 пользователям понравился этот пост
ioan92 07.02.2016 07:32:00
#24 Опубликовано: 07.02.2016 11:41:43
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: 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 пользователям понравился этот пост
ioan92 07.02.2016 12:13:00
#25 Опубликовано: 07.02.2016 13:14:37
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: 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 пользователям понравился этот пост
ioan92 07.02.2016 13:40:00
#26 Опубликовано: 07.02.2016 19:52:37
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: 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 Опубликовано: 08.02.2016 12:58:01
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: 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 пользователям понравился этот пост
ioan92 08.02.2016 13:38:00
#28 Опубликовано: 11.02.2016 20:51:31
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: 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 пользователям понравился этот пост
ioan92 12.02.2016 05:12:00
#29 Опубликовано: 11.02.2016 22:25:58
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: 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 Опубликовано: 12.02.2016 05:17:24
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: 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 Опубликовано: 12.02.2016 12:03:35
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: 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 пользователям понравился этот пост
sergio 12.02.2016 14:46:00
#32 Опубликовано: 15.02.2016 15:05:07
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: 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 пользователям понравился этот пост
IVR 16.02.2016 17:53:00
#33 Опубликовано: 30.03.2019 09:24:18
sergio

sergio

115 сообщений из 329 понравились пользователям.

Группа: 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 Опубликовано: 30.03.2019 13:48:36
NDTM Amarasekera

NDTM Amarasekera

130 сообщений из 352 понравились пользователям.

Группа: 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 пользователям понравился этот пост
sergio 30.03.2019 13:58:00
#35 Опубликовано: 30.03.2019 13:57:43
sergio

sergio

115 сообщений из 329 понравились пользователям.

Группа: 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 Опубликовано: 30.03.2019 15:04:00
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: 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 пользователям понравился этот пост
sergio 30.03.2019 15:18:00, NDTM Amarasekera 30.03.2019 23:10:00
#37 Опубликовано: 20.04.2019 15:23:11
Engr

Engr

8 сообщений из 24 понравились пользователям.

Группа: 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 Опубликовано: 24.04.2019 10:23:31

Farja

1 сообщений из 7 понравились пользователям.

Группа: User

Hi,

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

text plug.png

Regards
#39 Опубликовано: 25.04.2019 06:36:59
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: 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 Опубликовано: 03.11.2022 12:53:52
Arie

Arie

93 сообщений из 285 понравились пользователям.

Группа: 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
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений