<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p><font face="Comic Sans MS">Hi!</font></p>
<p><font face="Comic Sans MS">To have the accelerators they could be
defined in the translation file.</font></p>
<p><font face="Comic Sans MS">In the message pointed to by Z Br, I
said that I translated the messages of TeXworks to French and
did add the accelerators for French. I do not remember doing
this for English. Furthermore, in the latest translation I did
for French, I did not define them as it is taking quite a long
time to do.</font></p>
<p><font face="Comic Sans MS">Humm! I see that Stefan said I did
create accelerators for English! (in
<a class="moz-txt-link-freetext" href="https://github.com/TeXworks/texworks/issues/17#issuecomment-80291247">https://github.com/TeXworks/texworks/issues/17#issuecomment-80291247</a>)
but it was not complete
(<a class="moz-txt-link-freetext" href="http://tug.org/pipermail/texworks/2010q2/002606.html">http://tug.org/pipermail/texworks/2010q2/002606.html</a>). Further
this was in 2010. For the moment I do not have time to redo the
work for French(, nor for English). Sorry!</font></p>
<p><font face="Comic Sans MS">The same for the shortcuts which are
not the same as in other programs, but those, I think, are hard-written
in the code!! (Undo is also Ctrl+Z, at least on my system; Save
As is Ctrl+Shift+S in LibreOffice!)<br>
</font></p>
<p><font face="Comic Sans MS">You are speaking about the
"translations" folder, that you do not find. Probably it is not
created when you are using an English TeXworks.<br>
</font></p>
<p><font face="Comic Sans MS">So for the moment, I can not help.</font></p>
<p>Regards,</p>
<p>Alain<br>
</p>
<br>
<div class="moz-cite-prefix">Le 17/03/2017 à 02:34, Z Br a écrit :<br>
</div>
<blockquote
cite="mid:CA+ThvQ3RdnFhd-fRZu1cm=6kDB6DMp97gQS+yzT6yWPAeHMf6g@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>Thanks Mark but some of the other shortcuts do not work on
any other program I use:</div>
<div>Undo = Alt+U</div>
<div>Save As = Ctrl+Shift+S</div>
<div>My understanding of the philosophy with TW is to be
flexible and allow user modification, and that is exactly the
spirit of my question</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, Mar 16, 2017 at 6:53 PM, Mark
Yagnatinsky <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:markyag@gmail.com" target="_blank">markyag@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div>I suggest you learn Ctrl + S.</div>
<div>Benefit #1: it's less typing</div>
<div>Benefit #2: It also works in every program</div>
<div>But even so, it would be nice if this were fixed.</div>
</div>
<div class="HOEnZb">
<div class="h5">
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, Mar 16, 2017 at 8:46
AM, Z Br <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:breigzach@gmail.com"
target="_blank">breigzach@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0px
0px 0px
0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">
<div dir="ltr">
<div>Thanks Mark appreciate the efforts!</div>
<div>My hope is to avoid having to learn a new
set of shortcuts for just one program.
Hopefully others can give a suggestion for how
to do "Alt+F,S" and other similar keystrokes.</div>
</div>
<div class="m_-6065954434005987471HOEnZb">
<div class="m_-6065954434005987471h5">
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, Mar 16,
2017 at 1:39 AM, Mark Yagnatinsky <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:markyag@gmail.com"
target="_blank">markyag@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="margin:0px 0px 0px
0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">
<div dir="ltr">
<div>Re: undo: why not just use Ctrl +
Z? You seem to have memorized all
the hard-to-use keyboard shortcuts
:)</div>
<div>I spend a few minutes trying to
get a script to work. The good news
is that I got save working.</div>
<div>The bad news is that it pops up a
dialog box with nothing but the word
"true".</div>
<div>Something tells me your muscle
memory will NOT like this.</div>
<div>At this point someone who
actually knows something about
TeXworks will have to take over,
because I'm way out of my depth
here.</div>
</div>
<div
class="m_-6065954434005987471m_2187232600745697120HOEnZb">
<div
class="m_-6065954434005987471m_2187232600745697120h5">
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu,
Mar 16, 2017 at 12:02 AM, Z Br <span
dir="ltr"><<a
moz-do-not-send="true"
href="mailto:breigzach@gmail.com"
target="_blank">breigzach@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="margin:0px 0px 0px
0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">
<div dir="ltr">
<div>Sorry for the clutter
but here are two more
threads discussing
accelerators:</div>
<div>I was unable to get the
attachment in the second
file to work, it seems
perhaps this is aimed for
a Mac?</div>
<div>Again perhaps Mark or
Alain could help out on
this.</div>
<div><a
moz-do-not-send="true"
href="https://github.com/TeXworks/texworks/issues/17#issuecomment-80291247"
target="_blank">https://github.com/TeXworks/te<wbr>xworks/issues/17#issuecomment-<wbr>80291247</a></div>
<div><a
moz-do-not-send="true"
href="http://tug.org/pipermail/texworks/2010q2/002606.html"
target="_blank">http://tug.org/pipermail/texwo<wbr>rks/2010q2/002606.html</a></div>
</div>
<div
class="m_-6065954434005987471m_2187232600745697120m_-7782644562868708273HOEnZb">
<div
class="m_-6065954434005987471m_2187232600745697120m_-7782644562868708273h5">
<div class="gmail_extra"><br>
<div class="gmail_quote">On
Wed, Mar 15, 2017 at
9:49 PM, Z Br <span
dir="ltr"><<a
moz-do-not-send="true"
href="mailto:breigzach@gmail.com" target="_blank">breigzach@gmail.com</a>></span>
wrote:<br>
<blockquote
class="gmail_quote"
style="margin:0px
0px 0px
0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">
<div dir="ltr">
<div>And sorry I
need to work on
my reading
comprehension:
one of the
important items
Mark noted is
that what I am
looking for is
an "accelerator"
(I had not heard
of that term
before): the Alt
key activates
the pull down
menus, and if I
had that I would
be set.</div>
<div><br>
</div>
<div>I did a
google search
and a few years
ago Alain seems
to have
discussed this:</div>
<div><a
moz-do-not-send="true"
href="http://tug.org/pipermail/texworks/2013q2/005795.html"
target="_blank">http://tug.org/pipermail/texwo<wbr>rks/2013q2/005795.html</a></div>
<div>Item 1
discusses
accelerators!
Unfortunately
the attachments
have been
stripped off and
I cannot find
the directory
mentioned there,
c:\users\<your_name>\TeXworks\<wbr>translations</div>
<div><br>
</div>
<div>So Alain if
you are reading
this and still
have those
files, can you
re-post them?</div>
<div><br>
</div>
<div>Thanks again!</div>
<div>Zach<br>
</div>
</div>
<div
class="m_-6065954434005987471m_2187232600745697120m_-7782644562868708273m_421643302751871398HOEnZb">
<div
class="m_-6065954434005987471m_2187232600745697120m_-7782644562868708273m_421643302751871398h5">
<div
class="gmail_extra"><br>
<div
class="gmail_quote">On
Wed, Mar 15,
2017 at 9:32
PM, Z Br <span
dir="ltr"><<a
moz-do-not-send="true" href="mailto:breigzach@gmail.com" target="_blank">breigzach@gmail.com</a>></span>
wrote:<br>
<blockquote
class="gmail_quote"
style="margin:0px 0px 0px
0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">
<div dir="ltr">
<div>Thanks
Mark. I have
tried reading
though that
manual but am
puzzled as to
how to use
that to have
some key
sequence lead
the file to be
saved: like
where would I
add in the
parameters.
Sorry like I
said I really
have little
programming
skill :(</div>
<div><br>
</div>
<div>And as an
aside yes you
are correct in
what I am
trying for: in
Microsoft
Windows, the
standard key
sequence for:</div>
<div>saving
files is Alt
<and
then> F
<and
then> S;</div>
<div>or to
undo what was
just written
is Alt <and
then> E
<and
then> U</div>
<div>Essentially
the Alt
activates the
pull down menu
and then the
other keys
navigate the
pulldown. So
if I can
create a
shortcut or
get a script
to do this, it
will be like
virtually
every other
program I use
and will speed
my editing. I
am guessing
others in the
Windows world
would also
benefit from
this, so if I
figure out a
solution I
will be sure
to post it
here!</div>
<div><br>
</div>
<div>And
finally not
sure if there
is someone on
the mail list
who is more
familiar with
the shortcuts.
I am guessing
there is a way
to do what I
want with the
shortcuts.ini
file but it is
not well
documented
(what I know I
pulled from
manual, <a
moz-do-not-send="true"
href="http://formal.korea.ac.kr/%7Ejlee/lectures/cnce150/read/TeXworks-manual.pdf"
target="_blank">http://formal.korea.ac.kr/~jle<wbr>e/lectures/cnce150/read/TeXwor<wbr>ks-manual.pdf</a>,
Section A.2)</div>
<div><br>
</div>
</div>
<div
class="m_-6065954434005987471m_2187232600745697120m_-7782644562868708273m_421643302751871398m_-6307832222493427160HOEnZb">
<div
class="m_-6065954434005987471m_2187232600745697120m_-7782644562868708273m_421643302751871398m_-6307832222493427160h5">
<div
class="gmail_extra"><br>
<div
class="gmail_quote">On
Wed, Mar 15,
2017 at 7:28
PM, Mark
Yagnatinsky <span
dir="ltr"><<a
moz-do-not-send="true" href="mailto:markyag@gmail.com" target="_blank">markyag@gmail.com</a>></span>
wrote:<br>
<blockquote
class="gmail_quote"
style="margin:0px 0px 0px
0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">
<div dir="ltr">
<div>First
off, I never
knew about
shortcuts.ini
before; this
is a great
feature and
needs to be
made more
discoverable.
I suggest, at
a minimum,
that a fresh
TeXworks
installation
creates an
empty
shortcuts.ini
file so that
someone might
wonder what
it's for.
Maybe someone
should file a
feature
request.
(Maybe me??)</div>
<div><br>
</div>
<div>Second,
it seems a bit
silly that the
syntax for
shortcuts in
shortcuts.ini
does not match
the syntax for
shortcuts for
running
scripts;
surely those
should be
identical.
Sounds like
another
feature
request.</div>
<div><br>
</div>
<div>Third: in
what world is
"Alt + F + S"
a familiar
keyboard
shortcut for
saving a
file!?! The
only thing I'm
aware of that
comes even
close is "Alt
+ F, S", which
simply opens
the file menu,
and then
selects the
save option.
Unfortunately,
this doesn't
seem to work
in TeXworks,
since it seems
that none of
the menus on
the menu bar
have an
accelerator
key defined,
so Alt + F
fails to open
the file menu,
and even if it
did, "S" does
not activate
save. Yet
another
missing
feature.</div>
<div><br>
</div>
<div>Finally,
I'm no expert
in the
TeXworks
scripting API,
and have
written
precisely zero
working
scripts, but
this seems to
do what you
need:</div>
<div><a
moz-do-not-send="true"
href="http://twscript.paulanorman.info/docs/html/TexWorksQtScripting.html?save.html"
target="_blank">http://twscript.paulanorman.in<wbr>fo/docs/html/TexWorksQtScripti<wbr>ng.html?save.html</a></div>
<div><span
class="m_-6065954434005987471m_2187232600745697120m_-7782644562868708273m_421643302751871398m_-6307832222493427160m_-5530048413330709733m_-3869926020280496228gmail-rvts8">In
other words,
the script is
a one line:
TW.target.save();</span></div>
<div><span
class="m_-6065954434005987471m_2187232600745697120m_-7782644562868708273m_421643302751871398m_-6307832222493427160m_-5530048413330709733m_-3869926020280496228gmail-rvts8">Disclaimer:
I have not
tried it. I
personally
just use Ctrl
+ S, to save.</span></div>
<div><span
class="m_-6065954434005987471m_2187232600745697120m_-7782644562868708273m_421643302751871398m_-6307832222493427160m_-5530048413330709733m_-3869926020280496228gmail-rvts8">(Actually,
this is not
true. What I
actually do is
Ctrl + T to
typeset, and
rely on the
implicit save
just before
typesetting.)</span></div>
<div><span
class="m_-6065954434005987471m_2187232600745697120m_-7782644562868708273m_421643302751871398m_-6307832222493427160m_-5530048413330709733m_-3869926020280496228gmail-rvts8"><br>
</span></div>
<div><span
class="m_-6065954434005987471m_2187232600745697120m_-7782644562868708273m_421643302751871398m_-6307832222493427160m_-5530048413330709733m_-3869926020280496228gmail-rvts8">Hope
some of this
helps.</span></div>
<div><span
class="m_-6065954434005987471m_2187232600745697120m_-7782644562868708273m_421643302751871398m_-6307832222493427160m_-5530048413330709733m_-3869926020280496228gmail-rvts8">If
not, ask
again.</span></div>
</div>
<div
class="m_-6065954434005987471m_2187232600745697120m_-7782644562868708273m_421643302751871398m_-6307832222493427160m_-5530048413330709733HOEnZb">
<div
class="m_-6065954434005987471m_2187232600745697120m_-7782644562868708273m_421643302751871398m_-6307832222493427160m_-5530048413330709733h5">
<div
class="gmail_extra"><br>
<div
class="gmail_quote">On
Wed, Mar 15,
2017 at 12:28
AM, Z Br <span
dir="ltr"><<a
moz-do-not-send="true" href="mailto:breigzach@gmail.com" target="_blank">breigzach@gmail.com</a>></span>
wrote:<br>
<blockquote
class="gmail_quote"
style="margin:0px 0px 0px
0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">
<div dir="ltr">
<div>Thanks
Alain!</div>
<div><br>
</div>
<div>Unfortunately
I am not much
of a
programmer and
so I am unsure
how to modify
the script you
posted to get
the action I
had asked
about. Could
you give a bit
more
direction, or
if someone
else knows if
this is
possible with
the short cuts
file that
would be great
too.</div>
<span
class="m_-6065954434005987471m_2187232600745697120m_-7782644562868708273m_421643302751871398m_-6307832222493427160m_-5530048413330709733m_-3869926020280496228HOEnZb"><font
color="#888888">
<div><br>
</div>
<div>ZB</div>
</font></span></div>
<div
class="m_-6065954434005987471m_2187232600745697120m_-7782644562868708273m_421643302751871398m_-6307832222493427160m_-5530048413330709733m_-3869926020280496228HOEnZb">
<div
class="m_-6065954434005987471m_2187232600745697120m_-7782644562868708273m_421643302751871398m_-6307832222493427160m_-5530048413330709733m_-3869926020280496228h5">
<div
class="gmail_extra"><br>
<div
class="gmail_quote">On
Tue, Mar 14,
2017 at 1:32
PM, Alain
Delmotte <span
dir="ltr"><<a
moz-do-not-send="true" href="mailto:alain.delmotte@leliseron.org"
target="_blank">alain.delmotte@leliseron.org</a>></span>
wrote:<br>
<blockquote
class="gmail_quote"
style="margin:0px 0px 0px
0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">
<div
text="#000000"
bgcolor="#FFFFFF">
<p><font
face="Comic
Sans MS">Hi,</font></p>
<p><font
face="Comic
Sans MS">I
don't think
that it is
possible with
a shortcut*,
but you could
have a script
to do that,
like this one:</font></p>
<p><font
face="Comic
Sans MS">==============================<wbr>==
chapter.lua<br>
--[[TeXworksScript<br>
Title: d:
chapter
\c&hapter<br>
Description:
Encloses the
current
selection in
\chapter{}<br>
Author: Alain
Delmotte from
Stefan Löffler
& Jonathan
Kew<br>
Version: 0.1<br>
Date:
2011-11-01<br>
Script-Type:
standalone<br>
Context:
TeXDocument<br>
Shortcut:
Alt+W,
Alt+&<br>
]]<br>
<br>
txt =
TW.target.selection<br>
if (txt ==
nil) then txt
= "" end<br>
TW.target.insertText("\\chapte<wbr>r{" .. txt .. "}")<br>
TW.target.selectRange(TW.targe<wbr>t.selectionStart - string.len(txt) -
1,
string.len(txt))<br>
============================</font></p>
<p><font
face="Comic
Sans MS">To
create a
\chapter{xyz}
instruction I
type "xyz",
select this
and type
Alt+W&
(the key where
is "1", but on
my belgian
keyboard it
has & as
lower case).
If I selct
nothing I just
have
\chapter{}.</font></p>
<p><font
face="Comic
Sans MS">You
have to put
the script
file in the
scripts
folder.<br>
</font></p>
<p><font
face="Comic
Sans MS">Regards,</font></p>
<p><font
face="Comic
Sans MS">Alain</font><br>
</p>
* to be
confirmed by
the
specialists
<div>
<div
class="m_-6065954434005987471m_2187232600745697120m_-7782644562868708273m_421643302751871398m_-6307832222493427160m_-5530048413330709733m_-3869926020280496228m_-3308744716939970842h5"><br>
<br>
<div
class="m_-6065954434005987471m_2187232600745697120m_-7782644562868708273m_421643302751871398m_-6307832222493427160m_-5530048413330709733m_-3869926020280496228m_-3308744716939970842m_-2572331746702670481moz-cite-prefix">Le
14/03/2017 à
14:15, Z Br a
écrit :<br>
</div>
<blockquote
type="cite">
<div dir="ltr">
<div>Hi:</div>
<div><br>
</div>
<div>I am
using a
shortcuts.ini
file to create
some custom
shortcuts. I
would like to
have shortcuts
which involve
multiple
letters, e.g.
the familiar
Alt+F+S to
save the file.
But when I
include lines
like this in
shortcuts.ini,</div>
<div>actionSave
= Alt+F+S</div>
<div>they do
not work
(literally
nothing
happens).
Shortcuts with
just one
letter like</div>
<div>actionSave
= Alt+S</div>
<div>do work.</div>
<div><br>
</div>
<div>Is there
a way to
create
shortcuts with
multiple
letters? </div>
<div><br>
</div>
<div>Regards,</div>
<div>Zach<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>My setup:</div>
<div>Win7
Enterprise x64</div>
<div>TexWorks
0.6.1</div>
</div>
</blockquote>
<br>
<br>
<br>
</div>
</div>
<hr
style="border:currentColor;width:99%;height:1px;color:rgb(144,144,144);background-color:rgb(176,176,176)">
<table
style="border:currentColor;border-collapse:collapse">
<tbody>
<tr>
<td
style="padding:0px
15px 0px
8px;border:currentColor">
<a
moz-do-not-send="true"
href="https://www.avast.com/antivirus" target="_blank"> <img
moz-do-not-send="true"
alt="Avast
logo"
src="http://static.avast.com/emails/avast-mail-stamp.png"
border="0"> </a>
</td>
<td>
<p
style="color:rgb(61,77,90);font-family:"Calibri","Verdana","Arial","Helvetica";font-size:12pt">
L'absence de
virus dans ce
courrier
électronique a
été vérifiée
par le
logiciel
antivirus
Avast. <br>
<a
moz-do-not-send="true"
href="https://www.avast.com/antivirus" target="_blank">www.avast.com</a>
</p>
</td>
</tr>
</tbody>
</table>
<br>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
<br /> <table style="border-top: 1px solid #D3D4DE;">
<tr>
<td style="width: 55px; padding-top: 18px;"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" width="46" height="29" style="width: 46px; height: 29px;" /></a></td>
<td style="width: 470px; padding-top: 17px; color: #41424e; font-size: 13px; font-family: Arial, Helvetica, sans-serif; line-height: 18px;">Garanti sans virus. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank" style="color: #4453ea;">www.avast.com</a> </td>
</tr>
</table>
</body>
</html>