Re: mathrm

2013-01-11 Thread Wolfgang Engelmann
Am Freitag, 11. Januar 2013, 00:01:15 schrieb Paul A. Rubin:
 Works for me.
 
 Paul
Thanks, Paul

your example works here too, but not the original. Must have to do with my 
setting (Koma script?)
Would you mind to try it out?
Thanks
Wolfgang



Test-greek.lyx
Description: application/lyx


search text without note-content

2013-01-11 Thread Wolfgang Engelmann
Hi,

is there a way to avoid that notes are searched? I have a lot of notes 
which I don't like to delete. Searching would be much faster, if I could 
skip them. 
Alternatively, can I delete all the notes at once thus creating another  
lyx file without notes in which I could search?
Thanks,

Wolfgang


Re: search text without note-content

2013-01-11 Thread Scott Kostyshak
On Fri, Jan 11, 2013 at 3:59 AM, Wolfgang Engelmann
engelm...@uni-tuebingen.de wrote:
 Hi,

 is there a way to avoid that notes are searched? I have a lot of notes
 which I don't like to delete. Searching would be much faster, if I could
 skip them.

Hi Wolfgang,

Look in the Customization manual. Search for spellcheck:
Spellcheck [0, 1] Allow spell-checking paragraphs of this style.
Default is true.

 Alternatively, can I delete all the notes at once thus creating another
 lyx file without notes in which I could search?

Yes. Look in the LFUN manual. See inset-forall. This might work:
inset-forall Note delete-char-forward

Scott


Re: search text without note-content

2013-01-11 Thread Jürgen Spitzmüller
Wolfgang Engelmann wrote:
 is there a way to avoid that notes are searched?

No.
http://www.lyx.org/trac/ticket/4987

 Alternatively, can I delete all the notes at once thus creating another
 lyx file without notes in which I could search?

Don't think so.

A possible workaround, although not very comfortable, is to search in the PDF 
output and use reverse search to synchronize the LyX workarea.

(reverse search is described in sec. 5.6 of the Additional manual, 
Handbuchergänzungen in German).

Jürgen


Re: search text without note-content

2013-01-11 Thread Jürgen Spitzmüller
Scott Kostyshak wrote:
 Look in the Customization manual. Search for spellcheck:
 Spellcheck [0, 1] Allow spell-checking paragraphs of this style.
 Default is true.

For spellchecking, there is even a preference entry Exlude Notes and 
comments. However, this has no impact on searching.

  Alternatively, can I delete all the notes at once thus creating another
  lyx file without notes in which I could search?
 
 Yes. Look in the LFUN manual. See inset-forall. This might work:
 inset-forall Note delete-char-forward

Ah, yes. Forgot about this. The correct syntax, though, is
inset-forall Note char-delete-forward

Jürgen


Re: search text without note-content

2013-01-11 Thread Scott Kostyshak
On Fri, Jan 11, 2013 at 4:22 AM, Jürgen Spitzmüller sp...@lyx.org wrote:
 Scott Kostyshak wrote:
 Look in the Customization manual. Search for spellcheck:
 Spellcheck [0, 1] Allow spell-checking paragraphs of this style.
 Default is true.

 For spellchecking, there is even a preference entry Exlude Notes and
 comments. However, this has no impact on searching.

Good to know -- I hadn't seen the bug that you linked to.

  Alternatively, can I delete all the notes at once thus creating another
  lyx file without notes in which I could search?

 Yes. Look in the LFUN manual. See inset-forall. This might work:
 inset-forall Note delete-char-forward

 Ah, yes. Forgot about this. The correct syntax, though, is
 inset-forall Note char-delete-forward

Thanks for the correction.

Scott


Re: Math font problem under Mac OS X Lion

2013-01-11 Thread Scott Kostyshak
On Wed, Nov 21, 2012 at 8:09 AM, Luca Brandolini
luca.brandol...@unibg.it wrote:
 Stefan Bauer bauer at math.uni-bielefeld.de writes:



 I have the same setup. In the math edit mode the \Omega is invisible as
 long as you are working on the formula.

 S Bauer



 If I type \Omega in the math editor I get a bold w.
 It is probably a font misconfiguration but I cannot figure out what to do.



Which LyX versions are you using? If the problem is still there can
you file a bug report please on www.lyx.org/trac?

Thanks,

Scott


Re: search text without note-content

2013-01-11 Thread Wolfgang Engelmann
Am Freitag, 11. Januar 2013, 10:22:44 schrieb Jürgen Spitzmüller:
 Scott Kostyshak wrote:
  Look in the Customization manual. Search for spellcheck:
  Spellcheck [0, 1] Allow spell-checking paragraphs of this style.
  Default is true.
 
 For spellchecking, there is even a preference entry Exlude Notes and
 comments. However, this has no impact on searching.
 
   Alternatively, can I delete all the notes at once thus creating
   another lyx file without notes in which I could search?
  
  Yes. Look in the LFUN manual. See inset-forall. This might work:
  inset-forall Note delete-char-forward
 
 Ah, yes. Forgot about this. The correct syntax, though, is
 inset-forall Note char-delete-forward
 
 Jürgen

Thanks, but can't find inset-forall in
http://wiki.lyx.org/LyX/LyxFunctions
only:

index-print
 
inset-apply
 
inset-dissolve
 
inset-insert
 
inset-settings
 
keymap-off
Turn off keymap


were do I have to look for?

Wolfgang


Re: search text without note-content

2013-01-11 Thread Scott Kostyshak
On Fri, Jan 11, 2013 at 5:43 AM, Wolfgang Engelmann 
engelm...@uni-tuebingen.de wrote:

 **

 Am Freitag, 11. Januar 2013, 10:22:44 schrieb Jürgen Spitzmüller:

  Scott Kostyshak wrote:

   Look in the Customization manual. Search for spellcheck:

   Spellcheck [0, 1] Allow spell-checking paragraphs of this style.

   Default is true.

 

  For spellchecking, there is even a preference entry Exlude Notes and

  comments. However, this has no impact on searching.

 

Alternatively, can I delete all the notes at once thus creating

another lyx file without notes in which I could search?

  

   Yes. Look in the LFUN manual. See inset-forall. This might work:

   inset-forall Note delete-char-forward

 

  Ah, yes. Forgot about this. The correct syntax, though, is

  inset-forall Note char-delete-forward

 

  Jürgen

 Thanks, but can't find inset-forall in

 http://wiki.lyx.org/LyX/LyxFunctions

 only:

   index-print



 inset-apply



 inset-dissolve



 inset-insert



 inset-settings



 keymap-off

 Turn off keymap

 were do I have to look for?


Help  LyX Functions

Scott


Re: search text without note-content

2013-01-11 Thread Wolfgang Engelmann
Am Freitag, 11. Januar 2013, 11:46:24 schrieb Scott Kostyshak:
 On Fri, Jan 11, 2013 at 5:43 AM, Wolfgang Engelmann 
 
 engelm...@uni-tuebingen.de wrote:
  **
  
 Alternatively, can I delete all the notes at once thus creating
 another lyx file without notes in which I could search?
Yes. Look in the LFUN manual. See inset-forall. This might work:

inset-forall Note delete-char-forward
   
   Ah, yes. Forgot about this. The correct syntax, though, is
   
   inset-forall Note char-delete-forward
 
  were do I have to look for?
 
 Help  LyX Functions
 
Oh, yes. But still:
how do get it to work? LFUN Help is too short for my IQ

Could somebody explain how to go from my
lyx-file with yellow notes (note-note)
to another lyx-file without notes-notes?

Is it a command outside lyx where the file is part of the command?

Sorry to bother you again

but thankful:

Wolfgang

From the LFUN help:
LFUN_INSET_FORALL

Action Apply the given commands on insets of a given name.

Notion WARNING: use at your own risks; this function gives you too many 
ways of shooting yourself in the foot. A typical example is inset-forall 
Note note-insert which starts an infinite loop. This is mitigated by the 
fact that the number of actions is arbitrarily limited to 10. Note also 
that inset-forall does not update metrics between iterations, which can 
lead to bugs. This has to be eventually fixed.

Syntax inset-forall NAME LFUN-COMMANDNAME: Type of Inset. If NAME 
is *, all insets are matched. The name is used like for InsetLayout in 
layout files: Note matches all note insets, while Note:Note only matches 
LyX yellow note insets.

Sample Remove all index insets:inset-forall Index delete-
char-forwardClose all Notes (also works for a particular branch, for 
example):  inset-forall Note inset-toggle closeTransform all 
yellow notes to comments   inset-forall Note:Note inset-modify 
note Note CommentTry to put LyX in an infinite loop if there is at least a 
Note:  inset-forall Note char-backward

Origin lasgouttes, 27 Nov 2009





 Scott


-- 
-
Wolfgang Engelmann
Schlossgartenstrasse 22
D-72070 Tübingen
Tel 07071 68325


Re: search text without note-content

2013-01-11 Thread Jürgen Spitzmüller
Wolfgang Engelmann wrote:
 Could somebody explain how to go from my
 lyx-file with yellow notes (note-note)
 to another lyx-file without notes-notes?

* Make a copy of your file.
* In LyX, hit Alt+x, which opens a small input widget on the bottom (this is 
the minibuffer)
* Enter the follwowing command to this widget and hit return:
  inset-forall Note:Note char-delete-forward

The minibuffer can be closed again by hitting Alt+x while the cursor is insice 
(if not, the command will bring the cursor in the minibuffer).

HTH
Jürgen


Re: search text without note-content

2013-01-11 Thread Wolfgang Engelmann
Am Freitag, 11. Januar 2013, 15:17:25 schrieb Jürgen Spitzmüller:
 Wolfgang Engelmann wrote:
  Could somebody explain how to go from my
  lyx-file with yellow notes (note-note)
  to another lyx-file without notes-notes?
 
 * Make a copy of your file.
 * In LyX, hit Alt+x, which opens a small input widget on the bottom
 (this is the minibuffer)
 * Enter the follwowing command to this widget and hit return:
   inset-forall Note:Note char-delete-forward
 
 The minibuffer can be closed again by hitting Alt+x while the cursor is
 insice (if not, the command will bring the cursor in the minibuffer).
 
Thanks, Jürgen

very good, and nice to watch all the notes disappear (except the last one - 
but never mind ..)

Learned again something useful and must dig into this feature!

Wolfgang


Re: search text without note-content

2013-01-11 Thread Jean-Marc Lasgouttes

Le 11/01/2013 15:17, Jürgen Spitzmüller a écrit :

Wolfgang Engelmann wrote:

Could somebody explain how to go from my
lyx-file with yellow notes (note-note)
to another lyx-file without notes-notes?


* Make a copy of your file.
* In LyX, hit Alt+x, which opens a small input widget on the bottom (this is
the minibuffer)
* Enter the follwowing command to this widget and hit return:
   inset-forall Note:Note char-delete-forward


The explanation goes like
  * Note:Note means all note inset of type LyX Note. You could use
Note:Comment or Footnote. These neames are the same that are used in 
layout files.
  * You can use inset type * to match all insets and simply Note to 
match all note insets.


JMarc



Re: search text without note-content

2013-01-11 Thread Wolfgang Engelmann
Am Freitag, 11. Januar 2013, 15:17:25 schrieb Jürgen Spitzmüller:
 inset-forall Note:Note char-delete-forward
p.s. to my last mail:
I noticed it wasn't just the last note-note, but many more.
By running the 
inset-forall Note:Note char-delete-forward
several times I got rid of them, however it ended with

SIGSEGV signal caught!
Sorry, you have found a bug in LyX, hope you have not lost any data.
Please read the bug-reporting instructions in 'Help-Introduction' and send 
us a bug report, if necessary. Thanks!
Bye.

I could recover the (now note-free) lyx file. Good.

Might be a buffer issue? Its a long paper with a lot of notes

Thanks again

Wolfgang


Re: search text without note-content

2013-01-11 Thread Jean-Marc Lasgouttes

Le 11/01/2013 16:11, Wolfgang Engelmann a écrit :

Am Freitag, 11. Januar 2013, 15:17:25 schrieb Jürgen Spitzmüller:

inset-forall Note:Note char-delete-forward

p.s. to my last mail:
I noticed it wasn't just the last note-note, but many more.


Can you make a test case where a note is skipped?


By running the
inset-forall Note:Note char-delete-forward
several times I got rid of them, however it ended with

SIGSEGV signal caught!


That is even more embarrassing. I hope we can do something about it.

JMarc




Re: mathrm

2013-01-11 Thread Guenter Milde
On 2013-01-10, Wolfgang Engelmann wrote:
 I try to convert 
 CKI\varepsilon
 into 
 mathrm, but that gives me CKI''

 Is this known, that greek characters do not convert, or am I missing 
 something?

Upright Greek is a known problem. 

* By default, Greek letters are treated as symbols, not letters and left
  as-is if put into \mathrm or other \math... alphabets (i.e. you will
  still get an italic character).
  
* with the fixmath or isomath package, math alphabet changes work for latin
  and greek letters. The downside is, that in the default upright (roman)
  math fonts, the Greek letters are missing and you will get garbage.

See e.g. the isomath packages documentation for a buch of workarounds.

http://www.ctan.org/pkg/isomath

Günter



Re: Lyx on MacBook Pro retina

2013-01-11 Thread Julian Kolm
Hi, I think it is a real pity that this issue is dormant at the moment. It
really makes lyx almost impossible to use for writing long text and that is
the major use case after all. Since the number of people who will be
affected by this is bound to rise a fix would really be appreciated.

I do not know whether this helps a potential developer taking up the issue
but using lyx under Windows on a MacBook Pro Retina works without a
Problem. If someone would decide to take this up I could offer testing as
the hardware is probably not that common.

Regards,
Julian


Re: Math font problem under Mac OS X Lion

2013-01-11 Thread Stephan Witt
Am 11.01.2013 um 10:57 schrieb Scott Kostyshak skost...@princeton.edu:

 On Wed, Nov 21, 2012 at 8:09 AM, Luca Brandolini
 luca.brandol...@unibg.it wrote:
 Stefan Bauer bauer at math.uni-bielefeld.de writes:
 
 
 
 I have the same setup. In the math edit mode the \Omega is invisible as
 long as you are working on the formula.
 
 S Bauer
 
 
 
 If I type \Omega in the math editor I get a bold w.
 It is probably a font misconfiguration but I cannot figure out what to do.
 
 
 
 Which LyX versions are you using? If the problem is still there can
 you file a bug report please on www.lyx.org/trac?

Yes, please.

I think, the problem is in GuiPainter.cpp line 356 etc.

==
// Qt4 does not display a glyph whose codepoint is the
// same as that of a soft-hyphen (0x00ad), unless it
// occurs at a line-break. As a kludge, we force Qt to
// render this glyph using a one-column line.
if (s.size() == 1  str[0].unicode() == 0x00ad) {
setQPainterPen(computeColor(f.realColor()));
QTextLayout adsymbol(str);
adsymbol.setFont(ff);
adsymbol.beginLayout();
QTextLine line = adsymbol.createLine();
line.setNumColumns(1);
line.setPosition(QPointF(0, -line.ascent()));
adsymbol.endLayout();
line.draw(this, QPointF(x, y));
return textwidth;
}
==

It happens \Omega is 0x00ad - so it's special. But it looks like this special 
code does not work.

Stephan

Re: Math font problem under Mac OS X Lion

2013-01-11 Thread Stephan Witt
Am 11.01.2013 um 21:33 schrieb Stephan Witt st.w...@gmx.net:

 Am 11.01.2013 um 10:57 schrieb Scott Kostyshak skost...@princeton.edu:
 
 On Wed, Nov 21, 2012 at 8:09 AM, Luca Brandolini
 luca.brandol...@unibg.it wrote:
 Stefan Bauer bauer at math.uni-bielefeld.de writes:
 
 
 
 I have the same setup. In the math edit mode the \Omega is invisible as
 long as you are working on the formula.
 
 S Bauer
 
 
 
 If I type \Omega in the math editor I get a bold w.
 It is probably a font misconfiguration but I cannot figure out what to do.
 
 
 
 Which LyX versions are you using? If the problem is still there can
 you file a bug report please on www.lyx.org/trac?
 
 Yes, please.
 
 I think, the problem is in GuiPainter.cpp line 356 etc.
 
 ==
   // Qt4 does not display a glyph whose codepoint is the
   // same as that of a soft-hyphen (0x00ad), unless it
   // occurs at a line-break. As a kludge, we force Qt to
   // render this glyph using a one-column line.
   if (s.size() == 1  str[0].unicode() == 0x00ad) {
   setQPainterPen(computeColor(f.realColor()));
   QTextLayout adsymbol(str);
   adsymbol.setFont(ff);
   adsymbol.beginLayout();
   QTextLine line = adsymbol.createLine();
   line.setNumColumns(1);
   line.setPosition(QPointF(0, -line.ascent()));
   adsymbol.endLayout();
   line.draw(this, QPointF(x, y));
   return textwidth;
   }
 ==
 
 It happens \Omega is 0x00ad - so it's special. But it looks like this special 
 code does not work.


Sorry, it's already reported here:

http://www.lyx.org/trac/ticket/7954

Stephan

Re: Lyx on MacBook Pro retina

2013-01-11 Thread Scott Kostyshak
On Fri, Jan 11, 2013 at 1:27 PM, Julian Kolm julian.k...@gmail.com wrote:
 Hi, I think it is a real pity that this issue is dormant at the moment. It
 really makes lyx almost impossible to use for writing long text and that is
 the major use case after all. Since the number of people who will be
 affected by this is bound to rise a fix would really be appreciated.

Good point. But unfortunately there are only one or two Mac developers
around here, and I'm not even sure they have the hardware to test the
retina display.

This asymmetry between many users and only a couple of developers
makes me wonder if this situation is good for a sponsorship. If
everyone donated a little, maybe it would make it more worthwhile to
the developer (or at least show the developer that some people care
and are happy to help contribute). I have no idea how much work would
be required for this or if any developer would want to spend their
free time working on it. See http://www.lyx.org/Donate for past
sponsors.

Best,

Scott


Re: mathrm

2013-01-11 Thread Wolfgang Engelmann
Am Freitag, 11. Januar 2013, 00:01:15 schrieb Paul A. Rubin:
 Works for me.
 
 Paul
Thanks, Paul

your example works here too, but not the original. Must have to do with my 
setting (Koma script?)
Would you mind to try it out?
Thanks
Wolfgang



Test-greek.lyx
Description: application/lyx


search text without note-content

2013-01-11 Thread Wolfgang Engelmann
Hi,

is there a way to avoid that notes are searched? I have a lot of notes 
which I don't like to delete. Searching would be much faster, if I could 
skip them. 
Alternatively, can I delete all the notes at once thus creating another  
lyx file without notes in which I could search?
Thanks,

Wolfgang


Re: search text without note-content

2013-01-11 Thread Scott Kostyshak
On Fri, Jan 11, 2013 at 3:59 AM, Wolfgang Engelmann
engelm...@uni-tuebingen.de wrote:
 Hi,

 is there a way to avoid that notes are searched? I have a lot of notes
 which I don't like to delete. Searching would be much faster, if I could
 skip them.

Hi Wolfgang,

Look in the Customization manual. Search for spellcheck:
Spellcheck [0, 1] Allow spell-checking paragraphs of this style.
Default is true.

 Alternatively, can I delete all the notes at once thus creating another
 lyx file without notes in which I could search?

Yes. Look in the LFUN manual. See inset-forall. This might work:
inset-forall Note delete-char-forward

Scott


Re: search text without note-content

2013-01-11 Thread Jürgen Spitzmüller
Wolfgang Engelmann wrote:
 is there a way to avoid that notes are searched?

No.
http://www.lyx.org/trac/ticket/4987

 Alternatively, can I delete all the notes at once thus creating another
 lyx file without notes in which I could search?

Don't think so.

A possible workaround, although not very comfortable, is to search in the PDF 
output and use reverse search to synchronize the LyX workarea.

(reverse search is described in sec. 5.6 of the Additional manual, 
Handbuchergänzungen in German).

Jürgen


Re: search text without note-content

2013-01-11 Thread Jürgen Spitzmüller
Scott Kostyshak wrote:
 Look in the Customization manual. Search for spellcheck:
 Spellcheck [0, 1] Allow spell-checking paragraphs of this style.
 Default is true.

For spellchecking, there is even a preference entry Exlude Notes and 
comments. However, this has no impact on searching.

  Alternatively, can I delete all the notes at once thus creating another
  lyx file without notes in which I could search?
 
 Yes. Look in the LFUN manual. See inset-forall. This might work:
 inset-forall Note delete-char-forward

Ah, yes. Forgot about this. The correct syntax, though, is
inset-forall Note char-delete-forward

Jürgen


Re: search text without note-content

2013-01-11 Thread Scott Kostyshak
On Fri, Jan 11, 2013 at 4:22 AM, Jürgen Spitzmüller sp...@lyx.org wrote:
 Scott Kostyshak wrote:
 Look in the Customization manual. Search for spellcheck:
 Spellcheck [0, 1] Allow spell-checking paragraphs of this style.
 Default is true.

 For spellchecking, there is even a preference entry Exlude Notes and
 comments. However, this has no impact on searching.

Good to know -- I hadn't seen the bug that you linked to.

  Alternatively, can I delete all the notes at once thus creating another
  lyx file without notes in which I could search?

 Yes. Look in the LFUN manual. See inset-forall. This might work:
 inset-forall Note delete-char-forward

 Ah, yes. Forgot about this. The correct syntax, though, is
 inset-forall Note char-delete-forward

Thanks for the correction.

Scott


Re: Math font problem under Mac OS X Lion

2013-01-11 Thread Scott Kostyshak
On Wed, Nov 21, 2012 at 8:09 AM, Luca Brandolini
luca.brandol...@unibg.it wrote:
 Stefan Bauer bauer at math.uni-bielefeld.de writes:



 I have the same setup. In the math edit mode the \Omega is invisible as
 long as you are working on the formula.

 S Bauer



 If I type \Omega in the math editor I get a bold w.
 It is probably a font misconfiguration but I cannot figure out what to do.



Which LyX versions are you using? If the problem is still there can
you file a bug report please on www.lyx.org/trac?

Thanks,

Scott


Re: search text without note-content

2013-01-11 Thread Wolfgang Engelmann
Am Freitag, 11. Januar 2013, 10:22:44 schrieb Jürgen Spitzmüller:
 Scott Kostyshak wrote:
  Look in the Customization manual. Search for spellcheck:
  Spellcheck [0, 1] Allow spell-checking paragraphs of this style.
  Default is true.
 
 For spellchecking, there is even a preference entry Exlude Notes and
 comments. However, this has no impact on searching.
 
   Alternatively, can I delete all the notes at once thus creating
   another lyx file without notes in which I could search?
  
  Yes. Look in the LFUN manual. See inset-forall. This might work:
  inset-forall Note delete-char-forward
 
 Ah, yes. Forgot about this. The correct syntax, though, is
 inset-forall Note char-delete-forward
 
 Jürgen

Thanks, but can't find inset-forall in
http://wiki.lyx.org/LyX/LyxFunctions
only:

index-print
 
inset-apply
 
inset-dissolve
 
inset-insert
 
inset-settings
 
keymap-off
Turn off keymap


were do I have to look for?

Wolfgang


Re: search text without note-content

2013-01-11 Thread Scott Kostyshak
On Fri, Jan 11, 2013 at 5:43 AM, Wolfgang Engelmann 
engelm...@uni-tuebingen.de wrote:

 **

 Am Freitag, 11. Januar 2013, 10:22:44 schrieb Jürgen Spitzmüller:

  Scott Kostyshak wrote:

   Look in the Customization manual. Search for spellcheck:

   Spellcheck [0, 1] Allow spell-checking paragraphs of this style.

   Default is true.

 

  For spellchecking, there is even a preference entry Exlude Notes and

  comments. However, this has no impact on searching.

 

Alternatively, can I delete all the notes at once thus creating

another lyx file without notes in which I could search?

  

   Yes. Look in the LFUN manual. See inset-forall. This might work:

   inset-forall Note delete-char-forward

 

  Ah, yes. Forgot about this. The correct syntax, though, is

  inset-forall Note char-delete-forward

 

  Jürgen

 Thanks, but can't find inset-forall in

 http://wiki.lyx.org/LyX/LyxFunctions

 only:

   index-print



 inset-apply



 inset-dissolve



 inset-insert



 inset-settings



 keymap-off

 Turn off keymap

 were do I have to look for?


Help  LyX Functions

Scott


Re: search text without note-content

2013-01-11 Thread Wolfgang Engelmann
Am Freitag, 11. Januar 2013, 11:46:24 schrieb Scott Kostyshak:
 On Fri, Jan 11, 2013 at 5:43 AM, Wolfgang Engelmann 
 
 engelm...@uni-tuebingen.de wrote:
  **
  
 Alternatively, can I delete all the notes at once thus creating
 another lyx file without notes in which I could search?
Yes. Look in the LFUN manual. See inset-forall. This might work:

inset-forall Note delete-char-forward
   
   Ah, yes. Forgot about this. The correct syntax, though, is
   
   inset-forall Note char-delete-forward
 
  were do I have to look for?
 
 Help  LyX Functions
 
Oh, yes. But still:
how do get it to work? LFUN Help is too short for my IQ

Could somebody explain how to go from my
lyx-file with yellow notes (note-note)
to another lyx-file without notes-notes?

Is it a command outside lyx where the file is part of the command?

Sorry to bother you again

but thankful:

Wolfgang

From the LFUN help:
LFUN_INSET_FORALL

Action Apply the given commands on insets of a given name.

Notion WARNING: use at your own risks; this function gives you too many 
ways of shooting yourself in the foot. A typical example is inset-forall 
Note note-insert which starts an infinite loop. This is mitigated by the 
fact that the number of actions is arbitrarily limited to 10. Note also 
that inset-forall does not update metrics between iterations, which can 
lead to bugs. This has to be eventually fixed.

Syntax inset-forall NAME LFUN-COMMANDNAME: Type of Inset. If NAME 
is *, all insets are matched. The name is used like for InsetLayout in 
layout files: Note matches all note insets, while Note:Note only matches 
LyX yellow note insets.

Sample Remove all index insets:inset-forall Index delete-
char-forwardClose all Notes (also works for a particular branch, for 
example):  inset-forall Note inset-toggle closeTransform all 
yellow notes to comments   inset-forall Note:Note inset-modify 
note Note CommentTry to put LyX in an infinite loop if there is at least a 
Note:  inset-forall Note char-backward

Origin lasgouttes, 27 Nov 2009





 Scott


-- 
-
Wolfgang Engelmann
Schlossgartenstrasse 22
D-72070 Tübingen
Tel 07071 68325


Re: search text without note-content

2013-01-11 Thread Jürgen Spitzmüller
Wolfgang Engelmann wrote:
 Could somebody explain how to go from my
 lyx-file with yellow notes (note-note)
 to another lyx-file without notes-notes?

* Make a copy of your file.
* In LyX, hit Alt+x, which opens a small input widget on the bottom (this is 
the minibuffer)
* Enter the follwowing command to this widget and hit return:
  inset-forall Note:Note char-delete-forward

The minibuffer can be closed again by hitting Alt+x while the cursor is insice 
(if not, the command will bring the cursor in the minibuffer).

HTH
Jürgen


Re: search text without note-content

2013-01-11 Thread Wolfgang Engelmann
Am Freitag, 11. Januar 2013, 15:17:25 schrieb Jürgen Spitzmüller:
 Wolfgang Engelmann wrote:
  Could somebody explain how to go from my
  lyx-file with yellow notes (note-note)
  to another lyx-file without notes-notes?
 
 * Make a copy of your file.
 * In LyX, hit Alt+x, which opens a small input widget on the bottom
 (this is the minibuffer)
 * Enter the follwowing command to this widget and hit return:
   inset-forall Note:Note char-delete-forward
 
 The minibuffer can be closed again by hitting Alt+x while the cursor is
 insice (if not, the command will bring the cursor in the minibuffer).
 
Thanks, Jürgen

very good, and nice to watch all the notes disappear (except the last one - 
but never mind ..)

Learned again something useful and must dig into this feature!

Wolfgang


Re: search text without note-content

2013-01-11 Thread Jean-Marc Lasgouttes

Le 11/01/2013 15:17, Jürgen Spitzmüller a écrit :

Wolfgang Engelmann wrote:

Could somebody explain how to go from my
lyx-file with yellow notes (note-note)
to another lyx-file without notes-notes?


* Make a copy of your file.
* In LyX, hit Alt+x, which opens a small input widget on the bottom (this is
the minibuffer)
* Enter the follwowing command to this widget and hit return:
   inset-forall Note:Note char-delete-forward


The explanation goes like
  * Note:Note means all note inset of type LyX Note. You could use
Note:Comment or Footnote. These neames are the same that are used in 
layout files.
  * You can use inset type * to match all insets and simply Note to 
match all note insets.


JMarc



Re: search text without note-content

2013-01-11 Thread Wolfgang Engelmann
Am Freitag, 11. Januar 2013, 15:17:25 schrieb Jürgen Spitzmüller:
 inset-forall Note:Note char-delete-forward
p.s. to my last mail:
I noticed it wasn't just the last note-note, but many more.
By running the 
inset-forall Note:Note char-delete-forward
several times I got rid of them, however it ended with

SIGSEGV signal caught!
Sorry, you have found a bug in LyX, hope you have not lost any data.
Please read the bug-reporting instructions in 'Help-Introduction' and send 
us a bug report, if necessary. Thanks!
Bye.

I could recover the (now note-free) lyx file. Good.

Might be a buffer issue? Its a long paper with a lot of notes

Thanks again

Wolfgang


Re: search text without note-content

2013-01-11 Thread Jean-Marc Lasgouttes

Le 11/01/2013 16:11, Wolfgang Engelmann a écrit :

Am Freitag, 11. Januar 2013, 15:17:25 schrieb Jürgen Spitzmüller:

inset-forall Note:Note char-delete-forward

p.s. to my last mail:
I noticed it wasn't just the last note-note, but many more.


Can you make a test case where a note is skipped?


By running the
inset-forall Note:Note char-delete-forward
several times I got rid of them, however it ended with

SIGSEGV signal caught!


That is even more embarrassing. I hope we can do something about it.

JMarc




Re: mathrm

2013-01-11 Thread Guenter Milde
On 2013-01-10, Wolfgang Engelmann wrote:
 I try to convert 
 CKI\varepsilon
 into 
 mathrm, but that gives me CKI''

 Is this known, that greek characters do not convert, or am I missing 
 something?

Upright Greek is a known problem. 

* By default, Greek letters are treated as symbols, not letters and left
  as-is if put into \mathrm or other \math... alphabets (i.e. you will
  still get an italic character).
  
* with the fixmath or isomath package, math alphabet changes work for latin
  and greek letters. The downside is, that in the default upright (roman)
  math fonts, the Greek letters are missing and you will get garbage.

See e.g. the isomath packages documentation for a buch of workarounds.

http://www.ctan.org/pkg/isomath

Günter



Re: Lyx on MacBook Pro retina

2013-01-11 Thread Julian Kolm
Hi, I think it is a real pity that this issue is dormant at the moment. It
really makes lyx almost impossible to use for writing long text and that is
the major use case after all. Since the number of people who will be
affected by this is bound to rise a fix would really be appreciated.

I do not know whether this helps a potential developer taking up the issue
but using lyx under Windows on a MacBook Pro Retina works without a
Problem. If someone would decide to take this up I could offer testing as
the hardware is probably not that common.

Regards,
Julian


Re: Math font problem under Mac OS X Lion

2013-01-11 Thread Stephan Witt
Am 11.01.2013 um 10:57 schrieb Scott Kostyshak skost...@princeton.edu:

 On Wed, Nov 21, 2012 at 8:09 AM, Luca Brandolini
 luca.brandol...@unibg.it wrote:
 Stefan Bauer bauer at math.uni-bielefeld.de writes:
 
 
 
 I have the same setup. In the math edit mode the \Omega is invisible as
 long as you are working on the formula.
 
 S Bauer
 
 
 
 If I type \Omega in the math editor I get a bold w.
 It is probably a font misconfiguration but I cannot figure out what to do.
 
 
 
 Which LyX versions are you using? If the problem is still there can
 you file a bug report please on www.lyx.org/trac?

Yes, please.

I think, the problem is in GuiPainter.cpp line 356 etc.

==
// Qt4 does not display a glyph whose codepoint is the
// same as that of a soft-hyphen (0x00ad), unless it
// occurs at a line-break. As a kludge, we force Qt to
// render this glyph using a one-column line.
if (s.size() == 1  str[0].unicode() == 0x00ad) {
setQPainterPen(computeColor(f.realColor()));
QTextLayout adsymbol(str);
adsymbol.setFont(ff);
adsymbol.beginLayout();
QTextLine line = adsymbol.createLine();
line.setNumColumns(1);
line.setPosition(QPointF(0, -line.ascent()));
adsymbol.endLayout();
line.draw(this, QPointF(x, y));
return textwidth;
}
==

It happens \Omega is 0x00ad - so it's special. But it looks like this special 
code does not work.

Stephan

Re: Math font problem under Mac OS X Lion

2013-01-11 Thread Stephan Witt
Am 11.01.2013 um 21:33 schrieb Stephan Witt st.w...@gmx.net:

 Am 11.01.2013 um 10:57 schrieb Scott Kostyshak skost...@princeton.edu:
 
 On Wed, Nov 21, 2012 at 8:09 AM, Luca Brandolini
 luca.brandol...@unibg.it wrote:
 Stefan Bauer bauer at math.uni-bielefeld.de writes:
 
 
 
 I have the same setup. In the math edit mode the \Omega is invisible as
 long as you are working on the formula.
 
 S Bauer
 
 
 
 If I type \Omega in the math editor I get a bold w.
 It is probably a font misconfiguration but I cannot figure out what to do.
 
 
 
 Which LyX versions are you using? If the problem is still there can
 you file a bug report please on www.lyx.org/trac?
 
 Yes, please.
 
 I think, the problem is in GuiPainter.cpp line 356 etc.
 
 ==
   // Qt4 does not display a glyph whose codepoint is the
   // same as that of a soft-hyphen (0x00ad), unless it
   // occurs at a line-break. As a kludge, we force Qt to
   // render this glyph using a one-column line.
   if (s.size() == 1  str[0].unicode() == 0x00ad) {
   setQPainterPen(computeColor(f.realColor()));
   QTextLayout adsymbol(str);
   adsymbol.setFont(ff);
   adsymbol.beginLayout();
   QTextLine line = adsymbol.createLine();
   line.setNumColumns(1);
   line.setPosition(QPointF(0, -line.ascent()));
   adsymbol.endLayout();
   line.draw(this, QPointF(x, y));
   return textwidth;
   }
 ==
 
 It happens \Omega is 0x00ad - so it's special. But it looks like this special 
 code does not work.


Sorry, it's already reported here:

http://www.lyx.org/trac/ticket/7954

Stephan

Re: Lyx on MacBook Pro retina

2013-01-11 Thread Scott Kostyshak
On Fri, Jan 11, 2013 at 1:27 PM, Julian Kolm julian.k...@gmail.com wrote:
 Hi, I think it is a real pity that this issue is dormant at the moment. It
 really makes lyx almost impossible to use for writing long text and that is
 the major use case after all. Since the number of people who will be
 affected by this is bound to rise a fix would really be appreciated.

Good point. But unfortunately there are only one or two Mac developers
around here, and I'm not even sure they have the hardware to test the
retina display.

This asymmetry between many users and only a couple of developers
makes me wonder if this situation is good for a sponsorship. If
everyone donated a little, maybe it would make it more worthwhile to
the developer (or at least show the developer that some people care
and are happy to help contribute). I have no idea how much work would
be required for this or if any developer would want to spend their
free time working on it. See http://www.lyx.org/Donate for past
sponsors.

Best,

Scott


Re: mathrm

2013-01-11 Thread Wolfgang Engelmann
Am Freitag, 11. Januar 2013, 00:01:15 schrieb Paul A. Rubin:
> Works for me.
> 
> Paul
Thanks, Paul

your example works here too, but not the original. Must have to do with my 
setting (Koma script?)
Would you mind to try it out?
Thanks
Wolfgang



Test-greek.lyx
Description: application/lyx


search text without note-content

2013-01-11 Thread Wolfgang Engelmann
Hi,

is there a way to avoid that notes are searched? I have a lot of notes 
which I don't like to delete. Searching would be much faster, if I could 
skip them. 
Alternatively, can I delete all the notes at once thus creating another  
lyx file without notes in which I could search?
Thanks,

Wolfgang


Re: search text without note-content

2013-01-11 Thread Scott Kostyshak
On Fri, Jan 11, 2013 at 3:59 AM, Wolfgang Engelmann
 wrote:
> Hi,
>
> is there a way to avoid that notes are searched? I have a lot of notes
> which I don't like to delete. Searching would be much faster, if I could
> skip them.

Hi Wolfgang,

Look in the Customization manual. Search for "spellcheck":
<>

> Alternatively, can I delete all the notes at once thus creating another
> lyx file without notes in which I could search?

Yes. Look in the LFUN manual. See inset-forall. This might work:
inset-forall Note delete-char-forward

Scott


Re: search text without note-content

2013-01-11 Thread Jürgen Spitzmüller
Wolfgang Engelmann wrote:
> is there a way to avoid that notes are searched?

No.
http://www.lyx.org/trac/ticket/4987

> Alternatively, can I delete all the notes at once thus creating another
> lyx file without notes in which I could search?

Don't think so.

A possible workaround, although not very comfortable, is to search in the PDF 
output and use reverse search to synchronize the LyX workarea.

(reverse search is described in sec. 5.6 of the "Additional" manual, 
"Handbuchergänzungen" in German).

Jürgen


Re: search text without note-content

2013-01-11 Thread Jürgen Spitzmüller
Scott Kostyshak wrote:
> Look in the Customization manual. Search for "spellcheck":
> < Default is true.>>

For spellchecking, there is even a preference entry "Exlude Notes and 
comments". However, this has no impact on searching.

> > Alternatively, can I delete all the notes at once thus creating another
> > lyx file without notes in which I could search?
> 
> Yes. Look in the LFUN manual. See inset-forall. This might work:
> inset-forall Note delete-char-forward

Ah, yes. Forgot about this. The correct syntax, though, is
inset-forall Note char-delete-forward

Jürgen


Re: search text without note-content

2013-01-11 Thread Scott Kostyshak
On Fri, Jan 11, 2013 at 4:22 AM, Jürgen Spitzmüller  wrote:
> Scott Kostyshak wrote:
>> Look in the Customization manual. Search for "spellcheck":
>> <> Default is true.>>
>
> For spellchecking, there is even a preference entry "Exlude Notes and
> comments". However, this has no impact on searching.

Good to know -- I hadn't seen the bug that you linked to.

>> > Alternatively, can I delete all the notes at once thus creating another
>> > lyx file without notes in which I could search?
>>
>> Yes. Look in the LFUN manual. See inset-forall. This might work:
>> inset-forall Note delete-char-forward
>
> Ah, yes. Forgot about this. The correct syntax, though, is
> inset-forall Note char-delete-forward

Thanks for the correction.

Scott


Re: Math font problem under Mac OS X Lion

2013-01-11 Thread Scott Kostyshak
On Wed, Nov 21, 2012 at 8:09 AM, Luca Brandolini
 wrote:
> Stefan Bauer  math.uni-bielefeld.de> writes:
>
>>
>>
>> I have the same setup. In the math edit mode the \Omega is invisible as
>> long as you are working on the formula.
>>
>> S Bauer
>>
>>
>
> If I type \Omega in the math editor I get a bold w.
> It is probably a font misconfiguration but I cannot figure out what to do.
>
>

Which LyX versions are you using? If the problem is still there can
you file a bug report please on www.lyx.org/trac?

Thanks,

Scott


Re: search text without note-content

2013-01-11 Thread Wolfgang Engelmann
Am Freitag, 11. Januar 2013, 10:22:44 schrieb Jürgen Spitzmüller:
> Scott Kostyshak wrote:
> > Look in the Customization manual. Search for "spellcheck":
> > < > Default is true.>>
> 
> For spellchecking, there is even a preference entry "Exlude Notes and
> comments". However, this has no impact on searching.
> 
> > > Alternatively, can I delete all the notes at once thus creating
> > > another lyx file without notes in which I could search?
> > 
> > Yes. Look in the LFUN manual. See inset-forall. This might work:
> > inset-forall Note delete-char-forward
> 
> Ah, yes. Forgot about this. The correct syntax, though, is
> inset-forall Note char-delete-forward
> 
> Jürgen

Thanks, but can't find inset-forall in
http://wiki.lyx.org/LyX/LyxFunctions
only:

index-print
 
inset-apply
 
inset-dissolve
 
inset-insert
 
inset-settings
 
keymap-off
Turn off keymap


were do I have to look for?

Wolfgang


Re: search text without note-content

2013-01-11 Thread Scott Kostyshak
On Fri, Jan 11, 2013 at 5:43 AM, Wolfgang Engelmann <
engelm...@uni-tuebingen.de> wrote:

> **
>
> Am Freitag, 11. Januar 2013, 10:22:44 schrieb Jürgen Spitzmüller:
>
> > Scott Kostyshak wrote:
>
> > > Look in the Customization manual. Search for "spellcheck":
>
> > > <
> > > Default is true.>>
>
> >
>
> > For spellchecking, there is even a preference entry "Exlude Notes and
>
> > comments". However, this has no impact on searching.
>
> >
>
> > > > Alternatively, can I delete all the notes at once thus creating
>
> > > > another lyx file without notes in which I could search?
>
> > >
>
> > > Yes. Look in the LFUN manual. See inset-forall. This might work:
>
> > > inset-forall Note delete-char-forward
>
> >
>
> > Ah, yes. Forgot about this. The correct syntax, though, is
>
> > inset-forall Note char-delete-forward
>
> >
>
> > Jürgen
>
> Thanks, but can't find inset-forall in
>
> http://wiki.lyx.org/LyX/LyxFunctions
>
> only:
>
>   index-print
>
>
>
> inset-apply
>
>
>
> inset-dissolve
>
>
>
> inset-insert
>
>
>
> inset-settings
>
>
>
> keymap-off
>
> Turn off keymap
>
> were do I have to look for?
>

Help > LyX Functions

Scott


Re: search text without note-content

2013-01-11 Thread Wolfgang Engelmann
Am Freitag, 11. Januar 2013, 11:46:24 schrieb Scott Kostyshak:
> On Fri, Jan 11, 2013 at 5:43 AM, Wolfgang Engelmann <
> 
> engelm...@uni-tuebingen.de> wrote:
> > **
> > 
> > > > > Alternatively, can I delete all the notes at once thus creating
> > > > > another lyx file without notes in which I could search?
> > > > Yes. Look in the LFUN manual. See inset-forall. This might work:
> > > > 
> > > > inset-forall Note delete-char-forward
> > > 
> > > Ah, yes. Forgot about this. The correct syntax, though, is
> > > 
> > > inset-forall Note char-delete-forward
> 
> > were do I have to look for?
> 
> Help > LyX Functions
> 
Oh, yes. But still:
how do get it to work? LFUN Help is too short for my IQ

Could somebody explain how to go from my
lyx-file with yellow notes (note-note)
to another lyx-file without notes-notes?

Is it a command outside lyx where the file is part of the command?

Sorry to bother you again

but thankful:

Wolfgang

From the LFUN help:
LFUN_INSET_FORALL

Action Apply the given commands on insets of a given name.

Notion WARNING: use at your own risks; this function gives you too many 
ways of shooting yourself in the foot. A typical example is inset-forall 
Note note-insert which starts an infinite loop. This is mitigated by the 
fact that the number of actions is arbitrarily limited to 10. Note also 
that inset-forall does not update metrics between iterations, which can 
lead to bugs. This has to be eventually fixed.

Syntax inset-forall  : Type of Inset. If  
is *, all insets are matched. The name is used like for InsetLayout in 
layout files: "Note" matches all note insets, while "Note:Note" only matches 
LyX yellow note insets.

Sample Remove all index insets:inset-forall Index delete-
char-forwardClose all Notes (also works for a particular branch, for 
example):  inset-forall Note inset-toggle closeTransform all 
yellow notes to comments   inset-forall Note:Note inset-modify 
note Note CommentTry to put LyX in an infinite loop if there is at least a 
Note:  inset-forall Note char-backward

Origin lasgouttes, 27 Nov 2009





> Scott


-- 
-
Wolfgang Engelmann
Schlossgartenstrasse 22
D-72070 Tübingen
Tel 07071 68325


Re: search text without note-content

2013-01-11 Thread Jürgen Spitzmüller
Wolfgang Engelmann wrote:
> Could somebody explain how to go from my
> lyx-file with yellow notes (note-note)
> to another lyx-file without notes-notes?

* Make a copy of your file.
* In LyX, hit Alt+x, which opens a small input widget on the bottom (this is 
the "minibuffer")
* Enter the follwowing command to this widget and hit return:
  inset-forall Note:Note char-delete-forward

The minibuffer can be closed again by hitting Alt+x while the cursor is insice 
(if not, the command will bring the cursor in the minibuffer).

HTH
Jürgen


Re: search text without note-content

2013-01-11 Thread Wolfgang Engelmann
Am Freitag, 11. Januar 2013, 15:17:25 schrieb Jürgen Spitzmüller:
> Wolfgang Engelmann wrote:
> > Could somebody explain how to go from my
> > lyx-file with yellow notes (note-note)
> > to another lyx-file without notes-notes?
> 
> * Make a copy of your file.
> * In LyX, hit Alt+x, which opens a small input widget on the bottom
> (this is the "minibuffer")
> * Enter the follwowing command to this widget and hit return:
>   inset-forall Note:Note char-delete-forward
> 
> The minibuffer can be closed again by hitting Alt+x while the cursor is
> insice (if not, the command will bring the cursor in the minibuffer).
> 
Thanks, Jürgen

very good, and nice to watch all the notes disappear (except the last one - 
but never mind ..)

Learned again something useful and must dig into this feature!

Wolfgang


Re: search text without note-content

2013-01-11 Thread Jean-Marc Lasgouttes

Le 11/01/2013 15:17, Jürgen Spitzmüller a écrit :

Wolfgang Engelmann wrote:

Could somebody explain how to go from my
lyx-file with yellow notes (note-note)
to another lyx-file without notes-notes?


* Make a copy of your file.
* In LyX, hit Alt+x, which opens a small input widget on the bottom (this is
the "minibuffer")
* Enter the follwowing command to this widget and hit return:
   inset-forall Note:Note char-delete-forward


The explanation goes like
  * Note:Note means "all note inset of type LyX Note". You could use
Note:Comment or Footnote. These neames are the same that are used in 
layout files.
  * You can use inset type "*" to match all insets and simply "Note" to 
match all note insets.


JMarc



Re: search text without note-content

2013-01-11 Thread Wolfgang Engelmann
Am Freitag, 11. Januar 2013, 15:17:25 schrieb Jürgen Spitzmüller:
> inset-forall Note:Note char-delete-forward
p.s. to my last mail:
I noticed it wasn't just the last note-note, but many more.
By running the 
inset-forall Note:Note char-delete-forward
several times I got rid of them, however it ended with

SIGSEGV signal caught!
Sorry, you have found a bug in LyX, hope you have not lost any data.
Please read the bug-reporting instructions in 'Help->Introduction' and send 
us a bug report, if necessary. Thanks!
Bye.

I could recover the (now note-free) lyx file. Good.

Might be a buffer issue? Its a long paper with a lot of notes

Thanks again

Wolfgang


Re: search text without note-content

2013-01-11 Thread Jean-Marc Lasgouttes

Le 11/01/2013 16:11, Wolfgang Engelmann a écrit :

Am Freitag, 11. Januar 2013, 15:17:25 schrieb Jürgen Spitzmüller:

inset-forall Note:Note char-delete-forward

p.s. to my last mail:
I noticed it wasn't just the last note-note, but many more.


Can you make a test case where a note is skipped?


By running the
inset-forall Note:Note char-delete-forward
several times I got rid of them, however it ended with

SIGSEGV signal caught!


That is even more embarrassing. I hope we can do something about it.

JMarc




Re: mathrm

2013-01-11 Thread Guenter Milde
On 2013-01-10, Wolfgang Engelmann wrote:
> I try to convert 
> CKI\varepsilon
> into 
> mathrm, but that gives me CKI''

> Is this known, that greek characters do not convert, or am I missing 
> something?

Upright Greek is a known problem. 

* By default, Greek letters are treated as symbols, not letters and left
  as-is if put into \mathrm or other \math... alphabets (i.e. you will
  still get an italic character).
  
* with the fixmath or isomath package, math alphabet changes work for latin
  and greek letters. The downside is, that in the default upright (roman)
  math fonts, the Greek letters are missing and you will get garbage.

See e.g. the isomath packages documentation for a buch of workarounds.

http://www.ctan.org/pkg/isomath

Günter



Re: Lyx on MacBook Pro retina

2013-01-11 Thread Julian Kolm
Hi, I think it is a real pity that this issue is dormant at the moment. It
really makes lyx almost impossible to use for writing long text and that is
the major use case after all. Since the number of people who will be
affected by this is bound to rise a fix would really be appreciated.

I do not know whether this helps a potential developer taking up the issue
but using lyx under Windows on a MacBook Pro Retina works without a
Problem. If someone would decide to take this up I could offer testing as
the hardware is probably not that common.

Regards,
Julian


Re: Math font problem under Mac OS X Lion

2013-01-11 Thread Stephan Witt
Am 11.01.2013 um 10:57 schrieb Scott Kostyshak :

> On Wed, Nov 21, 2012 at 8:09 AM, Luca Brandolini
>  wrote:
>> Stefan Bauer  math.uni-bielefeld.de> writes:
>> 
>>> 
>>> 
>>> I have the same setup. In the math edit mode the \Omega is invisible as
>>> long as you are working on the formula.
>>> 
>>> S Bauer
>>> 
>>> 
>> 
>> If I type \Omega in the math editor I get a bold w.
>> It is probably a font misconfiguration but I cannot figure out what to do.
>> 
>> 
> 
> Which LyX versions are you using? If the problem is still there can
> you file a bug report please on www.lyx.org/trac?

Yes, please.

I think, the problem is in GuiPainter.cpp line 356 etc.

==
// Qt4 does not display a glyph whose codepoint is the
// same as that of a soft-hyphen (0x00ad), unless it
// occurs at a line-break. As a kludge, we force Qt to
// render this glyph using a one-column line.
if (s.size() == 1 && str[0].unicode() == 0x00ad) {
setQPainterPen(computeColor(f.realColor()));
QTextLayout adsymbol(str);
adsymbol.setFont(ff);
adsymbol.beginLayout();
QTextLine line = adsymbol.createLine();
line.setNumColumns(1);
line.setPosition(QPointF(0, -line.ascent()));
adsymbol.endLayout();
line.draw(this, QPointF(x, y));
return textwidth;
}
==

It happens \Omega is 0x00ad - so it's special. But it looks like this special 
code does not work.

Stephan

Re: Math font problem under Mac OS X Lion

2013-01-11 Thread Stephan Witt
Am 11.01.2013 um 21:33 schrieb Stephan Witt :

> Am 11.01.2013 um 10:57 schrieb Scott Kostyshak :
> 
>> On Wed, Nov 21, 2012 at 8:09 AM, Luca Brandolini
>>  wrote:
>>> Stefan Bauer  math.uni-bielefeld.de> writes:
>>> 
 
 
 I have the same setup. In the math edit mode the \Omega is invisible as
 long as you are working on the formula.
 
 S Bauer
 
 
>>> 
>>> If I type \Omega in the math editor I get a bold w.
>>> It is probably a font misconfiguration but I cannot figure out what to do.
>>> 
>>> 
>> 
>> Which LyX versions are you using? If the problem is still there can
>> you file a bug report please on www.lyx.org/trac?
> 
> Yes, please.
> 
> I think, the problem is in GuiPainter.cpp line 356 etc.
> 
> ==
>   // Qt4 does not display a glyph whose codepoint is the
>   // same as that of a soft-hyphen (0x00ad), unless it
>   // occurs at a line-break. As a kludge, we force Qt to
>   // render this glyph using a one-column line.
>   if (s.size() == 1 && str[0].unicode() == 0x00ad) {
>   setQPainterPen(computeColor(f.realColor()));
>   QTextLayout adsymbol(str);
>   adsymbol.setFont(ff);
>   adsymbol.beginLayout();
>   QTextLine line = adsymbol.createLine();
>   line.setNumColumns(1);
>   line.setPosition(QPointF(0, -line.ascent()));
>   adsymbol.endLayout();
>   line.draw(this, QPointF(x, y));
>   return textwidth;
>   }
> ==
> 
> It happens \Omega is 0x00ad - so it's special. But it looks like this special 
> code does not work.


Sorry, it's already reported here:

http://www.lyx.org/trac/ticket/7954

Stephan

Re: Lyx on MacBook Pro retina

2013-01-11 Thread Scott Kostyshak
On Fri, Jan 11, 2013 at 1:27 PM, Julian Kolm  wrote:
> Hi, I think it is a real pity that this issue is dormant at the moment. It
> really makes lyx almost impossible to use for writing long text and that is
> the major use case after all. Since the number of people who will be
> affected by this is bound to rise a fix would really be appreciated.

Good point. But unfortunately there are only one or two Mac developers
around here, and I'm not even sure they have the hardware to test the
retina display.

This asymmetry between many users and only a couple of developers
makes me wonder if this situation is good for a sponsorship. If
everyone donated a little, maybe it would make it more worthwhile to
the developer (or at least show the developer that some people care
and are happy to help contribute). I have no idea how much work would
be required for this or if any developer would want to spend their
free time working on it. See http://www.lyx.org/Donate for past
sponsors.

Best,

Scott