Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

4 Pages123>»
Options
Go to last post Go to first unread
Offline Davide Carpi  
#1 Posted : 08 March 2015 11:26:21(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 1,717
Man
Italy
Location: Italy

Was thanked: 873 time(s) in 584 post(s)
WYSIWYG word processing for your worksheets Biggrin

2016-05-03 01_44_24-SMath Studio Desktop - [WR_hello.sm_].png




>>> PLEASE REPORT IN THIS TOPIC ANY ISSUE, MORE DETAILED AS POSSIBLE <<<



OLD documentation:

Edited by user 07 November 2016 02:19:28(UTC)  | Reason: Not specified

Best regards,

Davide

---
If you like my plugins please consider making a donation to SMath Studio
thanks 8 users thanked Davide Carpi for this useful post.
on 08/03/2015(UTC),  on 08/03/2015(UTC),  on 09/03/2015(UTC),  on 09/03/2015(UTC),  on 10/03/2015(UTC),  on 17/01/2016(UTC),  on 03/12/2016(UTC),  on 22/12/2016(UTC)
Offline Davide Carpi  
#2 Posted : 08 March 2015 11:37:56(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 1,717
Man
Italy
Location: Italy

Was thanked: 873 time(s) in 584 post(s)
Just for developpers

The code contains additional features (style limitations, region's rotation, ...) to use the plugin or the core of this plugin in your projects; let me know if there are issues/bugs to solve or possible improvements.


Examples of use:
- WriterRegion (basics)
- SectionRegions [under development]
- PieChartRegion (multiple regions, fields)

Edited by user 08 March 2016 20:52:39(UTC)  | Reason: edit PieChart description

File Attachment(s):
WriterManager.sm (12kb) downloaded 107 time(s).
Best regards,

Davide

---
If you like my plugins please consider making a donation to SMath Studio
thanks 2 users thanked Davide Carpi for this useful post.
on 08/03/2015(UTC),  on 10/03/2015(UTC)
Offline Davide Carpi  
#3 Posted : 08 March 2015 14:00:52(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 1,717
Man
Italy
Location: Italy

Was thanked: 873 time(s) in 584 post(s)
Hello Ioan Good


I know, I've tried a less disturbing "floating toolbar" but I've not (yet) found a good way to handle it (as for now the toolbar is called from the single region and may handle just that region - I have to handle in some way when the region looses the focus or is deleted from the canvas). When Andrey will provides a way to add toolbars from plugins I'll remove completely the form and this issue will be solved Biggrin .


P.S. plugin updated (Math objects vs styles issues)
P.P.S. plugin updated (Copy format for Math objects; Save/read full style settings for empty lines)

Edited by user 08 March 2015 22:01:47(UTC)  | Reason: Not specified

Best regards,

Davide

---
If you like my plugins please consider making a donation to SMath Studio
thanks 1 user thanked Davide Carpi for this useful post.
on 08/03/2015(UTC)
Offline mkraska  
#4 Posted : 09 March 2015 22:18:37(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,216
Germany

Was thanked: 613 time(s) in 406 post(s)
Hi Davide, thank you for the great plugin.

Here is a preliminary wish-list.
- make the default line spacing customizable or sez it to 1 (this gives grid alignment with the default font setting on my system)
- set the default wrap depending on where the region is inserted. If it is at the left margin, set it to page, if elswhere, set it to custom
- open the hyperlink editor upon double-click on hyperlinks, just as the math editor on math insets.
- if possible, provide a choice, if a sm hyperlink target is to be opened in place of the current document (as with hyperlink text regions) or using the windows run command (leading to a new SMath instance). Currently, the writer region hyperlinks can't be used for interactive handbook cross linking. Thism however, would be very desirable, because they are much easier to edit than the hyperlink text regions.

Martin Kraska

Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
Offline Davide Carpi  
#5 Posted : 10 March 2015 01:53:23(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 1,717
Man
Italy
Location: Italy

Was thanked: 873 time(s) in 584 post(s)
Hello Martin

Originally Posted by: mkraska Go to Quoted Post
Hi Davide, thank you for the great plugin.

You're welcome Good

Originally Posted by: mkraska Go to Quoted Post
Here is a preliminary wish-list.
- make the default line spacing customizable or sez it to 1 (this gives grid alignment with the default font setting on my system)

Sure, I think I'll implement the first thing... Also, probably I'll provide the spacing as a paragraph's property, as for the word processors.

Originally Posted by: mkraska Go to Quoted Post
- set the default wrap depending on where the region is inserted. If it is at the left margin, set it to page, if elswhere, set it to custom

That's an interesting idea. It may be matter of taste so I don't know, I have to think a little if should be possible to make it as a customizable option (f.e. my worksheets often are organized in two columns - description on the left and math on the right - thus this approach may be not the best in this or similar cases)
Originally Posted by: mkraska Go to Quoted Post
- open the hyperlink editor upon double-click on hyperlinks, just as the math editor on math insets.

CTRL+SHIFT+H currently does this job (full edit of the hyperlink that surrounds the caret) without interferences with the normal text behaviour (double-click to select and edit/move a word, as for generic word processors); this can be done also from the toolbar button, even if I know is less accessible.
Originally Posted by: mkraska Go to Quoted Post
- if possible, provide a choice, if a sm hyperlink target is to be opened in place of the current document (as with hyperlink text regions) or using the windows run command (leading to a new SMath instance). Currently, the writer region hyperlinks can't be used for interactive handbook cross linking. Thism however, would be very desirable, because they are much easier to edit than the hyperlink text regions.

Absolutely yes. I have to know if the function to open the document is available form within plugins or is hardcoded (in this case I'll ask Andrey to make it available)


P.S. PLUGIN UPDATED
- Custom wrap: fixed the size of empty regions;
- Blinking caret;

Edited by user 10 March 2015 02:21:50(UTC)  | Reason: Not specified

Best regards,

Davide

---
If you like my plugins please consider making a donation to SMath Studio
Offline mkraska  
#6 Posted : 12 March 2015 16:04:16(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,216
Germany

Was thanked: 613 time(s) in 406 post(s)
There is another topic on my wish-list:

Could you please enable the shortcut Ctrl-G for greek letters (for text input and in the math editor)? Currently, you have to type greek letters elsewhere and copy them to the region.
Edit: One more productivity feature: Use ENTER as a shortcut to close the math editor. Then insets can be created without touching the mouse. This way you can easily give math formatting to any cited symbol in the text.

Thanks, Martin.

Edited by user 12 March 2015 16:45:18(UTC)  | Reason: Not specified

Martin Kraska

Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
Offline Davide Carpi  
#7 Posted : 13 March 2015 12:19:50(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 1,717
Man
Italy
Location: Italy

Was thanked: 873 time(s) in 584 post(s)
I think is possible.

Inside the region should be better to have CTRL+G as for the style modifiers (CTRL+B f.e., that enable/disable the bold mode and converts the surrounding/selected word) or like in math regions (just the character before the caret is converted)?


P.S. error found in the greek paragraph of your activebook

Edited by user 13 March 2015 19:58:08(UTC)  | Reason: choosen the first approach

Davide Carpi attached the following image(s):
2015-03-13 13_15_17-SMath Studio Desktop - [Greek Characters.sm_].png
Best regards,

Davide

---
If you like my plugins please consider making a donation to SMath Studio
thanks 1 user thanked Davide Carpi for this useful post.
on 14/03/2015(UTC)
Offline mkraska  
#8 Posted : 14 March 2015 20:22:10(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,216
Germany

Was thanked: 613 time(s) in 406 post(s)
reproducible (recoverable) crash:

selecting multiple characters and typing (for replacement) produces an exception (index out of range...)
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
thanks 1 user thanked mkraska for this useful post.
on 15/03/2015(UTC)
Offline Davide Carpi  
#9 Posted : 15 March 2015 11:50:01(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 1,717
Man
Italy
Location: Italy

Was thanked: 873 time(s) in 584 post(s)
Reproduced, thank you!
Best regards,

Davide

---
If you like my plugins please consider making a donation to SMath Studio
Offline Davide Carpi  
#10 Posted : 15 March 2015 19:59:01(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 1,717
Man
Italy
Location: Italy

Was thanked: 873 time(s) in 584 post(s)
PLUGIN UPDATED

- added CTRL+G to swap between latin characters and greek symbols (on selection, on words, on further characters)
- math dialog: added CTRL+G to swap between latin characters and greek symbols (on selection, on further characters)
- math dialog now accepts RETURN and ESC keys;
- hyperlink dialog now accepts RETURN and ESC keys;
- fixed crash on text's replacement;
- fixed objects' focus issues when there are hyperlinks;
- minor changes/improvements;

Edited by user 15 March 2015 21:08:14(UTC)  | Reason: Not specified

Best regards,

Davide

---
If you like my plugins please consider making a donation to SMath Studio
thanks 4 users thanked Davide Carpi for this useful post.
on 16/03/2015(UTC),  on 16/03/2015(UTC),  on 16/03/2015(UTC),  on 17/03/2015(UTC)
Offline overlord  
#11 Posted : 16 March 2015 16:15:39(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 30
Turkey

Was thanked: 7 time(s) in 6 post(s)
Is there a reason this region saves a random png data on every change made or is it just junk data? It can easily be detected if you edit *.sm file with a notepad. If you delete this image data then there will be no difference at viewing or printing the document. Moving the region do not add the image data to region. However if you change anything at writer region the png data shall be added again.

Example-2 creates totally the same result on SMath with Example-1, actually Example-2 is notepad modified Example-1.

Example-1:

Code:
<region id="0" left="0" top="0" width="97" height="62" color="#000000" bgColor="#ffffff">
    <writer lang="eng"><![CDATA[<span style="font-family: 'Arial Unicode MS'; font-size: 10pt; font-weight: normal; font-style: normal; text-decoration: none; color: Black; background-color: Transparent; text-align: left; line-height: 115%">
<div><span style="font-family: 'Courier New'"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE8AAAAwCAYAAABQQCeSAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAICSURBVGhD7ZmJsYQgDEAtj4Ioh15sxU74BFCBD15EIWzeDDOL4yL7NoTDSTOPYXkVsLwKbsubpqlJ6ZFH8r6G5VXA8ipgeQPSUN6spWkL2oMi1OKv0+GWCcyoU2LScvYVL3Kv06CZvJRFSU0t+PqQtygthPIVOrSXN0vTriAXdUBTeYsSpk1pMh5Nmsmz4oKhCnVqM24beZDjTFvQXlhY3gC4dOL/1IP1E8tLmKURFqQTqJf8sbwTUOSdirNLDrr5KybYOmIM23N5c7TkUILm2i0l3kbGvBZ5VBe+/4CVQcEekjwI83ixO0ua8tJIg3opBeHIS/emhLdcLhCCEfRFzrNT/PZQqaWtDzJ0C6DJ+0UOjYTCepXXsl/ZJ7uh58oKSXnBHhpS177twjnJiZ7sGs4LCz/3xGm/rECfe5EnssMnrx0rdRCuv1lK5O5dS5YtAnHPDqvk9cCVvoWnJAcrj9sML8+JWyMO9y3d0PL2iHN5DjsCyctrCb68YHngykGSDg8TRnz1uP64y4C8C2MizkU0aSMP7iEYaSnvyPPfsSUnyQxXIU3Z7qMZgfjyEuzwTCJxnfW2y5D7MKa/j7kkr4rMMLbyoog0669RJ4w7pCevcM6XO4mN3nFcnGR645XIA4HwPVtKUqLcSPPQ9BV5vwLLq4DNVMDyKmB5FbC8x2j9B3wdVWeGEbvtAAAAAElFTkSuQmCC" width="79px" height="48px" alt="sqrt({a^2}/56)+x^3" data-style="font-family: 'Courier New'; font-size: 10pt; color: Black; background-color: Transparent"></span></div></span>]]></writer>
</region>


Example-2

Code:
  <region id="0" left="0" top="0" width="97" height="62" color="#000000" bgColor="#ffffff">
    <writer lang="eng"><![CDATA[<span style="font-family: 'Arial Unicode MS'; font-size: 10pt; font-weight: normal; font-style: normal; text-decoration: none; color: Black; background-color: Transparent; text-align: left; line-height: 115%">
<div><span style="font-family: 'Courier New'"><img alt="sqrt({a^2}/56)+x^3" data-style="font-family: 'Courier New'; font-size: 10pt; color: Black; background-color: Transparent"></span></div></span>]]></writer>
  </region>
Offline Davide Carpi  
#12 Posted : 16 March 2015 16:54:50(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 1,717
Man
Italy
Location: Italy

Was thanked: 873 time(s) in 584 post(s)
The src attribute contains a base64-encoded data URI, it is used to share the math objects to the external word processors as a PNG image. It is not essential in the worksheet code, but I need it for debug/testing purposes, at least for now.

Edited by user 27 January 2017 15:35:54(UTC)  | Reason: test

Best regards,

Davide

---
If you like my plugins please consider making a donation to SMath Studio
Offline mkraska  
#13 Posted : 01 April 2015 00:20:02(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,216
Germany

Was thanked: 613 time(s) in 406 post(s)
If a writer region with custom wrap setting is cloned using ctrl-drag, then the custom region width gets lost. The wrap setting is still custom but the width extends as if None was specified.
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
thanks 1 user thanked mkraska for this useful post.
on 01/04/2015(UTC)
Offline Davide Carpi  
#14 Posted : 01 April 2015 02:14:01(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 1,717
Man
Italy
Location: Italy

Was thanked: 873 time(s) in 584 post(s)
Thank you, will be fixed in the next relase.

P.S.

Originally Posted by: mkraska Go to Quoted Post
- if possible, provide a choice, if a sm hyperlink target is to be opened in place of the current document (as with hyperlink text regions) or using the windows run command (leading to a new SMath instance).

I've asked Andrey to extend the APIs to be able to implement this feature Happy

Edited by user 01 April 2015 11:31:54(UTC)  | Reason: Not specified

Best regards,

Davide

---
If you like my plugins please consider making a donation to SMath Studio
Offline Davide Carpi  
#15 Posted : 08 April 2015 01:24:28(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 1,717
Man
Italy
Location: Italy

Was thanked: 873 time(s) in 584 post(s)
PLUGIN UPDATED SMath Studio 0.97.5575 (07 April 2015)

- Plugin updated to respect changes in SS Core;
- Fixed missing WrapWidth on CTRL+DRAG;
- Toolstrips organization changed to have paragraph's properties grouped;
- Minor changes;

Edited by user 08 April 2015 01:30:49(UTC)  | Reason: Not specified

Best regards,

Davide

---
If you like my plugins please consider making a donation to SMath Studio
thanks 1 user thanked Davide Carpi for this useful post.
on 08/04/2015(UTC)
Offline Davide Carpi  
#16 Posted : 02 August 2015 20:14:59(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 1,717
Man
Italy
Location: Italy

Was thanked: 873 time(s) in 584 post(s)
PLUGIN UPDATED SMath Studio 0.97.5581 (08 April 2015)

  • Toolbar new features:
    • Toolbar now is available as floating item (can be opened at once in the worksheet);
    • added "Symbol" menu;
      • windows "character map" available from here;
    • added "Change Case" menu;
      • added functions "sentence case", "capitalize each words", "toggle case";
    • "More" menu: New "Options..." item (introduced to set up global options);
      • you can choose between 2 different ways to export data to clipboard; this should enable the region to export math images to any external Word processor*;
      • you can choose the default wrap for the new regions;
      • you can choose to move the new regions on the leftmost page margin, regardless the insertion point;
      • [DEV] LOG utilities available from inside SMath (CTRL+SHIFT+D in this form)
    • fixed critical bugs about non valid values in the font-size DropDown menu;
    • icons reworked;
  • Math objects: the single object now can be copy-pasted as editable math in MS Word** ("paste special" still contains also the plain text and the bitmap image);
  • Changed handling of mouse cursor to avoid annoying flickering;
    • on text selection (noticed with some video drivers);
    • over links on CTRL key pressed (workaround for SS-1239);
  • Hotkeys: CTRL+SHIFT+F assigned to "Copy Format";
  • Fixed critical bug of math objects containing XML special characters;
  • Fixed non selectable hyperlinks written after adding math objects;
  • [DEV] code changes to enable batch TextRegion conversion from next TextRegionUtilities plugin;
  • minor changes & fixes;



PLEASE NOTE:
* Most of the Word processors are able to manage both the modes, however MS Word doesn't handle embedded images, Google Docs and MS Office Online doesn't handle (local) temporary files.
** Some MathML attributes such as colors and alignments are ignored (tests on MS Word up to 2010). It is possible to left-align the items (if, line, while, for, sys, cases) from inside MS Word (Column Alignment > Left).

Edited by user 09 September 2015 18:32:41(UTC)  | Reason: MS Office Online updated

Best regards,

Davide

---
If you like my plugins please consider making a donation to SMath Studio
thanks 4 users thanked Davide Carpi for this useful post.
on 02/08/2015(UTC),  on 02/08/2015(UTC),  on 03/08/2015(UTC),  on 04/08/2015(UTC)
Offline Davide Carpi  
#17 Posted : 03 August 2015 17:50:56(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 1,717
Man
Italy
Location: Italy

Was thanked: 873 time(s) in 584 post(s)
PLUGIN UPDATED

- Fixed broken resize marker;
Best regards,

Davide

---
If you like my plugins please consider making a donation to SMath Studio
thanks 2 users thanked Davide Carpi for this useful post.
on 05/08/2015(UTC),  on 05/08/2015(UTC)
Offline Andrey Ivashov  
#18 Posted : 05 August 2015 18:12:01(UTC)
Andrey Ivashov


Rank: Administration

Groups: Developers, Registered, Knovel Developers, Administrators, Advanced Member
Joined: 11/07/2008(UTC)
Posts: 1,115
Man
Russian Federation

Was thanked: 1052 time(s) in 390 post(s)
Great! Thank you Davide!

What you think if together we will try to include Writer Region into SMath Studio in the Cloud? I believe it may be interesting...

Best regards!
thanks 1 user thanked Andrey Ivashov for this useful post.
on 05/08/2015(UTC)
Offline Davide Carpi  
#19 Posted : 05 August 2015 20:22:08(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 1,717
Man
Italy
Location: Italy

Was thanked: 873 time(s) in 584 post(s)
Hello Andrey Good

I think that would be great, we'll talk about it on Skype ASAP Good
Best regards,

Davide

---
If you like my plugins please consider making a donation to SMath Studio
Offline Andrey Ivashov  
#20 Posted : 07 August 2015 01:45:18(UTC)
Andrey Ivashov


Rank: Administration

Groups: Developers, Registered, Knovel Developers, Administrators, Advanced Member
Joined: 11/07/2008(UTC)
Posts: 1,115
Man
Russian Federation

Was thanked: 1052 time(s) in 390 post(s)
Sure!
Users browsing this topic
4 Pages123>»
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.