change tracking for mathed

2012-04-10 Thread Xu Wang
I'm just curious as to whether change tracking will be implemented for
mathed or if there is some fundamental problem with doing so. I imagine it
will take a lot of work, but just curious if it's on anyone's (long term?)
todo list.


Re: can't clone git (non-developer)

2012-03-14 Thread Xu Wang
"git branch" lists only one branch for me (master). Should there be more?

On Wed, Mar 14, 2012 at 4:40 PM, Xu Wang  wrote:

> Thank you, Richard. And thank you for creating and updating the guide!
> Regards, Xu
>
>
> On Wed, Mar 14, 2012 at 4:18 PM, Richard Heck  wrote:
>
>>  On 03/14/2012 04:08 PM, Xu Wang wrote:
>>
>> I am not developer but would like to clone the git.
>> I am following the new guide here http://wiki.lyx.org/Devel/LyXGit
>>
>> git clone git://git.lyx.org/
>> Cloning into git.lyx.org...
>> fatal: The remote end hung up unexpectedly
>>
>>  Sorry: git clone git://git.lyx.org/lyx/
>>
>> Richard
>>
>>
>


Re: can't clone git (non-developer)

2012-03-14 Thread Xu Wang
Thank you, Richard. And thank you for creating and updating the guide!
Regards, Xu

On Wed, Mar 14, 2012 at 4:18 PM, Richard Heck  wrote:

>  On 03/14/2012 04:08 PM, Xu Wang wrote:
>
> I am not developer but would like to clone the git.
> I am following the new guide here http://wiki.lyx.org/Devel/LyXGit
>
> git clone git://git.lyx.org/
> Cloning into git.lyx.org...
> fatal: The remote end hung up unexpectedly
>
>  Sorry: git clone git://git.lyx.org/lyx/
>
> Richard
>
>


can't clone git (non-developer)

2012-03-14 Thread Xu Wang
I am not developer but would like to clone the git.
I am following the new guide here http://wiki.lyx.org/Devel/LyXGit

git clone git://git.lyx.org/
Cloning into git.lyx.org...
fatal: The remote end hung up unexpectedly

Even though not a developer I should still be able to clone right?

Regards, Xu


Re: git.lyx.org - developers! your ssh public key please

2012-03-01 Thread Xu Wang
Excellent! How does this work for non-developers? For example, I would like
to be able to do something and then do a pull-request. I think at this
point I can only fix typos and maybe a small error, but my work would need
to be verified.

Thank you for this, Xu

On Thu, Mar 1, 2012 at 8:07 PM, Lars Gullik Bjønnes wrote:

> I have begun to setup and do the lyx conversion proper.
> Expect things to happen fairly quick now.
>
> However I do not want to do this _too_ fast.
>
> http://git.lyx.org/
>
> I am not going to setup anonymous cloning right now, but I want
> developers to send me their public ssh keys.
> (If you do not already have write access to the svn repo, don't bother
> sending me a public key either. Be sure to send as attachment.)
>
> After I get your public key and add it you will get
> access to clone, push and pull to the testing repo.
> Play all you like with that.
>
> In the meantime I will fixup the git repo I have of lyx, and
> we should be able to make the switch over failr quick.
> We need to make the proper track setup first though.
>
> --
> Lgb
>


Re: Using git to push

2012-02-28 Thread Xu Wang
On Sat, Feb 25, 2012 at 5:28 AM, Abdelrazak Younes  wrote:

>
>
> To conclude: let's not discuss this for another year or two, pretty
> please. I'll shut up now.
>
> Abdel.
>
>
Sorry to already break the silence. Am I right that if we were using git
now, there would be no problem with the server going down or whatever
maintenance is going on right now? Because everyone could still work on
their own branches and then everything could be merged easily.

Or is this also easy to do in SVN? I'm curious.


Re: where in source code are keys mapped to functions?

2012-02-28 Thread Xu Wang
On Tue, Feb 28, 2012 at 6:26 PM, Richard Heck  wrote:

> On 02/28/2012 06:09 PM, Xu Wang wrote:
>
>> Hi, Where do I find what a certain key does depending on the context. For
>> example, a space must activate some function in math and a different
>> function outside of math. What about return? And delete? Is there one
>> central place I can look in source code for?
>>
>>  These are in the bind files, under ui/bind/.
>
> Richard
>
>
Thank you Richard! On my setup I gthink it's lib/bind/


where in source code are keys mapped to functions?

2012-02-28 Thread Xu Wang
Hi, Where do I find what a certain key does depending on the context. For
example, a space must activate some function in math and a different
function outside of math. What about return? And delete? Is there one
central place I can look in source code for? Xu


Re: Using git to push

2012-02-16 Thread Xu Wang
okay, thank you for your responses. Kind regards, Xu

On Thu, Feb 16, 2012 at 6:21 PM, Lars Gullik Bjønnes wrote:

> Xu Wang  writes:
>
> | Hi,
> >
> | I have read here:  http://wiki.lyx.org/Devel/Git
> >
> | and I see there is lyx here: https://gitorious.org/lyx
> >
> | can I fork on gitorious and then issue a pull request?
>
> The master repo is in subversion, and I do not think anyone would act
> upon such a pull request.
>
> >
> | Are there any plans to use github in future?
>
> There are plans to more to using git. If we should use one of the repo
> hosting services instead of using our own server has not been decided.
>
> --
>   Lgb
>
>


google summer of code is starting

2012-02-04 Thread Xu Wang
I remember there was an effort to participate last year but it didn't work
out. Just thought I would share this that gives the timeline for this year:

http://google-opensource.blogspot.com/2012/02/google-summer-of-code-2012-is-on.html

Xu


Re: Import into LyX

2012-02-01 Thread Xu Wang
Hey Rob, that sounds like quite a nice project you have in mind!

My two cents: it's not worth carrying it out if you can't get the math to
import somewhat well. That seems to be the biggest problem with most ways
of converting doc to lyx. I understand it's very difficult, but I think
it's also the most important.

I don't mean to discourage you, just my two cents. I don't think importing
track changes is important at all (they should be able to go through the
changes in word and get rid of them). And I don't think round-tripping is
important. Of course, if you could pull these features off they would be
nice additions.

I looked at the google code project and it looks like it's still under
development. Is that correct? It would be nice to choose a library that is
still being actively developed.

Good luck with it all and thanks for your effort on this. I think in the
end it would indeed help a lot of would-be LyXers or already-LyXers but
need to collaborate with a Word-er.

Xu

On Wed, Feb 1, 2012 at 2:59 PM, Rob Oakes  wrote:

>  Dear Users and Developers,
>
> Some time ago, I was experimenting with importing documents into LyX
> (specifically about how to crack the import MS Word to LyX nut). In the
> process, I got really excited about using OpenOffice to convert the word
> document to HTML, running tidy on the HTML and then importing that way.
> (The original blog article about this can be found at
> http://blog.oak-tree.us/index.php/2010/05/14/msword-lyx-import.)
>
> Since I'm (re)writing a book chapter about this topic, I thought that I
> would look at alternative strategies for importing Word (and other file
> formats) into LyX. While doing research, I came across a (potentially) much
> better solution.
>
> Somewhat recently (in 2010), a group of Python libraries were written that
> handle document conversions. They are part of the epub-tools library (
> http://code.google.com/p/epub-tools/). (I've been experimenting with ePub
> document creation from LyX, which is how I found them.)
>
> One of the tools in the library is able to parse Microsoft word documents
> and convert them to XHTML in preparation for generating an ePub file. I
> think that the tool can be adapted for directly converting Word docs to
> LyX. Not to LaTeX and then to LyX, but *directly to LyX*.
>
> I'm putting together a library to experiment with direct conversions (this
> is ostensibly being done for the never-ending book project, but will be
> released as open code), but before getting too deep into development, I
> wanted to poll:
>
>1. Is this a tool that would prove useful to yourselves, your
>collaborators, and others?
>2. What features would you consider essential?
>
>(Right now, styles based conversion looks pretty easy -- going from
>Heading 1 in Word to Chapter, for example. But I'm not sure how well it
>would convert maths. This is something I'll still need to look at, and may
>require writing an additional module.)
>
> 3. What is the best tool to look at for guidance in creating a new
>script for word2lyx? tex2lyx?
>4. Does the script need to support special cases, such as importing
>Word "track changes"?
>5. Just how important do you consider "round-tripping" a document,
>e.g., going from LyX to Word and back to LyX.
>6. Is there anyone who might be interested in collaborating on this?
>
> Any thoughts would be greatly appreciated.
>
> Cheers,
>
> Rob Oakes
>


Re: String Freeze for 2.0.3

2012-02-01 Thread Xu Wang
On Wed, Feb 1, 2012 at 3:01 AM, Jean-Pierre Chrétien <
jeanpierre.chret...@free.fr> wrote:

> Le 31/01/2012 16:45, Richard Heck a écrit :
>
>
>  Translators, please prepare for 2.0.3. I am tentatively planning to
>> prepare the release on 16 February, so if you could have your new po
>> files in by 15 February, I'd appreciate it.
>>
>
> For testing against shortcuts conflicts, I compliled 2.0.3svn, I noticed
> these
> warnings:
>
> Lexer.cpp: In member function ‘void lyx::Lexer::Pimpl::**verifyTable()’:
> Lexer.cpp:197: warning: ‘’ may be used uninitialized in this
> function
> lyxfind.cpp:571: warning: ‘size_t lyxfind_matching_**brace(const
> std::string&, size_t)’ defined but not used
>
> In addition, I get this:
> /usr/bin/install: impossible d'évaluer « ./nl.gmo »: Aucun fichier ou
> dossier de ce type
> (i.e. : impossible to evaluate « ./nl.gmo »: no such file or directory)
>
> --
> Jean-Pierre
>
> What compiler are you using Jean-Pierre?


Re: plans for Sweave

2012-01-18 Thread Xu Wang
Yihui,

Thank you for your contributions! It's especially impressive how you're
continuing to develop LyX support and documentation of Sweave, even though
in some sense knitr is a competitor. From what I have been reading, knitr
has clear advantages.

Are the following correct?

1. knitr will be integrated in LyX 2.0.3 (through a module) without
additional customization.
2. there will be knitr and sweave manuals in the help>specific manuals in
LyX 2.0.3.

Thanks so very much, Xu

On Wed, Jan 18, 2012 at 9:20 PM, Yihui Xie  wrote:

> That is not right, because the converters are not there if you do not
> re-compile LyX. Of course you can add the converters manually; see the
> changes in lib/configure.py at
> http://www.lyx.org/trac/attachment/ticket/7887/knitr.patch (further
> instructions on converters: section "For Windows Users"
>
> http://yihui.name/en/2011/05/sweave-and-pgfsweave-in-lyx-2-0-x-experimental/
> )
>
> Regards,
> Yihui
> --
> Yihui Xie 
> Phone: 515-294-2465 Web: http://yihui.name
> Department of Statistics, Iowa State University
> 2215 Snedecor Hall, Ames, IA
>
>
>
> On Wed, Jan 18, 2012 at 4:07 PM, Jack Tanner  wrote:
> > Yihui Xie  yihui.name> writes:
> >
> >>
> >> See http://yihui.github.com/knitr/demo/lyx/
> >>
> >> Since you are using Windows, it is recommended to use the first
> >> approach (it is difficult and very time-consuming to compile LyX from
> >> source under Windows, as the second approach requires). Basically you
> >> rename lyxknitr.R to lyxsweave.R and put in under
> >> c:/users/me/appdata/roaming/LyX20/scripts; then your Sweave module
> >> will actually become a knitr module.
> >
> > But recompiling LyX shouldn't be necessary to get it to recognize a new
> module
> > under c:/users/me/appdata/roaming/LyX20/layouts, right?
> >
>


Re: Unable to save wiki

2012-01-16 Thread Xu Wang
>
> Thank you for the reply, Pavel. I will inform the
> mail list about first usable draft, no doubt about it.
>
> Indeed, I can't say that I will have the time (and,
> to be franc, nor the will) to keep it up to date for
> a long time period. Maybe the development process may
> be adjusted to require documentation adjustment, but
> that may slow it down.
>
> However, placing the .lyx and/or the .pdf file in
> sources should allow it to reach intended audience,
> so I'm quite happy with your take on the subject.
>
> Nick
>
>
Hey Nick,

Your last edit seems to have been made a month ago. Are you done or just
taking a break? You were very straightforward that you would only work on
it until you got bored, so I'm not at all asking anything of you. I'm just
curious :).

Thanks a lot for what you have done!

Xu Wang


using git

2011-12-17 Thread Xu Wang
>From what I've read, svn will be replaced with git for LyX development. And
I guess some developers are using git already? I have been reading
http://wiki.lyx.org/Devel/Git

Will git eventually fully replace svn or will we always rely on git-svn? If
fully replace, is there any (rough) estimate on when this will happen (e.g.
1 year)?

Thanks,

Xu


Re: Bug in lyx

2011-12-14 Thread Xu Wang
On Wed, Dec 14, 2011 at 3:42 AM, Michi Speck wrote:

> I'll give it that a go, but does lyx 2 column layout allow for single
> column abstract at the top?
>
> Regards
> Michi
>
> On 14 December 2011 21:30, Xu Wang  wrote:
>
>>
>>
>> On Tue, Dec 13, 2011 at 11:44 PM, Michi Speck wrote:
>>
>>> Hello there,
>>>
>>> I would like to report a bug.  I have Lyx version 2.0.1 installed on Win
>>> 7.  When I have figure floats selected to  'Use default placement' under
>>> float settings my figures do not shown up in the published pdf.  However if
>>> I set the figure float to 'Here definitely' the figure does show up. But
>>> the then the figure has excess white space around it as the figure
>>> placement is not optimized within the document.  This problem only seems to
>>> occur when I make my document a multicolumn document using the package
>>> 'multicolumn' in the preamble.  If I set the document to single column the
>>> figures can be set to any setting and appear in the document correctly.
>>>  However I need to publish my paper in a two column formatted document.
>>> Any ideas?
>>>
>>> Thank you
>>>
>>> Michi
>>>
>>> --
>>> Regards,
>>>
>>> Michi Speck
>>>
>>> Email: michi.a.sp...@gmail.com
>>> Cell: 0211675740
>>> ---
>>> 8 Plumwood Lane
>>> Cashmere
>>> Christchurch 8022
>>> New Zealand
>>> --
>>> University of Canterbury
>>> Christchurch
>>> New Zealand
>>>
>>> Room: E330
>>> Phone:  03 3667001 ext 7095
>>>
>>> "This email may be confidential and subject to legal privilege, it may
>>> not reflect the views of the University of Canterbury, and it is not
>>> guaranteed to be virus free.  If you are not an intended recipient,
>>> please notify the sender immediately and erase all copies of the message
>>> and any attachments.
>>>
>>
>> Hi Michi, I'm not an expert but one thing you might want to try is:
>> instead of putting the multicolumn package in the preamble, go to Document
>> > Settings >  Text Layout and check the box for Two-column document.
>>
>> When you do that, do the figures show?
>>
>
>
>
> --
> Regards,
>
> Michi Speck
>
> Email: michi.a.sp...@gmail.com
> Cell: 0211675740
> ---
> 8 Plumwood Lane
> Cashmere
> Christchurch 8022
> New Zealand
> --
> University of Canterbury
> Christchurch
> New Zealand
>
> Room: E330
> Phone:  03 3667001 ext 7095
>
> "This email may be confidential and subject to legal privilege, it may
> not reflect the views of the University of Canterbury, and it is not
> guaranteed to be virus free.  If you are not an intended recipient,
> please notify the sender immediately and erase all copies of the message
> and any attachments.
>

I'm not sure. Also, please respond to the list (by using respond all, for
example). Xu


Re: Bug in lyx

2011-12-14 Thread Xu Wang
On Tue, Dec 13, 2011 at 11:44 PM, Michi Speck wrote:

> Hello there,
>
> I would like to report a bug.  I have Lyx version 2.0.1 installed on Win
> 7.  When I have figure floats selected to  'Use default placement' under
> float settings my figures do not shown up in the published pdf.  However if
> I set the figure float to 'Here definitely' the figure does show up. But
> the then the figure has excess white space around it as the figure
> placement is not optimized within the document.  This problem only seems to
> occur when I make my document a multicolumn document using the package
> 'multicolumn' in the preamble.  If I set the document to single column the
> figures can be set to any setting and appear in the document correctly.
>  However I need to publish my paper in a two column formatted document.
> Any ideas?
>
> Thank you
>
> Michi
>
> --
> Regards,
>
> Michi Speck
>
> Email: michi.a.sp...@gmail.com
> Cell: 0211675740
> ---
> 8 Plumwood Lane
> Cashmere
> Christchurch 8022
> New Zealand
> --
> University of Canterbury
> Christchurch
> New Zealand
>
> Room: E330
> Phone:  03 3667001 ext 7095
>
> "This email may be confidential and subject to legal privilege, it may
> not reflect the views of the University of Canterbury, and it is not
> guaranteed to be virus free.  If you are not an intended recipient,
> please notify the sender immediately and erase all copies of the message
> and any attachments.
>

Hi Michi, I'm not an expert but one thing you might want to try is: instead
of putting the multicolumn package in the preamble, go to Document >
Settings >  Text Layout and check the box for Two-column document.

When you do that, do the figures show?


Re: Unable to save wiki

2011-12-11 Thread Xu Wang
On Mon, Dec 12, 2011 at 1:48 AM, Nicu Tofan wrote:

>
>  --
> **
> Did you figure it out?
>
> I am *very* interested in your project and hope that it doesn't get
> interrupted because of the wiki problems.
>
> Thank you Nicu!
>
> Xu
>
> On Fri, Dec 9, 2011 at 8:51 AM, Nicu Tofan wrote:
>
> Nicu Tofan  yahoo.com> writes:
>
> >
> > http://wiki.lyx.org/Devel/SourceCodeExploration?action=diff
> >
> > Trying to save changes in wiki does not work without any error message.
> >
> > Help appreciated.
> > Nick
> >
> >
>
>
> The new text that I try to paste is 80386 characters long. That may be the
> problem. The preview functionality also presents the old version when the
> full
> 80386 text is inserted, but works OK with smaller chunks.
>
> http://www.pmwiki.org/wiki/PmWiki/UploadsAdmin
>
> Nick
>
>
>
>  --
> **
>
> Hello, Xu! Thank you for your interest!
>
>  Of course it doesn't get interrupted. As the person(s) that manage the
> wiki did not respond, my best assumption is that there is a maximum
> character count that has been reached. The version posted on the wiki is
> already obsolete and I'm thinking about replacing the content with a link
> to current location. For now, I will make a note at the top.
>
>  Took me a couple of hours to convert the text from the PmWiki syntax to
> LyX syntax using a regular expression capable editor, so we have a nice
> .lyx file now that I host at the address below [1], for now. During it's
> evolution, I expect suggestions about it's format and the developers may
> choose a place on the site for it. I did not get to the part where the
> output may be customized, yet, so I don't know if there is a way to export
> to wiki pages (section generates a page, chapter generates a page,
> something like that). If it does not have that ability yet, I will be happy
> to contribute it, so that it's content may be present on the wiki, too.
> (would that be of any benefit?)
>
>  However, I must say that I'm interested in a number of other projects
> (started this because I want to interact sage with LyX, for example) and my
> daily job, so the writing goes fairly slow, as you probably noticed.
>
>  Regards,
> Nick
>
>  [1] -
> http://code.google.com/p/monkeysnest/source/browse/trunk/Prog/LyX/SourceCodeExploration%202011%2012%2009.lyx
>
>
>
Nick,

Thank you for the explanation! Your outside interests are definitely
understandable. Whatever you can accomplish will be greatly appreciated. I
actually prefer a .lyx file to a wiki file.

I wonder if this could be a new manual, "Developing LyX". It could be
hidden from the average user, just as the information inset is hidden and
can only be activated with a keyboard shortcut. Or it could be visible.

Xu


Re: Unable to save wiki

2011-12-11 Thread Xu Wang
Did you figure it out?

I am *very* interested in your project and hope that it doesn't get
interrupted because of the wiki problems.

Thank you Nicu!

Xu

On Fri, Dec 9, 2011 at 8:51 AM, Nicu Tofan wrote:

> Nicu Tofan  yahoo.com> writes:
>
> >
> > http://wiki.lyx.org/Devel/SourceCodeExploration?action=diff
> >
> > Trying to save changes in wiki does not work without any error message.
> >
> > Help appreciated.
> > Nick
> >
> >
>
>
> The new text that I try to paste is 80386 characters long. That may be the
> problem. The preview functionality also presents the old version when the
> full
> 80386 text is inserted, but works OK with smaller chunks.
>
> http://www.pmwiki.org/wiki/PmWiki/UploadsAdmin
>
> Nick
>
>
>


Re: idea for LyX 2.1.0: allow to paste text lists directly to tables

2011-12-07 Thread Xu Wang
+1

This would really be great and I've met several people that expected this
from the "paste special" menu option and were then disappointed.

Is it possible to use already existing code, e.g. from libre office, that
has such functionality?

I'm guessing there are some technical issues that make this feature
difficult to implement.

Xu

On Wed, Dec 7, 2011 at 6:01 PM, Uwe Stöhr  wrote:

> Dear colleagues,
>
> may I point you to this feature request?:
>
> http://www.lyx.org/trac/**ticket/7932
>
> This is about the problematic that LyX is not yet able to paste text into
> different table cells. All other word processors can do this and if LyX
> could do this too, it would be a great advantage in daily usage. I don't
> know if this is easily technically possible but perhaps anybody has an idea.
>
> thanks for your attention and regards
> Uwe
>


Re: Review of SourceCodeExploration wiki page

2011-12-02 Thread Xu Wang
On Fri, Dec 2, 2011 at 4:05 PM, Nicu Tofan  wrote:

> Hello.
>
>
> http://wiki.lyx.org/Devel/SourceCodeExploration#sDevel.SourceCodeExploration_18
> If anyone has time to review what I've put together there,  it would be
> great.
> Please edit, suggest different layout, ...
> There is, of course, a great deal of work ahead. I'm thinking about
> dealing with
> the almighty Buffer, tomorrow.
>
> Also, some may find this an useless enterprise. It's true purpose is to
> provide
> me with an insight of the source code and this way of doing things keeps me
> focused. If something usable comes out of this, that would be great. Also,
> maybe
> some of the text in there would be better suited in the source files, but
> that
> can be done relatively easy once the text exists.
>
> Regards,
> Nick
>
>
If this page develops, it would seriously be dream come true for me! Thank
you for starting this Nick. I hope that others contribute as well.


Re: Ideas for Development

2011-11-23 Thread Xu Wang
Could say a little bit what yWriter is?

for Number 2, is tools>preferences>editing>scroll below end of document
what you're looking for? I think this is only in 2.0 and later.

Xu

On Wed, Nov 23, 2011 at 7:10 PM, Graham Telfer wrote:

> Hi there,
>
> I am using LyX now and would like to suggest 2 ideas for development. The
> first
> one is a big idea which would probably need to become a whole project in
> itself.
>
> 1. Extend LyX to become a writer's project management tool similar to
> yWriter.
> yWriter is targeted at novelists but something like this would be great for
> scientific and technical writers too. LyX would be a great starting point.
>
> 2. When in full screen mode have the option to keep the cursor centred and
> text
> above and below a few lines fade out as in the ipad editor iA Writer.
>
>


Re: Qt creator?

2011-11-19 Thread Xu Wang
Great, thanks for all of the advice! I just noticed a .ui folder in the
source code, which I think suggests using Creator(?). In any case, I'm
convinced.

On Sat, Nov 19, 2011 at 6:36 AM, Peter Kümmel  wrote:

> On 19.11.2011 04:45, Richard Heck wrote:
>
>> On 11/18/2011 07:44 PM, Xu Wang wrote:
>>
>>> I'm learning Qt from  "C++ GUI Programming with Qt 4" and am curious
>>> if most LyX developers write Qt C++ code using a text editor or Qt
>>> Creator? I would like to get used to doing whatever others are doing
>>> to make communication and questions easier.
>>>
>>>  I don't know that there is any standard choice. Probably depends to some
>> extent on the platform. But I will say this: One of the lead developers
>> of Qt Creator is a long-time LyX coder, so there's something to be said
>> on that score.
>>
>
> Wasn't he (Is still?) a vi-guy ;)
>
>
>  And, speaking for me, there's not much I want in an IDE
>> that isn't there in Qt Creator.
>>
>> rh
>>
>>
>>


Qt creator?

2011-11-18 Thread Xu Wang
I'm learning Qt from  "C++ GUI Programming with Qt 4" and am curious if
most LyX developers write Qt C++ code using a text editor or Qt Creator? I
would like to get used to doing whatever others are doing to make
communication and questions easier.

Thanks,

Xu


Re: #7894: Cannot use keyboard to "find next"

2011-11-18 Thread Xu Wang
Hi Maynard,

Thanks for your reply! I'm not sure what the protocol is for responding in
private or to the list. I was just curious. You are welcome to respond to
my messages on the list. In fact, this time I was surprised you didn't!

Thank you for clearing that up. I can definitely relate. I've had many
jokes go over not so well in email and text messages. I've learned that
sarcasm especially is something to avoid in textual communication.
Rereading your comments trying to see the humor or sarcasm though, I still
couldn't. It still seems offensive and rude to me. Either that's my
inability to see it, your inability to convey it, or just lost meaning
through text.

Thank you very much for taking the time to clear up a misunderstanding.
Many people get into disagreements and just "shut the door". Communication
is always good.

I'm replying to the list since I assume you want others to see your
explanation and I think you might have intended to send it to the list
anyway.

Best,

Xu


On Fri, Nov 18, 2011 at 6:10 PM, Maynard Handley  wrote:

