Hyperlink Region

Hyperlink Region - Add hyperlinks in SMath Studio worksheets/SMath Viewer - Messaggi

#41 Pubblicato: 08/08/2014 15:23:44
Davide Carpi

Davide Carpi

1.443 apprezzamenti in 2.936 post.

Gruppo: Moderator

PLUGIN UPDATED

- Paste as SMath string enabled & fixed.


I apologize for the multiple updates.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#42 Pubblicato: 31/12/2016 19:31:26
Martin Kraska

Martin Kraska

1.361 apprezzamenti in 2.275 post.

Gruppo: Moderator

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...

File non trovato.File non trovato.
hyperlinkreg.png
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
2 utenti hanno apprezzato questo post
Davide Carpi 02/01/2017 12:35:00, Serg 02/01/2017 13:06:00
#43 Pubblicato: 02/01/2017 12:35:03
Davide Carpi

Davide Carpi

1.443 apprezzamenti in 2.936 post.

Gruppo: Moderator

Wrote

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 please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 utenti hanno apprezzato questo post
Martin Kraska 02/01/2017 13:11:00
#44 Pubblicato: 02/01/2017 13:10:41
Martin Kraska

Martin Kraska

1.361 apprezzamenti in 2.275 post.

Gruppo: Moderator

Wrote


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).
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#45 Pubblicato: 15/02/2017 07:57:07
Kross

Kross

0 apprezzamenti in 10 post.

Gruppo: User

I am using it with version 0.98.6179 but generation
of executable version (viewer)

SMath Viewer Options

1. 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.png

P.S.
I can't login Kriss
#46 Pubblicato: 15/02/2017 08:30:17
Davide Carpi

Davide Carpi

1.443 apprezzamenti in 2.936 post.

Gruppo: Moderator

Third-party plugins are not yet supported in SMath Viewer Full (see here)
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#47 Pubblicato: 15/02/2017 08:40:15
Kross

Kross

0 apprezzamenti in 10 post.

Gruppo: User

Ok
thank you
for the explanation
#48 Pubblicato: 03/03/2017 08:06:51
Kross

Kross

0 apprezzamenti in 10 post.

Gruppo: User

Suggestion to improve appearance Hyperlink Region

I propose to add the property isEnable = 1 or 0
with the ability to switch in the environment Smath Studio

and add this functionality in ComboBoxList Region

Best regards!
#49 Pubblicato: 03/03/2017 08:51:28
Davide Carpi

Davide Carpi

1.443 apprezzamenti in 2.936 post.

Gruppo: Moderator

Hello Kross,

Wrote

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 please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#50 Pubblicato: 05/03/2017 06:29:43
Krid

Krid

0 apprezzamenti in 16 post.

Gruppo: User

Probably, I not clearly explained

I need to control programmatically from within
assume conditions
if a > 10 
isEnable = 1

my English is not very good
#51 Pubblicato: 02/06/2017 06:15:02
gregi

gregi

1 apprezzamenti in 5 post.

Gruppo: User

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():

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 utenti hanno apprezzato questo post
Davide Carpi 02/06/2017 08:20:00
#52 Pubblicato: 02/06/2017 08:21:52
Davide Carpi

Davide Carpi

1.443 apprezzamenti in 2.936 post.

Gruppo: Moderator

Hello [userlink]gregi[/userlink],

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 please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 utenti hanno apprezzato questo post
sergio 02/06/2017 14:44:00
#53 Pubblicato: 19/02/2018 17:56:23
Kriss

Kriss

0 apprezzamenti in 13 post.

Gruppo: User

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
#54 Pubblicato: 19/02/2018 20:36:03
Davide Carpi

Davide Carpi

1.443 apprezzamenti in 2.936 post.

Gruppo: Moderator

Wrote

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 please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#55 Pubblicato: 20/02/2018 08:53:05
Kriss

Kriss

0 apprezzamenti in 13 post.

Gruppo: User

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
#56 Pubblicato: 26/09/2018 14:48:08
Martin Kraska

Martin Kraska

1.361 apprezzamenti in 2.275 post.

Gruppo: Moderator

The link text seems to be cut off in 6824 and newer (perhaps also older).

2018-09-26 19_42_11-SMath Studio 0.99.6839 - [Welcome.sm].png
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
1 utenti hanno apprezzato questo post
Davide Carpi 27/09/2018 07:06:00
#57 Pubblicato: 26/09/2018 19:07:46
Davide Carpi

Davide Carpi

1.443 apprezzamenti in 2.936 post.

Gruppo: Moderator

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
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#58 Pubblicato: 04/06/2019 06:50:30
fedeghi

fedeghi

25 apprezzamenti in 112 post.

Gruppo: User

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.
#59 Pubblicato: 04/06/2019 08:39:57
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

Wrote

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 ?

#60 Pubblicato: 04/06/2019 08:47:52
fedeghi

fedeghi

25 apprezzamenti in 112 post.

Gruppo: User

Wrote

Wrote

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.
  • Nuovi post
  • Nessun nuovo post