You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@openoffice.apache.org by Uwe Brauer <ou...@mat.ucm.es> on 2013/10/29 12:39:44 UTC

document with 2 tables, select all does not select all

Hello

I have a document which contains a 

table

Some text

table


So I want to select all the text of the document (basically I want to
change the font), but select all does not select all, it only selects
one table!

What do I miss.

Uwe Brauer 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@openoffice.apache.org
For additional commands, e-mail: users-help@openoffice.apache.org


Re: document with 2 tables, s­elect all does not select­ all

Posted by Dr Donald Zarlengo <za...@me.com>.
Well, thank you for your immediate response.

I am always open to learning - and helping others.




Don

Donald Zarlenga Ph.D.
zarlengo@me.com




On Oct 30, 2013, at 11:54 PM, Dave Barton <db...@tasit.net> wrote:

Dr Donald Zarlengo wrote:
> Great news.
> 
> 
> 
> Don
> 
> Donald Zarlenga Ph.D.
> zarlengo@me.com
> 
> 
> 
> 
> On Oct 30, 2013, at 3:33 AM, Uwe Brauer <ou...@mat.ucm.es> wrote:
> 
>>> "Andrea" == Andrea Pescetti <pe...@apache.org> writes:
> 
>> Johnny smith wrote:
> 
>> And a historical one:
> 
>> https://issues.apache.org/ooo/show_bug.cgi?id=7747
> 
> I didn't know about that. BTW even the newest version of Libreoffice has
> this bug. Seems to be hidden deep deep in some attic part of the code.
> 
> Uwe Brauer 

Not sure what the "Great News" is, but part of the solution to this
"historical" issue is not well documented:

o To insert a paragraph before a table at the start of a document place
the cursor before the contents of the first cell in the table and press
ALT+ENTER.

o To insert a paragraph after a table at the end of a document place the
cursor after the contents of the last cell in the table and press ALT+ENTER.

The bug id=7747 should only concentrate on the fact that it is not
possible to "Select All" (CTRL+A) when the document starts or ends with
a table. (i.e.. No leading or trailing paragraph.)

This issue is different from Uwe's situation where he was trying to
override the Conditional Formatting of a table.

Regards

Dave



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@openoffice.apache.org
For additional commands, e-mail: users-help@openoffice.apache.org



Re: document with 2 tables, s­elect all does not select­ all

Posted by Dave Barton <db...@tasit.net>.
Dr Donald Zarlengo wrote:
> Great news.
> 
> 
> 
> Don
> 
> Donald Zarlenga Ph.D.
> zarlengo@me.com
> 
> 
> 
> 
> On Oct 30, 2013, at 3:33 AM, Uwe Brauer <ou...@mat.ucm.es> wrote:
> 
>>> "Andrea" == Andrea Pescetti <pe...@apache.org> writes:
> 
>> Johnny smith wrote:
> 
>> And a historical one:
> 
>> https://issues.apache.org/ooo/show_bug.cgi?id=7747
> 
> I didn't know about that. BTW even the newest version of Libreoffice has
> this bug. Seems to be hidden deep deep in some attic part of the code.
> 
> Uwe Brauer 

Not sure what the "Great News" is, but part of the solution to this
"historical" issue is not well documented:

o To insert a paragraph before a table at the start of a document place
the cursor before the contents of the first cell in the table and press
ALT+ENTER.

o To insert a paragraph after a table at the end of a document place the
cursor after the contents of the last cell in the table and press ALT+ENTER.

The bug id=7747 should only concentrate on the fact that it is not
possible to "Select All" (CTRL+A) when the document starts or ends with
a table. (ie. No leading or trailing paragraph.)

This issue is different from Uwe's situation where he was trying to
override the Conditional Formatting of a table.

Regards

Dave



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@openoffice.apache.org
For additional commands, e-mail: users-help@openoffice.apache.org


Re: document with 2 tables, s­elect all does not select­ all

Posted by Dave Barton <db...@tasit.net>.
Uwe Brauer wrote:
>>> "Dave" == Dave Barton <db...@tasit.net> writes:
> 
>    > The bug id=7747 should only concentrate on the fact that it is not
>    > possible to "Select All" (CTRL+A) when the document starts or ends with
>    > a table. (ie. No leading or trailing paragraph.)
> 
>    > This issue is different from Uwe's situation where he was trying to
>    > override the Conditional Formatting of a table.
> 
> Well I might for some other reason select the whole text, say for coping
> it. The issue is the odt file I sent, generated by the org converter is
> ODF compliant but this workaround does not work!
> 
> Uwe

I did not offer a Select All workaround for your "Conditional
Formatting" situation.

The only way to know if the org converter is applying the correct ODF
translation is to examine the structure of the source document.

Dave



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@openoffice.apache.org
For additional commands, e-mail: users-help@openoffice.apache.org


Re: document with 2 tables, s­elect all does notselect­ all

Posted by Uwe Brauer <ou...@mat.ucm.es>.
>> "Dave" == Dave Barton <db...@tasit.net> writes:

   > The bug id=7747 should only concentrate on the fact that it is not
   > possible to "Select All" (CTRL+A) when the document starts or ends with
   > a table. (ie. No leading or trailing paragraph.)

   > This issue is different from Uwe's situation where he was trying to
   > override the Conditional Formatting of a table.

Well I might for some other reason select the whole text, say for coping
it. The issue is the odt file I sent, generated by the org converter is
ODF compliant but this workaround does not work!

Uwe 

Re: document with 2 tables, s­elect all does not select­ all

Posted by Dr Donald Zarlengo <za...@me.com>.
Great news.



Don

Donald Zarlenga Ph.D.
zarlengo@me.com




On Oct 30, 2013, at 3:33 AM, Uwe Brauer <ou...@mat.ucm.es> wrote:

>> "Andrea" == Andrea Pescetti <pe...@apache.org> writes:

> Johnny smith wrote:

> And a historical one:

> https://issues.apache.org/ooo/show_bug.cgi?id=7747

I didn't know about that. BTW even the newest version of Libreoffice has
this bug. Seems to be hidden deep deep in some attic part of the code.

Uwe Brauer 


Re: document with 2 tables, s­elect all does notselect­ all

Posted by Uwe Brauer <ou...@mat.ucm.es>.
>> "Andrea" == Andrea Pescetti <pe...@apache.org> writes:

   > johnny smith wrote:

   > And a historical one:

   > https://issues.apache.org/ooo/show_bug.cgi?id=7747

I didn't know about that. BTW even the newest version of Libreoffice has
this bug. Seems to be hidden deep deep in some attic part of the code.

Uwe Brauer 

Re: document with 2 tables, s­elect all does not select­ all

Posted by Dr Donald Zarlengo <za...@me.com>.
I assume you are using OpenOffice.  
Are you using it in Text Mode? or Spreadsheet? 
Are you working on a Mac or windows computer?

I selected whole document, with lots of tables, etc under Word or Excel and it always worked. 

I have to set up a dual table in the OpenOffice - once I know which function (text, spreadsheet, data base etc.) that you
are using. 

Hope I can help.

PS
I also use Nisus Pro sometimes - but I never got good at it, because I used to know Word so well.
I like Nisus and their ownership. I have met and talked with Bill Gates. I have heard many bad
stories about his temper and lack of respect for others.

I just saw an interview of Steve Jobs and Bill Gages. Steve just shined all over Bill. But Steve said good
things on TV about Bill. But I have heard from their employees that both could be tyrants.

I always managed to avoid conflict and bring people together at NASA, and in Universities where I
worked as a VP/CIO of IT and Telecom. But I started out in large scale computing because of my
dissertation in Theoretical Physics. I needed to compute using my model. 


Don

Donald Zarlenga Ph.D.
zarlengo@me.com




On Oct 29, 2013, at 3:43 PM, Andrea Pescetti <pe...@apache.org> wrote:

Johnny smith wrote:
> On Tue, 29 Oct 2013 11:39:44 -0000, Uwe Brauer wrote:
>> So I want to select all the text of the document (basically I want
>> to change the font), but select all does not select all, it only
>> selects one table!
> the problem vanishes if you insert some text before the first table
> (by positioning the caret in the beginning of its first cell and
> typing something). that looks like a bug.

And a historical one:

https://issues.apache.org/ooo/show_bug.cgi?id=7747

Regards,
 Andrea.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@openoffice.apache.org
For additional commands, e-mail: users-help@openoffice.apache.org



Re: document with 2 tables, s­elect all does not select­ all

Posted by Andrea Pescetti <pe...@apache.org>.
johnny smith wrote:
> On Tue, 29 Oct 2013 11:39:44 -0000, Uwe Brauer wrote:
>> So I want to select all the text of the document (basically I want
>> to change the font), but select all does not select all, it only
>> selects one table!
> the problem vanishes if you insert some text before the first table
> (by positioning the caret in the beginning of its first cell and
> typing something). that looks like a bug.

And a historical one:

https://issues.apache.org/ooo/show_bug.cgi?id=7747

Regards,
   Andrea.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@openoffice.apache.org
For additional commands, e-mail: users-help@openoffice.apache.org


Re: document with 2 tables, s­elect all does not select­ all

Posted by johnny smith <ka...@krovatka.su>.
On Tue, 29 Oct 2013 11:39:44 -0000, Uwe Brauer <ou...@mat.ucm.es> wrote:

> I have a document which contains a
>
> table
>
> Some text
>
> table
>
>
> So I want to select all the text of the document (basically I want to
> change the font), but select all does not select all, it only selects
> one table!

the problem vanishes if you insert some text before the first table (by positioning the caret in the beginning of its first cell and typing something).

that looks like a bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@openoffice.apache.org
For additional commands, e-mail: users-help@openoffice.apache.org


Re: document with 2 tables, select all does not select all

Posted by Brian Barker <b....@btinternet.com>.
At 12:39 29/10/2013 +0100, Uwe Brauer wrote:
>I have a document which contains a
>table
>Some text
>table
>
>So I want to select all the text of the document (basically I want 
>to change the font), but select all does not select all, it only 
>selects one table!

This doesn't answer your question, but how many paragraph styles are 
you using?  Perhaps at most one for the tables and another for the 
separate text.  You can change the font in those styles without 
selecting anything.

I trust this helps.

Brian Barker


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@openoffice.apache.org
For additional commands, e-mail: users-help@openoffice.apache.org


Re: document with 2 tables, select all does not select all

Posted by Uwe Brauer <ou...@mat.ucm.es>.
>> "Brian" == Brian Barker <b....@btinternet.com> writes:

   > At 12:39 29/10/2013 +0100, Uwe Brauer wrote:


   >> So I want to select all the text of the document (basically I want
   >> to change the font), but select all does not select all, it only
   >> selects one table!

   > This doesn't answer your question, but how many paragraph styles are
   > you using? 

I really don't know since the file has been generated by a converter
(org a emacs packages provide a converter to odt) and I don't know much
about the internals of the converter.

   >  Perhaps at most one for the tables and another for the
   > separate text.  You can change the font in those styles without
   > selecting anything.

I tried to select a couple of paragraph style and changed their
fonts. It did not help.

I am most like going to post one example of a result of this converter
in the list and ask about comments and advice.

Uwe Brauer 

Re: Example where the workaro­und does not work (was: d­ocument with 2 tables, s

Posted by Dave Barton <db...@tasit.net>.
johnny smith wrote:
> On Wed, 30 Oct 2013 10:47:49 -0000, Uwe Brauer <ou...@mat.ucm.es> wrote:
> 
>> Please look at the following document, which has been generated by a
>> converter provided by org[1]
>>
>> It contains tables which whose text cannot be selected via select all.
>> If there is something wrong with the odt, please tell me and I will
>> report it on the org mailing list.
> 
> notwithstanding dave's comment, the odt seems either defective or incompatible with aoo (which may be aoo's fault as well). more specifically, the tables are quite lonely within their sections. they have no text before them, nor after. such a document can't be created by usual means of aoo, and thus it isn't handled as expected. e.g., you can't type anything after the second table or after the first one within its section, because there're no empty paragraphs after the tables to take your input. you can't even peform select-all operation manually (with a mouse rather than through ctrl+a). it seems that the select operation uses contents of the <text:p> elements to set boundaries of the selection. so, if there's no such element, then select-all doesn't work properly.
> 
> to fix this, i inserted the following two paragraphs into content.xml of your file:
> 
> <text:p text:style-name="OrgTableContentsLeft">some text after the first table</text:p>
> <text:p text:style-name="OrgTableContentsLeft">some text after the second table</text:p>
> 
> they follow the closing tags (</table:table>) of tables. there appeared to be no way to do it through gui.
> 
> after that select-all worked almost smoothly: it selected the cell on the first press, the table on the second one and everything on the third one. what was wrong is that it always started with the cell, even when the caret was outside table.
> 
> however, inserting a paragraph before each table fixed this. it didn't require editing content.xml. the final version of the file is attached, and i hope it won't be attenuated by antispam.
> 
> i can't say on which program's account this bug is. consulting odf specification may help answer this question.

Alternatively, place the cursor after the contents of the last cell in
either of the tables and press ALT+ENTER.

Sorry, I don't see this as a bug or a defect of the converter.

Regards
Dave



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@openoffice.apache.org
For additional commands, e-mail: users-help@openoffice.apache.org


Re: Example where the workaro­und does not work (was: d­ocument with 2 tables, s

Posted by Dave Barton <db...@tasit.net>.
Uwe Brauer wrote:
>>> "Dave" == Dave Barton <db...@tasit.net> writes:
> 
>    > johnny smith wrote:
>    >> 
>    >> i can't say on which program's account this bug is. consulting odf
>    >> specification may help answer this question.
> 
>    > Alternatively, place the cursor after the contents of the last cell in
>    > either of the tables and press ALT+ENTER.
> 
> 
> Sorry this still does not solve the problem. Select all does *not*
> select the whole text in the document!

True, but as I said in another post to this thread: "This issue is
different from Uwe's situation where he was trying to override the
Conditional Formatting of a table."

Johnny's main point was that he had to disassemble the document to add
paragraphs, which was not necessary. Obviously disassembling and
reassembling the document has broken the table's "Conditional
Formatting", which allows Select All to work.

Dave





---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@openoffice.apache.org
For additional commands, e-mail: users-help@openoffice.apache.org


Re: Example where the workaro­und does not work (was: d­ocument with 2 tables, s

Posted by Uwe Brauer <ou...@mat.ucm.es>.
>> "Dave" == Dave Barton <db...@tasit.net> writes:

   > johnny smith wrote:
   >> 
   >> i can't say on which program's account this bug is. consulting odf
   >> specification may help answer this question.

   > Alternatively, place the cursor after the contents of the last cell in
   > either of the tables and press ALT+ENTER.


Sorry this still does not solve the problem. Select all does *not*
select the whole text in the document!

Re: Example where the workaro­und does not work (was: d­ocument with 2 tables, s

Posted by johnny smith <ka...@krovatka.su>.
On Wed, 30 Oct 2013 10:47:49 -0000, Uwe Brauer <ou...@mat.ucm.es> wrote:

> Please look at the following document, which has been generated by a
> converter provided by org[1]
>
> It contains tables which whose text cannot be selected via select all.
> If there is something wrong with the odt, please tell me and I will
> report it on the org mailing list.

notwithstanding dave's comment, the odt seems either defective or incompatible with aoo (which may be aoo's fault as well). more specifically, the tables are quite lonely within their sections. they have no text before them, nor after. such a document can't be created by usual means of aoo, and thus it isn't handled as expected. e.g., you can't type anything after the second table or after the first one within its section, because there're no empty paragraphs after the tables to take your input. you can't even peform select-all operation manually (with a mouse rather than through ctrl+a). it seems that the select operation uses contents of the <text:p> elements to set boundaries of the selection. so, if there's no such element, then select-all doesn't work properly.

to fix this, i inserted the following two paragraphs into content.xml of your file:

<text:p text:style-name="OrgTableContentsLeft">some text after the first table</text:p>
<text:p text:style-name="OrgTableContentsLeft">some text after the second table</text:p>

they follow the closing tags (</table:table>) of tables. there appeared to be no way to do it through gui.

after that select-all worked almost smoothly: it selected the cell on the first press, the table on the second one and everything on the third one. what was wrong is that it always started with the cell, even when the caret was outside table.

however, inserting a paragraph before each table fixed this. it didn't require editing content.xml. the final version of the file is attached, and i hope it won't be attenuated by antispam.

i can't say on which program's account this bug is. consulting odf specification may help answer this question.

Re: Example where the workaro­und does not work (was: d­ocument with 2 tables, s

Posted by Uwe Brauer <ou...@mat.ucm.es>.
>> "johnny" == johnny smith <ka...@krovatka.su> writes:

   > On Wed, 30 Oct 2013 10:47:49 -0000, Uwe Brauer <ou...@mat.ucm.es> wrote:
   >> Please look at the following document, which has been generated by a
   >> converter provided by org[1]
   >> 
   >> It contains tables which whose text cannot be selected via select all.
   >> If there is something wrong with the odt, please tell me and I will
   >> report it on the org mailing list.


   > to fix this, i inserted the following two paragraphs into content.xml of your file:

   > <text:p text:style-name="OrgTableContentsLeft">some text after the first table</text:p>
   > <text:p text:style-name="OrgTableContentsLeft">some text after the second table</text:p>

Thanks very much for this detailed answer. I already contacted the
maintainer of the org exporter.

Uwe 

Re: Example where the workaround does not work

Posted by Dave Barton <db...@tasit.net>.
Uwe Brauer wrote:
>>> "johnny" == johnny smith <ka...@krovatka.su> writes:
> 
>    >> 
>    >> 
>    >> So I want to select all the text of the document (basically I want to
>    >> change the font), but select all does not select all, it only selects
>    >> one table!
> 
>    > the problem vanishes if you insert some text before the first table
>    > (by positioning the caret in the beginning of its first cell and
>    > typing something).
> 
> Please look at the following document, which has been generated by a
> converter provided by org[1]
> 
> It contains tables which whose text cannot be selected via select all.
> If there is something wrong with the odt, please tell me and I will
> report it on the org mailing list.
> 
> thanks
> 
> Uwe Brauer 

The converter does it right by using styles.

See attached revised copy of the document, where I simply changed the
font of only one _"Conditional"_ style "OrgTableContents" from Times to
Arial. All the other "OrgTable" styles in the document are subordinate
and inherit the "OrgTableContents" styles automatically.

The only way to override Conditional Formatting, so you can do manual
(typewriter method) formatting, is to "Clear Formatting" first.

Hope this helps.

Dave



Re: Example where the workaround does not work

Posted by Uwe Brauer <ou...@mat.ucm.es>.
>> "Dave" == Dave Barton <db...@tasit.net> writes:

   > Uwe Brauer wrote:
   >> 
   >> Uwe Brauer 

   > The converter does it right by using styles.

   > See attached revised copy of the document, where I simply changed the
   > font of only one _"Conditional"_ style "OrgTableContents" from Times to
   > Arial. All the other "OrgTable" styles in the document are subordinate
   > and inherit the "OrgTableContents" styles automatically.

Great, thanks this solves my problem!

Uwe 


Example where the workaround does not work (was: document with 2 tables, s­elect all does not select­all)

Posted by Uwe Brauer <ou...@mat.ucm.es>.
>> "johnny" == johnny smith <ka...@krovatka.su> writes:

   >> 
   >> 
   >> So I want to select all the text of the document (basically I want to
   >> change the font), but select all does not select all, it only selects
   >> one table!

   > the problem vanishes if you insert some text before the first table
   > (by positioning the caret in the beginning of its first cell and
   > typing something).

Please look at the following document, which has been generated by a
converter provided by org[1]

It contains tables which whose text cannot be selected via select all.
If there is something wrong with the odt, please tell me and I will
report it on the org mailing list.

thanks

Uwe Brauer 




Footnotes:
[1]  a package of GNU emacs