> Hi Xu,
>
> Thank you for your reply. I fear this may be one of those situations where
> words are simply mis-interpreted --- what is stated as jest is treated as
> insult. Both the examples you give ("This is ridiculous", "DON'T do the
> half-assed job... do the job properly") I meant as light-hearted
> statements, one programmer to another, along the lines of "we all know how
> easy it is to just paper over a problem, we've all done it in our time".
> Clearly they were not understood that way. I will be careful to make my
> future bug reports as unambiguous as possible.
>
> As for "Also, I'm not sure why you sent this to the list?" Did I do the
> wrong thing? I simply replied to an email that arrived in my inbox. If
> there is some alternative way I am supposed to handle matters, please let
> me know. There was, for example, no personal email address that I see in
> the email that was sent to me.
> Remember --- I'm not a LyX developer or part of this culture, even though
> I am a programmer. I'm simply a user trying to report bugs.
>
> Maynard
>
>
> On Nov 18, 2011, at 2:53 PM, Xu Wang wrote:
>
> Dear Maynard,
>
> I think Richard's reply was actually quite polite compared to yours. I'm
> not sure what it is that you don't understand. English seems like your
> native language (you probably speak it better than me lol), so I'm guessing
> that you do understand the meaning of the words you chose to use. Just in
> case though, here are some examples:
>
> You start off by "This is ridiculous". From what I understand, you are
> suggesting that it is ridiculous that the LyX developers have not fixed
> this bug. That is quite offensive. It is insensitive and suggests that they
> are not correctly doing their job. It kind of sounds like you're saying
> that *they* are ridiculous.
>
> 'DON'T do the half-assed job... do the job properly.'
> --Assuming that English is your native language, you should realize that
> these statements are commands. These are demands. Further, using capital
> letters is analogous to shouting in spoken English.
>
> As a final note, I just want to say that I can relate to you, Maynard. I
> have often been quite frustrated with bugs that stay around for a long
> time. I haven't had this happen in LyX, but in many other projects, both
> open sourced and proprietary. I've often had the same reaction as you. But
> usually I calm down and realize that the developers know a lot more than I
> do and even though some bugs look like they're simple, often they are not.
>
> Also, I'm not sure why you sent this to the list? Why didn't you just
> contact Richard privately? What is it that you want to share with the rest
> of us, exactly? Or were you just looking for a third opinion?
>
> Best,
>
> Xu
>
> On Fri, Nov 18, 2011 at 3:52 PM, Maynard Handley wrote:
>
>> I'm sorry, Mr Heck. I did not mean to offend, and I'm not sure why you
>> are so upset with me.
>> I submitted a problem. I submitted a whole lot of evidence that many
>> various people find it to be a problem. I did not think my tone was rude or
>> mocking. I do not understand why you are angry with me.
>>
>> I have supported the LyX project for quite some time, including donating
>> $1000. I don't expect that to entitle me to special treatment or anything,
>> but I would like to think it indicates that I care about this app and want
>> it to be the best app it possibly can be.
>>
>>
>>
>> On Nov 18, 2011, at 12:19 PM, LyX Ticket Tracker wrote:
&

Re: #7894: Cannot use keyboard to "find next"

2011-11-18 Thread Xu Wang
Dear Maynard,

I think Richard's reply was actually quite polite compared to yours. I'm
not sure what it is that you don't understand. English seems like your
native language (you probably speak it better than me lol), so I'm guessing
that you do understand the meaning of the words you chose to use. Just in
case though, here are some examples:

You start off by "This is ridiculous". From what I understand, you are
suggesting that it is ridiculous that the LyX developers have not fixed
this bug. That is quite offensive. It is insensitive and suggests that they
are not correctly doing their job. It kind of sounds like you're saying
that *they* are ridiculous.

'DON'T do the half-assed job... do the job properly.'
--Assuming that English is your native language, you should realize that
these statements are commands. These are demands. Further, using capital
letters is analogous to shouting in spoken English.

As a final note, I just want to say that I can relate to you, Maynard. I
have often been quite frustrated with bugs that stay around for a long
time. I haven't had this happen in LyX, but in many other projects, both
open sourced and proprietary. I've often had the same reaction as you. But
usually I calm down and realize that the developers know a lot more than I
do and even though some bugs look like they're simple, often they are not.

Also, I'm not sure why you sent this to the list? Why didn't you just
contact Richard privately? What is it that you want to share with the rest
of us, exactly? Or were you just looking for a third opinion?

Best,

Xu

On Fri, Nov 18, 2011 at 3:52 PM, Maynard Handley  wrote:

> I'm sorry, Mr Heck. I did not mean to offend, and I'm not sure why you are
> so upset with me.
> I submitted a problem. I submitted a whole lot of evidence that many
> various people find it to be a problem. I did not think my tone was rude or
> mocking. I do not understand why you are angry with me.
>
> I have supported the LyX project for quite some time, including donating
> $1000. I don't expect that to entitle me to special treatment or anything,
> but I would like to think it indicates that I care about this app and want
> it to be the best app it possibly can be.
>
>
>
> On Nov 18, 2011, at 12:19 PM, LyX Ticket Tracker wrote:
>
> > #7894: Cannot use keyboard to "find next"
> >
> -+--
> > Reporter:  name99   |   Owner:  lasgouttes
> > Type:  defect   |  Status:  new
> > Priority:  normal   |   Milestone:
> > Component:  general  | Version:  2.0.1
> > Severity:  normal   |Keywords:
> >
> -+--
> >
> > Comment(by rgheck):
> >
> > The only thing that is ridiculous is the insulting character of this bug
> > report. I'm tempted to delete it, and your account. Next time I will.
> >
> > And you won't get any help from me.
> >
> > --
> > Ticket URL: 
> > The LyX Project 
> > LyX -- The Document Processor
>
>


Re: introduction to programming LyX, anyone?

2011-10-29 Thread Xu Wang
I agree with you Philip! I have been wanting to write a similar email for a
while. I would love to help develop LyX. In fact, I learned C++ with that
being my primary purpose. But I am still lost when trying to navigate the
code.

I would love for some of the experienced developers to maybe document all
of the steps in particular bug fixes... For example,

1. I knew I had to look in xxx.cpp because... (e.g. I did a grep using the
phrase "yyy")
2. Then I went to the line containing the word xxx
3. Because xxx is of class yyy, I went to yyy.h
4. etc.

Even though every bug is so special, I think that we could learn a lot by
following such documentation.

Thank you!

Xu


2011/10/29 PhilipPirrip 

> Hi Vincent. Thanks for the reply. One day I hope there would emerge a sort
> of an overview of the whole code, to help the new beginners.
> I'm sure that making inset by coping some other shouldn't be that hard.
> But then it comes to all sorts of things that are interconnected
> (translations, input encodings, spell-checking), and it gets harder to
> understand them all. For example, what would need to be changed if I just
> introduce \begin{otherlanguage}{xyz} \end{otherlanguage} as the environment
> of the inset? This pair is not present now in LyX (but there's a similar
> polyglossia pair, yes). What if I want to disable foreign language
> underlining for that inset? How to tell the spell checker that the inset is
> using some other language?
> ...
>
>
>
>  First of all, be sure that people think that a "foreign language inset"
>> is useful. Otherwise, it might be a waste of your time implementing
>> something that may not be used.
>>
>
> I've just tried to convince Richard on that, please take a look at
> http://www.lyx.org/trac/**ticket/7848
> .
>
>
>
>


Re: drag in outline panel?

2011-09-12 Thread Xu Wang
Thank you, Richard, for the explanation. It makes sense that convenience
feature requests are not high on anyone's priority list. Xu

On Mon, Sep 12, 2011 at 9:08 AM, Richard Heck  wrote:

> On 09/12/2011 04:24 AM, Michel Lavaud wrote:
>
>> Le 11/09/2011 22:37, Xu Wang a écrit :
>>
>>> exactly what I was looking for, thanks! I'm guessing if there hasn't
>>> been much movement in 3 years then I'm out of luck. Oh well.
>>>
>>> On Sun, Sep 11, 2011 at 4:42 AM, Jürgen Spitzmüller>> <mailto:sp...@lyx.org>>  wrote:
>>>
>>> Xu Wang wrote:
>>> >  bump
>>>
>>> 
>>> http://www.lyx.org/trac/**ticket/5778<http://www.lyx.org/trac/ticket/5778>
>>>
>>> Jürgen
>>>
>> I had asked for something close in may 2011 (cf. below), and J. Rioux
>> had pointed out it was also linked to tickets 6061 and 6675. So, it
>> seems to be a rather formidable task within LyX.
>>
>>  I don't know how formidable it is. It may not be very hard at all. Qt
> certainly provides support for drag and drop, and the page "Using Drag and
> Drop with Item Views", in the Qt documentation, seems to give most of the
> information one would need.
>
> As always with open source projects, the issue here is who wants to scratch
> which itch and how much time we all do (or, better, don't) have to work on
> LyX. If one of the developers really needed this functionality, I'm sure it
> would have gotten done a long time ago; but none of us do, it would seem,
> and we're all focused on other things we do feel like we need, or feel like
> LyX needs more. E.g., if I had time to do something besides fix bugs, I'd be
> working on BibLaTeX integration.
>
> If anyone does want to have a go at this, as I said, I think the
> instructions in the Qt docs are probably quite easy to follow. The class
> that manages the outline is in GuiToc.cpp.
>
> Richard
>
>


Re: drag in outline panel?

2011-09-11 Thread Xu Wang
exactly what I was looking for, thanks! I'm guessing if there hasn't been
much movement in 3 years then I'm out of luck. Oh well.

On Sun, Sep 11, 2011 at 4:42 AM, Jürgen Spitzmüller  wrote:

> Xu Wang wrote:
> > bump
>
> http://www.lyx.org/trac/ticket/5778
>
> Jürgen
>


Re: drag in outline panel?

2011-09-10 Thread Xu Wang
bump

On Wed, Sep 7, 2011 at 7:36 PM, Xu Wang  wrote:

> Would it be difficult in Qt to allow dragging of elements in the outline
> panel? Sometimes it's annoying to keep pushing the "up" or "down" buttons.
>
> Thanks,
>
> Xu
>


drag in outline panel?

2011-09-07 Thread Xu Wang
Would it be difficult in Qt to allow dragging of elements in the outline
panel? Sometimes it's annoying to keep pushing the "up" or "down" buttons.

Thanks,

Xu


Re: Image Lifecycle (Create) Patch - Video

2011-07-28 Thread Xu Wang
Tomasso,

This looks great! Also, sending an email is a great way to show what your
new feature does. I think more bug reports and/or fixes should have videos
attached.

Thanks, Xu

On Thu, Jul 28, 2011 at 2:29 PM, Tommaso Cucinotta  wrote:

> Il 28/07/2011 17:29, Edwin Leuven ha scritto:
>
>  Tommaso Cucinotta  wrote:
>>
>>>  This patch allows one to quickly insert new images
>>>  and other type of external material into a LyX document.
>>>
>> fwiw, i'd rather be able to drag-n-drop
>>
>
> they are compatible: one way doesn't preclude that the other can be
> realised as well.
>
>T.
>
>


ubuntu - an error when I double click on a .lyx flie, but no error when I run from terminal

2011-07-20 Thread Xu Wang
If I start LyX from the terminal, everything works fine.


But if I just start LyX by double clicking on a .lyx file, then I have
problems (pasted at the end of email). I have tried reconfigure.

Do I have a problem with permissions or something? I don't see why the two
would be different.


I have tried reconfigure and reinstalling and neither has helped.


Here is the error in LyX:

File does not exist: /tmp/lyx_tmpdir.MT6574/lyx_tmpbuf2/testfile.pdf


In the terminal, here is the output:

Systemcall.cpp(238): Systemcall: 'pdflatex  "testfile.tex"' did not start!
Systemcall.cpp(239): error The process failed to start. Either the invoked
program is missing, or you may have insufficient permissions to invoke the
program.
Error: Cannot view file

File does not exist: /tmp/lyx_tmpdir.MT6574/lyx_tmpbuf2/testfile.pdf


I am using Ubuntu 11.04 64-bit.
LyX version 2.0.1svn
Qt 4.7.2
xuwang@ubuntu:~$ lyx --version
LyX 2.0.1svn (not released yet)
Built on Jul 13 2011, 00:57:55
Configuration
  Host type:x86_64-unknown-linux-gnu
  Special build flags:  build=development warnings assertions
stdlib-debug concept-checks
  C   Compiler: gcc
  C   Compiler LyX flags:
  C   Compiler flags:   -Wextra -Wall   -g -O
  C++ Compiler: g++ (4.5.2)
  C++ Compiler LyX flags:
  C++ Compiler flags:   -Wextra -Wall   -g -O
  Linker flags:
  Linker user flags:
  Qt 4 Frontend:
  Qt 4 version: 4.7.2
  Packaging:posix
  LyX binary dir:   /usr/local/bin
  LyX files dir:/usr/local/share/lyx

any ideas?

Thank you, Xu


Re: recompile one .cpp

2011-07-14 Thread Xu Wang
ok, thanks

On Thu, Jul 14, 2011 at 6:59 PM, Richard Heck  wrote:

> On 07/14/2011 06:00 PM, Xu Wang wrote:
> > I just want to check that I can do the same thing after updating from
> > svn. Is the following fine?
> >
> > svn update
> > make
> > sudo make install
> >
> As long as you've already done ./autogen.sh and ./configure, yes.
>
> Note that if you change a file, then you don't need to do the "touch"
> thing. It's been touched by you.
>
> Richard
>
>


Re: recompile one .cpp

2011-07-14 Thread Xu Wang
I just want to check that I can do the same thing after updating from svn.
Is the following fine?

svn update
make
sudo make install

Thanks

On Thu, Jul 14, 2011 at 5:19 PM, Xu Wang  wrote:

> beautiful,
>
> Thank you
>
> On Thu, Jul 14, 2011 at 4:49 PM, Julien Rioux 
> wrote:
>
>> On 14/07/2011 4:19 PM, Xu Wang wrote:
>>
>>> Hi,
>>>
>>> How can I recompile just one of the .cpp and reinstall lyx on ubuntu?
>>>
>>> Before, I was doing
>>> make uninstall
>>> make clean
>>> make
>>> sudo make install
>>>
>>> But this takes a long time.
>>>
>>> See my pitiful attempt below for recompiling one cpp:
>>>
>>> xuwang@ubuntu:~/lyx-2.0.x/src$ g++ LaTeX.cpp
>>> LaTeX.cpp:16:20: fatal error: config.h: No such file or directory
>>> compilation terminated.
>>>
>>> Thank you
>>>
>>>
>> Just do:
>>
>> touch src/LaTeX.cpp
>> make
>> sudo make install
>>
>> It will recompile LaTeX.cpp and everything that depends on this file.
>>
>> --
>> Julien
>>
>>
>


Re: recompile one .cpp

2011-07-14 Thread Xu Wang
beautiful,

Thank you

On Thu, Jul 14, 2011 at 4:49 PM, Julien Rioux wrote:

> On 14/07/2011 4:19 PM, Xu Wang wrote:
>
>> Hi,
>>
>> How can I recompile just one of the .cpp and reinstall lyx on ubuntu?
>>
>> Before, I was doing
>> make uninstall
>> make clean
>> make
>> sudo make install
>>
>> But this takes a long time.
>>
>> See my pitiful attempt below for recompiling one cpp:
>>
>> xuwang@ubuntu:~/lyx-2.0.x/src$ g++ LaTeX.cpp
>> LaTeX.cpp:16:20: fatal error: config.h: No such file or directory
>> compilation terminated.
>>
>> Thank you
>>
>>
> Just do:
>
> touch src/LaTeX.cpp
> make
> sudo make install
>
> It will recompile LaTeX.cpp and everything that depends on this file.
>
> --
> Julien
>
>


recompile one .cpp

2011-07-14 Thread Xu Wang
Hi,

How can I recompile just one of the .cpp and reinstall lyx on ubuntu?

Before, I was doing
make uninstall
make clean
make
sudo make install

But this takes a long time.

See my pitiful attempt below for recompiling one cpp:

xuwang@ubuntu:~/lyx-2.0.x/src$ g++ LaTeX.cpp
LaTeX.cpp:16:20: fatal error: config.h: No such file or directory
compilation terminated.

Thank you


Re: testing with svn before bug report

2011-07-01 Thread Xu Wang
thank you for the advice Pavel. I will start studying
http://wiki.lyx.org/Devel/Git

On Fri, Jul 1, 2011 at 4:18 PM, Pavel Sanda  wrote:

> Xu Wang wrote:
> > With all this talk of building testing binaries, I figure I should learn
> > which versions I should be testing against. Before filing a bug report,
> > should I test with all of the following?
> > -the current stable lyx release
> > -BRANCH_2_0_X
> > -trunk
>
> as an interested user work and test against BRANCH_2_0_X.
> if you are going to monitor development you can test trunk as well.
>
> > If the bug I found is present in some of them but not all what should I
> do?
>
> put it into bug tracker and set the version in which you have found it.
> trunk-only bugs maybe good to mention directly in devel list.
>
> > I've never used svn. Are these the correct commands to get the latest
> trunk
> > and branch?
> >
> > svn co svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X lyx-2.0.x
> >
> > svn co svn://svn.lyx.org/lyx/lyx-devel/trunk lyx-devel
>
> looks correct.
> if you are going to do some development stuff it maybe better to start
> with git right away.
>
> pavel
>


testing with svn before bug report

2011-07-01 Thread Xu Wang
Hi,

With all this talk of building testing binaries, I figure I should learn
which versions I should be testing against. Before filing a bug report,
should I test with all of the following?
-the current stable lyx release
-BRANCH_2_0_X
-trunk

If the bug I found is present in some of them but not all what should I do?


I've never used svn. Are these the correct commands to get the latest trunk
and branch?

svn co svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X lyx-2.0.x

svn co svn://svn.lyx.org/lyx/lyx-devel/trunk lyx-devel



Thank you,


Xu


Re: Qt books

2011-06-07 Thread Xu Wang
Hi Abdel,

My apologies for the double email,

Xu

On Tue, Jun 7, 2011 at 2:08 AM, Abdel Younes  wrote:

> Hello Xu,
>
> Please adjust your email settings as we are receiving your emails twice.
>
> For the rest, just believe André :-)
>
> Abdel
>
> On Jun 7, 2011, at 11:01 AM, Xu Wang wrote:
>
>
>
> On Tue, Jun 7, 2011 at 12:38 AM, Andre Poenitz <
> andre.poen...@mathematik.tu-chemnitz.de> wrote:
>
>> On Mon, Jun 06, 2011 at 03:18:01PM -0700, Xu Wang wrote:
>> > Hi, I would like to learn Qt. I learn much better from physical books
>> than
>> > online resources, although I've heard the Qt manual is very good.
>> >
>> > Does anyone have suggestions for me?
>>
>> Your question is a bit off-topic here. Try qt-inter...@qt.nokia.com
>> or something similar.
>>
>
> I should have been more precise. I'm interested in learning qt4 for pretty
> much the sole purpose of programming for LyX. As I do not know anything
> about qt4, I do not know if there are different approaches to learning it,
> one of which is more useful for LyX.
>
>
>>
>> Google's first hit for "qt books" is http://developer.qt.nokia.com/books
>> which happens to be the "official" site. The first one (Blanchette/
>> Summerfield) is a very good start.
>>
>
> Even though it's a few years old?
>
>
>>
>> > How much does Qt change from year to year? I am trying to figure out how
>> new
>> > the book that I look for should be.
>>
>> It should be Qt _4_. There's about one minor release per year, but
>> currently Qt 5 is being discussed. This will still take a while though,
>> and people try fairly hard to keep incompatibilities small, certainly
>> less than the Qt 3 -> Qt 4 jump six years ago.
>>
>> > Is there any chance that LyX will stop using Qt in the recent future?
>>
>> Unlikely from my point of view, given that there are no serious
>> alternatives for the kind of cross-platformness LyX exhibits.
>>
>> Andre'
>>
>
> Thank you for your response Andre',
>
> Xu
>
>
>


Re: Qt books

2011-06-07 Thread Xu Wang
On Tue, Jun 7, 2011 at 12:38 AM, Andre Poenitz <
andre.poen...@mathematik.tu-chemnitz.de> wrote:

> On Mon, Jun 06, 2011 at 03:18:01PM -0700, Xu Wang wrote:
> > Hi, I would like to learn Qt. I learn much better from physical books
> than
> > online resources, although I've heard the Qt manual is very good.
> >
> > Does anyone have suggestions for me?
>
> Your question is a bit off-topic here. Try qt-inter...@qt.nokia.com
> or something similar.
>

I should have been more precise. I'm interested in learning qt4 for pretty
much the sole purpose of programming for LyX. As I do not know anything
about qt4, I do not know if there are different approaches to learning it,
one of which is more useful for LyX.


>
> Google's first hit for "qt books" is http://developer.qt.nokia.com/books
> which happens to be the "official" site. The first one (Blanchette/
> Summerfield) is a very good start.
>

Even though it's a few years old?


>
> > How much does Qt change from year to year? I am trying to figure out how
> new
> > the book that I look for should be.
>
> It should be Qt _4_. There's about one minor release per year, but
> currently Qt 5 is being discussed. This will still take a while though,
> and people try fairly hard to keep incompatibilities small, certainly
> less than the Qt 3 -> Qt 4 jump six years ago.
>
> > Is there any chance that LyX will stop using Qt in the recent future?
>
> Unlikely from my point of view, given that there are no serious
> alternatives for the kind of cross-platformness LyX exhibits.
>
> Andre'
>

Thank you for your response Andre',

Xu


Re: Qt books

2011-06-07 Thread Xu Wang
On Tue, Jun 7, 2011 at 12:38 AM, Andre Poenitz <
andre.poen...@mathematik.tu-chemnitz.de> wrote:

> On Mon, Jun 06, 2011 at 03:18:01PM -0700, Xu Wang wrote:
> > Hi, I would like to learn Qt. I learn much better from physical books
> than
> > online resources, although I've heard the Qt manual is very good.
> >
> > Does anyone have suggestions for me?
>
> Your question is a bit off-topic here. Try qt-inter...@qt.nokia.com
> or something similar.
>

I should have been more precise. I'm interested in learning qt4 for pretty
much the sole purpose of programming for LyX. As I do not know anything
about qt4, I do not know if there are different approaches to learning it,
one of which is more useful for LyX.


>
> Google's first hit for "qt books" is http://developer.qt.nokia.com/books
> which happens to be the "official" site. The first one (Blanchette/
> Summerfield) is a very good start.
>

Even though it's a few years old?


>
> > How much does Qt change from year to year? I am trying to figure out how
> new
> > the book that I look for should be.
>
> It should be Qt _4_. There's about one minor release per year, but
> currently Qt 5 is being discussed. This will still take a while though,
> and people try fairly hard to keep incompatibilities small, certainly
> less than the Qt 3 -> Qt 4 jump six years ago.
>
> > Is there any chance that LyX will stop using Qt in the recent future?
>
> Unlikely from my point of view, given that there are no serious
> alternatives for the kind of cross-platformness LyX exhibits.
>
> Andre'
>

Thank you for your response Andre',

Xu


Qt books

2011-06-06 Thread Xu Wang
Hi, I would like to learn Qt. I learn much better from physical books than
online resources, although I've heard the Qt manual is very good.

Does anyone have suggestions for me?

How much does Qt change from year to year? I am trying to figure out how new
the book that I look for should be.

Is there any chance that LyX will stop using Qt in the recent future?

I've only studied Accelerated C++ but am thinking of also ordering C++
Primer.

Thank you,

Xu


Re: advice on how to implement my dream LyX feature

2011-06-06 Thread Xu Wang
On Sun, May 29, 2011 at 6:32 PM, Cyrille Artho  wrote:

>
>>I think this is a useful addition for the cropping of images. The
>>way I now have to crop an image is to guess some numbers, press
>>Apply, check in the main LyX window whether it is correct, adjust
>>the numbers, check.. and so forth.
>>It might be useful to select the region to crop to just by using the
>>mouse.
>>Vincent
>>
>>
>> This is exactly what motivated me. And even after a lot of practice, it
>> still always takes a few tries to get it right.
>>
>>  The preview of figures in LyX is rather small by default, which is
> usually good because it saves space. However, I think that would make it a
> bit difficult to select the desired image region easily, because another
> pixel or two makes a big difference at a small zoom factor.
>
> So I think I would favor a pop-up window in a first implementation. This
> would also be consistent with similar dialogs (such as "Browse..."). The
> pop-up window could be activated by a "Crop..." button and have a couple of
> controls to make a precise selection of the image region easier:
>
> (1) "+"/"-" to zoom in and out.
> (2) Two half-rectangles ("corner markers") to mark the top left and bottom
> right corners? Like ┌ and ┘ (Unicode characters), or in ASCII:
>
>  ___
> |
> |
> |  (image)  |
>|
> ___|
>
> This design (unlike clicking and dragging to "draw" a rectangle) has the
> advantage that an existing selection can be easily adjusted.
>
>(a) Dragging each corner changes the size of the selected region.
>(b) A finer line marks the entire selection (maybe the corners are shown
> in bold red, the finer line as a hair line).
>(c) With this control, panning could perhaps be implemented (in addition
> to scrolling). Panning would be activated by clicking in the center of the
> image (or just more than a certain number of pixels away from the corner
> markers). Maybe this extra function confuses users, though, who may be more
> used to using scroll bars.
>
> An alternative to 2.a) would be to make a selection by "drawing" a
> rectangle: click on the top left, and then drag the mouse to the bottom
> right. That's faster but it's not obvious how to adjust the selection.
> Obviously panning cannot be implemented in this version, as clicking and
> dragging is already used for marking the rectangle.
>
> Using two markers for corners would also allow keeping the default
> selection; in existing documents, some users may already have defined a
> bounding box. In the "drawing" approach, the existing selection is lost each
> time the "Crop..." button is used.
>
> Other opinions? For a first version, zooming is optional; panning is
> definitely something that can be added at the end. So a first version would
> implement 2.a) and 2.b), or the alternative to 2.a) in addition to 2.b).
>
> --
> Regards,
> Cyrille Artho - http://artho.com/
> We are all like soldiers,
> crouching behind the fortifications we have raised.
>-- Steven Erikson, "Midnight Tides"
>

I like your preferred option as well. However, I'm starting to realize that
such a feature is well over my head, even if I'm willing to spend a lot of
time programming. I need to learn more C++ and Qt4 until I tackle such a
feature so I will have to put it on hold unless anyone else would like to
take the lead.

Thank you very much Cyrille for your suggestions!


Re: advice on how to implement my dream LyX feature

2011-05-28 Thread Xu Wang
On Wed, May 25, 2011 at 11:22 PM, Vincent van Ravesteijn wrote:

> If implemented within LyX, the user interface for including images would
>> need some changes. Currently, image attributes are changed by clicking on it
>> and changing numeric values in the dialog box. Cropping a PDF would require
>> the ability to manipulate it directly, at least to a basic degree. Such
>> direct manipulation would then suggest also adding WYSIWYG-like controls to
>> the image itself, which would appear as arrows upon selection. (The arrows
>> would allow scaling and rotation.)
>>
>>
>>
> I think this is a useful addition for the cropping of images. The way I now
> have to crop an image is to guess some numbers, press Apply, check in the
> main LyX window whether it is correct, adjust the numbers, check.. and so
> forth.
>
> It might be useful to select the region to crop to just by using the mouse.
>
> Vincent
>

This is exactly what motivated me. And even after a lot of practice, it
still always takes a few tries to get it right.

Xu

On Wed, May 25, 2011 at 11:45 PM, Cyrille Artho  wrote:

>
>
> So IMHO if implemented in LyX, I see two ways, a choice between a quick
> operation and a more consistent/controllable way to do it.
>

Which way would you vote for? I don't know enough about "the LyX way" to be
able to have an opinion.

Xu


On Thu, May 26, 2011 at 2:40 AM, Tommaso Cucinotta  wrote:

>  Il 26/05/2011 08:05, Xu Wang ha scritto:
>
>
>  -Interesting, I didn't know that the Mac OS Preview has a crop feature
> that correctly extracts vector graphics.
>
>
> The issue pointed out here seems a very common requirement, which I tackled
> too many times in the past by using the image snapshot tool from Acrobat
> Reader.
>
> I just learned that, with Inkscape, you can open a .pdf, select a page, and
> you get a vector rendering of it that can be edited. You can select a
> portion (e.g., an image) and copy it to the clipboard.
>
> Interestingly, if you paste that thing in LyX (and also in LibreOffice),
> you get the  text :-(. You have to paste into a text-editor and save
> as ".svg", then reimport as image :-(.
>
> What's missing here, in order to paste it as a new vector image to be
> included in the document ? Is that a matter of the (wrong) MIME type set by
> Inkscape when copying ?
>
>
>> What do other developers think? Would it be worth to (re-)implement this
>> inside LyX?
>
>
> probably, if that trick with Inkscape (or any other open-source tool out
> there) above worked, this would not be needed.
>
> T.
>

I disagree. As you pointed out, you can re-export as an svg and then
reimport as an image and you're done. So according to your logic, fixing the
way to copy directly from Inkscape to LyX is not needed, because there is
something else that works. But of course what's the difference with this?
It's the same difference for deciding whether to implement this feature in
LyX or Inkscape: one takes another step (in your case, saving and
reimporting, in my case it would be opening up Inkscape and copying).

Also, there are a lot of people who don't know what vector graphic is, much
less how to edit one. And at my university, LyX is installed and kept up to
date, but we are not allowed to install any other software. Even if we were,
some people do not do this maneuver very often. I don't think they would
want to install another software to do it.

Xu


Re: advice on how to implement my dream LyX feature

2011-05-25 Thread Xu Wang
Cyrille, thank you for the reply and the explanations! See my comments below

On Wed, May 25, 2011 at 10:34 PM, Cyrille Artho  wrote:

> Dear Xu,
> I think this is a useful feature, but it would be best implemented as an
> enhancement to an existing open source PDF viewer (such as xpdf or Okular).
> LyX users are not the only ones who would sometimes like to copy parts of a
> PDF (especially vector figures in a PDF). Maybe some existing free PDF apps
> already have this feature? On Mac OS, "Preview" has the "crop" feature,
> which extracts vector graphics correctly.
>
-Interesting, I didn't know that the Mac OS Preview has a crop feature that
correctly extracts vector graphics.

>
> If implemented within LyX, the user interface for including images would
> need some changes. Currently, image attributes are changed by clicking on it
> and changing numeric values in the dialog box. Cropping a PDF would require
> the ability to manipulate it directly, at least to a basic degree. Such
> direct manipulation would then suggest also adding WYSIWYG-like controls to
> the image itself, which would appear as arrows upon selection. (The arrows
> would allow scaling and rotation.)
>
> The problem with that is that the scale on screen does not reflect the size
> in print. Lyx therefore uses the WYSIWYM model for writing documents, which
> does not mesh so well with simple/direct manipulation controls outlined
> above.
>
> As a user, I think I would prefer to be able to crop a PDF from within my
> PDF viewer of choice. Specifically, a good PDF viewer gives me better ways
> to zoom/pan around the image, allowing a more precise selection of the
> contents I want. If popular open source PDF viewers, such as Okular, do not
> have that feature yet, then it would definitely be welcome there.
>
This is a good point. And I think you've almost convinced me that it is an
operation that should be left to a graphics editor. However, I want to point
out that what I am suggesting is not editing. Although a crop achieves the
same thing that I would like to do, this can be done without editing, using
LaTeX directly (as mentioned above with the bounding box or viewport). In
this way, the operation is not a direct graphic-edit. The manipulation would
not have to be WYSIWYG in terms of size, but just in terms of the ratios.
And I think this is more of a WYSIWYM approach.

>
> What do other developers think? Would it be worth to (re-)implement this
> inside LyX?
>
>
>> The user could select a pdf, select a page, and then that page would be
>> visible in LyX. The user could then draw a rectangle on that pdf page
>> that would outline the part of that pdf page that he would like to
>> insert into his lyx document. I think the LaTeX code is not that
>> complicated. It would just use the bounding box or viewport option of
>> the includegraphics command. Also, I do not think this falls under the
>> category of "stop requesting that LyX includes a graphics editor"
>> because it would not even need to access or edit the image, except to
>> display the pdf page.
>>
>> Why do I think this would be a good feature?
>> I see too often documents (both papers and especially beamer
>> presentations) that would like to put in a table from another pdf, but
>> they do so by taking a screen shot, which ends up looking quite ugly
>> because its a bitmap.
>>
>>  --
> Regards,
> Cyrille Artho - http://artho.com/
> It seemed the world was divided into good and bad people. The good ones
> slept
> better... while the bad ones seemed to enjoy the waking hours much more.
>-- Woody Allen, "Side Effects"
>
> --
> Regards,
> Cyrille Artho - http://artho.com/
> It seemed the world was divided into good and bad people. The good ones
> slept
> better... while the bad ones seemed to enjoy the waking hours much more.
>-- Woody Allen, "Side Effects"
>


advice on how to implement my dream LyX feature

2011-05-25 Thread Xu Wang
I am currently learning C++ programming (from Accelerated C++). There is a
feature that I would like to implement, but I would like some advice as to
1) what I need to know in order to implement it, 2) is it feasible? 3) would
this be useful to others?

Here is the feature:

The user could select a pdf, select a page, and then that page would be
visible in LyX. The user could then draw a rectangle on that pdf page that
would outline the part of that pdf page that he would like to insert into
his lyx document. I think the LaTeX code is not that complicated. It would
just use the bounding box or viewport option of the includegraphics command.
Also, I do not think this falls under the category of "stop requesting that
LyX includes a graphics editor" because it would not even need to access or
edit the image, except to display the pdf page.

Why do I think this would be a good feature?
I see too often documents (both papers and especially beamer presentations)
that would like to put in a table from another pdf, but they do so by taking
a screen shot, which ends up looking quite ugly because its a bitmap.

Any advice would be helpful.

Thank you,

Xu


a guide to LyX source code

2011-05-22 Thread Xu Wang
Hi,

I am currently learning C++ from Accelerated C++. I know enough to
understand what most chunks of code do. However, I am lost when trying to
navigate through the lyx source code. It seems that grep is my only friend.
I have read the Developing FAQ as well as many pages on the Wiki for
developers.

I would love to see more pages like this, for example:
http://wiki.lyx.org/Devel/NotesOnDispatchMechanism
It walks you through a couple of main ideas and describes the main functions
and
 a few rules on what to do and what not to do.

Are there any other such pages? Have there been any attempts at writing a
"guide
 to the LyX source code" which explains the main files and their connection
with
 one another?

Thank you,

Xu


Re: lyx.org down?

2011-05-21 Thread Xu Wang
It's working fine more me now as well.

On Sat, May 21, 2011 at 10:11 AM, Liviu Andronic wrote:

> On Sat, May 21, 2011 at 6:22 PM, Xu Wang  wrote:
> > Is the www.lyx.org website temporarily down? I haven't been able to
> connect
> > for the last few minutes.
> >
> It is accessible from here.
> Liviu
>
>
> --
> Do you know how to read?
> http://www.alienetworks.com/srtest.cfm
> http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
> Do you know how to write?
> http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
>


lyx.org down?

2011-05-21 Thread Xu Wang
Is the www.lyx.org website temporarily down? I haven't been able to connect
for the last few minutes.


Re: ANNOUNCE: LyX version 2.0.0 is released

2011-05-08 Thread Xu Wang
Thank you for everything to everyone that contributed!

LyX is a beautiful piece of software.

On Sun, May 8, 2011 at 5:00 AM, Pavel Sanda  wrote:

> Public release of LyX version 2.0.0
> ===
>
> We are proud to announce the public release of LyX 2.0.0.
>
> With this release, LyX celebrates 15 years of existence, and we start
> a new family of 2.x releases to acknowledge LyX's passing from a child
> to an adult. We hope you will celebrate this anniversary with us.
>
> LyX 2.0.0 is the culmination of two and half years of hard work. This
> release begins a new series of 2.0.x which will incrementally improve its
> stability as the time passes.
>
> An overview of the new features can be found here:
>  http://wiki.lyx.org/LyX/NewInLyX20
>
> You can download LyX 2.0.0 from http://www.lyx.org/Download/ .
>
> We hope you will enjoy the result!
>
> The file RELEASE-NOTES lists some known issues and problems compared
> to the current stable releases (LyX 1.6.x). We strongly recommend that
> packagers of LyX on various platforms and distributions read this file.
>
> As with any major release, this one comes with lot of new features but
> also some bugs. If you think you have found a bug in LyX 2.0.0, either
> email
> the LyX developers' mailing list (lyx-devel at lists.lyx.org), or open a
> bug
> report at http://www.lyx.org/trac/wiki/BugTrackerHome .
>
> If you have trouble using LyX or have a question, consult the
> documentation that comes with LyX (under Help) and the LyX wiki, which you
> will find at http://wiki.lyx.org/ . You can also send email to the LyX
> users'
> list (lyx-users at lists.lyx.org).
>
> The LyX team.
> http://www.lyx.org
>


Re: Trunk is completely frozen for any commits

2011-04-29 Thread Xu Wang
compiled and ran successfully on ubuntu.

On Fri, Apr 29, 2011 at 1:23 AM, venom00  wrote:

> > Local control tower: giving permission to land.
> > Over.
>
> One small step for a bunch of developers, a giant leap for mankind.
>
> venom00
>
>


feature: "page" in import graphics dialog

2011-04-26 Thread Xu Wang
Sure, the user can put it manually under "LaTeX options" but I think it
would be helpful to have a text box. This way, LyX could also display that
page instead of the first page.

Would this be difficult? My guess is that the text box would not be
difficult, but displaying the correct page would be.

Thank you


Re: auto add AMS math package when using Cases envirnoment

2011-02-20 Thread Xu Wang
Example file is attached.

I'm using the book document class. I also have no idea why the pdf default
settings for me are:
\pdf_title "The LyX Tutorial"
\pdf_author "LyX Team"
\pdf_subject "LyX-documentation Tutorial"
\pdf_keywords "LyX, documentation"


Thanks,

Xu

On Sun, Feb 20, 2011 at 3:35 PM, Richard Heck  wrote:

>  On 02/20/2011 11:21 AM, Xu Wang wrote:
>
> By default, when one use the cases environment and beginners do not know
> that they have to add the AMS math option. Could we either add the package
> whenever the user inserts a case environment or at least alert the user that
> he must add the package when inserts a cases environment?
>
>  What document class are you using?
>
>
> Furthermore, the title of the window that comes up with the errors is
> "sweave Errors" (I had nothing related to Sweave in my document, but I do
> have the module enabled by default). Why is this?
>
>
>  I'm not sure about this one. Can you send a small example file?
>
> Richard
>
>


newfile1.lyx
Description: application/lyx


Re: books on c++ to get started

2011-02-13 Thread Xu Wang
Thanks for the info Edwin,

Which Stroustrup are you referring to?
The C++ Programming Language: Special Edition by Bjarne Stroustrup (Feb 11,
2000)
Programming: Principles and Practice Using C++ by Bjarne Stroustrup (Dec 25,
2008)

Can anyone compare C++ Primer Plus and Accelerated C++ ?

Best,

Xu Wang

On Sun, Feb 13, 2011 at 5:35 AM, Edwin Leuven  wrote:

> xuwang wangxu  wrote:
> > Accelerated C++: Practical Programming by Example
>
> this was my introduction to c++ and i liked it
>
> > And after that, I guess I should learn the STL? I would thus focus on
>
> i don't think that for lyx programming you need much more STL
> knowledge than you'll find in accelerated c++
>
> the book to have and browse through next is Stroustrup i think, but
> other may want to chime in ...
>