Hyperlink Region

Hyperlink Region - Add hyperlinks in SMath Studio worksheets/SMath Viewer - Сообщения

#41 Опубликовано: 08.08.2014 15:23:44
Davide Carpi

Davide Carpi

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

Группа: 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 Опубликовано: 31.12.2016 19:31:26
Martin Kraska

Martin Kraska

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

Группа: 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...

Файл не найден.Файл не найден.
hyperlinkreg.png
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
2 пользователям понравился этот пост
Davide Carpi 02.01.2017 12:35:00, Serg 02.01.2017 13:06:00
#43 Опубликовано: 02.01.2017 12:35:03
Davide Carpi

Davide Carpi

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

Группа: 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 пользователям понравился этот пост
Martin Kraska 02.01.2017 13:11:00
#44 Опубликовано: 02.01.2017 13:10:41
Martin Kraska

Martin Kraska

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

Группа: 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).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#45 Опубликовано: 15.02.2017 07:57:07
Kross

Kross

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

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

Davide Carpi

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

Группа: 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 Опубликовано: 15.02.2017 08:40:15
Kross

Kross

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

Группа: User

Ok
thank you
for the explanation
#48 Опубликовано: 03.03.2017 08:06:51
Kross

Kross

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

Группа: 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 Опубликовано: 03.03.2017 08:51:28
Davide Carpi

Davide Carpi

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

Группа: 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 Опубликовано: 05.03.2017 06:29:43
Krid

Krid

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

Группа: 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 Опубликовано: 02.06.2017 06:15:02
gregi

gregi

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

Группа: 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 пользователям понравился этот пост
Davide Carpi 02.06.2017 08:20:00
#52 Опубликовано: 02.06.2017 08:21:52
Davide Carpi

Davide Carpi

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

Группа: 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 пользователям понравился этот пост
sergio 02.06.2017 14:44:00
#53 Опубликовано: 19.02.2018 17:56:23
Kriss

Kriss

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

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

Davide Carpi

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

Группа: 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 Опубликовано: 20.02.2018 08:53:05
Kriss

Kriss

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

Группа: 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 Опубликовано: 26.09.2018 14:48:08
Martin Kraska

Martin Kraska

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

Группа: 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
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 пользователям понравился этот пост
Davide Carpi 27.09.2018 07:06:00
#57 Опубликовано: 26.09.2018 19:07:46
Davide Carpi

Davide Carpi

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

Группа: 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 Опубликовано: 04.06.2019 06:50:30
fedeghi

fedeghi

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

Группа: 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 Опубликовано: 04.06.2019 08:39:57
Jean Giraud

Jean Giraud

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

Группа: 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 Опубликовано: 04.06.2019 08:47:52
fedeghi

fedeghi

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

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