Re: [libreoffice-users] automatic font selection in macro

2019-02-12 Thread Thomas Blasejewicz

Addition
On 2019/02/13 13:26, Andrew Pitonyak wrote:
if I wrote a macro that inserts the letter 'X', I would not expect the 
insertion to specify the font unless I went out of my way to do so.


* Japanese font -> I was just playing around and this is NOT what I want.
This is what LibreOffice has recorded:

sub insertalpha
rem --
rem define variables
dim document   as object
dim dispatcher as object
rem --
rem get access to the document
document   = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")

rem --
dim args1(1) as new com.sun.star.beans.PropertyValue
args1(0).Name = "Symbols"
args1(0).Value = "α"
args1(1).Name = "FontName"
args1(1).Value = "MS Pゴシック"

dispatcher.executeDispatch(document, ".uno:InsertSymbol", "", 0, args1())

rem --
rem dispatcher.executeDispatch(document, ".uno:InsertSymbol", "", 0, 
Array())



end sub

--
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy


Re: [libreoffice-users] automatic font selection in macro

2019-02-12 Thread Thomas Blasejewicz

On 2019/02/13 13:26, Andrew Pitonyak wrote:
if I wrote a macro that inserts the letter 'X', I would not expect the 
insertion to specify the font unless I went out of my way to do so.


I am interested in seeing the macro that you are using.


Well, I am not actually "writing" the macro - I have no idea how to do 
that.
I use "Tools -> Macros -> Record macro" and open the "insert special 
characters dialog box".

THIS is where the problem is.
As far as I can tell, there is no way NOT to select a font in that dialog.
On top you have the "Search / Font / Subset" fields.
"Font" gives you a list of fonts, but not the choice of "none / 
automatic" etc. - or allows you to delete the currently selected font.

I had been hoping to find that kind of choice.

Mr. Pitonyak. Please don't worry. I am not in a hurry. I have been 
pondering this for years already ...


Thank you.
Thomas Blasejewicz











Sent from BlueMail 
On Feb 12, 2019, at 9:55 PM, Thomas Blasejewicz > wrote:


Good morning
I have another strange question.
Work related I have to insert not infrequently symbols into texts.
To make work easier, I have already created a number of macros to insert
for example the symbol "micro" into a text using a keyboard shortcut.

Problem:
Let's say, I created the macro in a document that happened to use
"Arial" as font and later want to use it in a document that uses "Times
Roman". The macro I created then inserts an "Arial font micro" into the
Times Roman text, which then looks out of place.

Is there a trick to create macros, so that the inserted symbol matches
the surrounding font?
I have tried all sorts of things, but could not yet find a solution.
It is not really a "problem", but such an automatic font adjustment
would be nice/helpful.

Thank you.
Thomas




--
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy


Re: [libreoffice-users] automatic font selection in macro

2019-02-12 Thread Andrew Pitonyak
if I wrote a macro that inserts the letter 'X', I would not expect the 
insertion to specify the font unless I went out of my way to do so.

I am interested in seeing the macro that you are using.

I'm not able right now to try to find a macro that would do what you want, but 
if you can't find one let me know, and I will see if I can provide one for you 
after I look at the macro you are using now.

Understand, however, the next two days for me will be hit or miss on 
availability.



⁣Sent from BlueMail ​

On Feb 12, 2019, 9:55 PM, at 9:55 PM, Thomas Blasejewicz  
wrote:
>Good morning
>I have another strange question.
>Work related I have to insert not infrequently symbols into texts.
>To make work easier, I have already created a number of macros to
>insert 
>for example the symbol "micro" into a text using a keyboard shortcut.
>
>Problem:
>Let's say, I created the macro in a document that happened to use 
>"Arial" as font and later want to use it in a document that uses "Times
>
>Roman". The macro I created then inserts an "Arial font micro" into the
>
>Times Roman text, which then looks out of place.
>
>Is there a trick to create macros, so that the inserted symbol matches 
>the surrounding font?
>I have tried all sorts of things, but could not yet find a solution.
>It is not really a "problem", but such an automatic font adjustment 
>would be nice/helpful.
>
>Thank you.
>Thomas
>
>-- 
>To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
>Problems?
>https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
>Posting guidelines + more:
>https://wiki.documentfoundation.org/Netiquette
>List archive: https://listarchives.libreoffice.org/global/users/
>Privacy Policy: https://www.documentfoundation.org/privacy

-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy


[libreoffice-users] automatic font selection in macro

2019-02-12 Thread Thomas Blasejewicz

Good morning
I have another strange question.
Work related I have to insert not infrequently symbols into texts.
To make work easier, I have already created a number of macros to insert 
for example the symbol "micro" into a text using a keyboard shortcut.


Problem:
Let's say, I created the macro in a document that happened to use 
"Arial" as font and later want to use it in a document that uses "Times 
Roman". The macro I created then inserts an "Arial font micro" into the 
Times Roman text, which then looks out of place.


Is there a trick to create macros, so that the inserted symbol matches 
the surrounding font?

I have tried all sorts of things, but could not yet find a solution.
It is not really a "problem", but such an automatic font adjustment 
would be nice/helpful.


Thank you.
Thomas

--
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy



[libreoffice-users] Re: [Solved] LO 6.2 throwing "NoSuchElementException" errors

2019-02-12 Thread Roy
Thanks much, Italo. In the end it turned out to be a problem with my
config file. While I saw nothing strange there, starting from scratch
did the trick.

El dom, 10-02-2019 a las 23:29 +0100, Italo Vignoli escribió:
> Tested Translation Table with LibreOffice 6.2, and it works.
> 
> On 10/02/2019 18:00, Roy wrote:
> > Is there anyone on 6.2 yet? I do not know if it is a change in LO
> > (nothing jumped out in looking at the release notes) or a packaging
> > problem, but my two Writer translation add-ons (Translation Table
> > and
> > Anaphraseus) are producing a BASIC error of type 
> > 
> > "com.sun.star.container.NoSuchElementException" 
> > 
> > when trying to load their library files, even though they worked
> > fine
> > with 6.1.4.
> > 
> > Has anyone see this or have any ideas?
> > 
> > I have tried uninstalling and reinstalling Anaphraseus and changing
> > macro protections to no avail.
> > 
> > OS: Mageia Linux 7, 64-bit
> > 
> > 
> 
> -- 
> Italo Vignoli - Marketing & PR
> email italo.vign...@documentfoundation.org
> mobile/signal +39.348.5653829 - skype italovignoli
> hangout/jabber italo.vign...@gmail.com
> The Document Foundation, Kurfürstendamm 188, 10707 Berlin, DE
> Gemeinnützige rechtsfähige Stiftung des bürgerlichen Rechts
> Legal details: http://www.documentfoundation.org/imprint
> GPG Key ID - 0xAAB8D5C0
> DB75 1534 3FD0 EA5F 56B5 FDA6 DE82 934C AAB8 D5C0
> 


-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy


Re: [libreoffice-users] Why do adding OXT palettes, not show alpha sorted?

2019-02-12 Thread Tim-L

On 2/12/19 2:17 PM, Luuk wrote:


On 11-2-2019 22:05, Tim-L wrote:
I am working on making color palettes - via individual or collection 
OXT files.


The problem is when I add them to LibreOffice 6.2.0.3, the font color 
drop down list of palettes is not sorted in any way, except the one 
that came with LO are the last ones shown.


Here is a link for what I am talking about.

http://libreoffice-na.us/font-color-palette-unsorted.jpg

Is there a reason why the list of color palettes is not sorted?

Any way to get it sorted, or do this needs to be done on the 
design/coding side?


Here is the start of my palette collection and individual one is OXT 
files.


http://libreoffice-na.us



I do see a sorted list , starting with

'costom'

than 'A' - 'Z'

than 'a' - 'z'

than 'Document colors'

(i just upgraded from 6.0.? to 6.2.0.3)







What is not sorted is the list of Color Palettes installed

Adler-color1200-Colors Palette-Collections.oxt 
Akzo-Nobel-Colormap-FD-Colors Pantano-Coated Resene-Colors Lego Brick 
Colors Saturated-Percent-Colors Name-That-Color Shading-Pan-Colors 
NBS-colors This is not sorted. When you have a large palette collection 
- over 60 - it is really hard to find the wanted palette. I will be 
reduce the Palette Collection OXT file to a smaller number. This will be 
after I decide which ones I do not want to use. About half may be 
removed and made into their own Color Palette OXT files. SO, is there 
any way to get the Color Palette Name drop down list sorted by 
alpha/name "A"- "Z"? Every one I will make will have an uppercase letter 
as its first letter of the palette's name.



--
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy


Re: [libreoffice-users] Why do adding OXT palettes, not show alpha sorted?

2019-02-12 Thread Luuk


On 11-2-2019 22:05, Tim-L wrote:
I am working on making color palettes - via individual or collection 
OXT files.


The problem is when I add them to LibreOffice 6.2.0.3, the font color 
drop down list of palettes is not sorted in any way, except the one 
that came with LO are the last ones shown.


Here is a link for what I am talking about.

http://libreoffice-na.us/font-color-palette-unsorted.jpg

Is there a reason why the list of color palettes is not sorted?

Any way to get it sorted, or do this needs to be done on the 
design/coding side?


Here is the start of my palette collection and individual one is OXT 
files.


http://libreoffice-na.us



I do see a sorted list , starting with

'costom'

than 'A' - 'Z'

than 'a' - 'z'

than 'Document colors'

(i just upgraded from 6.0.? to 6.2.0.3)






--
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy


Re: [libreoffice-users] Subject: Digest of users@global.libreoffice.org issue 3143 (54791-54795)

2019-02-12 Thread Tanstaafl
On Tue Feb 12 2019 00:57:54 GMT-0500 (Eastern Standard Time), Dirk
 wrote:
> I'm sorry, I subscribed to the digest version of this list and I don't 
> know how to respond to individual emails.

Highlight just the text you want to include in the reply (quoted text),
click Reply All, remove all but the list addresses, change the subject
to the original subject, send reply.

-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy