Re: paragraph question

2003-08-14 Thread Martin Vermeer
On Thu, Aug 07, 2003 at 09:16:37AM +0200, Andre Poenitz spake thusly: > On Tue, Aug 05, 2003 at 10:24:47PM +0300, Dekel Tsur wrote: > > On Tue, Aug 05, 2003 at 05:40:02PM +0200, Jean-Marc Lasgouttes wrote: ... > What about "languange insets" for those parts that are not part of the > "official"

Re: paragraph question

2003-08-14 Thread Dekel Tsur
On Tue, Aug 05, 2003 at 05:40:02PM +0200, Jean-Marc Lasgouttes wrote: > > If this is really the intent, I think that we should have a real > notion of paragraph language, like for example: if one selects a > paragraph in whole and sets its language, then it is the paragraph > language which change

Re: paragraph question

2003-08-14 Thread John Levon
On Tue, Aug 05, 2003 at 10:24:47PM +0300, Dekel Tsur wrote: > If we decide storing "paragraph language", we should add the option to > change it in the paragraph dialog. Erm, why ? This is an implementation detail. We have two user-visible notions : o the language of text set to a particular la

Re: paragraph question

2003-08-14 Thread Andre Poenitz
On Tue, Aug 05, 2003 at 10:24:47PM +0300, Dekel Tsur wrote: > On Tue, Aug 05, 2003 at 05:40:02PM +0200, Jean-Marc Lasgouttes wrote: > > > > If this is really the intent, I think that we should have a real > > notion of paragraph language, like for example: if one selects a > > paragraph in whole a

Re: paragraph question

2003-08-14 Thread Jean-Marc Lasgouttes
> "John" == John Levon <[EMAIL PROTECTED]> writes: John> On Tue, Aug 05, 2003 at 05:17:28PM +0200, Andre Poenitz wrote: >> Why doesn't a paragraph store its language. John> Now there's a raw subject. >> Paragraph::getParLanguage(BufferParams const & bparams) const John> I couldn't understan

Re: paragraph question

2003-08-14 Thread John Levon
On Tue, Aug 05, 2003 at 05:40:02PM +0200, Jean-Marc Lasgouttes wrote: > I think Dekel is the one who knows about that. It seems that what is > supposed to be the par_language is actually the first language used in > the document... I can see many cases where this fails. I guess that > the goal is

Re: paragraph question

2003-08-11 Thread Andre Poenitz
On Tue, Aug 05, 2003 at 04:46:10PM +0100, John Levon wrote: > Not if we use the default language only when creating a new paragraph, > and set the language there. > > new Paragraph(bparams.language); I am pretty happy with Paragraph::Paragraph() as it is now... Of course, a function creating

Re: paragraph question

2003-08-08 Thread John Levon
On Tue, Aug 05, 2003 at 06:02:57PM +0200, Andre Poenitz wrote: > I am pretty happy with Paragraph::Paragraph() as it is now... > > Of course, a function creating random paragraphs might know the buffer > and could set the language of a newly created buffer... I assume you mean "newly created p

Re: paragraph question

2003-08-06 Thread John Levon
On Tue, Aug 05, 2003 at 05:17:28PM +0200, Andre Poenitz wrote: > Why doesn't a paragraph store its language. Now there's a raw subject. > Paragraph::getParLanguage(BufferParams const & bparams) const I couldn't understand why not. Lars (or JMarc ?) explained some circumstance where this matters

paragraph question

2003-08-06 Thread Andre Poenitz
Why doesn't a paragraph store its language. Currently we have Language const * Paragraph::getParLanguage(BufferParams const & bparams) const { if (!empty()) return getFirstFontSettings().language(); #warning FIXME we should check the prev par as well (Lgb) return