Text formatting

Text formatting - Сообщения

#1 Опубликовано: 17.07.2010 10:32:58
Andrey Ivashov

Andrey Ivashov

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

Группа: Super Administrator

Hello all!

Next version of SMath Studio will have an ability to work with formatted text. It will support text options like bold, italic, underline and custom fonts.


Unfortunately I have no chance to implement any user interface to manage text format for now, but I can use standard keystrokes:
  1. Ctrl+B - to make text bold
  2. Ctrl+I - to make text italic
  3. Ctrl+U - to make text underlined

Problem is that Ctrl+U is a keystroke to open Insert Unit Dialog (we have it in SMath Studio 0.88 and Mathcad). Is it OK if I will change Unit Dialog hot key to Ctrl+W?

P.S.: Insert Function Dialog can be shown using Ctrl+E.

Regards.
#2 Опубликовано: 19.07.2010 12:23:06
maweilian

maweilian

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

Группа: User

This improvement is much needed! Great work, Andrey!
Will Massie Mechanical Engineer Oregon, USA
#3 Опубликовано: 30.07.2010 06:27:27
sorlum

sorlum

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

Группа: User

The text formatting is really great - just one question:

How do I change the font in 0.89? I see that you announce it here, but it isn't clear to me how to get arial for example.
#4 Опубликовано: 30.07.2010 06:41:40
Andrey Ivashov

Andrey Ivashov

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

Группа: Super Administrator

As I've mentioned above SMath Studio has no any user interface for changing text formatting. Unfortunately there is no any way within a program to change a font. But you can use a small trick:
1) Create a worksheet;
2) Create a text region;
3) Save created content as a *.sm file;
4) Open created file with a Notepad or any other simple text editor;
5) Find lines like:
  <region id="1" left="198" top="297" width="83" height="27" color="#000000" background-color="#ffffff" font-size="12">
    <text lang="rus">
      <p>My test text</p>
    </text>
  </region>
6) Change it to:
  <region id="1" left="198" top="297" width="83" height="27" color="#000000" background-color="#ffffff" font-size="12">
    <text lang="rus">
      <p font-name="Arial">My test text</p>
    </text>
  </region>
(see

font-name="Arial">My test text

line)
7) Save changes in text editor;
8) Open the result file with SMath Studio.

Hope it will help you.

Regards.
#5 Опубликовано: 02.08.2010 07:32:06
sorlum

sorlum

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

Группа: User

Thank you,

I used a search replace for all the and it seems to work.

It's a bit long, but at least it is possible

Again - Thank you and great work.



#6 Опубликовано: 02.01.2011 02:32:51
John at the Waterfalls

John at the Waterfalls

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

Группа: User

Copy and Paste Text from MathCad to SMath

I am currently using my recently purchased MathCad 15 alongside SMath to document a project I am working on. I don't need to do complex calculations, just keep track of the numerous simple calculations. So today I spent a large amount of time typing up my results.

I typed my documentation into MathCad and when I was finished, copied and pasted into SMath. Formatting does not carry through a copy and paste into SMath. SMath does not do word wrap in the text boxes yet and I had to manually insert all the carriage returns with Shift-Return. I have 4 pages of text and in some areas, the whole page unexplainedly jumped around and I lost the area I was working on. The answer may be to copy from MC into a text editor or RTF editor, insert line breaks and then copy and paste into SMath. Funny things also happen depending on whether you copy the text box from MC or highlight and copy the text.

Tomorrow I will do all my writing in SSMath, and then copy and paste into MC, letting MC do the word-wrap and touching up with the mouse and formatting buttons.

Of note; Mathcad does not even use shortcut keys for Bold Underline and Italics. You have to use your mouse! What a joke for the price they charge.

SMath format shortcut keys only highlight the whole text block. You can nott just highlight the header and Ctl-B to make the header bold. The whole block becomes bold. I don't have time to edit the formatting code. I will patiently wait until the next version of SMath comes out. My work is documented. I'm happy.

I'm sure this post will eventually become irrelevant as SMath progresses.

#7 Опубликовано: 28.02.2011 19:47:12
cneily

cneily

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

Группа: User

Question: Will these fonts be active for mathematical expressions, or just in text regions as text. In other words, will I be able to set vector-valued quantities in boldface in my calculations?
Clark N.
#8 Опубликовано: 01.03.2011 15:34:28
Andrey Ivashov

Andrey Ivashov

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

Группа: Super Administrator

Hello.

No, there are no such formatting abilities for the math expression.
#9 Опубликовано: 01.03.2011 16:04:37
cneily

cneily

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

Группа: User

I would respectfully offer the opinion that font choices for variables and parameters in calculations are a much more important feature than font choices in text. Calculations become much more readable and easy to follow if it is clear which items are vectors, or matrices, for example, and which scalars. This is one of the principal advantages of MathCad. I would like to post some example worksheets that illustrate this point, if possible.
#10 Опубликовано: 01.03.2011 17:43:19
Radovan Omorjan

Radovan Omorjan

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

Группа: Moderator

Welcome back Andrey
Wrote

Hello.

No, there are no such formatting abilities for the math expression.


There were no posts from you for a while and we were quite woried about it. I hope everything is going well

Best Regrads,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#11 Опубликовано: 06.03.2011 09:45:32
Andrey Ivashov

Andrey Ivashov

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

Группа: Super Administrator

Привет Radovan!

Wrote

There were no posts from you for a while and we were quite woried about it. I hope everything is going well


Yeah, but I'm still very busy. Anyway I'll be back to the project in couple of months to continue SMath Studio development.

Regards.
2 пользователям понравился этот пост
Radovan Omorjan 06.03.2011 15:59:00, maweilian 07.03.2011 12:58:00
#12 Опубликовано: 18.02.2013 17:51:11
Davide Carpi

Davide Carpi

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

Группа: Moderator

A sheet containing some text area with various font-families to use in your own scripts (copy from this sheet, paste in your sheets and modify the area).


best regards,

w3b5urf3r
SMath Studio - [The quick brown fox.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 01.03.2014 16:06:00
#13 Опубликовано: 01.03.2014 11:55:30
Davide Carpi

Davide Carpi

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

Группа: Moderator

Wrote

A sheet containing some text area with various font-families to use in your own scripts (copy from this sheet, paste in your sheets and modify the area).



Uploaded in the Extensions Manager (Examples)


Best regards,

Davide
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#14 Опубликовано: 01.03.2014 13:35:49
natezimmer

natezimmer

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

Группа: User

Is it possible or has anyone implemented a plugin for a text toolbar?
#15 Опубликовано: 01.03.2014 14:07:56
Davide Carpi

Davide Carpi

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

Группа: Moderator

Wrote

Is it possible or has anyone implemented a plugin for a text toolbar?



Partially, yes.... not a toolbar but I'm working to another solution on the existing text region...
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 пользователям понравился этот пост
ioan92 01.03.2014 16:03:00
#16 Опубликовано: 16.04.2014 16:38:45
blarg

blarg

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

Группа: User

Any chance a donation of some size could get us a toolbar that would allow us to easily change to these fonts? =D

Wrote

Hello all!

Next version of SMath Studio will have an ability to work with formatted text. It will support text options like bold, italic, underline and custom fonts.


Unfortunately I have no chance to implement any user interface to manage text format for now, but I can use standard keystrokes:

  1. Ctrl+B - to make text bold
  2. Ctrl+I - to make text italic
  3. Ctrl+U - to make text underlined

Problem is that Ctrl+U is a keystroke to open Insert Unit Dialog (we have it in SMath Studio 0.88 and Mathcad). Is it OK if I will change Unit Dialog hot key to Ctrl+W?

P.S.: Insert Function Dialog can be shown using Ctrl+E.

Regards.

#17 Опубликовано: 26.09.2014 13:54:17
Davide Carpi

Davide Carpi

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

Группа: Moderator

Wrote

Any chance a donation of some size could get us a toolbar that would allow us to easily change to these fonts?



Trust me, the toolbar is the minor of the issues

BTW working to the SectionRegions plugin, I'm making an easy-to-use WriterRegion, and I've also produced a (back-end) customizable toolstrip to drive the text settings (as for now, the toolbar is just a toy).
2014-09-26 19_52_51-SMath Studio Desktop - [texttest.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 26.09.2014 14:17:00
#18 Опубликовано: 08.10.2014 12:37:01
Davide Carpi

Davide Carpi

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

Группа: Moderator

A screenshot... will be relased as WriterRegion (when will be stable and complete enough).
test.png
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
6 пользователям понравился этот пост
hitaisin 04.01.2015 04:37:00, Radovan Omorjan 08.10.2014 13:54:00, Вячеслав Мезенцев 08.10.2014 13:12:00, ioan92 08.10.2014 15:28:00, Peter 09.10.2014 00:07:00, Andrey Ivashov 11.10.2014 09:11:00
#19 Опубликовано: 04.01.2015 04:36:33
hitaisin

hitaisin

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

Группа: User

Hello!

Any news about WriterRegion?

Can I change default font in application? I want to use Arial as default font.
#20 Опубликовано: 04.01.2015 15:15:46
Davide Carpi

Davide Carpi

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

Группа: Moderator

Wrote

Hello!

Any news about WriterRegion?



Hello hitaisin

The plugin is still under development. I have to change an important piece of code to improve performances and to support text wrapping, and then I have to ask Andrey about History handling because the code doesn't work as expected. After this, the plugin will be published.


Wrote

Can I change default font in application? I want to use Arial as default font.



You can change the font family of text regions with another plugin (Text Region Utilities), but you can't set a default font to use everytimes.


Wishes of an happy new year to the whole SMath community

Davide
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 пользователям понравился этот пост
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений