View Single Post
Old 10-11-2023, 03:11 PM   #26
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,958
Karma: 6361444
Join Date: Nov 2009
Device: many
To try to test support for pasting tables in PageEdit, I created a simple table in xhtml in Sigil and as long as I was careful to select the entire table in Sigil's Preview (started above the table and continued a bit past) and hit copy, I could go to PageEdit and paste and sure enough the Inspector showed that the entire table was copied.

If I just grabbed part of the table (just the contents of the rows) then when I pasted into PageEdit I just got rich text in paragraphs with no table.

So whatver you are seeing on Windows, I am not able to recreate at all on macOS. So Qt6 vs Qt5 does not change anything here.

So would you please try selecting the line above the table through to the line after the table (to make sure the entire table is selected and not just the contents of the rows themselves) and try pasting it into PageEdit, then try using PageEdit's Inspector to see the actual code pasted to verify if a table was formed or not?

With the current PageEdit on macOS, I do indeed get a table if I make sure to select the whole table.

Perhaps this is just an issue on Windows?

Here is the snippet of table xhtml I used. Notice the use of bold and italics for the second column values.

Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops">
<head>
  <title></title>
</head>

<body>
<p>*</p>
<table>
<tbody>
<tr><td>Hello 1</td><td><b>Hey!</b> 2</td><td>Hi 3</td></tr>
<tr><td>Bye 4</td><td><i>Ta-ta</i> 5</td><td>Duh 6</td></tr>
</tbody>
</table>
<p>*</p>
</body>
</html>
Would someone with Sigil and PageEdit on Windows please run that test and confirm if there is a Window's specific problem we need to address?

Last edited by KevinH; 10-11-2023 at 03:25 PM.
KevinH is offline   Reply With Quote