Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,713 Location: Italy Was thanked: 1378 time(s) in 902 post(s)
|
PLUGIN UPDATED- Paste as SMath string enabled & fixed. I apologize for the multiple updates. Edited by user 08 August 2014 22:26:34(UTC)
| Reason: Not specified |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 15/04/2012(UTC) Posts: 2,036 Was thanked: 1168 time(s) in 747 post(s)
|
Davide, I experience strange problems with hyperlinks with SMath 0.98.6179 and a fresh hyperlink region plugin. The links in your docs (from post #1) work fine. If I copy them to my handbook page, I get "System can't find the file" messages for the links marked with red background, both documents in the same instance of SMath. No matter if portable or installed distribution... There must be something wrong with my document... HyperlinkRegion.sm (91kb) downloaded 54 time(s). Plugin Hyperlink Region.sm (66kb) downloaded 46 time(s). |
|
2 users thanked mkraska for this useful post.
|
on 02/01/2017(UTC), on 02/01/2017(UTC)
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,713 Location: Italy Was thanked: 1378 time(s) in 902 post(s)
|
Originally Posted by: mkraska If I copy them to my handbook page, I get "System can't find the file" messages for the links marked with red background, both documents in the same instance of SMath. No matter if portable or installed distribution... Try now, it should be fixed. Also: - SMath Viever now should be able to open relative links (if the file exists); - SMath files they can be opened even from SMath portable (a new instance of the current SS will be used to open the files, as in Writer Region); |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
1 user thanked Davide Carpi for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 15/04/2012(UTC) Posts: 2,036 Was thanked: 1168 time(s) in 747 post(s)
|
Originally Posted by: Davide Carpi Try now, it should be fixed.
Confired, thank you. BTW, due to the current plugin loading policy (long startup time), I'd prefer links to smath files being opened in the currently running instance. For the interactive handbook, the writer region can't be used by this reason (also, because you need to activate the region before you can click links, i.e. thus doubling the required clicks). |
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 15/02/2017(UTC) Posts: 9 Location: Moscow
|
I am using it with version 0.98.6179 but generation of executable version (viewer) SMath Viewer Options1. When check "Full version" in set - doesn't work for me. HyperLink is not active 2. When uncheck "Full version" in set - all right. HyperLink is active explanation in the picture http://pixs.ru/showimage/Question1p_4537918_25177731.pngP.S. I can't login Kriss
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,713 Location: Italy Was thanked: 1378 time(s) in 902 post(s)
|
Third-party plugins are not yet supported in SMath Viewer Full (see here) |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
|
|
|
Rank: Newbie
Groups: Registered
Joined: 15/02/2017(UTC) Posts: 9 Location: Moscow
|
Ok thank you for the explanation
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 15/02/2017(UTC) Posts: 9 Location: Moscow
|
Suggestion to improve appearance Hyperlink RegionI propose to add the property isEnable = 1 or 0 with the ability to switch in the environment Smath Studioand add this functionality in ComboBoxList Region Best regards! Edited by user 03 March 2017 14:09:08(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,713 Location: Italy Was thanked: 1378 time(s) in 902 post(s)
|
Hello Kross, Originally Posted by: Kross I propose to add the property isEnable = 1 or 0 with the ability to switch in the environment Smath Studio
You can disable the region like any other region evaluable (right click > disable evaluation). Or I miss something? |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
|
|
|
Rank: Member Groups: Registered
Joined: 23/01/2017(UTC) Posts: 16 Location: Moscow
|
Probably, I not clearly explained I need to control programmatically from within assume conditions my English is not very good
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 20/02/2017(UTC) Posts: 5 Was thanked: 1 time(s) in 1 post(s)
|
Hi, Your extension is great - it should be built-in in SMath, but I have encountered a problem when I wanted to add hyperlink to a file inside a directory within SMath file, for example: SMath file is in: E:\longDirName\SmathSample\Hyperlinks.sm The hyperlinked file is in: E:\longDirName\SmathSample\Images\1.jpg I don't want to paste always the whole path - sometimes there could be a situation of copy-paste SMath file - hyperlinks would be then broken. I want to use reference paths, in this example just: Images\1.jpg But in your code it is denied by the first logical check in code (class HyperlinkRegion, method GoToDestination(): Code:
if ((!String.IsNullOrEmpty(this.FileName) || this.IsViewerApplication)
&& destination.IndexOfAny(Path.GetInvalidFileNameChars()) == -1
&& destination.IndexOfAny(Path.GetInvalidFileNameChars()) == -1
&& destination.IndexOf('@') == -1
&& !Path.IsPathRooted(destination))
There are two conditions: destination.IndexOfAny(Path.GetInvalidFileNameChars()) == -1 which are denying hyperlinks with backslashes (backslash could not be in FileName). If you change your comparisions to: Path.GetInvalidPathChars() you will open that possiblity.
|
1 user thanked gregi for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,713 Location: Italy Was thanked: 1378 time(s) in 902 post(s)
|
Hello
gregi
, it is a bug introduced by me in a recent update, thank you Plugin fixed and updated (latest SS beta only) |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
1 user thanked Davide Carpi for this useful post.
|
|
|
Rank: Member Groups: Registered
Joined: 29/01/2018(UTC) Posts: 13
|
Hi, Paste doesn't work when there is already some input data. E.g. 1. ctrl+h 2. ctrl+v and this paste e.g. "C:\some_path\" 3. ctrl+v at the end of already pasted string -- doesn't work.
Regards Kriss
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,713 Location: Italy Was thanked: 1378 time(s) in 902 post(s)
|
Originally Posted by: krissn Hi, Paste doesn't work when there is already some input data. E.g. 1. ctrl+h 2. ctrl+v and this paste e.g. "C:\some_path\" 3. ctrl+v at the end of already pasted string -- doesn't work.
Regards Kriss Please update the plugin and test if the fix works for you PLUGIN UPDATED |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
|
|
|
Rank: Member Groups: Registered
Joined: 29/01/2018(UTC) Posts: 13
|
Hi, Thanks for fix. It seems to be working, unless you trying to paste something outside of double-quotes (beginning or end of line). Then it says "Paste to region failed" on status bar. I'm not complaining, just want to bring that into your attention in case you want to do anything with this.
Thanks again for quick response. Regards Kriss
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 15/04/2012(UTC) Posts: 2,036 Was thanked: 1168 time(s) in 747 post(s)
|
The link text seems to be cut off in 6824 and newer (perhaps also older). |
|
1 user thanked mkraska for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,713 Location: Italy Was thanked: 1378 time(s) in 902 post(s)
|
Thank you Martin, confirmed and fixed. seems there are issues with the Release Manager today, I'll deploy the updated extension as soon as it will be possible Edited by user 27 September 2018 01:16:31(UTC)
| Reason: Not specified |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 14/09/2013(UTC) Posts: 92 Was thanked: 24 time(s) in 16 post(s)
|
Hi Davide, is there a way to save a pdf of an .sm file, and keeping the Hyperlink Region as a real embedded hyperlink in the pdf file?
Currently I'm saving pdfs with Andrey's tool "PDF Files Plugin", meaning that I simply select " SAVE AS ---> .pdf " from the "file" tab. Doing this, the hyperlink Region will become an image in the pdf file.
I'm not even sure if the above requirement is related more to the "Hyperlink plugin" or to the "PDF Files Plugin" behaviour.
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 983 time(s) in 811 post(s)
|
Originally Posted by: fedeghi is there a way to save a pdf of an .sm file Not my business, but don't understand why re-convert: an *.sm saved as *.PDF back to the original *.sm ?
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 14/09/2013(UTC) Posts: 92 Was thanked: 24 time(s) in 16 post(s)
|
Originally Posted by: Jean Giraud Originally Posted by: fedeghi is there a way to save a pdf of an .sm file Not my business, but don't understand why re-convert: an *.sm saved as *.PDF back to the original *.sm ? Hi Jean, my goal is not to reconvert. Probably I didn't write it properly: I would like to open an sm file that contains Hyperlinks, and save it as pdf where Hyperlink Regions are still clickable links.
|
|
|
|
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.