Re: spellchecker keybindings {Find next, Ignore & aDd} conflict with {File, Insert & Document}

2016-08-31 Thread Scott Kostyshak
On Wed, Aug 31, 2016 at 07:39:34PM -0400, Joe Philbrook wrote:

> Please tell me that I'm not looking at (3 x 3 = 9) nine trac tickets here...

Good point. I don't have general advice on what topics should be
grouped. If they are topics that shoudl be addressed all at once and it
would be silly to address one and not the other, then I think such a
group of issues should be in one ticket. Just make your best guess.

Scott


signature.asc
Description: PGP signature


Re: spellchecker keybindings {Find next, Ignore & aDd} conflict with {File, Insert & Document}

2016-08-31 Thread Joe Philbrook

It would appear that on Aug 31, Scott Kostyshak did say:

> Hi Joe,
> 
> On Tue, Aug 23, 2016 at 05:22:43PM -0400, Joe Philbrook wrote:
> > 
> > Hi, First let me say I'm addicted to LyX for composing almost anything I 
> > care about.
> > It helps keep me from fat fingering multiple spaces between words etc... 
> > And lets me set screen
> > font sizes I can see without my reading glasses even when the targeted 
> > output font sizes are
> > too small for my eyes WITH the glasses... The list goes on and on... Thanks!
> 
> Thanks for the kind feedback!
> 

Your most welcome.

==

> > When I use the spellchecker in LyX and the word I'm looking for is in the 
> > sUggestions list I'm
> > very happy cause there is no conflict for the {alt}+{u} shortcut that lets 
> > me use the cursor
> > keys to select it and {Enter} to apply the spelling correction.
> > 
> > But if I need to tell it to ignore an instance where a character in a story 
> > is being quoted as
> > saying something not in the dictionary lists {Think Homer Simpson saying 
> > "Doh"} That I may want
> > to Ignore. Or perhaps I wanted to use an unusual word such as hisself 
> > instead of himself
> > because it's "In character" for the character being quoted and wish to aDd 
> > it to my word list.
> > And while I never use it, the same problem exists for the "Find next" 
> > button.
> > So I was hoping there was a way to selectively change the keybindings on 
> > those buttons to
> > something that doesn't conflict with the menu bar bindings.

==

> If I understand correctly, there is no way to customize the buttons from
> user text files. But the changes you suggest seem useful more generally
> so perhaps we could incorporate them into LyX by default.
> 
> You could make a request for us to make changes at
> http://www.lyx.org/trac
> 
> If you have multiple suggestions, please make separate trac tickets
> (although feel free to reference each other).

OK, This would be worth the effort. Hopefully I can write such a request clearly
enough...

Though I'm not sure if you mean incorporate different "preset shortcuts" for 
these
buttons, or to incorporate a method for the user to select the shortcuts they 
prefer.
Those users who would find this most useful would be the ones who, for one 
reason or
another, avoid using the mouse. They, like me, would tend to collect a lot of
personal keyboard shortcuts. And it would be nice to know that I could keep the 
new ones
from conflicting with any of the "global" keybindings in my 
~/.config/openbox/rc.xml...

Though admittedly, in my case, if they consist of just {alt}+{almost any single 
key}
I wouldn't have such a conflict because most of my global shortcuts require at 
least
two modifier keys.

It also occurs to me that there might be a way to simply cause those 
spellchecker
button's keybindings to preempt the ones in the menu bar while the spellchecker 
is
active. Not being a programmer {aside from bash scripts} I wouldn't know which 
of
those three possible fixes is more practical to implement.

Nor am I certain that three different suggested solutions to the SAME problem 
would
require three separate trac tickets??

Also I'd like to think that it would be OK to put all three of the affected 
spellchecker
buttons on the same ticket??

Please tell me that I'm not looking at (3 x 3 = 9) nine trac tickets here...

-- 
   Joe Philbrook   (:-0%


Re: spellchecker keybindings {Find next, Ignore & aDd} conflict with {File, Insert & Document}

2016-08-31 Thread Scott Kostyshak
Hi Joe,

On Tue, Aug 23, 2016 at 05:22:43PM -0400, Joe Philbrook wrote:
> 
> Hi, First let me say I'm addicted to LyX for composing almost anything I care 
> about.
> It helps keep me from fat fingering multiple spaces between words etc... And 
> lets me set screen
> font sizes I can see without my reading glasses even when the targeted output 
> font sizes are
> too small for my eyes WITH the glasses... The list goes on and on... Thanks!

Thanks for the kind feedback!

> However my problem with the spellchecker dialog's keybindings have More to do 
> with my
> own dexterity issues that have always made using the mouse difficult at best. 
> And with carpel
> tunnel issues that often make mouse based methods painful. {Don't know why 
> I'm able to keyboard
> for hours before my hands go numb, but the mouse can do it in just a few 
> minutes. But the
> result is I'm addicted to keyboard shortcuts and keyboard accessible menu 
> based methods.
> 
> When I use the spellchecker in LyX and the word I'm looking for is in the 
> sUggestions list I'm
> very happy cause there is no conflict for the {alt}+{u} shortcut that lets me 
> use the cursor
> keys to select it and {Enter} to apply the spelling correction.
> 
> But if I need to tell it to ignore an instance where a character in a story 
> is being quoted as
> saying something not in the dictionary lists {Think Homer Simpson saying 
> "Doh"} That I may want
> to Ignore. Or perhaps I wanted to use an unusual word such as hisself instead 
> of himself
> because it's "In character" for the character being quoted and wish to aDd it 
> to my word list.
> And while I never use it, the same problem exists for the "Find next" button.
> 
> Lately my problems with mouse operation have been getting worse:
> 
> It can take me over a minute to maneuver the "dag nabbed" rodent pointing 
> device over the correct
> "durned" button... And the button keybindings indicated by the underscored 
> character on the
> button label (AKA: {alt}+{f}, {alt}+{i} and {alt}+{d}) instead activate the 
> File, Insert or
> Document menu choices... {sigh}
> 
> So I was hoping there was a way to selectively change the keybindings on 
> those buttons to
> something that doesn't conflict with the menu bar bindings.
> 
> I use the standard user interface with the cua bind file.
> 
> I've looked in Tools > Preferences > shortcuts and the only spellchecker 
> related shortcut I can
> find is the {F7} to start the spellchecking function {which I do NOT want to 
> change}
> 
> Even though more advanced methods {if any} of modifying LyX's keybindings are 
> beyond my
> understanding, I've looked for clues in Help > LyX Functions, Help > 
> Shortcuts without
> finding anything that looks like the add word or ignore word spellchecker 
> button functions to me.
> 
> I also did a less /usr/share/lyx/bind/cua.bind
> 
> But I didn't see anything that looked like it there either.

If I understand correctly, there is no way to customize the buttons from
user text files. But the changes you suggest seem useful more generally
so perhaps we could incorporate them into LyX by default.

You could make a request for us to make changes at
http://www.lyx.org/trac

If you have multiple suggestions, please make separate trac tickets
(although feel free to reference each other).

Scott


signature.asc
Description: PGP signature


RE: A couple of issues with 2.2: save failure, losing focus on compile

2016-08-31 Thread Joon Ro
Just to clarify #2, when you say "compile" you mean File > Export
(as opposed to View), correct? If you click the viewer button or use
the View menu to generate a PDF, LyX automatically opens the PDF in
the designated viewer program (intended behavior).

Paul



  

  No, I'm sorry I should have been more clear what I meant. I'm 
actually using "command-alternatives master-buffer-view pdf2; buffer-view 
pdf2", which I have been using through a shortcut for a while (since LyX 2.1, I 
believe). 
I don't mind this when the pdf viewer opens for the first time, but currently 
the window focus moves to the sumatrapdf whenever I press the shortcut to 
update the document.I guess I should use update instead of view, but the 
previous behavior (which I prefer, because I don't want to have separate 
shortcuts for first time viewing and subsequent updating) was that the 
documents gets updated without lyx losing its window focus, even if I use view.
Thank you!Joon

  

Re: A couple of issues with 2.2: save failure, losing focus on compile

2016-08-31 Thread Paul A Rubin


On 08/31/2016 03:48 PM, Joon Ro wrote:

Hi,

I have been using LyX 2.2.1 for a while, and I found the following two 
issues:


 1. Saving a document frequently gives me an error saying that it
failed to move the temporary copy to the original one. I end up
getting multiple temporary files such as filename-aZ7872.lyx
 2. I'm using SumatraPDF as my pdf viewer, but whenever I compile the
pdf document LyX loses its focus and SumatraPDF gains it. (it
seems like an issue with sumatrapdf actually)

Just to clarify #2, when you say "compile" you mean File > Export (as 
opposed to View), correct? If you click the viewer button or use the 
View menu to generate a PDF, LyX automatically opens the PDF in the 
designated viewer program (intended behavior).


Paul



Any help in solving these issues would be greatly appreciated. Thank 
you very much.


Best Regards,
Joon






A couple of issues with 2.2: save failure, losing focus on compile

2016-08-31 Thread Joon Ro
Hi,
I have been using LyX 2.2.1 for a while, and I found the following two issues:
Saving a document frequently gives me an error saying that it failed to move 
the temporary copy to the original one. I end up getting multiple temporary 
files such as filename-aZ7872.lyxI'm using SumatraPDF as my pdf viewer, but 
whenever I compile the pdf document LyX loses its focus and SumatraPDF gains 
it. (it seems like an issue with sumatrapdf actually)
Any help in solving these issues would be greatly appreciated. Thank you very 
much.
Best Regards,Joon

  

RE: imported gnumeric table with lyx caption results in +2 table counter (expected +1)

2016-08-31 Thread Jannick
Original Message-
From: lyx-users@lists.lyx.org [mailto:lyx-users@lists.lyx.org] On Behalf Of
Helge Hafting
Sent: Wednesday, August 31, 2016 10:02 AM
To: lyx-users@lists.lyx.org
Subject: Re: imported gnumeric table with lyx caption results in +2 table
counter (expected +1)

Den 30. aug. 2016 00:35, skrev Jannick:
> Hi,
>
> Putting tables created by gnumeric's ssconvert (from original .xlsx) 
> into floating boxes results in table numbers increasing by 2. My 
> document having such tables only shows even table numbers only.
>
> I think this is because each of the converted tables itself (defined 
> as
> 'longtable') increases the table counter by 1 - and so does the 
> floating box \caption on top of that. The preamble hack
>
>   \let\oldinput\input
>   \renewcommand{\input}[1]{\oldinput{#1}\addtocounter{table}{-1}}
>
> reduces the table counter by 1 right after table import, which is only 
> correct if \caption appears after \input.
>
> I am not sure if this is considered a bug, but to me it seems that the 
> hack works only contingent what syntactically follows \input. I leave 
> it with you guys if you deem that a bug and put a 
> '\addtocounter{table}{-1}' after \input when syntactically appropriate.
>
A longtable is not supposed to go into "a floating box".
"Short" tables are not broken up if they appear on the bottom of a page. 
Instead, the entire table is moved to the next page. (It is assumed that
short tables will look really bad if broken up.) However, this may leave the
previous page with a big gap. Therefore, we have floats to avoid that
particular problem. Short tables are not numbered, the numbering is done by
the float mechanism.

  A longtable don't need to float, if it appear at the bottom of a page, it
will get broken up. This is a better way of handling tables that are very
long. (Optionally, headings can repeat on each page.) No float is involved,
so long tables handle table numbering themselves.

Therefore, numbers screw up when a long table goes into a float. But you are
not supposed to need that, if you want a floating table - use one that is
not 'long'.

If gnumeric only exports long tables and that is not what you want - ask
them if they can implement another latex export.

Helge Hafting
___

Understand. Maybe a question with an easy answer: Assuming that ssconvert
creates a long table or any other kind of table, is there a way to add a
table label (caption) other than using a floating object? This is why I was
using the nested structure which as you say is not necessary.

Thanks,
J.



RE: Importing specific tab of .xlsx file to lyx?

2016-08-31 Thread Jannick
-Original Message-
From: Helge Hafting [mailto:helge.haft...@ntnu.no] 
Sent: Wednesday, August 31, 2016 9:52 AM
To: lyx-users@lists.lyx.org

Den 29. aug. 2016 21:26, skrev Jannick:
> Is it possible to specify the tab name in an .xlsx file to be imported 
> to lyx using gnumeric's ssconvert.exe?
>
> The conversion command
>
>   ssconvert --export-type=Gnumeric_html:latex $$i $$o
>
> picks one of the tabs. I am not sure if ssconvert's -S switch could 
> help here, but I would be curious if a specific tab could be chosen. 
"man ssconvert" on linux gives some information about options you may want to 
investigate:

-S, --export-file-per-sheet
   Export a file for each sheet if the exporter only supports one 
sheet at a time.  The output filename is treated as a template in which sheet 
number is  substi‐
   tuted for %n and/or sheet name is substituted for %s. If there 
are not substitutions, a default of ".%s" is added.

This one may give you several files. Further options:


OPTIONS FOR THE PORTABLE DOCUMENT FORMAT (*.pdf) EXPORTER
sheet  Name  of  the  workbook  sheet to operate on.  You can specify 
several sheets by repeating this option. If this option is not given the active 
sheet (i. e. the
   sheet that was active when the file was saved) is used.  
This is ignored if the object option is given.

object Name of the sheet object to print. If this option is given any 
sheet option is ignored.  Only the first object given is exported.


These options are documented specifically for pdf export, (and a few 
others) This may or may not work for a latex export. Anyway, LyX can 
include PDF into a document too.

Helge Hafting

___

Thanks, this is helpful. 

To have lyx run the compilation, the issue I am struggling with is how to 
config the file converter (and/or anything else) to pass on (i) the source 
.xlsx file name and (ii) the selected tab name such that for the file converter

1 - $$i is still the original .xlsx file name (like input.xlsx), since lyx 
appears to require this input to be able to copy the source file to a temp lyx 
folder (with $$i as target file name)
2 - $$o is the .tex file name incl. the table name (probably converted by 
ssconvert; like input_FirstTable.tex), since $$o is effectively the temp .tex 
file name lyx


I guess the question behind this is how can we pass two independent arguments 
to the file converter? Does anyone have any idea - or am I missing something 
here? 

Thanks,
J.



Re: imported gnumeric table with lyx caption results in +2 table counter (expected +1)

2016-08-31 Thread Helge Hafting



Den 30. aug. 2016 00:35, skrev Jannick:

Hi,

Putting tables created by gnumeric's ssconvert (from original .xlsx) into
floating boxes results in table numbers increasing by 2. My document having
such tables only shows even table numbers only.

I think this is because each of the converted tables itself (defined as
'longtable') increases the table counter by 1 - and so does the floating box
\caption on top of that. The preamble hack

\let\oldinput\input
\renewcommand{\input}[1]{\oldinput{#1}\addtocounter{table}{-1}}

reduces the table counter by 1 right after table import, which is only
correct if \caption appears after \input.

I am not sure if this is considered a bug, but to me it seems that the hack
works only contingent what syntactically follows \input. I leave it with you
guys if you deem that a bug and put a '\addtocounter{table}{-1}' after
\input when syntactically appropriate.


A longtable is not supposed to go into "a floating box".
"Short" tables are not broken up if they appear on the bottom of a page. 
Instead, the entire table is moved to the next page. (It is assumed that 
short tables will look really bad if broken up.) However, this may leave 
the previous page with a big gap. Therefore, we have floats to avoid 
that particular problem. Short tables are not numbered, the numbering is 
done by the float mechanism.


 A longtable don't need to float, if it appear at the bottom of a page, 
it will get broken up. This is a better way of handling tables that are 
very long. (Optionally, headings can repeat on each page.)

No float is involved, so long tables handle table numbering themselves.

Therefore, numbers screw up when a long table goes into a float. But you 
are not supposed to need that, if you want a floating table - use one 
that is not 'long'.


If gnumeric only exports long tables and that is not what you want - ask 
them if they can implement another latex export.


Helge Hafting



Re: Importing specific tab of .xlsx file to lyx?

2016-08-31 Thread Helge Hafting



Den 29. aug. 2016 21:26, skrev Jannick:

Hi,

Is it possible to specify the tab name in an .xlsx file to be imported to
lyx using gnumeric's ssconvert.exe?

The conversion command

ssconvert --export-type=Gnumeric_html:latex $$i $$o

picks one of the tabs. I am not sure if ssconvert's -S switch could help
here, but I would be curious if a specific tab could be chosen. Certainly,
as workaround the tabs could be split to a number of .xlsx files, however,
this is not very practicable if the tabs depend on each other
calculation-wise.

"man ssconvert" on linux gives some information about options you may 
want to investigate:


   -S, --export-file-per-sheet
  Export a file for each sheet if the exporter only 
supports one sheet at a time.  The output filename is treated as a 
template in which sheet number is  substi‐
  tuted for %n and/or sheet name is substituted for %s. If 
there are not substitutions, a default of ".%s" is added.


This one may give you several files. Further options:


OPTIONS FOR THE PORTABLE DOCUMENT FORMAT (*.pdf) EXPORTER
   sheet  Name  of  the  workbook  sheet to operate on.  You can 
specify several sheets by repeating this option. If this option is not 
given the active sheet (i. e. the
  sheet that was active when the file was saved) is used.  
This is ignored if the object option is given.


   object Name of the sheet object to print. If this option is 
given any sheet option is ignored.  Only the first object given is exported.



These options are documented specifically for pdf export, (and a few 
others) This may or may not work for a latex export. Anyway, LyX can 
include PDF into a document too.


Helge Hafting